db_Select("menus","*", "menu_location='".$mc."' ORDER BY menu_order"); $count = 1; $sql2 = new db; while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql-> db_Fetch()) { $sql2 -> db_Update("menus", "menu_order='$count' WHERE menu_id='$menu_id' "); $count++; } $text = "Menus reset in database

"; } } else { unset($text); } $frm = e107::getForm(); $text = "The Menu-Manager allows you to place and arrange your menus within your theme template. [u]Hover[/u] over the sub-areas to modify existing menu items. If you find the menus are not updating correctly, clicking the refresh button below may help. [html]
indicates that the menu's visibility has been modified.
[/html] "; $text = $tp->toHtml($text,true); $ns -> tablerender("Menus Help", $text);