• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP submenu函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: submenu

    $idtop = $row_top[id];
    ?>
                 	<option <?php 
    if ($item_rs[menu_parent] == $row_top[id]) {
        echo "selected";
    }
    ?>
 value="<?php 
    echo $row_top[id];
    ?>
"><?php 
    echo $row_top[menu_title];
    ?>
</option>
                    <?php 
    $sub1 = submenu($idtop);
    while ($row_sub1 = mysql_fetch_array($sub1)) {
        $idsub = $row_sub1[id];
        ?>
                    <option <?php 
        if ($item_rs[menu_parent] == $row_sub1[id]) {
            echo "selected";
        }
        ?>
 value="<?php 
        echo $row_sub1[id];
        ?>
"><?php 
        echo "&nbsp;&nbsp;-&nbsp;" . $row_sub1[menu_title];
        ?>
</option>
开发者ID:nimgiaminh2704,项目名称:onaplioa,代码行数:31,代码来源:menu-edit.php


示例17: menu

<?php

include "../header.php";
?>
   
  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_reportes');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_reportes', 'bitacora');
?>
</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>
    <td>&nbsp;
		<!--Todo el contenido de cada página--->
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:bitacora.php


示例18: menu

		else { 
			form1.action='?op=reporte';	
			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', 'general');
?>
</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,代码行数:31,代码来源:rep_general.php


示例19: exportar

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

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('b_reportes');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('b_reportes', 'reporte_sap');
?>
</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,代码来源:reporte_sap_2.php


示例20: menu

<?php

include "../header.php";
include "../mails.php";
?>

  <tr>
  	<td><div style="margin-left:30px; margin-top:20px;"><?php 
menu('');
?>
</div></td>
  </tr>
  <tr>
    <td><?php 
submenu('', '');
?>
</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>
    <td>&nbsp;
开发者ID:BrutalAndSick,项目名称:scrap,代码行数:31,代码来源:inicio.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP submit函数代码示例发布时间:2022-05-23
下一篇:
PHP subject_sort_link函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap