Пример #1
0
 /**
  * TSJs view display method
  * @return void
  */
 function display($tpl = null)
 {
     // Get data from the model
     $this->form = $this->get('Form');
     $this->state = $this->get('State');
     $this->pagination = $this->get('Pagination');
     $this->param = $this->get('Params');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Get data from the model
     if ($this->getLayout() == 'city') {
         $this->cityitems = $this->get('Items');
         $this->setLayout('city');
         //$layout = 'city';
     } else {
         if ($this->getLayout() == 'street') {
             $this->streetitems = $this->get('Items');
             $this->setLayout('street');
             //$layout = 'street';
         } else {
             if ($this->getLayout() == 'address') {
                 $this->addressitems = $this->get('Items');
                 $this->setLayout('address');
                 //$layout = 'address';
             } else {
                 if ($this->getLayout() == 'account') {
                     $this->accountitems = $this->get('Items');
                     $this->setLayout('account');
                     //$layout = 'account';
                 } else {
                     //JFactory::getApplication()->enqueueMessage('Debug: TSJViewTSJs::display layout=default');
                     $this->setLayout('default');
                     $this->defaultitems = $this->get('Items');
                     //JFactory::getApplication()->enqueueMessage('Debug: TSJViewTSJs::display $this->defaultitems='.$this->defaultitems);
                 }
             }
         }
     }
     TSJsHelper::addSubmenu('tsjs');
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     if (version_compare(JPlatform::RELEASE, '12', '>=')) {
         $this->sidebar = JHtmlSidebar::render();
     }
     parent::display($tpl);
     // Set the document
     //$this->setDocument();
 }
Пример #2
0
 function display($tpl = null)
 {
     $info = $this->get('Info');
     $this->assignRef('info', $info);
     $params = JComponentHelper::getParams('com_j2xml');
     $this->assignRef('params', $params);
     if (class_exists('JPlatform') && version_compare(JPlatform::RELEASE, '12', 'ge')) {
         J2XMLHelper::addSubmenu('cpanel');
         $this->sidebar = JHtmlSidebar::render();
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Пример #3
0
 /**
  * Display the view
  */
 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;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Пример #4
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $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;
     }
     // Bind the record to the form.
     $this->form->bind($this->item);
     parent::display($tpl);
 }
Пример #5
0
 /**
  * display method of TSJ view
  * @return void
  */
 public function display($tpl = null)
 {
     // get the Data
     $this->item = $this->get('Item');
     $this->form = $this->get('Form');
     $this->script = $this->get('Script');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     //$this->setDocument();
 }
Пример #6
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // Initialise variables.
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     if (version_compare(JPlatform::RELEASE, '12', 'ge')) {
         J2XMLHelper::addSubmenu('websites');
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.state'), true));
         $this->sidebar = JHtmlSidebar::render();
     }
     $this->addToolbar();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     parent::display($tpl);
 }
Пример #7
0
 /**
  * Tarifs view display method
  * @return void
  */
 function display($tpl = null)
 {
     // Get data from the model
     $this->form = $this->get('Form');
     $this->state = $this->get('State');
     $this->pagination = $this->get('Pagination');
     $this->param = $this->get('Params');
     $this->items = $this->get('Items');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     //$this->setDocument();
 }
Пример #8
0
 /**
  * display method of TSJ view
  * @return void
  */
 public function display($tpl = null)
 {
     // Get data from the model
     $item = $this->get('Item');
     $form = $this->get('Form');
     $script = $this->get('Script');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Assign data to the view
     $this->item = $item;
     $this->form = $form;
     $this->script = $script;
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }
Пример #9
0
 /**
  * HSCs view display method
  * @return void
  */
 function display($tpl = null)
 {
     // Get data from the model
     /*		$items = $this->get('Items');
     		$pagination = $this->get('Pagination');
     
     		// Check for errors.
     		if (count($errors = $this->get('Errors')))
     		{
     		JError::raiseError(500, implode('<br />', $errors));
     		return false;
     		}
     		// Assign data to the view
     		$this->items = $items;
     		$this->pagination = $pagination;*/
     // Set the toolbar
     //$this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     //$this->setDocument();
 }