本文整理汇总了PHP中show_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP show_menu函数的具体用法?PHP show_menu怎么用?PHP show_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_admin_options
function show_admin_options()
{
clus_head();
show_menu();
echo <<<EOF
<h1>Administration tools</h1>
<a href="">Users</a> (show-update-delete users, login as user)<br />
<a href="tables.php">Genomes and Datasets</a>
EOF;
clus_tail();
}
示例2: show_menu
function show_menu($menus = array(), $parrent = 0)
{
$showHtmlMenuF = '';
foreach ($menus as $key => $val) {
if ($val['parent'] == $parrent) {
//$showHtmlMenuF .= '<ul>';
unset($menus[$key]);
$showHtmlMenuF .= '<li><a href="' . $val['url'] . '" title="' . $val['name'] . '">' . $val['name'] . '</a>';
$showHtmlMenuF .= "<ul>" . show_menu($menus, $val['id']) . "</ul>";
$showHtmlMenuF .= '</li>';
//$showHtmlMenuF .= '</ul>';
}
}
return $showHtmlMenuF;
}
示例3: show_menu
echo "You are Logged In as " . $l_klient;
}
?>
</table>
</td></tr>
<tr bgcolor="#E0E0E0">
<td colspan=2 width=100% height=15% align=center valign=center> GRR Database System 2
</td>
</tr>
<tr>
<td colspan=2 width=100% height=25px align=right bgcolor="#E0E0E0">
<?php
show_menu();
?>
</td>
</tr>
<tr>
<td colspan=2 width=100% height=90% align=left valign=top>
<?php
// <p>Welcome in the System: echo $_SESSION['name1']; </p>
?>
<?php
if (isset($_GET['test'])) {
}
示例4: colorize
$annotate = false;
}
echo colorize("***** Welcome to Aerospike Developer Training *****\n", 'blue', true);
echo colorize("Connecting to Aerospike cluster ≻", 'black', true);
if ($annotate) {
display_code(__FILE__, __LINE__, 7);
}
$config = array("hosts" => array(array("addr" => $HOST_ADDR, "port" => $HOST_PORT)));
$client = new Aerospike($config, false);
if (!$client->isConnected()) {
echo standard_fail($client);
echo colorize("Connection to Aerospike cluster failed! Please check the server settings and try again!\n", 'red', true);
exit(2);
}
echo success();
$selection = show_menu();
if ($selection === 0) {
$client->close();
exit(0);
}
$user_service = new \Aerospike\Training\UserService($client, $config, $annotate);
$tweet_service = new \Aerospike\Training\TweetService($client, $config, $annotate);
try {
switch ($selection) {
case 1:
$username = $user_service->createUser();
if (is_null($username)) {
echo colorize("Skipping...\n");
}
$tweeted = $tweet_service->createTweet($username);
if (!$tweeted) {
示例5: Success_Page
$result = $db->query($query);
echo "</table>";
Success_Page("Successo!", "Modifiche apportate con successo<br>Loout in corso...");
exit;
}
}
$query = "\r\n\tSelect LANG, TPP, PPP, HIDESIG ,HIDEAVATAR, LEVEL\r\n\tFROM {$SNAME}_localmember\r\n\tWHERE hash = '{$userdata->HASH}'\r\n\tLIMIT 1;\r\n\t";
$current = $db->get_row($query);
//OUTPUT
if (!$is_post_back && $verify) {
?>
<tr><td>
<table cellspacing="0" width="100%">
<tr>
<td valign="top" class="nopad" width="24%"><?php
echo show_menu();
?>
</td>
<td class="nopad" width="1%"><!-- Riga vuota --></td>
<!-- Start main CP area -->
<td valign="top" class="nopad" width="75%">
<div id="ucpcontent">
<div class="maintitle"><?php
echo $lang['optusr_welcome'];
?>
</div>
<form action="" method="post" name="REPLIER">
<input type="hidden" name="MEM_ID" value="<?php
echo $mem_id;
?>
" />
示例6: show_menu
_gaq.push(['_setAccount', 'UA-55976467-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>-->
</head>
<body>
<?php
include_once 'views/menu.php';
show_menu('speakers-profile');
?>
<!-- Main Content -->
<div id="MainContent">
<!-- Back to Speakers -->
<div id="BackToSpeakersContainer">
<div id="BackToSpeakersInnerContainer">
<a href="../speakers" target="_parent" title="Back to Speakers">
<img src="../../img/speakers/back-icon.png" alt="<">
<span class="FontLato">BACK TO SPEAKERS</span>
</a>
</div>
</div>
<!-- END Back to Speakers -->
示例7: show_menu
_gaq.push(['_setAccount', 'UA-55976467-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<?php
include_once 'views/menu.php';
show_menu('mediapartners');
?>
<!-- END MAIN MENU -->
<!-- Sponsors -->
<section id="Sponsors">
<!-- Sponsors List -->
<div id="SponsorsInnerContainer">
<div id="WhosWhoAndDiamondImageContainer">
<h2 class="SponsorHeadline FontRaleway"><span>Edit Media Partner</span></h2>
</div>
<!-- Diamond Sponsors -->
<?php
示例8: show_menu
<div id="sidebar">
<?php
show_menu('Соглашения', $conventions);
?>
<div class="sep"></div>
<?php
show_menu('Общие темы', $main_themes);
?>
<?php
show_menu('Поведения', $behaviors);
?>
<?php
show_menu('Компоненты приложения', $app_components);
?>
<div class="sep"></div>
<?php
show_menu('Модули', $modules);
?>
<div class="sep"></div>
<?php
show_menu('Специальные темы', $special);
?>
</div>
<div id="content">
<?php
echo $content;
?>
</div>
</body>
</html>
示例9: show_head
<?php
require_once 'f_format.php';
show_head();
show_menu(2);
show_content();
echo '<h1>ўо доробити?</h1>';
include "todo.html";
show_content_();
show_copyright();
show_close();
?>
示例10: showHeader
//.........这里部分代码省略.........
$this->objPlugins->hook('CMSPage_jsCode', $jsCode);
//now add em to the $js
foreach ($jsCode as $code) {
$js .= '<script>' . str_replace(array("\n", "\r", "\t"), '', trim($code)) . '</script>' . $nl;
}
$headerJs = null;
//this is the var we will store this JS
$header_jsCode = array();
$header_jsFiles = array();
//these are for the hooks to populate
//process the js files for the header
$this->objPlugins->hook('CMSPage_header_jsFiles', $header_jsFiles);
if (count($header_jsFiles)) {
foreach ($header_jsFiles as $file) {
$headerJs .= sprintf('<script src="%s"></script>', $file) . $nl;
}
}
$this->objPlugins->hook('CMSPage_header_jsCode', $header_jsCode);
if (count($header_jsCode)) {
foreach ($header_jsCode as $code) {
$headerJs .= sprintf('<script>%s</script>', str_replace(array("\n", "\r", "\t"), '', trim($code))) . $nl;
}
}
//
//--Load CSS
//
$cssTag = '<link rel="stylesheet" href="%s" />';
//add the adaptive css file
$cssFiles[] = '/' . root() . 'images/grid.adapt.css';
//we want the default css minified dont forget!
$cssFiles[] = '/' . root() . 'images/framework-min.css';
$cssFiles[] = '/' . root() . 'images/extras-min.css';
//load in the anything thats been passed in via addCSSFile()
$cssFiles = array_merge($cssFiles, $this->cssFiles);
//hookty hook
$this->objPlugins->hook('CMSPage_cssFiles', $cssFiles);
//add it to the $css
foreach ($cssFiles as $file) {
$css .= sprintf($cssTag, $file) . $nl;
}
//load in the anything thats been passed in via addCSSCode()
$cssCode = array_merge($cssCode, $this->cssCode);
//hook in here too
$this->objPlugins->hook('CMSPage_cssCode', $cssCode);
//add it to the $css
foreach ($cssCode as $code) {
$css .= '<style>' . $nl . str_replace(array("\n", "\r", "\t"), '', trim($code)) . $nl . '</style>' . $nl;
}
//
//--Header Vars
//
if (file_exists($themeRoot . 'images/favicon.ico')) {
$meta .= '<link rel="shortcut icon" href="/' . root() . $themeRoot . 'images/favicon.ico" />';
}
//if the site is closed, the only way they can get this far is if the user has privs so
if ($this->config('site', 'closed') == 1) {
$this->setVar('HEADER_MSG', langVar('L_MAINTENANCE'));
}
//if we want to put out a msg in the header as a warning or something
$headerMsg = $this->getVar('HEADER_MSG');
if (!is_empty($headerMsg)) {
$this->objTPL->assign_vars('__MSG', array('MSG' => $headerMsg));
}
//get some stuff from the config so they can be called in the template
$array = array('SITE_TITLE' => $this->config('site', 'title'), 'CMS_VERSION' => cmsVERSION, 'PAGE_TITLE' => $this->getVar('pageTitle'), '_META' => $meta, 'L_BREADCRUMB' => langVar('L_BREADCRUMB'), 'BREADCRUMB' => $this->showPagecrumbs() . '<span id="ajaxcrumb"> </span>', '_JS_FOOTER' => $js . $notifications, '_JS_HEADER' => $headerJs, '_CSS' => $css);
//
//--Menu Setup
//
global $config;
$noMenu = false;
if (defined('NO_MENU') && NO_MENU == true) {
$noMenu = true;
}
$menu = $this->getVar('moduleMenu');
if ($menu['module'] === false) {
$noMenu = true;
}
//we cant do nothin without any blocks
if (!$noMenu && !is_empty($config['menu_blocks'])) {
//if it got set to null, or wasnt set atall, default to the core menu
if (!isset($menu['module']) || is_empty($menu['module'])) {
$menu['module'] = 'core';
}
if (!isset($menu['page_id']) || is_empty($menu['page_id'])) {
$menu['page_id'] = 'default';
}
//then do the output
$menuSetup = show_menu($menu['module'], $menu['page_id']);
if ($menuSetup) {
$this->objTPL->assign_block_vars('menu', array());
}
} else {
//if we cant show menu, may aswell set the no_menu block
$this->objTPL->assign_block_vars('no_menu', array());
}
//ouput the header and set completed to 1
$this->objTPL->assign_vars($array);
$this->objTPL->parse('tpl_header');
$this->header['completed'] = 1;
}
示例11: array
$ar['was'] = 2;
}
} else {
$ar = array('allboxes' => '', 'was' => '', 'getfuerB' => '', 'cwebene' => '', 'cwmenu' => $wo, 'allmenus' => '', 'bname' => '', 'posi' => '', 'apos' => '', 'awo' => '', 'link2' => '', 'alllinkss' => '', 'menutyp' => '');
}
$tpl = new tpl('menu', 1);
$boxenArNav = get_boxes_array();
$menuArNav = get_links_array();
$ar_cwmenu = array();
for ($i = 1; $i <= 5; $i++) {
$ar_cwmenu[$i] = 'Menü 0' . $i;
}
$ar_cwebene = array();
for ($i = 0; $i <= 4; $i++) {
$ar_cwebene[$i] = 'Ebene 0' . ($i + 1);
}
$ar_cwwas = array(1 => 'Box', 2 => 'Menü', 7 => 'Menüpunkt wahl', 8 => 'Menüpunkt extern', 9 => 'Menüpunkt intern');
$ar_menutyp = array(2 => 'Vertikal', 1 => 'Horizontal');
$ar['allboxes'] = arliste($ar['allboxes'], $boxenArNav, $tpl, 'allboxes');
$ar['alllinkss'] = arliste($ar['alllinkss'], $menuArNav, $tpl, 'alllinkss');
$ar['getfuerB'] = dbliste($ar['getfuerB'], $tpl, 'getfuerB', "SELECT id,name FROM prefix_grundrechte ORDER BY id DESC");
$ar['cwmenu'] = arliste($ar['cwmenu'], $ar_cwmenu, $tpl, 'cwmenu');
$ar['cwebene'] = arliste($ar['cwebene'], $ar_cwebene, $tpl, 'cwebene');
$ar['cwwas'] = arliste($ar['was'], $ar_cwwas, $tpl, 'cwwas');
$ar['menutyp'] = arliste($ar['menutyp'], $ar_menutyp, $tpl, 'menutyp');
# ausgabe
$tpl->out(0);
show_menu($wo);
$tpl->set_ar($ar);
$tpl->out(1);
$design->footer();
示例12: show_menu
_gaq.push(['_setAccount', 'UA-55976467-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<?php
include_once 'views/menu.php';
show_menu('alacarte');
?>
<!-- END MAIN MENU -->
<!-- Sponsors -->
<section id="Sponsors">
<!-- Sponsors Grid -->
<div id="SponsorGrid">
<!-- Sponsors Grid Container -->
示例13: show_menu
_gaq.push(['_setAccount', 'UA-55976467-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<?php
include_once 'views/menu.php';
show_menu('sponsors');
?>
<!-- END MAIN MENU -->
<!-- Sponsors -->
<section id="Sponsors">
<!-- Sponsors List -->
<div id="SponsorsInnerContainer">
<div id="WhosWhoAndDiamondImageContainer">
<h2 class="SponsorHeadline FontRaleway"><span>Diamond</span></h2>
</div>
<!-- Diamond Sponsors -->
<?php
示例14: show_head
<?php
require_once 'f_format.php';
show_head();
show_menu(1);
show_content();
echo '<h1>Історія версій</h1>';
include "history.html";
show_content_();
show_copyright();
show_close();
?>
示例15: resign
function resign()
{
global $uid;
$sth = mysql_query("select a.id,a.leader,a.devminister,a.milminister,a.forminister from alliance a,users u where u.alliance=a.id and u.id=" . $uid);
if (!$sth || mysql_num_rows($sth) == 0) {
show_error("ERR::GET INFOS");
return false;
}
$alliance = mysql_fetch_assoc($sth);
// mop: hatter denn nen posten?
switch ($uid) {
case $alliance["leader"]:
$field = "leader";
$text = "Leader";
break;
case $alliance["devminister"]:
$field = "devminister";
$text = "Minister of Development";
break;
case $alliance["forminister"]:
$field = "forminister";
$text = "Foreign Minister";
break;
case $alliance["milminister"]:
$field = "milminister";
$text = "Minister of Defence";
break;
default:
$field = false;
}
if (!$field) {
show_error("EVIL! EVIL!");
return false;
}
$sth = mysql_query("update alliance set " . $field . "=0 where id=" . $alliance["id"]);
if (!$sth) {
show_error("ERR::RESIGN");
return false;
}
show_menu();
show_message("You have resigned as " . $text);
// mop: leute informieren
$members = get_alliance_members($alliance["id"]);
foreach ($members as $uid => $name) {
ticker($uid, "Your " . $text . " has resigned!", "w");
}
}