当前位置: 首页>>代码示例>>PHP>>正文


PHP showMenu函数代码示例

本文整理汇总了PHP中showMenu函数的典型用法代码示例。如果您正苦于以下问题:PHP showMenu函数的具体用法?PHP showMenu怎么用?PHP showMenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了showMenu函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: mensaje_correcto

 function mensaje_correcto($mensaje = "", $url = BASE_URL)
 {
     showHeaders();
     showMenu();
     correct_mensaje($mensaje, $url);
     showFoot();
 }
开发者ID:GunB,项目名称:PHP_AdminBasic,代码行数:7,代码来源:Mensaje.php

示例2: registrarse

 function registrarse()
 {
     showHeaders();
     showMenu();
     $form = $this->M_DATA->readFile("json/registrar_usuario.json");
     $form = $this->C_FORMING->creaForm($form);
     showForm($form);
     //*/
     //showProductos1();
     showFoot();
 }
开发者ID:GunB,项目名称:PHP_AdminBasic,代码行数:11,代码来源:Inicio.php

示例3: showMenu

function showMenu($arrMenu)
{
    echo "<ul>";
    foreach ($arrMenu as $key => $value) {
        if (is_array($value)) {
            showMenu($value);
        } else {
            echo "<li><a href=\"" . $key . "\"/>" . $value . "</a></li>";
        }
    }
    echo "</ul>";
}
开发者ID:BETEP2063,项目名称:PHP-lections,代码行数:12,代码来源:index.php

示例4: showMenu

function showMenu($lstmenu)
{
    $idnhomquyen = $_SESSION['idnhomquyen'];
    echo "<ul class='drop'>";
    if (count($lstmenu) > 0) {
        foreach ($lstmenu as $i) {
            if (checkExistentQ_NQ($idnhomquyen, $i["IDDM"])) {
                echo "<li> <a href='#'> " . $i[Constants::$Ten_DM_name] . "</a>";
                $rs = getDMCon($i[Constants::$ID_DM_name]);
                if (count($rs) > 0) {
                    showMenu($rs);
                }
                echo "</li>";
            }
        }
    }
    echo "</ul>";
}
开发者ID:htwap,项目名称:TuToanGrating,代码行数:18,代码来源:danhmuc.php

示例5: showMenu

	function showMenu($menu,$submenu=false)
	{
		$name=$menu[0];
		$title=$menu[1];
		$view=$menu[2];
		$ar=$menu[3];
		
		if($name==getInput("page"))
			$title=boldMenuItem($title);
		$c=tr(td(anchor(page($name),$title),"menu_title","",2));
		
		if(is_array($ar))
		{
			foreach($ar as $a)
			{
				$c.=" | ".tr(td("&nbsp;","menu_side").td(showMenu($a,true)));
			}
		}
		if($submenu)
			return table($c,"submenu");
		else
			return table($c,"menu");
	}
开发者ID:BackupTheBerlios,项目名称:antargis-svn,代码行数:23,代码来源:menu.inc.php

示例6: showMenu

    function showMenu($models, $model, $child = false)
    {
        ?>
<ul><?php 
        foreach ($models as $g => $m) {
            if (is_array($m)) {
                ?>
                <li><?php 
                echo Html::a('<i class="glyphicon glyphicon-chevron-right"></i>' . $g, false);
                showMenu($m, $model, true);
                ?>
                </li><?php 
            } elseif ($child || $m->id != $model->id) {
                ?>
                <li><?php 
                echo Html::a('<i class="glyphicon glyphicon-chevron-right"></i>' . $m->name, ['site/index', 'sid' => $m->sid]);
                ?>
</li>
            <?php 
            }
        }
        ?>
</ul><?php 
    }
开发者ID:korinovsky,项目名称:yii2-app-gallery,代码行数:24,代码来源:index.php

示例7: showMenu

<html>
<head>
	<link rel="stylesheet" href="/css/960/reset.css">
	<link rel="stylesheet" href="/css/960/960_12_col.css">
	<!--<link rel="stylesheet" href="/css/960/text.css">-->
	<link rel="stylesheet" href="/css/style.css">
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
	<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>	
	<script src="/js/javascript.js"></script>
<body>
<div id="message"></div>
	<div class="container_12">
			<div id="nav">
				<?php 
showMenu();
?>
				<div style="float:right;margin-top:12px; margin-right:15px"><label for="quickSummary">Quick Summary By UPC:</label><input type="number" id="quickSummary" name="quickSummary"><input type="button" value="Go" onClick="window.location.assign('/upcsummary/'+$('#quickSummary').val())"></div>
			</div>
		<div id="content">
			<h2>Add Wine</h2>
			<form id="form" name="form">
			<input type="hidden" id="function" name="function" value="addWine">
			<label for="upc">UPC or Name:</label><input type="number" id="upc" name="upc"><br>
			<label for="upc">Type:</label><select class="select" id="type" name="type">
			<option value="Chardonnay">Chardonnay</option>
			<option value="Fume/Sauvignon Blanc">Fume/Sauvignon Blanc</option>
			<option value="Pinot Grigio">Pinot Grigio</option>
			<option value="White Zinfandel/Rose">White Zinfandel/Rose</option>
			<option value="Other Whites">Other Whites</option>
			<option value="Dessert">Dessert</option>
开发者ID:tcsoftwareaustin,项目名称:vint,代码行数:31,代码来源:addwine.php

示例8: saveMenu

        saveMenu($option);
        break;
    case "deleteconfirm":
        deleteconfirm($option, $cid);
        break;
    case "deletemenu":
        deleteMenu($option, $cid, $type);
        break;
    case "copymenu":
        copyMenu($option, $cid, $menu_name, $type);
        break;
    case "cancel":
        cancelMenu($option);
        break;
    default:
        showMenu($option);
        break;
}
/**
* Compiles a list of menumanager items
*/
function showMenu($option)
{
    global $database, $mainframe, $mosConfig_list_limit;
    ## Main Query
    $query = "SELECT a.title, a.params, a.id" . "\n FROM #__modules AS a" . "\n WHERE a.module = 'mod_mainmenu'" . "\n ORDER BY a.title";
    $database->setQuery($query);
    $menus = $database->loadObjectList();
    $total = count($menus);
    ## Query to get menu item count and menutype
    $query = "SELECT a.menutype, count( a.menutype ) as num" . "\n FROM #__menu AS a" . "\n WHERE a.published != -2" . "\n GROUP BY a.menutype" . "\n ORDER BY a.menutype";
开发者ID:cwcw,项目名称:cms,代码行数:31,代码来源:admin.menumanager.php

示例9: htmlspecialchars

}
if (isset($_POST["store"])) {
    $store = htmlspecialchars($_POST["store"]);
}
if (isset($_SESSION["menu"])) {
    $lastMenu = $_SESSION["menu"];
}
// -------------------------
// establish db connection
mysql_connect($mysqlhost, $mysqluser, $mysqlpass);
mysql_select_db($mysqldb);
mysql_query("set names 'utf8'");
mysql_query("SET lc_time_names = 'de_DE'");
// -----------------------
// Menü
showMenu($menu != "" ? $menu : $lastMenu);
// -----------------------
// Store Parameter
if ($store == "store") {
    if (isset($_POST["new_value"]) && isset($_POST["store_id"])) {
        $newValue = htmlspecialchars($_POST["new_value"]);
        $storeId = htmlspecialchars($_POST["store_id"]);
        if (storeParameter($storeId, $newValue, $unit, $state) == 0) {
            echo "      <br/><div class=\"info\"><b><center>Gespeichert!</center></b></div><br/>\n";
        } else {
            echo "      <br/><div class=\"infoError\"><b><center>Fehler beim speichern von '{$newValue}' " . "für Parameter {$storeId}<br/>>> {$state} <<</center></b></div><br/>\n";
        }
    }
}
// -----------------------
// Edit Parameter
开发者ID:paulpdg,项目名称:linux-p4d,代码行数:31,代码来源:menu.php

示例10: showMenu

	$('#popup').fadeOut('fast');
	$('#window').fadeOut('fast');
	}
</script>
</head>
<body>
		<div id="headerContainer">
		<div id="header"><a title ='Go to Webinator.biz Home' href ='<?php 
echo BASE_URL;
?>
create_page.php' target ='_self'><img src="images/logo.jpg" alt="logo" longdesc="images/logo.jpg" /></a></div>
        </div>
        <div id="navContainer">
        <ul id="nav">
			<?php 
echo showMenu('header');
?>
			<li><?php 
echo $html->link(array('Template gallery' => 'create_page.php'), 'header');
?>
</li>
			<?php 
if ($user_session_id) {
    ?>
			  <li><?php 
    echo $html->link(array('My web pages' => 'my_squeeze_pages.php'), 'header');
    ?>
</li>
				<!--<div id="libox"><div align ='center'><?php 
    echo $html->link(array('Logout' => 'logout.php'), 'header');
    ?>
开发者ID:hpie,项目名称:hpie,代码行数:31,代码来源:header.php

示例11: showMenu

function showMenu($lstdm)
{
    echo "<ul class='drop'>";
    if (count($lstdm) > 0) {
        foreach ($lstdm as $i) {
            echo "<li>";
            echo "<a>" . $i[Constants::$Ten_DM_name] . "</a>";
            //kiểm tra xem nó có con hay k, nếu có thì gọi lại chính phương thức này -> đệ qui
            $lstdmCon = getDMbyIDCha($i[Constants::$ID_DM_name]);
            if (count($lstdmCon) > 0) {
                showMenu($lstdmCon);
            }
            echo "</li>";
        }
    }
    echo "</ul>";
}
开发者ID:htwap,项目名称:TuToanGrating,代码行数:17,代码来源:qldanhmuc_view.php

示例12: showAllTemplates

/**
 *  Show all message templates
 */
function showAllTemplates()
{
    global $client, $page, $limit, $paginatedFunction, $backMenu;
    $paginatedFunction = 'showAllTemplates';
    try {
        $response = $client->templates->getList(array('page' => $page, 'limit' => $limit));
    } catch (\ErrorException $e) {
        error($e);
    }
    $templates = $response['resources'];
    print <<<EOT

TEMPLATES
=========
Page {$response['page']} of {$response['pageCount']}

EOT;
    foreach ($templates as $template) {
        print "{$template['id']}. {$template['name']}: {$template['content']}\n";
    }
    $items = array('Previous page' => 'goToPreviousPage', 'Next page' => 'goToNextPage', 'Delete template' => 'deleteTemplate');
    showMenu($items + $backMenu);
}
开发者ID:gavinggordon,项目名称:textmagic-rest-php,代码行数:26,代码来源:textmagic-cli.php

示例13: showPagePart

function showPagePart($pagePart)
{
    $links = array("topbar" => "homebtn.html", 'main' => "intro.html;home.html", 'html' => 'html/htm.html', 'css' => 'css/css.html', 'js' => 'js/js.html', 'php' => 'php/php.html', 'sql' => 'sql/sql.html');
    if (isset($links[$pagePart])) {
        switch ($pagePart) {
            case 'topbar':
                showTextDivider("#", "main-header", MAIN_TITLE);
                require "timer.html";
                showMenu();
                require $links[$pagePart];
                break;
            default:
                $parts = explode(";", $links[$pagePart]);
                foreach ($parts as $key => $value) {
                    require $value;
                }
                # code...
                break;
        }
    }
}
开发者ID:sergio-chemist,项目名称:webpages,代码行数:21,代码来源:index.php

示例14: showMenu

</div>
<div id="wrapperfooter">
    <div id="wrapperfootertop">
    </div>
    <div id="wrapperfooterbottom">
        <div id="bottomservicemenu">
		<?php 
echo showMenu('footer');
?>
     <!-- <a target="_self" href="http://www.kinderopvangcompagnie.nl" title="home">home</a><b> | </b>
        <a target="_self" href="/?page_id=104" title="Disclaimer">disclaimer</a><b> | </b>
        <a target="_self" href="/?page_id=18" title="actueel">actueel</a><b> | </b>
        <a target="_self" href="/?page_id=20" title="contact">contact</a>-->
        </div>
    </div>
<b class="fbottom"><b class="fb4"></b><b class="fb3"></b><b class="fb2"></b><b class="fb1"></b></b>
</div>
</div>
</body>
</html>
开发者ID:hpie,项目名称:hpie,代码行数:20,代码来源:footer_orig.php


注:本文中的showMenu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。