[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_languages/English/admin/help/menus.php,v $ 14 | $Revision: 1.4 $ 15 | $Date: 2005/12/14 17:37:43 $ 16 | $Author: sweetas $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if(!defined('e107_INIT')){ die("Unauthorised Access");} 21 if (!getperms("2")) { 22 header("location:".e_BASE."index.php"); 23 exit; 24 } 25 global $sql; 26 if(isset($_POST['reset'])){ 27 for($mc=1;$mc<=5;$mc++){ 28 $sql -> db_Select("menus","*", "menu_location='".$mc."' ORDER BY menu_order"); 29 $count = 1; 30 $sql2 = new db; 31 while(list($menu_id, $menu_name, $menu_location, $menu_order) = $sql-> db_Fetch()){ 32 $sql2 -> db_Update("menus", "menu_order='$count' WHERE menu_id='$menu_id' "); 33 $count++; 34 } 35 $text = "<b>Menus reset in database</b><br /><br />"; 36 } 37 }else{ 38 unset($text); 39 } 40 41 $text .= " 42 You can arrange where and in which order your menu items are from here. 43 Use the dropdown menu to move the menus up and down until you are satisfied with their positioning. 44 <br /> 45 <br /> 46 If you find the menus are not updating properly click on the refresh button. 47 <br /> 48 <form method='post' id='menurefresh' action='".$_SERVER['PHP_SELF']."'> 49 <div><input type='submit' class='button' name='reset' value='Refresh' /></div> 50 </form> 51 <br /> 52 <div class='indent'><span style='color:red'>*</span> indicates menu visibility has been modified</div> 53 "; 54 55 $ns -> tablerender("Menus Help", $text); 56 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |