瀏覽代碼

Groups: Add window title.

Nate 5 年之前
父節點
當前提交
abbf295473
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 1
      core/groups/group_edit.php
  2. 3 4
      core/groups/groups.php

+ 2 - 1
core/groups/group_edit.php

@@ -27,9 +27,9 @@
 //includes
 //includes
 	require_once "root.php";
 	require_once "root.php";
 	require_once "resources/require.php";
 	require_once "resources/require.php";
+	require_once "resources/check_auth.php";
 
 
 //check permissions
 //check permissions
-	require_once "resources/check_auth.php";
 	if (permission_exists('group_add') || permission_exists('group_edit')) {
 	if (permission_exists('group_add') || permission_exists('group_edit')) {
 		//access granted
 		//access granted
 	}
 	}
@@ -152,6 +152,7 @@
 	$token = $object->create($_SERVER['PHP_SELF']);
 	$token = $object->create($_SERVER['PHP_SELF']);
 
 
 //show the header
 //show the header
+	$document['title'] = $text['title-group'];
 	require_once "resources/header.php";
 	require_once "resources/header.php";
 
 
 //show the content
 //show the content

+ 3 - 4
core/groups/groups.php

@@ -130,12 +130,15 @@
 	$token = $object->create($_SERVER['PHP_SELF']);
 	$token = $object->create($_SERVER['PHP_SELF']);
 
 
 //include the header
 //include the header
+	$document['title'] = $text['title-groups'];
 	require_once "resources/header.php";
 	require_once "resources/header.php";
 
 
 //show the content
 //show the content
 	echo "<div class='action_bar' id='action_bar'>\n";
 	echo "<div class='action_bar' id='action_bar'>\n";
 	echo "	<div class='heading'><b>".$text['title-groups']." (".$num_rows.")</b></div>\n";
 	echo "	<div class='heading'><b>".$text['title-groups']." (".$num_rows.")</b></div>\n";
 	echo "	<div class='actions'>\n";
 	echo "	<div class='actions'>\n";
+	echo button::create(['type'=>'button','label'=>$text['button-users'],'icon'=>$_SESSION['theme']['button_icon_users'],'onclick'=>"window.location='../users/users.php'"]);
+	echo button::create(['type'=>'button','label'=>$text['button-restore_default'],'icon'=>$_SESSION['theme']['button_icon_sync'],'style'=>'margin-right: 15px;','onclick'=>"window.location='permissions_default.php'"]);
 	if (permission_exists('group_add')) {
 	if (permission_exists('group_add')) {
 		echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'group_edit.php']);
 		echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'group_edit.php']);
 	}
 	}
@@ -157,10 +160,6 @@
 			echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
 			echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
 		}
 		}
 	}
 	}
-
-	echo button::create(['type'=>'button','label'=>$text['button-users'],'icon'=>$_SESSION['theme']['button_icon_users'],'onclick'=>"window.location='../users/users.php'"]);
-	echo button::create(['type'=>'button','label'=>$text['button-restore_default'],'icon'=>$_SESSION['theme']['button_icon_sync'],'onclick'=>"window.location='permissions_default.php'"]);
-
 	echo 		"<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
 	echo 		"<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search)."\" placeholder=\"".$text['label-search']."\" onkeydown='list_search_reset();'>";
 	echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]);
 	echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]);
 	echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'groups.php','style'=>($search == '' ? 'display: none;' : null)]);
 	echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'groups.php','style'=>($search == '' ? 'display: none;' : null)]);