Пример #1
0
 function getAddon()
 {
     $result = array();
     $addon_name = JRequest::getCmd('addon_name', null);
     $type = JRequest::getCmd('addon_type', null);
     if ($type == 'content' && ($addon_name == 'jcontent' || $addon_name == 'jdownloads' || $addon_name == 'sobipro')) {
         $com = OSECPU_F_PATH . DS . 'extjs';
         echo '<style type="text/css">' . "\r\n";
         require_once $com . '/treegrid/treegrid.css';
         echo "\r\n" . '</style>';
         echo '<script type="text/javascript">' . "\r\n";
         require_once $com . "/treegrid/TreeGridSorter.js";
         require_once $com . "/treegrid/TreeGridColumnResizer.js";
         require_once $com . "/treegrid/TreeGridNodeUI.js";
         require_once $com . "/treegrid/TreeGridLoader.js";
         require_once $com . "/treegrid/TreeGridColumns.js";
         require_once $com . "/treegrid/TreeGrid.js";
         echo "\r\n" . '</script>';
     }
     if ($type == 'panel' && $addon_name == 'basic') {
         /*
         $com = OSECPU_F_PATH.DS.'extjs';
          //oseHTML::script($com."/htmleditor/tiny_mce/tiny_mce.js",'1.5');
                 //oseHTML::script($com."/htmleditor/TinyMCE.js",'1.5');
         
         echo '<script type="text/javascript">'."\r\n";
         //require_once($com."/htmleditor/tiny_mce/tiny_mce.js");
         	        require_once($com."/htmleditor/TinyMCE.js");
         echo "\r\n".'</script>';
         */
     }
     if ($type == 'bridge' && $addon_name == 'docman') {
         $com = OSECPU_F_PATH . DS . 'extjs';
         echo '<script type="text/javascript">' . "\r\n";
         require_once $com . '/multiselect/MultiSelect.js';
         echo "\r\n" . '</script>';
         echo '<style type="text/css"> ' . "\r\n";
         require_once $com . '/multiselect/MultiSelect.css';
         echo "\r\n" . '</style>';
     }
     parent::getAddon();
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #3
0
 function action()
 {
     $actionName = JRequest::getString('action');
     //$model = $this->getModel('membership');
     parent::action();
     /*
     if($updated)
     {
     	$result['success'] = true;
     	$result['title'] = 'Done';
     	$result['content'] = 'Update Successfully!';
     }
     else
     {
     	$result['success'] = false;
     	$result['title'] = 'Error';
     	$result['content'] = 'Fail to Update!';
     }
     
     $result = oseJson::encode($result);
     
     oseExit($result);
     */
 }