added select all link; fixed some HTML errors
This commit is contained in:
parent
9ce720e8c5
commit
9fac30304d
|
@ -228,13 +228,13 @@ if ($user_count != 0) {
|
||||||
else
|
else
|
||||||
echo "<th>\n";
|
echo "<th>\n";
|
||||||
echo "<a class=\"userlist\" href=\"listusers.php?norefresh=1&sortattrib=" .
|
echo "<a class=\"userlist\" href=\"listusers.php?norefresh=1&sortattrib=" .
|
||||||
strtolower($attr_array[$k]) . $searchfilter . "&trans_primary=" . $trans_primary . "\">" .
|
strtolower($attr_array[$k]) . $searchfilter . "&trans_primary=" . $trans_primary . "\">" .
|
||||||
$desc_array[$k] . "</a></th>\n";
|
$desc_array[$k] . "</a></th>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<tr class=\"userlist\"><th width=22 height=34></th><th>\n";
|
echo "<tr class=\"userlist\"><th width=22 height=34></th>\n<th>\n";
|
||||||
echo "<input type=\"submit\" name=\"apply_filter\" value=\"" . _("Filter") . "\">";
|
echo "<input type=\"submit\" name=\"apply_filter\" value=\"" . _("Filter") . "\">\n";
|
||||||
echo "</th>\n";
|
echo "</th>\n";
|
||||||
|
|
||||||
// print input boxes for filters
|
// print input boxes for filters
|
||||||
|
@ -266,10 +266,17 @@ if ($user_count != 0) {
|
||||||
echo("<tr class=\"userlist\"\nonMouseOver=\"user_over(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
echo("<tr class=\"userlist\"\nonMouseOver=\"user_over(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onMouseOut=\"user_out(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
"onMouseOut=\"user_out(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
"onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\"\n" .
|
||||||
"onDblClick=\"parent.frames[1].location.href='../account/useredit.php?type=user&DN=" . $userinfo[$i]["dn"] . "'\">\n" .
|
"onDblClick=\"parent.frames[1].location.href='../account/useredit.php?type=user&DN=" . $userinfo[$i]["dn"] . "'\">\n");
|
||||||
"<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
|
// check boxes if selectall = "yes"
|
||||||
$userinfo[$i]["dn"] . "\">\n</td>\n" .
|
if ($_GET['selectall'] == "yes") {
|
||||||
"<td align='center'>\n<a href=\"../account/useredit.php?type=user&DN='" . $userinfo[$i]["dn"] . "'\">" .
|
echo "<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
|
||||||
|
$userinfo[$i]["dn"] . "\" checked>\n</td>\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td height=22>\n<input onClick=\"user_click(this, '" . $userinfo[$i]["dn"] . "')\" type=\"checkbox\" name=\"" .
|
||||||
|
$userinfo[$i]["dn"] . "\">\n</td>\n";
|
||||||
|
}
|
||||||
|
echo ("<td align='center'>\n<a href=\"../account/useredit.php?type=user&DN='" . $userinfo[$i]["dn"] . "'\">" .
|
||||||
_("Edit") . "</a>\n</td>\n");
|
_("Edit") . "</a>\n</td>\n");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td>\n");
|
echo ("<td>\n");
|
||||||
|
@ -289,6 +296,14 @@ if ($user_count != 0) {
|
||||||
}
|
}
|
||||||
echo("</tr>\n");
|
echo("</tr>\n");
|
||||||
}
|
}
|
||||||
|
// display select all link
|
||||||
|
$colspan = sizeof($attr_array) + 1;
|
||||||
|
echo "<tr class=\"userlist\">\n";
|
||||||
|
echo "<td align=\"center\"><img src=\"../../graphics/select.jpg\" alt=\"select all\"></td>\n";
|
||||||
|
echo "<td colspan=$colspan> <a href=\"listusers.php?norefresh=1&page=" . $page . "&sortattrib=" . $sortattrib .
|
||||||
|
$searchfilter . "&trans_primary=" . $trans_primary . "&selectall=yes\">" .
|
||||||
|
"<font color=\"black\"><b>" . _("Select all") . "</b></font></a></td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
echo ("</table>\n");
|
echo ("</table>\n");
|
||||||
|
|
||||||
|
@ -364,13 +379,13 @@ function draw_navigation_bar ($user_count) {
|
||||||
echo ("<td class=\"userlist-navbar\">\n<input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\">\n ");
|
echo ("<td class=\"userlist-navbar\">\n<input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\">\n ");
|
||||||
if ($page != 1)
|
if ($page != 1)
|
||||||
echo ("<a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
echo ("<a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
||||||
($page - 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary . "\"><=</a>\n");
|
($page - 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary . "\"><=</a>\n");
|
||||||
else echo ("<=");
|
else echo ("<=");
|
||||||
echo (" ");
|
echo (" ");
|
||||||
|
|
||||||
if ($page < ($user_count / $max_pageentrys))
|
if ($page < ($user_count / $max_pageentrys))
|
||||||
echo ("<a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
echo ("<a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
||||||
($page + 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary . "\">=></a>\n");
|
($page + 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary . "\">=></a>\n");
|
||||||
else echo ("=>");
|
else echo ("=>");
|
||||||
echo ("</td>\n");
|
echo ("</td>\n");
|
||||||
echo ("<td class=\"userlist-navbartext\">\n");
|
echo ("<td class=\"userlist-navbartext\">\n");
|
||||||
|
@ -382,7 +397,7 @@ function draw_navigation_bar ($user_count) {
|
||||||
for ($i = 0; $i < ($user_count / $max_pageentrys); $i++) {
|
for ($i = 0; $i < ($user_count / $max_pageentrys); $i++) {
|
||||||
if ($i == $page - 1) echo (" " . ($i + 1));
|
if ($i == $page - 1) echo (" " . ($i + 1));
|
||||||
else echo (" <a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
else echo (" <a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
||||||
($i + 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary .
|
($i + 1) . "&sortattrib=" . $sortattrib . $searchfilter . "&trans_primary=" . $trans_primary .
|
||||||
"\">" . ($i + 1) . "</a>\n");
|
"\">" . ($i + 1) . "</a>\n");
|
||||||
}
|
}
|
||||||
echo ("</td></tr>\n</table>\n");
|
echo ("</td></tr>\n</table>\n");
|
||||||
|
|
Loading…
Reference in New Issue