public function display($tpl = null) { // Initialise variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } JHtml::_('behavior.framework'); JHtml::_('behavior.modal', 'a.modal'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); //initialise variables $jemsettings = JemHelper::config(); $document = JFactory::getDocument(); $user = JemFactory::getUser(); $this->settings = JemAdmin::config(); $task = JFactory::getApplication()->input->get('task', ''); $this->task = $task; $url = JUri::root(); $categories = JemCategories::getCategoriesTree(1); $selectedcats = $this->get('Catsselected'); $Lists = array(); $Lists['category'] = JemCategories::buildcatselect($categories, 'cid[]', $selectedcats, 0, 'multiple="multiple" size="8"'); // Load css JHtml::_('stylesheet', 'com_jem/backend.css', array(), true); // Load scripts JHtml::_('script', 'com_jem/attachments.js', false, true); JHtml::_('script', 'com_jem/recurrence.js', false, true); JHtml::_('script', 'com_jem/unlimited.js', false, true); JHtml::_('script', 'com_jem/seo.js', false, true); // JQuery noConflict //$document->addCustomTag('<script type="text/javascript">jQuery.noConflict();</script>'); //$document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'); //$document->addScript('http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js'); $access2 = JemHelper::getAccesslevelOptions(); $this->access = $access2; $this->jemsettings = $jemsettings; $this->Lists = $Lists; $this->addToolbar(); parent::display($tpl); }
public function display($tpl = null) { // Initialise variables. $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } //initialise variables $jemsettings = JemHelper::config(); $document = JFactory::getDocument(); $user = JFactory::getUser(); $this->settings = JemAdmin::config(); $task = JFactory::getApplication()->input->get('task'); $this->task = $task; $url = JUri::root(); $categories = JemCategories::getCategoriesTree(1); $selectedcats = $this->get('Catsselected'); $Lists = array(); $Lists['category'] = JemCategories::buildcatselect($categories, 'cid[]', $selectedcats, 0, 'multiple="multiple" size="8"'); // Load css JHtml::_('stylesheet', 'com_jem/backend.css', array(), true); // Load scripts JHtml::_('script', 'com_jem/attachments.js', false, true); JHtml::_('script', 'com_jem/recurrence.js', false, true); JHtml::_('script', 'com_jem/seo.js', false, true); JHtml::_('script', 'com_jem/slider-state.js', false, true); $this->access = JemHelper::getAccesslevelOptions(); $this->jemsettings = $jemsettings; $this->Lists = $Lists; $this->addToolbar(); parent::display($tpl); }