本文整理汇总了PHP中general::active_menu方法的典型用法代码示例。如果您正苦于以下问题:PHP general::active_menu方法的具体用法?PHP general::active_menu怎么用?PHP general::active_menu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类general
的用法示例。
在下文中一共展示了general::active_menu方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_menu
function get_menu()
{
$sql = "SELECT * FROM content WHERE status=1 and action!='index' and id_parent=0";
$result = mysql::query($sql, 0);
foreach ($result as $r) {
$res .= '<li><a ' . general::active_menu($r->action) . 'href="/' . $_GET['lang'] . '/' . $r->action . '">' . $r->name_ru . '</a></li>';
}
return $res;
}
示例2:
?>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
show all schildren ID parent by <ul><li></li></ul>
<?php
echo general::get_all_punkt_menu(399);
?>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
show class="cur" if current punkt menu
<?php
echo general::active_menu('index');
?>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
show global message, put it before </body> teg
<?php
echo general::global_massage();
?>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----------------------------------------------------------------------------
banners system code, put banners code to putt.php file
<?php
示例3:
?>
href="/kak_zakazat">Как заказать</a>
<ul>
<? echo general::get_all_punkt_menu(399); ?>
</ul>
</li>
<li><a <?php
echo general::active_menu('poleznaja_informatsija');
?>
href="/poleznaja_informatsija">Полезная информация</a>
<ul>
<? echo general::get_all_punkt_menu(400); ?>
</ul>
</li>
<li><a <?php
echo general::active_menu('cotact');
?>
href="/contact">Контакты</a></li>
</ul><!-- .menu_top_bg .menu_top_bg-->
</div><!-- .site_size-->
</div><!-- #header-->
<div id="conteiner">
<div id="coll_1" class="coll_h left_coll">
<div class="block_wrap_1">
<div class="around_block">
<a href="/catalog" class="block_title">Каталог »</a>
<ul class="menu_left">
<?php
echo catalog::get_catalog_menu("/frontend/catalog/menu_ind.php");
?>