mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +02:00
new module creation
This commit is contained in:
56
e107_languages/English/admin/help/menus.php
Normal file
56
e107_languages/English/admin/help/menus.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/help/menus.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:34:43 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if(!defined('e107_INIT')){ die("Unauthorised Access");}
|
||||
if (!getperms("2")) {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
global $sql;
|
||||
if(isset($_POST['reset'])){
|
||||
for($mc=1;$mc<=5;$mc++){
|
||||
$sql -> 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 = "<b>Menus reset in database</b><br /><br />";
|
||||
}
|
||||
}else{
|
||||
unset($text);
|
||||
}
|
||||
|
||||
$text .= "
|
||||
You can arrange where and in which order your menu items are from here.
|
||||
Use the dropdown menu to move the menus up and down until you are satisfied with their positioning.
|
||||
<br />
|
||||
<br />
|
||||
If you find the menus are not updating properly click on the refresh button.
|
||||
<br />
|
||||
<form method='post' id='menurefresh' action='".$_SERVER['PHP_SELF']."'>
|
||||
<div><input type='submit' class='button' name='reset' value='Refresh' /></div>
|
||||
</form>
|
||||
<br />
|
||||
<div class='indent'><span style='color:red'>*</span> indicates menu visibility has been modified</div>
|
||||
";
|
||||
|
||||
$ns -> tablerender("Menus Help", $text);
|
||||
?>
|
Reference in New Issue
Block a user