コード例 #1
0
ファイル: view.html.php プロジェクト: pupsikus/bs.test
 /**
  * View display method
  * @return void
  */
 public function display($tpl = null)
 {
     $this->about = baformsHelper::aboutUs();
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Set the toolbar
     $this->addToolBar();
     baformsHelper::addSubmenu('forms');
     $this->sidebar = JHtmlSidebar::render();
     foreach ($this->items as &$item) {
         $item->order_up = true;
         $item->order_dn = true;
     }
     // Display the template
     parent::display($tpl);
 }
コード例 #2
0
ファイル: view.html.php プロジェクト: pupsikus/bs.test
 /**
  * View display method
  * @return void
  */
 public function display($tpl = null)
 {
     $input = JFactory::getApplication()->input;
     $print = $input->get('print');
     if (!empty($print)) {
         $this->print = $this->getPrintData($print);
         $this->printTitle = $this->getPrintTitle($print);
         $this->setLayout('print');
     } else {
         $this->about = baformsHelper::aboutUs();
         $this->items = $this->get('Items');
         $this->pagination = $this->get('Pagination');
         $this->state = $this->get('State');
         $this->addToolBar();
         baformsHelper::addSubmenu('Submissions');
         $this->sidebar = JHtmlSidebar::render();
         foreach ($this->items as &$item) {
             $item->order_up = true;
             $item->order_dn = true;
         }
     }
     // Display the template
     parent::display($tpl);
 }