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

PHP print_menu函数代码示例

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

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



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

示例1: print_menu

function print_menu($menu)
{
    $buffer = null;
    foreach ($menu as $name => $link) {
        if (is_array($link)) {
            $buffer .= '<li class="dropdown"><a href="" class="dropdown-toggle js-activated" data-toggle="dropdown"> ' . $name . '</a>';
            $buffer .= '<ul class="dropdown-menu">' . print_menu($link) . '</ul></li>';
        } else {
            $buffer .= '<li><a href="' . $link . '">' . $name . '</a></li>';
        }
    }
    return $buffer;
}
开发者ID:argissa,项目名称:hw13_kochergin,代码行数:13,代码来源:menu.php


示例2: print_menu

 function print_menu($menu, $isChilden = true)
 {
     echo '<ul style="z-index:1;">', "\n";
     $item_count = 0;
     foreach ($menu as $item) {
         $item_count++;
         if ($item_count == 1 && $isChilden) {
             echo '<li class="li3_top">';
         } else {
             echo '<li>';
         }
         echo '<a href=', !$item->children ? '/videos/lists/' . $item->vcid : '#', '>', $item->vcname, !$item->children ? ' (' . $item->video_counts . ')' : '', '</a>';
         // Only Leaves show number
         if ($item->children) {
             print_menu($item->children);
         }
         echo '</li>', "\n";
     }
     echo '</ul>', "\n";
 }
开发者ID:BGCX261,项目名称:zhe-project-agri-hg-to-git,代码行数:20,代码来源:menu_view.php


示例3: print_menu

/**
 * Generate a menu tree!
 * A recursive function to generate a menu tree.
 *
 * @param string $uid The menu identifier
 * @param int $level Level of the menu, used internally. Default 0.
 * @param array $args Arguments
 */
function print_menu($uid = null, $level = 0, $args = [])
{
    // Example of custom default args
    $args = merge_args_defaults($args, ['max-level' => 99, 'menu-ul-intag' => 'class="collection"']);
    // End menu if level reached
    if ($level > $args['max-level']) {
        return;
    }
    $menuEntries = get_children_menu_entries($uid);
    if (!$menuEntries) {
        return;
    }
    ?>
		<ul<?php 
    if ($level === 0) {
        echo " {$args['menu-ul-intag']}";
    }
    ?>
>
		<?php 
    foreach ($menuEntries as $menuEntry) {
        ?>
			<li class="collection-item">
				<?php 
        echo HTML::a($menuEntry->url, $menuEntry->name, $menuEntry->get('title'));
        ?>
				<?php 
        print_menu($menuEntry->uid, $level + 1, $args);
        ?>
			</li>
		<?php 
    }
    ?>
		</ul>
	<?php 
}
开发者ID:valerio-bozzolan,项目名称:boz-php-another-php-framework,代码行数:44,代码来源:functions.php


示例4: preoutgoing

$out = new preoutgoing();
if (!$out->load($preoutgoing_id)) {
    $message .= '<span class="error">' . $out->errormsg . '</span>';
}
$person = new benutzer();
if (!$person->load($out->uid)) {
    $message .= '<span class="error">' . $person->errormsg . '</span>';
}
echo '<h2>Details - ' . $person->vorname . ' ' . $person->nachname . '</h2>';
print_menu('Personendetails', 'personendetails');
echo ' | ';
print_menu('Dokumente', 'dokumente');
echo ' | ';
print_menu('Lehrveranstaltungen', 'lehrveranstaltungen');
echo ' | ';
print_menu('Anmerkungen', 'anmerkungen');
echo '<div style="float:right">' . $message . '</div>';
switch ($action) {
    case 'personendetails':
        print_personendetails();
        break;
    case 'dokumente':
        print_dokumente();
        break;
    case 'lehrveranstaltungen':
        print_lvs();
        break;
    case 'anmerkungen':
        print_anmerkungen();
        break;
}
开发者ID:andikoller,项目名称:FHC-3.0-FHBGLD,代码行数:31,代码来源:outgoing_detail.php


示例5: print_menu

<?php

require_once 'include/header.php';
require_once 'include/menu.php';
require_once 'modules/subscriber.php';
?>
			<?php 
print_menu('subscribers');
?>

                	<script type="text/javascript" charset="utf-8">
                        $(document).ready(function() {
                                $('#example').dataTable( {
					<?php 
/*$lang_file = 'js/'.$_SESSION['lang'].'.txt';
		if (file_exists($lang_file)) {
			echo '"oLanguage": { "sUrl": "'.$lang_file.'" },';
		}*/
?>
                                        "sPaginationType": "full_numbers",
                                        "bProcessing": true,
                                        "bServerSide": true,
                                        "aaSorting": [[ 0, "desc" ]],
                                        "aoColumnDefs": [
                                           {
                                                "aTargets": [8],
                                                "mData": null,
                                                "mRender": function (data, type, full) {
                                                    sub = full[4].match(/\d\d\d\d\d\d\d\d\d\d\d/);
                                                    return '<a href="subscriber_edit.php?id='+sub+'" class="pop"><img src="img/edit.png" alt="Edit" valign="middle" /></a> | <a href="subscriber_delete.php?id='+sub+'" class="pop"><img src="img/delete.png" alt="Delete" valign="middle" /></a>';
                                                }
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:subscribers.php


示例6: mysql_result

        echo "</td>\n";
    }
    echo "<td>\n";
    echo "Select To Delete" . "\n";
    echo "</td>\n";
    echo "</tr>\n";
    for ($i = 0; $i < $num_items; $i++) {
        echo "<tr>\n";
        for ($j = 0; $j < $num_fields; $j++) {
            echo "<td>\n";
            echo mysql_result($menu, $i, $j) . " " . "\n";
            echo "</td>\n";
        }
        echo "<td>\n";
        $type = "menu[]";
        $id = mysql_result($menu, $i, 0);
        echo "<input type=\"checkbox\" name=\"{$type}\" value=\"{$id}\"><br/>" . "\n";
        echo "</td>\n";
        echo "</tr>\n";
    }
    echo "</table>" . "\n" . "<br/>";
    echo "<input type=\"submit\" value=\"Delete Selected Items\">" . "\n";
}
?>
<body background="1.png">
<?php 
print_menu();
?>
</body>
</html>
开发者ID:tjanh123,项目名称:Restaurant-Management-Ordering-System,代码行数:30,代码来源:delete_menu_view.php


示例7: print_menu

<?php

require_once 'include/header.php';
require_once 'include/menu.php';
require_once 'modules/configuration.php';
?>
			<?php 
print_menu('platform');
?>

	                </script>
			<br/><br/>
			<center>
			<?php 
try {
    $site = new Configuration();
    $info = $site->getSite();
    ?>
			<style>

 dl {
    border: 1px solid #666;
    padding: 0.5em;
    width: 500px;
    font-size: 15px;
  }
  dt {
    float: left;
    clear: left;
    width: 200px;
    text-align: right;
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:site.php


示例8: print_menu

            <div class="navbar navbar-material-orange">
                <div class="navbar-header">
                    <a class="navbar-brand">ระบบจัดการฐานข้อมูลสมาชิกมูลนิธิไทยนำ-ลิมป์ศรีสวัสดิ์</a>
                </div>
                <div class="navbar-collapse collapse navbar-responsive-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="../../logout.php">ออกจากระบบ</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <!--        <div class=" col-xs-3 btn-material-brown">
                    <h3 class="mdi-navigation-menu"> เมนู</h3>
                    <ul class="nav nav-pills nav-stacked" >-->
        <?php 
print_menu(3);
?>
        <!--            </ul>
                </div>-->
        <div class=" col-xs-9">
            <center>
                <h1>สร้างชื่อจีน</h1>
                <div class="row" style="margin-top: -3px">
                    <div class="col-xs-10 col-xs-offset-1 well">
                        <form class="form-horizontal" action="createname.php" method="Get" style="margin-left:-10px; margin-top: 10px">
                            <div class="row">
                                <div class="col-xs-6 col-xs-offset-3" style="margin-top: -20px">
                                    <h2>ค้นหาข้อมูล</h2>
                                </div>
                            </div>
                            <div class="row" style="margin-top: 10px">
开发者ID:batman1292,项目名称:linhainan,代码行数:31,代码来源:createname.php


示例9: print_menu

?>

        	        <script type="text/javascript" charset="utf-8">
                        $(document).ready(function() {
                                $('#example').dataTable( {
                                        "sPaginationType": "full_numbers",
                                        "bProcessing": true,
                                        "bServerSide": true,
                                        "aaSorting": [[ 0, "desc" ]],
                                        "sAjaxSource": "credit_history_processing.php"
                                } );
                        } );
	                </script>

			<?php 
print_menu('credits');
?>
	

			<h1><?php 
echo _("Credit History");
?>
</h1><br/>
			<div id="dynamic" style="margin-left: 20px;">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
	<thead>
		<tr>
			<th align='left' width="15%"><?php 
echo _("Date");
?>
</th>
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:credit_history.php


示例10: html_page_bottom1

/**
 * Print the part of the page that comes below the page content
 * $p_file should always be the __FILE__ variable. This is passed to show source
 * @param string $p_file should always be the __FILE__ variable. This is passed to show source
 * @return null
 */
function html_page_bottom1($p_file = null)
{
    if (!db_is_connected()) {
        return;
    }
    event_signal('EVENT_LAYOUT_CONTENT_END');
    echo '</div>', "\n";
    if (config_get('show_footer_menu')) {
        echo '<br />';
        print_menu();
    }
    html_page_bottom1a($p_file);
}
开发者ID:nextgens,项目名称:mantisbt,代码行数:19,代码来源:html_api.php


示例11: array

  );

  // "Remember" administrators - try to make this link persistent if people have visited an admin page.
  // (see _session.php file for implementation)
  if ($is_admin) {
    $sections[] = array('Admin', 'admin', 'admin/');
  }

  if (!preg_match( '/^www.worldcubeassociation.org$/', $_SERVER["SERVER_NAME"])) {
    noticeBox3( 0, "Note: This is only a copy of the WCA results system used for testing stuff. The official WCA results are at:<br /><a href='https://www.worldcubeassociation.org/results/'>https://www.worldcubeassociation.org/results/</a>" );
  }

  // only show errors in admin section
  if($currentSection == 'admin' && isset($installation_errors) && !empty($installation_errors)) {
    showErrors($installation_errors);
  }
?>
<!-- TODO: Remove or reappropriate for Bootstrap.
<div id="pageMenuFrame">
  <div id="pageMenu">
    <ul class="navigation">
      <?php print_menu($sections, $currentSection); ?>
    </ul>
  </div>
</div>

<div id='header'><a href='https://www.worldcubeassociation.org/'>World Cube Association<br />Official Results</a></div>
<?php } ?>
 -->
<?php startTimer(); ?>
开发者ID:neodude,项目名称:worldcubeassociation.org,代码行数:30,代码来源:_header.php


示例12: preincoming

$inc = new preincoming();
if (!$inc->load($preincoming_id)) {
    $message .= '<span class="error">' . $inc->errormsg . '</span>';
}
$person = new person();
if (!$person->load($inc->person_id)) {
    $message .= '<span class="error">' . $person->errormsg . '</span>';
}
echo '<h2>Details - ' . $person->vorname . ' ' . $person->nachname . '</h2>';
print_menu('Personendetails', 'personendetails');
echo ' | ';
print_menu('Dokumente', 'dokumente');
echo ' | ';
print_menu('Lehrveranstaltungen', 'lehrveranstaltungen');
echo ' | ';
print_menu('Ansprechpersonen', 'ansprechpersonen');
echo '<div style="float:right">' . $message . '</div>';
echo '<br />';
switch ($action) {
    case 'personendetails':
        print_personendetails();
        break;
    case 'dokumente':
        print_dokumente();
        break;
    case 'lehrveranstaltungen':
        print_lehrveranstaltungen();
        break;
    case 'ansprechpersonen':
        print_ansprechpersonen();
        break;
开发者ID:andikoller,项目名称:FHC-3.0-FHBGLD,代码行数:31,代码来源:incoming_detail.php


示例13: print_menu

require_once 'include/header.php';
require_once 'include/menu.php';
?>
               <script type="text/javascript" charset="utf-8">
                        $(document).ready(function() {
                                $('#example').dataTable( {
                                        "sPaginationType": "full_numbers",
                                        "bProcessing": true,
                                        "bServerSide": true,
                                        "sAjaxSource": "rates_processing.php"
                                } );
                        } );
                </script>

			<?php 
print_menu('rates');
?>
	

			<h1><?php 
echo _("Rates");
?>
</h1><br/>
			<div id="dynamic" style="margin-left: 20px;">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
	<thead>
		<tr>
			<th align='left' width="20%"><?php 
echo _("Destination");
?>
</th>
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:rates.php


示例14: print_menu

<?php

require_once 'include/header.php';
require_once 'include/menu.php';
require_once 'modules/statistics.php';
print_menu('statistics');
?>
			<br/><br/>
			<center>
			<?php 
$stat = new CallsStatistics();
try {
    $total_calls = $stat->getTotalCalls();
} catch (StatisticException $e) {
    $total_calls = "ERROR {$e}";
}
try {
    $total_minutes = $stat->getTotalMinutes();
} catch (StatisticException $e) {
    $total_minutes = "ERROR {$e}";
}
try {
    $avg_call_duration = $stat->getAverageCallDuration();
} catch (StatisticException $e) {
    $avg_call_duration = "ERROR {$e}";
}
?>

			Total calls: <b><?php 
echo $total_calls;
?>
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:call_stats.php


示例15: header

}
# what is the current id
if (isset($_REQUEST['id'])) {
    $id = $_REQUEST['id'];
} else {
    header("Location: index.php");
    die('need an id');
}
# Make sure we can get here.
if ($sections[$table]['level']['edit'] < get_page_acccess_level() && ($table != "users" || $id != get_userid())) {
    #header("Location: {$matches[1]}/index.php");
    die("Not authorized. " . get_userid());
}
# print top
print_header($table);
print_menu($section);
# print form to edit entry
$msg = print_entry($id, $table, false);
# list files associated
if ($section['files']) {
    $tmp = show_files($id, $table, false);
    if ($msg == "") {
        $msg = $tmp;
    } else {
        if ($tmp != "") {
            $msg = "{$msg}<br/>{$tmp}";
        }
    }
}
# print footer of html
print_footer($msg);
开发者ID:jsimkins2,项目名称:pecan,代码行数:31,代码来源:edit.php


示例16: print_menu

/*$lang_file = 'js/'.$_SESSION['lang'].'.txt';
  if (file_exists($lang_file)) {
          echo '"oLanguage": { "sUrl": "'.$lang_file.'" },';
  }*/
?>

                                        "sPaginationType": "full_numbers",
                                        "bProcessing": true,
                                        "bServerSide": true,
                                        "aaSorting": [[ 1, "desc" ]],
                                        "sAjaxSource": "cdr_processing.php"
                                } ).columnFilter();
                        } );
                </script>
			<?php 
print_menu('cdr');
?>
	


			<h1><?php 
echo _("Calls Details Records");
?>
</h1><br/>
			<div id="dynamic" style="margin-left: 20px;">
	<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
	<thead>
		<tr>
			<th width="2%">ID</th>
			<th align='left' width="13%"><?php 
echo _("Call Date");
开发者ID:infercom2,项目名称:rccn,代码行数:31,代码来源:cdr.php


示例17: print_menu

            <div class="navbar navbar-material-orange">
                <div class="navbar-header">
                    <a class="navbar-brand">ระบบจัดการฐานข้อมูลสมาชิกมูลนิธิไทยนำ-ลิมป์์ศรีสวัสดิ์</a>
                </div>
                <div class="navbar-collapse collapse navbar-responsive-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="../../index.php">ออกจากระบบ</a></li>
                    </ul>
                </div>
            </div>
        </div>
<!--        <div class=" col-xs-3 btn-material-brown    ">
            <h3 class="mdi-navigation-menu"> เมนู</h3>
            <ul class="nav nav-pills nav-stacked" >-->
                <?php 
print_menu(7);
?>
<!--            </ul>
        </div>-->
        <div class=" col-xs-9">
            <?php 
connect_database();
$persons = get_person_detial($id);
$person = mysql_fetch_assoc($persons);
//            print_r($person);
?>
            <center>
                <input type="text" name="data_id" id="data_id" style="visibility:hidden"  value="<?php 
echo $id;
?>
">
开发者ID:batman1292,项目名称:linhainan,代码行数:31,代码来源:family_tree_detail.php


示例18: print_menu

<body>

<div class="wrapper">

        <header class="navbar navbar-default">
            <div class="container">
                <div class="navbar-header">
                    <div class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-haspopup="true" aria-expanded="true">
                        <span class="sr-only">Menu</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </div>
                </div>
                <form class="pull-left">
                    <input type="search" name="search" placeholder="Поиск">
<!--                    <a href="" class="search"><i class="fa fa-search"></i></a>-->
                </form>
                <div class="collapse navbar-collapse" id="navbar-collapse">
                    <ul id="menu" class="nav navbar-nav">
                    <?php 
require "array_data.php";
require "menu.php";
echo print_menu($menu);
?>
                        <li><a href="#" class="basket"><img src="../img/basket.png"></a> </li>
                    </ul>
                </div>
            </div>
        </header>
开发者ID:argissa,项目名称:hw13_kochergin,代码行数:30,代码来源:header.php


示例19: print_menu

            <div class="navbar navbar-material-orange">
                <div class="navbar-header">
                    <a class="navbar-brand">ระบบจัดการฐานข้อมูลสมาชิกมูลนิธิไทยนำ-ลิมป์ศรีสวัสดิ์</a>
                </div>
                <div class="navbar-collapse collapse navbar-responsive-collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="../../index.php">ออกจากระบบ</a></li>
                    </ul>
                </div>
            </div>
        </div>
<!--        <div class=" col-xs-3 btn-material-brown    ">
            <h3 class="mdi-navigation-menu"> เมนู</h3>
            <ul class="nav nav-pills nav-stacked" >-->
                <?php 
print_menu(5);
?>
<!--            </ul>
        </div>-->
        <div class=" col-xs-9">
            <center>
                <?php 
connect_database();
$year_list = get_reg_year_list();
//                print_r($year_list);
?>
                <h1>ข้อมูลผู้มาร่วมงานประจำปี</h1>
                <div class="row" style="margin-top: -3px">
                    <div class="col-xs-10 col-xs-offset-1 well">
                        <form class="form-horizontal" action="register_day.php" method="Get" style="margin-left:-10px; margin-top: 10px">
                            <div class="row">
开发者ID:batman1292,项目名称:linhainan,代码行数:31,代码来源:register_day.php


示例20: print_menu

<nav class="nav-seq">
  <ul>
		<?php 
echo print_menu($categories);
?>
  </ul>
  <div></div>
</nav>
<div class="wrap">
	<?php 
$allPays = array();
foreach ($categories as $category) {
    $allChildrens = array();
    $allWines = array();
    ?>
		
		  <div id="tab-<?php 
    echo slug($category->label);
    ?>
" class="tab">
			  <div class="sidebar">
						<?php 
    $allRegionMonde = array();
    foreach ($category->children as $region_du_monde) {
        $allRegionMonde[] = $region_du_monde;
    }
    if (count($allRegionMonde) > 0) {
        echo print_sidebar($allRegionMonde);
    }
    ?>
			  </div>
开发者ID:Razinsky,项目名称:echaude-com,代码行数:31,代码来源:view.vins.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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