/** * Execute and display a template : RT iPrint * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayDefault($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_RT_IPRINT"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->menu = RtiprintHelper::addSubmenu('cpanel', 'default', 'cpanel'); //Toolbar initialization }
/** * Execute and display a template : Contents * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_CONTENTS"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'thirdcontents.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->menu = RtiprintHelper::addSubmenu('contents', 'modal'); $lists = array(); $this->lists =& $lists; //Toolbar initialization JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_CONTENTS'), 'rtiprint_contents'); }
/** * Execute and display a template : Users * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_USERS"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'thirdusers.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->filters = $filters = $model->getForm('modal.filters'); $this->menu = RtiprintHelper::addSubmenu('users', 'modal'); $lists = array(); $this->lists =& $lists; //Filters // Limit $filters['limit']->jdomOptions = array('pagination' => $this->pagination); //Toolbar initialization JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_USERS'), 'rtiprint_users'); }
/** * Execute and display a template : ControlPanel * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayDefault($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_CONTROLPANEL"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'changelogs.default'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->menu = RtiprintHelper::addSubmenu('changelogs', 'default'); $this->mainmenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'mainmenu'); $this->geographymenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'geographymenu'); $this->systemmenu = RtiprintHelper::addSubmenu('changelogs', 'default', 'systemmenu'); $lists = array(); $this->lists =& $lists; //Toolbar initialization JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_CONTROLPANEL'), 'rtiprint_changelogs'); // Config if ($model->canAdmin()) { CkJToolBarHelper::preferences('com_rtiprint'); } }
/** * Execute and display a template : Printers * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_PRINTERS"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'printers.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->filters = $filters = $model->getForm('modal.filters'); $this->menu = RtiprintHelper::addSubmenu('printers', 'modal'); $lists = array(); $this->lists =& $lists; //Filters // Printer Model > Name $modelPrinter_model = CkJModel::getInstance('printermdls', 'RtiprintModel'); $filters['filter_printer_model']->jdomOptions = array('list' => $modelPrinter_model->getItems()); // Building > Building $filters['filter_building']->jdomOptions = array('ajaxVars' => array('values' => array($model->getState("filter.building"), $model->getState("filter.building_town")))); // Server > Name $modelServer = CkJModel::getInstance('servers', 'RtiprintModel'); $filters['filter_server']->jdomOptions = array('list' => $modelServer->getItems()); // Limit $filters['limit']->jdomOptions = array('pagination' => $this->pagination); //Toolbar initialization JToolBarHelper::title(JText::_('RTIPRINT_LAYOUT_PRINTERS'), 'rtiprint_printers'); }
/** * Execute and display a template : PrinterModels * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_PRINTERMODELS"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'printermdls.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->filters = $filters = $model->getForm('modal.filters'); $this->menu = RtiprintHelper::addSubmenu('printermdls', 'modal'); $lists = array(); $this->lists =& $lists; //Filters // Manufacturer $modelManufacturer = CkJModel::getInstance('manufacturers', 'RtiprintModel'); $filters['filter_manufacturer']->jdomOptions = array('list' => $modelManufacturer->getItems()); // Limit $filters['limit']->jdomOptions = array('pagination' => $this->pagination); //Toolbar initialization }
/** * Execute and display a template : Favourites * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_FAVOURITES"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'favourites.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->filters = $filters = $model->getForm('modal.filters'); $this->menu = RtiprintHelper::addSubmenu('favourites', 'modal'); $lists = array(); $this->lists =& $lists; //Filters // User > Name $modelCreated_by = CkJModel::getInstance('thirdusers', 'RtiprintModel'); $filters['filter_created_by']->jdomOptions = array('list' => $modelCreated_by->getItems()); // Limit $filters['limit']->jdomOptions = array('pagination' => $this->pagination); //Toolbar initialization }
/** * Execute and display a template : Buildings * * @access protected * @param string $tpl The name of the template file to parse; automatically searches through the template paths. * * @return mixed A string if successful, otherwise a JError object. * * @since 11.1 */ protected function displayModal($tpl = null) { $document = JFactory::getDocument(); $this->title = JText::_("RTIPRINT_LAYOUT_BUILDINGS"); $document->title = $document->titlePrefix . $this->title . $document->titleSuffix; $this->model = $model = $this->getModel(); $this->state = $state = $this->get('State'); $state->set('context', 'buildings.modal'); $this->items = $items = $this->get('Items'); $this->canDo = $canDo = RtiprintHelper::getActions(); $this->pagination = $this->get('Pagination'); $this->filters = $filters = $model->getForm('modal.filters'); $this->menu = RtiprintHelper::addSubmenu('buildings', 'modal'); $lists = array(); $this->lists =& $lists; //Filters // Towns $filters['filter_town']->jdomOptions = array('ajaxVars' => array('values' => array($model->getState("filter.town")))); // Limit $filters['limit']->jdomOptions = array('pagination' => $this->pagination); //Toolbar initialization }