Пример #1
0
 /**
  * Display "New" / "Edit"
  */
 function edit()
 {
     JRequest::setVar('view', 'groups');
     JRequest::setVar('layout', 'edit');
     parent::display();
 }
Пример #2
0
 /**
  * Display "New" / "Edit"
  */
 function edit()
 {
     JRequest::setVar('view', 'customfields');
     JRequest::setVar('layout', 'edit');
     parent::display();
 }
Пример #3
0
 /**
  * Display "New" / "Edit"
  */
 function edit()
 {
     JRequest::setVar('view', 'kbcategories');
     JRequest::setVar('layout', 'edit');
     parent::display();
 }
Пример #4
0
<?php

/**
* @version 2.0.0
* @package RSTickets! Pro 2.0.0
* @copyright (C) 2010 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl-2.0.html
*/
defined('_JEXEC') or die('Restricted access');
// Require the base controller
require_once JPATH_COMPONENT . DS . 'controller.php';
require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'rsticketspro.php';
require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'html.php';
require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'securimage' . DS . 'securimage.php';
require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_rsticketspro' . DS . 'helpers' . DS . 'recaptcha' . DS . 'recaptchalib.php';
RSTicketsProHelper::readConfig();
// See if this is a request for a specific controller
$controller = JRequest::getCmd('controller');
if (!empty($controller) && file_exists(JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php')) {
    require_once JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php';
    $controller = 'RSTicketsProController' . $controller;
    $RSTicketsProController = new $controller();
} else {
    $RSTicketsProController = new RSTicketsProController();
}
$RSTicketsProController->execute(JRequest::getCmd('task'));
// Redirect if set
$RSTicketsProController->redirect();
Пример #5
0
 function search()
 {
     $mainframe =& JFactory::getApplication();
     // Get the model
     $model = $this->getModel('searches');
     $search = $model->getSearch();
     $params = unserialize(base64_decode($search->params));
     foreach ($params as $param => $value) {
         JRequest::setVar($param, $value);
     }
     if ($mainframe->isAdmin()) {
         JRequest::setVar('view', 'tickets');
     } else {
         JRequest::setVar('view', 'rsticketspro');
     }
     JRequest::setVar('layout', 'default');
     $mainframe =& JFactory::getApplication();
     $option = 'com_rsticketspro';
     $mainframe->setUserState($option . '.ticketsfilter.predefined_search', $search->id);
     parent::display();
 }
Пример #6
0
 function __construct()
 {
     parent::__construct();
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
 }