add javascript for userlist tablehead checkall box, fix pageselector css
This commit is contained in:
@@ -52,10 +52,16 @@
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.admin-userpage {
|
||||
width: 170px;
|
||||
margin-bottom: 20px;
|
||||
.admin-userheading {
|
||||
width: auto;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.admin-pageui {
|
||||
text-align: right;
|
||||
float: right;
|
||||
width: auto;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.usertitle {
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.write(checked);
|
||||
allbox.checked = checked;
|
||||
}
|
||||
|
||||
@@ -221,10 +219,11 @@ function test_input($data) {
|
||||
<br>
|
||||
|
||||
<div class="admin-users">
|
||||
<h2 class="usertitle">Users:</h2>
|
||||
|
||||
<div class="admin-userpage">
|
||||
<p class="pagenumber">Showing results
|
||||
<div class="admin-usertitle">
|
||||
<div class="admin-userheading">
|
||||
<h2>Users:</h2>
|
||||
</div>
|
||||
<div class="admin-pageui">
|
||||
<?php
|
||||
if ($pagetype == "user") {
|
||||
$pages = countSomeUsersByStatus($db, $search, $status);
|
||||
@@ -233,8 +232,9 @@ function test_input($data) {
|
||||
}
|
||||
$countresults = $pages->fetchColumn();
|
||||
$mincount = min($listm, $countresults);
|
||||
echo "$listn to $mincount out of $countresults"; ?></p><br>
|
||||
<input type="submit" name="prev" value="prev">
|
||||
$minlist = min($listn + 1, $countresults);
|
||||
?>
|
||||
<p class="pagenumber">Current page:</p>
|
||||
<form class="admin-pageselector"
|
||||
action="<?php htmlspecialchars(basename($_SERVER['REQUEST_URI'])) ?>"
|
||||
method="post">
|
||||
@@ -253,7 +253,11 @@ function test_input($data) {
|
||||
?>
|
||||
</select>
|
||||
</form>
|
||||
<input type="submit" name="next" value="next">
|
||||
<p class="entriesshown">
|
||||
<?php
|
||||
echo "Showing results $minlist to $mincount out of $countresults";
|
||||
?>
|
||||
</div>
|
||||
</div> <br>
|
||||
|
||||
<table class="usertable">
|
||||
@@ -281,6 +285,7 @@ function test_input($data) {
|
||||
$role = $user['role'];
|
||||
$bancomment = $user['bancomment'];
|
||||
$thispage = htmlspecialchars(basename($_SERVER['REQUEST_URI']));
|
||||
$function = "checkCheckAll(document.getElementById('checkall'))";
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
@@ -289,7 +294,7 @@ function test_input($data) {
|
||||
class='checkbox-list'
|
||||
value='$userID'
|
||||
form='admin-batchform'
|
||||
onchange='checkCheckAll(document.getElementById('checkall'))'>
|
||||
onchange=" . "$function" . ">
|
||||
</td>
|
||||
<td>$username</td>
|
||||
<td>$role</td>
|
||||
@@ -319,6 +324,7 @@ function test_input($data) {
|
||||
$role = $group['status'];
|
||||
$description = $group['description'];
|
||||
$thispage = htmlspecialchars(basename($_SERVER['REQUEST_URI']));
|
||||
$function = "checkCheckAll(document.getElementById('checkall'))";
|
||||
|
||||
echo("
|
||||
<tr>
|
||||
@@ -326,7 +332,8 @@ function test_input($data) {
|
||||
name='checkbox-group[]'
|
||||
class='checkbox-list'
|
||||
value='$groupID'
|
||||
form='admin-groupbatchform'>
|
||||
form='admin-groupbatchform'
|
||||
onchange=" . "$function" . ">
|
||||
</td>
|
||||
<td>$name</td>
|
||||
<td>$role</td>
|
||||
|
||||
Reference in New Issue
Block a user