/** * (non-PHPdoc) * @see lib/Page#run() */ function run() { global $Controller, $Template; // Ajax-suport $_REQUEST->setType('action', 'string'); if ($_REQUEST->valid('action') && $_REQUEST['action'] == 'lockpos') { echo $this->lockPos(); } else { if ($this->_Cal) { $event = $Controller->{$this->_Cal}; } $this->header = $this->getTitle(); $this->setContent('main', '<div class="articleHolder">' . $this->getInfo() . '<div class="articleImg">' . $this->getImage(Design::getPxWidth(10), false, true) . '</div>' . @$this->content['Text'] . '</div>'); parent::run(); } }
function run() { parent::run(1); //loads Userdata from session $this->_loadUserData(); //check loginstatus if (!$this->userdata) { //login $this->_loginUser(); } else { //logout if ($this->action == "logout") { $this->_logoutUser(); } $this->backtracking->run($this->userdata['uid']); $this->template->assign("backlink", $this->backtracking->backlink()); } //botrefresh bot_refresh(); //flotten refresh fleetstatus_refresh(); //user has to change pw if ($this->userdata['changepw'] && $this->action != "changepwd") { $this->_header("user.php?action=changepwd"); } //checkt die incs auf undertime // inc_check_undertime(); //läd die Takscreenbox $this->_loadTakscreenBox(); //läd die Aktivitätsbox $this->_loadActivityBox(); //lädt die Flottenbox $this->_loadFleetBox(); //creates mainmenu $this->_createMenu(); }
print "RECCOMMENDED? INGREDIENTS:<br/>"; foreach($ingredients as $ingredient) { print $ingredient['name']."<br/>"; print $ingredient['isVegetarian'] ? "Vegetarian" : ""; print $ingredient['isAllergenic'] ? "Allergy Warning" : ""; } */ } } //print total $table_data = $table_data."<td>Total: ".$total."</td></tr>"; } $tmpl->table_data = $table_data; $page->run(); $html = $tmpl->build('orderlist.html'); //$css = $tmpl->build('orderlist.css'); //$js = $tmpl->build('orderlist.js'); $appContent = array( 'html' => $html, 'css' => $css, 'js' => $js ); print $page->build($appContent); ?>
function run() { global $DB; $this->content = array('header' => $this->Name, 'main' => '<div class="newspreamble">' . @$this->content['Preamble'] . '</div><div class="newsbody">' . @$this->content['Text'] . '</div>', 'author' => '<div class="authorpresentation">' . $this->author->presentation() . '</div>'); parent::run(); }
/** * (non-PHPdoc) * @see lib/Page#run() */ function run() { global $Controller; if ($this->_Cal) { $event = $Controller->{$this->_Cal}; } $this->header = $this->getTitle(); //FIXME: Author CSS, Remove hr $this->setContent('main', $this->getDate() . '<p class="author">' . __('Author') . $this->author->getLink() . '</p><hr />' . Design::row(array(Design::column(@$this->content['Text'], 6, true), Design::column(@$this->getImage(350) . ($this->_Cal ? $event->getLink() : ''), 6)))); parent::run(); }