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


PHP submenu函数代码示例

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


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

示例1: submenu

function submenu($array)
{
    $level = 0;
    $numsub = 0;
    for ($i = 1; $i < 15; $i++) {
        if (array_key_exists($i, $array)) {
            $icon_lnk = '';
            if ($numsub === 0) {
                echo '<ul class="dropdown-menu">';
            }
            if (array_key_exists($i, $array[$i]) || count($array[$i]) > 5) {
                echo '<li class="dropdown-submenu">';
            } else {
                echo '<li>';
            }
            if (preg_match("/^[A-Za-z0-9!@#\$%&()*;:_.'\\/\\\\ ]+\\.png\$/", $array[$i]['icon'])) {
                $icon_lnk = '<img src="' . $array[$i]['icon'] . '"/> ';
            }
            echo '<a href="' . $array[$i]['link'] . '">' . $icon_lnk . stripslashes($array[$i]['name']) . '</a>';
            submenu($array[$i]);
            $numsub++;
        }
    }
    if ($numsub > 0) {
        echo '</ul>';
    }
}
开发者ID:andreabia,项目名称:gazie,代码行数:27,代码来源:header_menu_default.php

示例2: cancelar

function cancelar(ruta) {
	form1.action=ruta;
	form1.submit();	
}
</script>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_plantas');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_plantas', 'plantas');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:30,代码来源:plantas.php

示例3: filtro_oes

function filtro_oes(){
	form1.action='?op=listado';
	form1.submit();	
}
</script>	  
   
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_consulta');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_consulta', $tipo);
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:30,代码来源:consultas.php

示例4: exportar

function exportar() {
	form2.action='excel.php?op=aut_prod';
	form2.submit();	
	form2.action='aut_prod.php?op=listado';
}
</script>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_usuarios');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_usuarios', 'autorizadores');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:aut_prod.php

示例5: menu

    <td align="right" class="aviso">
		<div style="margin-right:30px; margin-top:10px;"><?php 
echo $_SESSION['USER'] . "  [ " . $_SESSION['TYPE'] . " ]";
?>
</div></td>
	<td rowspan="2"><img src="../imagenes/app_titulo.png" width="285" height="104" /></td>
  </tr>
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_capturae');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_capturae', 'b_captura35');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:scrap_archivo_35.php

示例6: menu

    <td align="right" class="aviso">
		<div style="margin-right:30px; margin-top:10px;"><?php 
echo $_SESSION['USER'] . "  [ " . $_SESSION['TYPE'] . " ]";
?>
</div></td>
	<td rowspan="2"><img src="../imagenes/app_titulo.png" width="285" height="104" /></td>
  </tr>
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_capturam');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_capturam', '');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:scrap_masiva.php

示例7: del_all

}
function del_all() {
	form1.action='?op=del_all';
	form1.submit();	
}
</script>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_mails');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_mails', 'mails');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:mails.php

示例8: mainmenu

     $out .= mainmenu(0, 3);
     break;
 case "subtitle":
     $out .= $set['subtitle'];
     break;
 case "title":
     $out .= '<a href="' . $set['homepath'] . '">' . $set['title'] . '</a>';
     break;
 case "selected":
     $out .= $selected['name'];
     break;
 case "sitemap":
     $out .= sitemap(0);
     break;
 case "submenu":
     $out .= submenu(0);
     break;
 case "treemenu":
     $out .= treemenu(0);
     break;
 default:
     if (strpos($command, "plugin") !== false) {
         $aa = explode(" ", $command, 2);
         $pluginpath = "plugins/" . trim($aa[1]);
         if (file_exists($pluginpath . "/first.mod")) {
             $out = file_get_contents($pluginpath . "/first.mod") . $out;
         }
         if (file_exists($pluginpath . "/header.mod")) {
             $out = str_replace("</head>", file_get_contents($pluginpath . "/header.mod") . "\n</head>", $out);
         }
         if (file_exists($pluginpath . "/onload.mod")) {
开发者ID:squidjam,项目名称:LightNEasy,代码行数:31,代码来源:lightneasy.php

示例9: filtro_oes

function filtro_oes(){
	form1.action='?op=listado';
	form1.submit();	
}
</script>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_reportes');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_reportes', 'preliminar');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td>&nbsp;
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:30,代码来源:rep_preliminar.php

示例10: excel

function excel() {
	form1.action = 'excel.php?op=proyectos';
	form1.submit();	
	form1.action = 'proyectos.php?op=listado';
}
</script>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_plantas');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_plantas', 'proyectos');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:proyectos.php

示例11: array

}
// ------------------------------------------- add / edit ------------------------------------------- //
if ($act == 'fle' && p('edit')) {
    $file = array('p' => 0, 'url' => '', 'name' => '', 'namei' => '', 'desc' => '', 'width' => 0, 'height' => 0, 'size' => 0, 'mime' => 0, 'dtu' => $curr['datetime'], 'owner' => '');
    if ($gfle) {
        $col = array();
        foreach ($file as $k => $v) {
            $col[] = $k;
        }
        $file = db_read(array('table' => 'file', 'col' => $col, 'where' => '`id` = ' . $gfle));
    }
    // ---- submenu ---- //
    if (p() && $gfle) {
        $submenu['?Удалить;minus-button'] = array('#Подтвердить;tick-button' => form_sbd('/' . $mod . '/flu/?fle=' . $gfle));
    }
    submenu();
    // ---- end: submenu ---- //
    b('<p class="h1">');
    if (!$gfle) {
        b('Добавление');
    } else {
        b('Редактирование');
    }
    b('</p>');
    b();
    b();
    b(form('file', '/' . $mod . '/flu/', array($gfle ? 'fle=' . $gfle : '')));
    b('<table class="edt">');
    b('<tr><td>');
    b('URL:');
    b('<td>');
开发者ID:pyur,项目名称:site,代码行数:31,代码来源:main.php

示例12: menu

		form1.action='?op=listado';	}
	else { 
		form1.action='?op=reporte';	
		form1.submit(); }	
}
</script>	  
   
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_consulta');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_consulta', 'rechazados');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:scrap_rechazado.php

示例13: menu

		form1.action='?op=listado';	}
	else { 
		form1.action='?op=reporte';	
		form1.submit(); }	
}
</script>	  
   
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_consulta');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_consulta', $op);
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
	<td width="5" valign="top"></td><td></td><td width="5"></td>
</tr>
<tr height="600" valign="top">
    <td background="../imagenes/borde_izq_tabla.png">&nbsp;</td>
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:autorizadores.php

示例14: menu

    $boton = 'b_plantas';
}
if ($op == 'por_areas') {
    $boton = 'b_areas';
}
?>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu($boton);
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu($boton, 'exportar');
?>
</td>
    <td background="../imagenes/barra_gris.png" width="285" height="37"><?php 
general();
?>
</td>
  </tr>
</table>

<script>
function excel_plantas() {
	form1.action='excel.php?op=por_plantas';
	form1.submit();
	form1.action='?op=por_plantas';
}
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:exportar_todo.php

示例15: array

<div id="thenavigation" >
    My ideas
</div>
<?php 
// This generates our submenu
include_once 'partial_menu.php';
$uri = $this->routes->fetch();
$message = $this->views['message'];
$links = array('Add new idea' => 'me/new_idea', 'List all' => 'me/all', 'Invite your friends' => 'me/invite');
submenu($uri, $message, $links);
/*
 * Generates markup for ratings
 */
function rating($r, $v, $id)
{
    if ($v == 0) {
        $v = 1;
    }
    //get rid of divisions by zero
    $r = $r / $v;
    //calculate rating
    switch ($r) {
        case $r < 1:
            $class = "nostar";
            break;
        case $r < 2:
            $class = "onestar";
            break;
        case $r < 3:
            $class = "twostar";
            break;
开发者ID:stas,项目名称:facebook-ideas-app,代码行数:31,代码来源:all.php


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