Esempio n. 1
0
 function add()
 {
     $model = $this->loadModel('JhProject');
     $this->jhdata['pagetitle'] = JText::_('Add Project');
     $this->jhdata['project'] = $model;
     Viewproject::display('projectform', $this->jhdata);
 }
Esempio n. 2
0
 function edit()
 {
     $id = $_REQUEST['cid'];
     if (is_array($id)) {
         $id = $id[0];
     }
     $this->generateProjectArray();
     $model = $this->loadModel('JhProjectVersion');
     $this->jhdata['pagetitle'] = JText::_('Edit Project Version');
     $data = $model->load($id);
     $this->jhdata['version'] = $model;
     Viewproject::display('versionform', $this->jhdata);
 }
Esempio n. 3
0
 function listoptions()
 {
     $this->generateProjectArray();
     $model = $this->loadModel('JhProjectBugtrackOptions');
     $where = null;
     $mainframe =& JFactory::getApplication();
     $limit = JRequest::getCmd('limit', $mainframe->getCfg('list_limit'));
     $limitStart = JRequest::getCmd('limitstart', 0);
     $options = $model->fetchAll($where, 'bugcat asc, `ordering` asc', $limit, $limitStart);
     $data = array();
     $data['options'] = $options;
     $data['pagetitle'] = 'Options List';
     $data['types'] = $model->getTypes();
     print_r($data['types']);
     Viewproject::display('optionslist', $data);
 }
Esempio n. 4
0
 /**
  * @name editcat
  * @access public
  * @details editable data for the faq category
  * @param none
  * @return null
  */
 function editcat()
 {
     $model = $this->loadModel('JhProjectFaqCats');
     $cat_id = JRequest::getVar('cat_id');
     if (is_array($cat_id)) {
         $cat_id = $cat_id[0];
     }
     $model->load($cat_id);
     $data['cat'] = $model;
     Viewproject::display('faqcatform', $data);
 }