本文整理汇总了PHP中menu::mostrar方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::mostrar方法的具体用法?PHP menu::mostrar怎么用?PHP menu::mostrar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu
的用法示例。
在下文中一共展示了menu::mostrar方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menuNivel2
public function menuNivel2($xb)
{
$subElementos = new menu();
switch ($xb) {
case 0:
$subElementos->cargarElemento("fa-check-square-o", "../../0/home/estatus", " Activar/Desactivar");
$subElementos->cargarElemento("fa-bug", "../../0/analisis/index", " Análisis");
return $subElementos->mostrar();
break;
case 1:
$subElementos->cargarElemento("fa-search", "../../0/producto/inve", " Inventario");
$subElementos->cargarElemento("fa-gift", "../../0/producto/index", " Nuevos productos");
return $subElementos->mostrar();
break;
case 3:
$subElementos->cargarElemento("fa-list", "../../0/home/gestion_usuario", " Gestion de usuarios");
$subElementos->cargarElemento("fa-cloud-download", "../../includes/respaldo", " Respaldar");
$subElementos->cargarElemento("fa-cloud-upload", "../../0/home/restaurar", " Restaurar");
return $subElementos->mostrar();
break;
}
}
示例2: foreach
"><?php
echo $Apodo;
?>
</span>
</div>
<div class="clear"></div>
<div class="grid_12">
<ul id="css3menu1" class="topmenu" style="margin:15px 0px 15px 0px;">
<li class="topfirst"><a href="<?php
echo $url . $directory;
?>
/" style="height:15px;line-height:15px;" class="pressed">Inicio</a></li>
<?php
foreach ($menu->mostrar($Nivel) as $m) {
?>
<li class="topmenu"><a href="#" style="height:15px;line-height:15px;"><span><?php
echo $m['Nombre'];
?>
</span></a><?php
if ($m['SubMenu']) {
?>
<ul><?php
$i = 0;
foreach ($submenu->mostrar($Nivel, $m['CodMenu']) as $sm) {
$i++;
if ($i == 1) {
?>
<li class="subfirst"><a href="<?php
echo $folder;
示例3: menu
<li><a href="<?php
echo $folder;
?>
productos-servicios.php">Productos y Servicios</a></li>
<li><a href="<?php
echo $folder;
?>
reservas.php">Reservas</a></li>
<li class="divider"></li>
<?php
if ($_SESSION['LoginSistema'] == "1") {
include_once "class/menu.php";
include_once "class/submenu.php";
$menu = new menu();
$submenu = new submenu();
foreach ($menu->mostrar($_SESSION['Nivel']) as $m) {
?>
<li class="dropdown">
<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown"><?php
echo $m['nombre'];
?>
</a>
<ul class="dropdown-menu dropdown-menu-left">
<?php
foreach ($submenu->mostrar($_SESSION['Nivel'], $m['codmenu']) as $sm) {
?>
<li><a href="<?php
echo $folder;
echo $m['url'];
echo $sm['url'];
?>