當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。