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


PHP menu::build_html方法代码示例

本文整理汇总了PHP中menu::build_html方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::build_html方法的具体用法?PHP menu::build_html怎么用?PHP menu::build_html使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在menu的用法示例。


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

示例1: menu

    $v_menu = "";
    $v_menu .= "    <!--[if IE]>\n";
    $v_menu .= "    <style type=\"text/css\" media=\"screen\">\n";
    $v_menu .= "    #menu{float:none;} /* This is required for IE to avoid positioning bug when placing content first in source. */\n";
    $v_menu .= "    /* IE Menu CSS */\n";
    $v_menu .= "    /* csshover.htc file version: V1.21.041022 - Available for download from: http://www.xs4all.nl/~peterned/csshover.html */\n";
    $v_menu .= "    body{behavior:url(/resources/csshover.htc);\n";
    $v_menu .= "    font-size:100%; /* to enable text resizing in IE */\n";
    $v_menu .= "    }\n";
    $v_menu .= "    #menu ul li{float:left;width:100%;}\n";
    $v_menu .= "    #menu h2, #menu a{height:1%;font:bold arial,helvetica,sans-serif;}\n";
    $v_menu .= "    </style>\n";
    $v_menu .= "    <![endif]-->\n";
    //$v_menu .= "    <style type=\"text/css\">@import url(\"/resources/menuh.css\");</style>\n";
    $v_menu .= "\n";
    $v_menu .= "<!-- Begin CSS Horizontal Popout Menu -->\n";
    $v_menu .= "<div id=\"menu\" style=\"position: relative; z-index:199; width:100%;\" align='left'>\n";
    $v_menu .= "\n";
    require_once "resources/classes/menu.php";
    $menu = new menu();
    $menu->db = $db;
    $menu->menu_uuid = $_SESSION['domain']['menu']['uuid'];
    $v_menu .= $menu->build_html("", "main");
    unset($menu);
    $v_menu .= "</div>\n";
    $_SESSION["menu"] = $v_menu;
} else {
    //echo "from session";
}
//testing
//echo $_SESSION["menu"];
开发者ID:reliberate,项目名称:fusionpbx,代码行数:31,代码来源:menu.php

示例2: menu

    $v_menu = "";
    $v_menu .= "    <!--[if IE]>\n";
    $v_menu .= "    <style type=\"text/css\" media=\"screen\">\n";
    $v_menu .= "    #menu{float:none;} /* This is required for IE to avoid positioning bug when placing content first in source. */\n";
    $v_menu .= "    /* IE Menu CSS */\n";
    $v_menu .= "    /* csshover.htc file version: V1.21.041022 - Available for download from: http://www.xs4all.nl/~peterned/csshover.html */\n";
    $v_menu .= "    body{behavior:url(/resources/csshover.htc);\n";
    $v_menu .= "    font-size:100%; /* to enable text resizing in IE */\n";
    $v_menu .= "    }\n";
    $v_menu .= "    #menu ul li{float:left;width:100%;}\n";
    $v_menu .= "    #menu h2, #menu a{height:1%;font:bold arial,helvetica,sans-serif;}\n";
    $v_menu .= "    </style>\n";
    $v_menu .= "    <![endif]-->\n";
    //$v_menu .= "    <style type=\"text/css\">@import url(\"/resources/menuh.css\");</style>\n";
    $v_menu .= "\n";
    $v_menu .= "<!-- Begin CSS Horizontal Popout Menu -->\n";
    $v_menu .= "<div id=\"menu\" style=\"position: relative; z-index:199; width:100%;\" align='left'>\n";
    $v_menu .= "\n";
    require_once "resources/classes/menu.php";
    $menu = new menu();
    $menu->db = $db;
    $menu->menu_uuid = $_SESSION['domain']['menu']['uuid'];
    $v_menu .= $menu->build_html();
    unset($menu);
    $v_menu .= "</div>\n";
    $_SESSION["menu"] = $v_menu;
} else {
    //echo "from session";
}
//testing
//echo $_SESSION["menu"];
开发者ID:kevinlovesing,项目名称:fusionpbx,代码行数:31,代码来源:menu.php


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