예제 #1
0
 public function getHTML()
 {
     $page = new Core_Template();
     // Login first
     $page->set('login', $this->getLogin());
     $page->set('title', $this->getTitle());
     $page->set('footer', $this->getFooter());
     $page->set('content', $this->getContent());
     $page->set('menu', $this->getMenu());
     // Order baskes
     $page->set('basket', $this->getBasket());
     $text = Core_Text::__getInstance();
     // Languages:
     $langs = getLanguages();
     foreach ($langs as $v) {
         $page->addListValue('languages', array($text->get($v[0], 'languages', 'main', $v[0]), self::getUrl('page=home&language=' . $v[1])));
     }
     $langs = getLayouts();
     foreach ($langs as $v) {
         $page->addListValue('layouts', array($text->get($v[0], 'layouts', 'main', $v[0]), self::getUrl('page=home&layout=' . $v[1])));
     }
     $page->set('languages', $text->get('languages', 'main', 'main'));
     $page->set('layouts', $text->get('layout', 'main', 'main'));
     $page->set('footerSpoof', $text->get('footer', 'main', 'main'));
     $page->set('printerFooter', $text->get('printerFooter', 'main', 'main'));
     $page->sortList('languages');
     $db = Core_Database::__getInstance();
     $page->set('mysqlCount', $db->getCounter());
     $page->set('order_url', array($text->get('shoplist', 'menu', 'main'), self::getUrl('page=order')));
     return $page->parse('index.tpl');
 }
예제 #2
0
 // upload template layout
 case 'upload_layout':
     $editor = true;
     $bigButtonsMenu = getMenu('big_buttons');
     $title = getServiceTitle($layout_alias);
     if (!$title || $title == NULL) {
         setSession('error', 'Database error');
     } else {
         unset($_SESSION['error']);
     }
     $tiraj = getTiraj($layout_alias);
     if ($layout_alias == 'vizitki') {
         $extra = getExtra();
     }
     $paper_types = getPaperTypes();
     $layouts = getLayouts();
     print_arr($_SESSION);
     break;
     //catalog text page
 //catalog text page
 case 'textPage':
     $bigButtonsMenu = getMenu('big_buttons');
     $page = getPageContent($catalogView);
     if (!$page) {
         $page = '';
     }
     $view = 'textPage';
     break;
     //registration
 //registration
 case 'register':