1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

#1238 - menu manager visibility icon (needs code update and LAN)

This commit is contained in:
Tijn Kuyper
2015-11-16 20:06:31 +01:00
parent 23b7de8d4e
commit cd3c2ca35d

View File

@@ -2,37 +2,34 @@
/* /*
* e107 website system * e107 website system
* *
* Copyright (C) 2008-2009 e107 Inc (e107.org) * Copyright (C) 2008-2015 e107 Inc (e107.org)
* Released under the terms and conditions of the * Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
* *
*
*
* $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/help/menus.php,v $
* $Revision$
* $Date$
* $Author$
*/ */
if(!defined('e107_INIT')){ die("Unauthorised Access");} if(!defined('e107_INIT')){ exit; }
if (!getperms("2")) {
if (!getperms("2"))
{
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
exit; exit;
} }
$sql = e107::getDb(); $sql = e107::getDb();
$tp = e107::getParser(); $tp = e107::getParser();
$frm = e107::getForm();
if(isset($_POST['reset'])) if(isset($_POST['reset']))
{ {
for($mc=1;$mc<=5;$mc++) for($mc=1;$mc<=5;$mc++)
{ {
$sql -> db_Select("menus","*", "menu_location='".$mc."' ORDER BY menu_order"); $sql->select("menus","*", "menu_location='".$mc."' ORDER BY menu_order");
$count = 1; $count = 1;
$sql2 = new db; $sql2 = new db;
while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql-> db_Fetch()) while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql->fetch())
{ {
$sql2 -> db_Update("menus", "menu_order='$count' WHERE menu_id='$menu_id' "); $sql2 ->update("menus", "menu_order='$count' WHERE menu_id='$menu_id' ");
$count++; $count++;
} }
$text = "<b>Menus reset in database</b><br /><br />"; $text = "<b>Menus reset in database</b><br /><br />";
@@ -43,20 +40,21 @@ else
unset($text); unset($text);
} }
$frm = e107::getForm();
$text = "The Menu-Manager allows you to place and arrange your menus within your theme template. $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. [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. If you find the menus are not updating correctly, clicking the refresh button below may help.
[html] [html]
<form method='post' id='menurefresh' action='".$_SERVER['PHP_SELF']."'> <form method='post' id='menurefresh' action='".$_SERVER['PHP_SELF']."'>
<div> <div>
".$frm->admin_button('reset','Refresh','cancel')."</div> ".$frm->admin_button('reset','Refresh','cancel')."</div>
</form> </form>
<div class='indent'><span class='required'><i class='icon-search icon-white'></i></span> indicates that the menu's visibility has been modified.</div> [br]
".e107::getParser()->toGlyph('search')."</span> indicates that the menu's visibility has been modified.
[/html] [/html]
"; ";
$text = $tp->toHtml($text,true); $text = $tp->toHtml($text, true);
$ns -> tablerender("Menus Help", $text); $ns->tablerender("Menus Help", $text);