本文整理汇总了PHP中add_access_extensions函数的典型用法代码示例。如果您正苦于以下问题:PHP add_access_extensions函数的具体用法?PHP add_access_extensions怎么用?PHP add_access_extensions使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了add_access_extensions函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Copyright
<?php
/**********************************************************************
Copyright (C) FrontAccounting, LLC.
Released under the terms of the GNU General Public License, GPL,
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_ASSETS';
$path_to_root = "../..";
include $path_to_root . "/includes/session.inc";
add_access_extensions();
set_ext_domain('modules/asset_register');
page(_($help_context = "Amortisation Schedule"));
include_once $path_to_root . "/modules/asset_register/includes/modules_db.inc";
include_once $path_to_root . "/includes/ui.inc";
simple_page_mode(true);
//-----------------------------------------------------------------------------------
if (!isset($_POST['year'])) {
$_POST['year'] = date("Y");
}
echo "<div align='center'><FORM action='amortisation_post.php' method='post'>";
echo " <LABEL for='year'>Year : </LABEL><INPUT type='text' name='year' value='" . $_POST['year'];
echo "' id='year'>";
echo " <INPUT type='submit' name='submit' value='Search'>";
echo " <INPUT type='submit' name='amortise_post' value='Post'>";
echo "</FORM></div>";
示例2: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
if (!$no_menu) {
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery-1.3.2.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery-ui-1.7.2.custom.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery.json-2.2.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/dashboard.js'></script>\n";
echo "<script type='text/javascript' src='https://www.google.com/jsapi'></script>\n";
}
add_access_extensions();
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";
echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n";
if (!$no_menu) {
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$img = "<img src='{$local_path_to_root}/themes/dashboard/images/login.gif' width='14' height='14' border='0' alt='" . _('Logout') . "'> ";
$himg = "<img src='{$local_path_to_root}/themes/dashboard/images/help.gif' width='14' height='14' border='0' alt='" . _('Help') . "'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr><td>";
echo "<div class=tabs>";
foreach ($applications as $app) {
if ($_SESSION["wa_current_user"]->check_application_access($app)) {
if ($sel_app == $app->id) {
$sel_application = $app;
}
$acc = access_string($app->name);
echo "<a class='" . ($sel_app == $app->id ? 'selected' : 'menu_tab') . "' href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}>" . $acc[0] . "</a>";
}
}
echo "</div>";
echo "</td></tr></table>";
echo "<table class=logoutBar>";
echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
echo "<td class='logoutBarRight'><img id='ajaxmark' src='{$indicator}' align='center' style='visibility:hidden;'></td>";
echo " <td class='logoutBarRight'><a class='shortcut' href='{$path_to_root}/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
echo " <a class='shortcut' href='{$path_to_root}/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($help_base_url != null) {
echo "{$himg}<a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>" . _("Help") . "</a> ";
}
echo "{$img}<a class='shortcut' href='{$local_path_to_root}/access/logout.php?'>" . _("Logout") . "</a> ";
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "</td></tr><tr><td>\n";
//echo "<script language='javascript'>\$(document).ready(function(){\$('#fa-submenu').hoverAccordion({activateItem:1,speed:'fast'});});</script>";
echo "<script language='javascript'>" . "\$(document).ready(function()\n" . "{\n" . "\$('#fa-submenu p.menu_head').click(function()\n" . "{\n" . "\$(this).css({backgroundImage:'none'}).next('div.menu_body').slideDown(300).siblings('div.menu_body').slideUp('slow');\n" . "\$(this).siblings().css({backgroundImage:'url({$local_path_to_root}/themes/dashboard/images/collapse2.png)'});\n" . "});\n" . "\$('#first').css({backgroundImage:'none'}).next('div.menu_body').slideDown('fast').siblings('div.menu_body').slideUp('fast');" . "});\n</script>";
echo "<table width='100%'><tr><td valign='top' width='15%'>";
echo "<div style='display:block;'>\n";
echo "<div id='fa-submenu' class='menu_list'>\n";
$first = "id='first'";
foreach ($sel_application->modules as $module) {
echo "<p " . $first . " class='menu_head'>" . $module->name . "</p>\n";
echo "<div class='menu_body'>\n";
$first = "";
$apps = array();
foreach ($module->lappfunctions as $appfunction) {
$apps[] = $appfunction;
}
foreach ($module->rappfunctions as $appfunction) {
$apps[] = $appfunction;
}
$application = array();
foreach ($apps as $application) {
$lnk = access_string($application->label);
if ($_SESSION["wa_current_user"]->can_access_page($application->access)) {
if ($application->label != "") {
echo "<a href='" . $path_to_root . "/" . $application->link . "'>" . $lnk[0] . "</a>";
}
} elseif (!$_SESSION["wa_current_user"]->hide_inaccessible_menu_items()) {
echo "<a href='#' class='disabled'>" . $lnk[0] . "</a>";
}
}
echo "</div>";
}
echo "</div>";
// submenu
echo "</div >\n";
echo "</td><td valign='top'>";
}
if ($no_menu) {
echo "</td></tr></table>";
echo "<br>";
} elseif ($title && !$is_index) {
// here starts form
echo "<div class='dataform'>";
echo "<center><table id='title'><tr><td width='100%' class='titletext'>{$title}</td>" . "<td align=right>" . (user_hints() ? "<span id='hints'></span>" : '') . "</td>" . "</tr></table></center>";
}
}
示例3: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $power_by, $version, $db_connections, $installed_extensions;
if (!$no_menu) {
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery-1.3.2.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery-ui-1.7.2.custom.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/jquery.json-2.2.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/dashboard/js/dashboard.js'></script>\n";
echo "<script type='text/javascript' src='https://www.google.com/jsapi'></script>\n";
}
$sel_app = $_SESSION['sel_app'];
echo "<div class='fa-main'>\n";
if (!$no_menu) {
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$img = "<img src='{$local_path_to_root}/themes/exclusive_db/images/login.gif' width='14' height='14' border='0' alt='" . _('Logout') . "'> ";
$himg = "<img src='{$local_path_to_root}/themes/exclusive_db/images/help.gif' width='14' height='14' border='0' alt='" . _('Help') . "'> ";
echo "<div id='header'>\n";
echo "<ul>\n";
echo " <li><a href='{$path_to_root}/admin/display_prefs.php?'>" . _("Preferences") . "</a></li>\n";
echo " <li><a href='{$path_to_root}/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a></li>\n";
if ($help_base_url != null) {
echo " <li><a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>{$himg}" . _("Help") . "</a></li>";
}
echo " <li><a href='{$path_to_root}/access/logout.php?'>{$img}" . _("Logout") . "</a></li>";
echo "</ul>\n";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
echo "<h1>{$power_by} {$version}<span style='padding-left:300px;'><img id='ajaxmark' src='{$indicator}' align='center' style='visibility:hidden;'></span></h1>\n";
echo "</div>\n";
// header
echo "<div class='fa-menu'>";
echo "<ul>\n";
foreach ($applications as $app) {
if ($sel_app == $app->id) {
$sel_application = $app;
}
$acc = access_string($app->name);
echo "<li " . ($sel_app == $app->id ? "class='active' " : "") . "><a href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}><b>" . $acc[0] . "</b></a></li>\n";
}
echo "</ul>\n";
echo "</div>\n";
// menu
echo "<div class='clear'></div>\n";
}
echo "<div class='fa-body'>\n";
if (!$no_menu) {
add_access_extensions();
echo "<div class='fa-side'>\n";
echo "<div class='fa-submenu'>\n";
$app = $sel_application;
$xpmenu = new xpMenu();
$xpmenu->addMenu($sel_app);
$acc = access_string($app->name);
$imgs = array('orders' => 'invoice.gif', 'AP' => 'receive.gif', 'stock' => 'basket.png', 'manuf' => 'cog.png', 'proj' => 'time.png', 'GL' => 'gl.png', 'system' => 'controller.png');
if (!isset($imgs[$app->id])) {
$imgs[$app->id] = "controller.png";
}
$xpmenu->addCategory($app->id, $acc[0], "{$local_path_to_root}/themes/exclusive_db/images/" . $imgs[$app->id], $app->id);
$i = $j = 0;
if ($sel_app == "system") {
$imgs2 = array("page_edit.png", "page_edit.png", "page_edit.png", "page_edit.png", "folder.gif");
} else {
$imgs2 = array("folder.gif", "report.png", "page_edit.png", "money.png", "folder.gif");
}
foreach ($app->modules as $module) {
$xpmenu->addOption($i++, $module->name, "{$local_path_to_root}/themes/exclusive_db/images/transparent.gif", "", $app->id, $sel_app);
$apps = array();
foreach ($module->lappfunctions as $appfunction) {
$apps[] = $appfunction;
}
foreach ($module->rappfunctions as $appfunction) {
$apps[] = $appfunction;
}
$application = array();
foreach ($apps as $application) {
$lnk = access_string($application->label);
if ($_SESSION["wa_current_user"]->can_access_page($application->access)) {
if ($application->label != "") {
$xpmenu->addOption($i++, $lnk[0], "{$local_path_to_root}/themes/exclusive_db/images/" . $imgs2[$j], "{$path_to_root}/{$application->link}", $app->id, $sel_app);
}
} else {
$xpmenu->addOption($i++, $lnk[0], "{$local_path_to_root}/themes/exclusive_db/images/" . $imgs2[$j], "#", $app->id, $sel_app);
}
}
$j++;
}
$txt = $xpmenu->javaScript();
$txt .= $xpmenu->javaScript();
$txt .= $xpmenu->style();
$txt .= $xpmenu->mountMenu($sel_app, $sel_app);
echo $txt;
echo "</div>\n";
// submenu
echo "<div class='clear'></div>\n";
echo "</div>\n";
// fa-side
echo "<div class='fa-content'>\n";
}
if ($no_menu) {
echo "<br>";
//.........这里部分代码省略.........
示例4: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $power_by, $version, $db_connections, $installed_extensions;
$sel_app = $_SESSION['sel_app'];
echo "<div class='fa-main'>\n";
if (!$no_menu) {
echo "<script type='text/javascript' src='{$path_to_root}/themes/dynamic/ddmenu/ddlevelsmenu.js'></script>\n";
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$img = "<img src='{$local_path_to_root}/themes/dynamic/images/login.gif' width='14' height='14' border='0' alt='" . _('Logout') . "'> ";
$himg = "<img src='{$local_path_to_root}/themes/dynamic/images/help.gif' width='14' height='14' border='0' alt='" . _('Help') . "'> ";
echo "<div id='header'>\n";
echo "<ul>\n";
echo " <li><a href='{$local_path_to_root}/admin/display_prefs.php?'>" . _("Preferences") . "</a></li>\n";
echo " <li><a href='{$local_path_to_root}/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a></li>\n";
if ($help_base_url != null) {
echo " <li><a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>{$himg}" . _("Help") . "</a></li>";
}
echo " <li><a href='{$path_to_root}/access/logout.php?'>{$img}" . _("Logout") . "</a></li>";
echo "</ul>\n";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
echo "<h1>{$power_by} {$version}<span style='padding-left:300px;'><img id='ajaxmark' src='{$indicator}' align='center' style='visibility:hidden;'></span></h1>\n";
echo "</div>\n";
// header
echo "<div id='ddtopmenubar' class='mattblackmenu'>";
echo "<ul>\n";
$i = 0;
$account = $this->wa_get_apps($title, $applications, $sel_app);
foreach ($applications as $app) {
if ($account[3] == $app->id) {
$sel_application = $app;
}
$acc = access_string($app->name);
$i++;
echo "<li " . ($account[3] == $app->id ? "class='active' " : "") . "><a " . ($account[3] == $app->id ? "class='active' " : "") . " rel='ddsubmenu{$i}' href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}><b>" . $acc[0] . "</b></a></li>\n";
}
echo "</ul>\n";
echo "</div>\n";
// menu
echo "<script type='text/javascript'>ddlevelsmenu.setup('ddtopmenubar', 'topbar', '{$path_to_root}');</script>\n";
}
echo "<div class='fa-body'>\n";
if (!$no_menu) {
add_access_extensions();
$i = 0;
foreach ($applications as $app) {
if ($app->id == "system") {
$imgs2 = array("page_edit.png", "page_edit.png", "page_edit.png", "page_edit.png", "folder.gif");
} else {
$imgs2 = array("folder.gif", "report.png", "page_edit.png", "money.png", "folder.gif");
}
$i++;
$j = 0;
echo "<ul id='ddsubmenu{$i}' class='ddsubmenustyle'>\n";
foreach ($app->modules as $module) {
$img_src = "<img style='vertical-align:middle;' src='{$path_to_root}/themes/dynamic/images/" . $imgs2[$j] . "' width='14' height='14' border='0' /> ";
echo "<li><a href='#'>{$img_src} {$module->name}</a>\n";
$apps = array();
foreach ($module->lappfunctions as $appfunction) {
$apps[] = $appfunction;
}
foreach ($module->rappfunctions as $appfunction) {
$apps[] = $appfunction;
}
$application = array();
if (count($apps)) {
echo "<ul>\n";
}
foreach ($apps as $application) {
$lnk = access_string($application->label);
if ($_SESSION["wa_current_user"]->can_access_page($application->access)) {
if ($application->label != "") {
echo "<li><a href='{$path_to_root}/{$application->link}'>{$img_src} {$lnk[0]}</a></li>\n";
}
} else {
echo "<li><a href='#'></a>{$img_src} {$lnk[0]}</li>\n";
}
}
$j++;
if (count($apps)) {
echo "</ul>\n";
}
echo "</li>\n";
}
echo "</ul>\n";
// menu
}
echo "<div class='fa-content'>\n";
}
if ($no_menu) {
echo "<br>";
} elseif ($title && !$no_menu && !$is_index) {
echo "<center><table id='title'><tr><td width='100%' class='titletext'>{$title}</td>" . "<td align=right>" . (user_hints() ? "<span id='hints'></span>" : '') . "</td>" . "</tr></table></center>";
}
}
示例5: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
if (!$no_menu) {
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery-1.3.2.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery-ui-1.7.2.custom.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery.json-2.2.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/dashboard.js'></script>\n";
echo "<script type='text/javascript' src='https://www.google.com/jsapi'></script>\n";
}
add_access_extensions();
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";
echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n";
if (!$no_menu) {
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$img = "<img src='{$local_path_to_root}/themes/erp/images/login.gif' width='14' height='14' border='0' alt='" . _('Logout') . "'> ";
$himg = "<img src='{$local_path_to_root}/themes/erp/images/help.gif' width='14' height='14' border='0' alt='" . _('Help') . "'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr>";
echo "<td id='logotab'><span><img src='{$local_path_to_root}/themes/erp/images/logo2.png' align='center'></span></td>";
echo "<td><div class=tabs>";
$imag = array('orders' => 'sales.png', 'AP' => 'purchase.png', 'stock' => 'inventory.png', 'manuf' => 'manufacture.png', 'proj' => 'dimension.png', 'GL' => 'bank.png', 'payroll' => 'payroll.png', 'system' => 'setup.png');
foreach ($applications as $app) {
if ($_SESSION["wa_current_user"]->check_application_access($app)) {
if ($sel_app == $app->id) {
$sel_application = $app;
}
$acc = access_string($app->name);
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/" . $imag[$app->id] . "' align='center'>";
echo "<a class='" . ($sel_app == $app->id ? 'selected' : 'menu_tab') . "' href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}>" . $mg . "</a>";
}
}
echo "<a class='shortcut' href='{$local_path_to_root}/access/logout.php?'><image src = '{$local_path_to_root}/themes/erp/images/logout.png' align='center'></a>";
echo "</div>";
echo "</td></tr></table>";
//echo "<table class=logoutBar>";
//echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
//echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
//echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
//echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($help_base_url != null) {
echo "{$himg}<a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>" . _("Help") . "</a> ";
}
//echo "$img<a class='shortcut' href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
//echo "</td></tr></table>";
echo "</td></tr></table>";
echo "</td></tr><tr><td>\n";
//echo "<script language='javascript'>\$(document).ready(function(){\$('#fa-submenu').hoverAccordion({activateItem:1,speed:'fast'});});</script>";
echo "<script language='javascript'>" . "\$(document).ready(function()\n" . "{\n" . "\$('#fa-submenu p.menu_head').click(function()\n" . "{\n" . "\$(this).css({backgroundImage:'none'}).next('div.menu_body').slideDown(300).siblings('div.menu_body').slideUp('slow');\n" . "\$(this).siblings().css({backgroundImage:'url({$local_path_to_root}/themes/erp/images/collapse2.png)'});\n" . "});\n" . "\$('#first').css({backgroundImage:'none'}).next('div.menu_body').slideDown('fast').siblings('div.menu_body').slideUp('fast');" . "});\n</script>";
echo "<table width='100%'><tr><td valign='top' width='20%'>";
echo "<div style='display:block;'>\n";
echo "<div id='fa-submenu' class='menu_list'>\n";
$first = "id='first'";
foreach ($sel_application->modules as $module) {
if ($module->name == "Transactions") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/transactions.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Inquiries and Reports") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/inquiries.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Maintenance") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/maintenance.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Pricing and Costs") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/price.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Company Setup") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/company.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Miscellaneous") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/miscellaneous.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
//echo "<p ".$first." class='menu_head'>".$module->name."</p>\n";
echo "<div class='menu_body'>\n";
$first = "";
$apps = array();
foreach ($module->lappfunctions as $appfunction) {
$apps[] = $appfunction;
}
foreach ($module->rappfunctions as $appfunction) {
$apps[] = $appfunction;
}
$application = array();
foreach ($apps as $application) {
$lnk = access_string($application->label);
//.........这里部分代码省略.........