/** * get the url * * @return string * @throws base_ui_model_Exception */ public function getLinkString() { $pageName = $this->getPageName(); $controllerName = $this->getControllerName(); if ($pageName == 'frontend' && empty($controllerName)) { throw new base_ui_model_Exception(TMS(base_ui_model_Exception::LINK_CONTROLLERNAME_NEEDED)); } $link = HTML_ROOT; $lang = Flat::language(); $link .= "/$lang/$pageName.php"; $params = $this->getGetParams(); if (!empty($controllerName)) { $params['controller'] = $controllerName; } if (!empty($params)) { $link .= '?'; $parts = []; foreach (array_reverse($params) as $paramName => $paramValue) { $parts[] = "$paramName=$paramValue"; } $link .= implode('&', $parts); } return $link; }
base_ui_Site::displayHead($od); base_ui_Site::displayTop($od); base_ui_Site::displayNavigation($od); base_ui_Site::startMainContent($od); $od->addContent(Html::startTag('h3')); $od->addContent('Benutzer LogIn'); $od->addContent(Html::endTag('h3')); print $od->toString(); $od->flush(); if (User::isLoggedIn()) { $od->addContent('Zum Ausloggen bitte ' . Html::url(HTML_ROOT . '/' . Flat::language() . '/logout.php', 'hier') . "klicken\n"); } else { $od->addContent("<form method='post' action='ajax.php?controller=base_ajax_login_Controller&redirect=index.php' class='ajaxForm' >\n"); $table = new base_html_model_Table(); $labelCell = new base_html_model_table_Cell(); $labelCell->setContent('Benutzername'); $valueCell = new base_html_model_table_Cell(); $obj = Factory::createObject('user'); $inputUserName = base_form_element_Factory::createElement($obj->getFieldinfo('userid')); $inputUserName->setName('userid'); $inputUserName->setDisplayMode(DisplayClass::EDIT); $valueCell->setContent($inputUserName->display()); $rowUserId = new base_html_model_table_Row(); $rowUserId->addCell($labelCell); $rowUserId->addCell($valueCell);