Esempio n. 1
0
 function chooseGui($guiType)
 {
     $guiVars = GuiGetAssigns();
     switch ($guiType) {
         case 'main':
             $gui = new AppGui();
             $gui->setLayout($this->layout);
             break;
         default:
             trigger_error("unknown gui type: {$guiType}");
             break;
     }
     return $gui;
 }
Esempio n. 2
0
 function chooseGui($guiType)
 {
     switch ($guiType) {
         case 'main':
             $gui = new AppGui();
             $gui->setLayout($this->layout);
             break;
         default:
             trigger_error("unknown gui type: {$guiType}");
             break;
     }
     $gui->assign('showTopNav', 1);
     $gui->assign('topnav', array('Clients' => 'client', 'Invoices' => 'invoice'));
     return $gui;
 }
Esempio n. 3
0
 function chooseGui($guiType)
 {
     switch ($guiType) {
         case 'main':
             $gui = new AppGui();
             $gui->setLayout($this->layout);
             break;
         default:
             trigger_error("unknown gui type: {$guiType}");
             break;
     }
     $gui->assign('showTopNav', 1);
     // $gui->assign('topnav', array('Tasks' => 'task', 'Important' => 'important', 'Work Today' => 'worktoday'));
     $gui->assign('topnav', array());
     return $gui;
 }
Esempio n. 4
0
 function fetch($tpl_file, $cache_id = null, $compile_id = null, $display = false)
 {
     $this->assign("TEMPLATE_CONTENT", $tpl_file);
     return parent::fetch("layouts/main.tpl", $cache_id, $compile_id, $display);
 }