mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
GUI fixes on login-menu config and menu-manager help.
This commit is contained in:
@@ -19,22 +19,31 @@ if (!getperms("2")) {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
global $sql;
|
||||
if(isset($_POST['reset'])){
|
||||
for($mc=1;$mc<=5;$mc++){
|
||||
|
||||
$sql = e107::getDb();
|
||||
|
||||
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()){
|
||||
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{
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($text);
|
||||
}
|
||||
|
||||
$frm = e107::getForm();
|
||||
|
||||
$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.
|
||||
@@ -43,7 +52,8 @@ Use the dropdown menu to move the menus up and down until you are satisfied with
|
||||
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>
|
||||
<div>
|
||||
".$frm->admin_button('reset','Refresh','cancel')."</div>
|
||||
</form>
|
||||
<br />
|
||||
<div class='indent'><span class='required'>*</span> indicates menu visibility has been modified</div>
|
||||
|
@@ -111,11 +111,11 @@ if (!isset($loginPrefs['new_news']))
|
||||
$loginPrefs['new_members'] = '0';
|
||||
}
|
||||
|
||||
$frm = e107::getForm();
|
||||
|
||||
$text = '
|
||||
<div style="text-align:center">
|
||||
<form action="'.e_SELF.'" method="post">
|
||||
<table class="fborder" >
|
||||
<table class="table adminform" >
|
||||
|
||||
'.$loginClass->render_config_links().'
|
||||
|
||||
@@ -145,11 +145,12 @@ $text = '
|
||||
</tr>
|
||||
|
||||
'.$loginClass->render_config_stats().'
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="forumheader" style="text-align: center;"><input class="button" type="submit" name="update_menu" value="'.LAN_SAVE.'" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="buttons-bar center">
|
||||
<tr>
|
||||
'.$frm->admin_button('update_menu', LAN_SAVE, 'update').'
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
';
|
||||
|
Reference in New Issue
Block a user