protected function loadHeader($title = '') { //城市列表 $city_model = M("City"); $city = getCurrentDealCity(); $this->assign("page_title", $title); if ($title) { $title .= "_" . $city['city'] . '_小米团'; } else { $title = $city['city'] . '_小米团'; } $this->assign("title", $title); $city_list = $city_model->select(); $this->assign("city", $city); $this->assign("city_list", $city_list); //菜单什么的 //用户信息 $user_info = session("user_info"); $this->assign("user_info", $user_info); $this->assign('nav_menu', getNavMenu()); $this->assign('user_menu', getUserMenu()); }
<div class="row" style="font-size:15x;"> <div class="col-xs-12 col-sm-9"> <p>Добро пожаловать в "dPanel" - СРМ.</p> <p>Если Вы работаете на компьютере то сверху и слева будет меню с доступными страницами.<br> Если вы пользуетесь смартфоном то меню вызывается путем нажатия на иконку сверху.</p> <p>Ниже есть ссылки быстрого доступа.</p> <ul class="list-unstyled"> <?php getNavMenu(); ?> </ul> <p>Воспользуйтесь системой тикетов для поддержки <a href="<?php echo $cfg['options']['siteurl']; ?> /newchat/<?php echo getAdminId(); ?> /new" class="tickets_links">здесь</a></p> </div> </div> <hr class="border-top-news"> <div class="row"> <div class="col-xs-12 col-sm-9"> <h1>Новости</h1> <?php echo getNewsForMainPage(); ?> </div> </div>
function getHeader($refresh) { global $user, $mode, $authed; $rt = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; $rt .= "<html lang=\"en\">\n"; $rt .= "<head>\n"; $rt .= "<title>VCL :: Virtual Computing Lab</title>\n"; $rt .= "<link rel=stylesheet type=\"text/css\" href=\"css/vcl.css\">\n"; $rt .= "<link rel=stylesheet type=\"text/css\" href=\"themes/default/css/vcl.css\">\n"; if ($mode == 'viewdocs') { $rt .= "<link rel=stylesheet type=\"text/css\" href=\"css/doxygen.css\" />\n"; } $rt .= "<script src=\"js/code.js\" type=\"text/javascript\"></script>\n"; $rt .= "<script type=\"text/javascript\">\n"; $rt .= "var cookiedomain = '" . COOKIEDOMAIN . "';\n"; $rt .= "</script>\n"; $rt .= getDojoHTML($refresh); if ($refresh) { $rt .= "<noscript><META HTTP-EQUIV=REFRESH CONTENT=20></noscript>\n"; } $rt .= "</head>\n\n"; $rt .= "<body>\n\n"; $rt .= "<a class=hidden href=\"#content\" accesskey=2>Skip to content</a>\n"; $rt .= "<table border=0 cellpadding=0 cellspacing=0 summary=\"\">\n"; $rt .= " <TR>\n"; $rt .= " <TD width=80px nowrap></TD>\n"; $rt .= " <TD width=6px background=\"themes/default/images/background_L.png\" nowrap></TD>\n"; $rt .= " <TD width=8px background=\"themes/default/images/background_gradient.gif\" nowrap></TD>\n"; $rt .= " <TD background=\"themes/default/images/background_gradient.gif\" width=\"100%\">\n"; $rt .= " <table border=0 cellpadding=0 cellspacing=0 width=\"100%\" summary=\"\">\n"; $rt .= " <TR>\n"; $rt .= " <TD width=1px background=\"themes/default/images/black.jpg\" nowrap></TD>\n"; $rt .= " <TD width=215px nowrap><img src=\"themes/default/images/vclbanner_L.jpg\" alt=\"\"></TD>\n"; $rt .= " <TD background=\"themes/default/images/vclbanner_C.jpg\" width=\"100%\"></TD>\n"; $rt .= " <TD width=198px nowrap><img src=\"themes/default/images/vclbanner_R.jpg\" alt=\"\"></TD>\n"; $rt .= " <TD width=3px background=\"themes/default/images/content_border_R.jpg\" nowrap></TD>\n"; $rt .= " </TR>\n"; $rt .= " <TR>\n"; $rt .= " <TD width=1px background=\"themes/default/images/black.jpg\" nowrap></TD>\n"; $rt .= " <TD background=\"themes/default/images/bar_bg.jpg\" width=\"100%\" colspan=3 height=23px></TD>\n"; $rt .= " <TD width=3px background=\"themes/default/images/content_border_R.jpg\" nowrap></TD>\n"; $rt .= " </TR>\n"; $rt .= " </table>\n"; $rt .= " <table border=0 cellpadding=0 cellspacing=0 width=\"100%\" summary=\"\">\n"; $rt .= " <TR valign=top>\n"; $rt .= " <TD width=160px background=\"themes/default/images/menu_bg.jpg\" nowrap>\n"; $rt .= "<div id=menulist>\n"; $rt .= "<h3 class=hidden>Resources</h3>\n"; $rt .= "<ul>\n"; if ($authed) { $rt .= getNavMenu(1, 1); } /*else $rt .= "<img src=\"themes/default/images/belltower.jpg\" height=200 width=160 alt=\"\">\n";*/ $rt .= "</ul>\n"; if ($authed) { $rt .= "<img src=\"themes/default/images/menu_dividerblock.jpg\" border=0 width=158 height=83 alt=\"\"><br/>\n"; } $rt .= "</div>\n"; $rt .= " </TD>\n"; $rt .= " <TD width=\"100%\" style=\"align: left; background: #ffffff;\">\n"; $rt .= "<div id=content class=default>\n"; return $rt; }
function getHeader($refresh) { global $user, $mode, $authed, $locale, $VCLversion; $v = $VCLversion; #$rt = "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n"; $rt = "<!DOCTYPE html>\n"; $rt .= "<html lang=\"{$locale}\">\n"; $rt .= "<head>\n"; $usenls = 0; $usenlsstr = "false"; if (!preg_match('/^en/', $locale)) { $usenls = 1; $usenlsstr = "true"; } $rt .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"; $rt .= "<title>VCL :: Virtual Computing Lab</title>\n"; $rt .= "<link rel=stylesheet type=\"text/css\" href=\"css/vcl.css\">\n"; $rt .= "<link rel=stylesheet type=\"text/css\" href=\"themes/default/css/vcl.css\">\n"; $rt .= "<script src=\"js/code.js?v={$v}\" type=\"text/javascript\"></script>\n"; if ($usenls) { $rt .= "<script type=\"text/javascript\" src=\"js/nls/{$locale}/messages.js?v={$v}\"></script>\n"; } $rt .= "<script type=\"text/javascript\">\n"; $rt .= "var cookiedomain = '" . COOKIEDOMAIN . "';\n"; $rt .= "usenls = {$usenlsstr};\n"; $rt .= "</script>\n"; $rt .= getDojoHTML($refresh); if ($refresh) { $rt .= "<noscript><META HTTP-EQUIV=REFRESH CONTENT=20></noscript>\n"; } $extracss = getExtraCSS(); foreach ($extracss as $file) { $rt .= "<link rel=stylesheet type=\"text/css\" href=\"css/{$file}\">\n"; } $rt .= "</head>\n\n"; $rt .= "<body class=default>\n\n"; $rt .= "<a class=hidden href=\"#content\" accesskey=2>Skip to content</a>\n"; $rt .= "<table class=\"themelayouttable\" summary=\"\">\n"; $rt .= " <TR>\n"; $rt .= " <TD class=\"themelayoutsidespacer\"></TD>\n"; $rt .= " <TD class=\"themelayoutsidetrim\"></TD>\n"; $rt .= " <TD class=\"themelayoutsidetrim2\"></TD>\n"; $rt .= " <TD class=\"themelayoutcentercell\">\n"; $rt .= " <table class=\"themeheadertable\" summary=\"\">\n"; $rt .= " <TR style=\"background-color: white;\">\n"; $rt .= " <TD class=\"themelayoutsidetrim4\"></TD>\n"; $rt .= " <TD class=\"nopadding\"><img src=\"themes/default/images/vclbanner_L.jpg\" alt=\"\"></TD>\n"; $rt .= " <TD class=\"themelayoutbannercenter\">\n"; if ($mode != 'inmaintenance') { $rt .= getSelectLanguagePulldown(); } $rt .= " </TD>\n"; $rt .= " <TD class=\"nopadding\"><img src=\"themes/default/images/vclbanner_R.jpg\" alt=\"\"></TD>\n"; $rt .= " <TD class=\"themelayoutsidetrim5\"></TD>\n"; $rt .= " </TR>\n"; $rt .= " <TR>\n"; $rt .= " <TD class=\"themelayoutsidetrim4\"></TD>\n"; $rt .= " <TD class=\"themelayouttopseparator\" colspan=3></TD>\n"; $rt .= " <TD class=\"themelayoutsidetrim5\"></TD>\n"; $rt .= " </TR>\n"; $rt .= " </table>\n"; $rt .= " <table class=\"themelayouttable\" summary=\"\">\n"; $rt .= " <TR valign=top>\n"; if ($authed || NOAUTH_HOMENAV) { $rt .= " <TD class=\"thememenu\">\n"; } else { $rt .= " <TD class=\"thememenunoauth\">\n"; } $rt .= "<div id=menulist>\n"; $rt .= "<h3 class=hidden>Resources</h3>\n"; if ($authed) { $rt .= "<ul>\n"; $rt .= getNavMenu(1, 1); $rt .= "</ul>\n"; $rt .= "<img src=\"themes/default/images/menu_dividerblock.jpg\" border=0 width=\"158px\" height=\"83px\" alt=\"\"><br/>\n"; } elseif (NOAUTH_HOMENAV) { $rt .= "<ul>\n"; $rt .= getUsingVCL(); $rt .= "</ul>\n"; } $rt .= "</div>\n"; $rt .= " </TD>\n"; $rt .= " <TD class=\"themecontent\">\n"; $rt .= "<div id=content>\n"; return $rt; }