// Build main menu
$result_main = SQL_QUERY("SELECT action, title, descr FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE (`what`='' OR `what` IS NULL) ORDER BY `sort`, id DESC", __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result_main) > 0) {
- $OUT = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_main\">
-<tr><td colspan=\"2\" height=\"7\" class=\"seperator\"> </td></tr>\n";
+ $OUT = "<div style=\"height:7px\" class=\"seperator\"> </div>\n";
+ $OUT .= "<ul class=\"admin_menu_main\">\n";
// @TODO Rewrite this to $content = SQL_FETCHARRAY()
while (list($menu, $title, $descr) = SQL_FETCHROW($result_main)) {
if ((EXT_IS_ACTIVE('admins')) && (GET_EXT_VERSION('admins') > '0.2.0')) {
$GLOBALS['menu']['title'][$menu] = $title;
$GLOBALS['menu']['description'][$menu] = $descr;
}
- $OUT .= "<tr>
- <td class=\"admin_menu\" colspan=\"2\">
- <div class=\"nobr\"> <strong>·</strong> ";
+ $OUT .= "<li class=\"admin_menu\">
+ <div class=\"nobr\"><strong>·</strong> ";
if (($menu == $act) && (empty($wht))) {
$OUT .= "<strong>";
$OUT .= "</a>]";
}
- $OUT .= "</div></td>
-</tr>\n";
+ $OUT .= "</div>
+</li>\n";
// Check for menu entries
$result_what = SQL_QUERY_ESC("SELECT what, title, descr FROM `{!_MYSQL_PREFIX!}_admin_menu` WHERE `action`='%s' AND `what` != '' AND `what` IS NOT NULL ORDER BY `sort`, id DESC",
if ((ifAdminMenuHasEntries($menu)) && (SQL_NUMROWS($result_what) > 0)) {
$GLOBALS['menu']['description'] = array();
$GLOBALS['menu']['title'] = array(); $SUB = true;
- $OUT .= "<tr>
- <td width=\"10\" class=\"seperator\"> </td>
- <td class=\"admin_menu\">
- <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_menu_sub\">\n";
+ $OUT .= "<ul class=\"admin_menu_sub\">\n";
// @TODO Rewrite this to $content = SQL_FETCHARRAY()
while (list($wht_sub, $title_what, $desc_what) = SQL_FETCHROW($result_what)) {
// Filename
// Insert compiled title and description
$GLOBALS['menu']['title'][$wht_sub] = $title_what;
$GLOBALS['menu']['description'][$wht_sub] = $desc_what;
- $OUT .= "<tr>
- <td class=\"admin_menu\" colspan=\"2\">
- <div class=\"nobr\"> <strong>--></strong> ";
+ $OUT .= "<li class=\"admin_menu\">
+ <div class=\"nobr\"><strong>--></strong> ";
if ($readable === true) {
if ($wht == $wht_sub) {
$OUT .= "<strong>";
$OUT .= "[<a href=\"{!URL!}/modules.php?module=admin&what=".$wht_sub."\">";
}
} else {
- $OUT .= "<i class=\"admin_note\">";
+ $OUT .= "<em class=\"admin_note\">";
}
$OUT .= $title_what;
} else {
$OUT .= "</em>";
}
- $OUT .= "</div></td>
-</tr>\n";
+ $OUT .= "</div>
+</li>\n";
}
}
// Free memory
SQL_FREERESULT($result_what);
- $OUT .= " </table>
- </td>
-</tr>\n";
+ $OUT .= " </ul>
+</li>\n";
}
- $OUT .= "<tr><td height=\"7\" colspan=\"2\"></td></tr>\n";
+ $OUT .= "<li style=\"height:7px\" class=\"seperator\"> </li>\n";
}
}
// Free memory
SQL_FREERESULT($result_main);
- $OUT .= "</table>\n";
+ $OUT .= "</ul>\n";
}
// Is there a cache instance again?