fixed errors in CSS, synchronized style of user list with other lists
This commit is contained in:
parent
c48945f39b
commit
9f9641160a
|
@ -26,7 +26,7 @@ $Id$
|
|||
// mouseOver function
|
||||
function user_over(list, box) {
|
||||
cbox = document.getElementsByName(box)[0];
|
||||
if (cbox.checked == false) list.setAttribute('class','userlist_over', 0);
|
||||
if (cbox.checked == false) list.setAttribute('class','userlist-over', 0);
|
||||
}
|
||||
|
||||
// mouseOut function
|
||||
|
@ -40,11 +40,11 @@ function user_click(list, box) {
|
|||
cbox = document.getElementsByName(box)[0];
|
||||
if (cbox.checked == true) {
|
||||
cbox.checked = false;
|
||||
list.setAttribute('class','userlist_over', 0);
|
||||
list.setAttribute('class','userlist-over', 0);
|
||||
}
|
||||
else {
|
||||
cbox.checked = true;
|
||||
list.setAttribute('class','userlist_checked', 0);
|
||||
list.setAttribute('class','userlist-checked', 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -76,53 +76,56 @@ color:green;
|
|||
table.userlist {
|
||||
border-width:1px;
|
||||
border-style:solid;
|
||||
border-color:#000000;
|
||||
border-color:#9b8523;
|
||||
}
|
||||
|
||||
/* color of entry rows */
|
||||
tr.userlist {
|
||||
background-color:#FFFFEE;
|
||||
background-color:#fffde2;
|
||||
}
|
||||
|
||||
/* color of head row */
|
||||
tr.userlist_head {
|
||||
background-color:#FFFFAA;
|
||||
tr.userlist-head {
|
||||
background-color:#fff2a3;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
/* color of rows on mouseOver */
|
||||
tr.userlist_over {
|
||||
tr.userlist-over {
|
||||
background-color:#CCCCFF;
|
||||
}
|
||||
|
||||
/* color of checked rows */
|
||||
tr.userlist_checked {
|
||||
background-color:#FFCCCC;
|
||||
tr.userlist-checked {
|
||||
background-color:#f27c71;
|
||||
}
|
||||
|
||||
/* color for active page digit */
|
||||
td.userlist_activepage {
|
||||
color:violet;
|
||||
td.userlist-activepage {
|
||||
color:red;
|
||||
}
|
||||
|
||||
/* style of navigation bar */
|
||||
td.userlist_navbar {
|
||||
td.userlist-navbar {
|
||||
color:#AAAAAA;
|
||||
}
|
||||
|
||||
table.userlist_navbar {
|
||||
background-color:#DDDDDD;
|
||||
table.userlist-navbar {
|
||||
background-color:#fff2a3;
|
||||
border-width:1px;
|
||||
border-style:solid;
|
||||
border-color:#9b8523;
|
||||
}
|
||||
|
||||
td.userlist_navbartext {
|
||||
td.userlist-navbartext {
|
||||
color:green;
|
||||
font-family:Verdana;
|
||||
font-size:10px;
|
||||
font-family:Verdana,sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
/* style of active column */
|
||||
th.userlist_activecolumn {
|
||||
background-color:#DDDDAC;
|
||||
th.userlist-activecolumn {
|
||||
background-color:#fffde2;
|
||||
}
|
||||
|
||||
|
||||
|
@ -142,8 +145,8 @@ table.groupnav {
|
|||
/* text in navigation bar */
|
||||
td.groupnav-text {
|
||||
color:green;
|
||||
font-family:Verdana;
|
||||
font-size:10px;
|
||||
font-family:Verdana,sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
/* color for active page digit */
|
||||
|
@ -199,8 +202,8 @@ table.hostnav {
|
|||
/* text in navigation bar */
|
||||
td.hostnav-text {
|
||||
color:green;
|
||||
font-family:Verdana;
|
||||
font-size:10px;
|
||||
font-family:Verdana,sans-serif;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
/* color for active page digit */
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2003 Leonhard Walchshäusl
|
||||
Copyright (C) 2003 Roland Gruber, Leonhard Walchshäusl
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -125,11 +125,11 @@ for ($k = 0; $k < sizeof($desc_array); $k++) {
|
|||
// Users have the attribute "*"
|
||||
if ($_SESSION['config']->get_samba3() == "yes") {
|
||||
// Samba users have the attribute "sambaSamAccount" and end with "$"
|
||||
$filter = "(&(&(|(objectClass=posixAccount) (objectClass=sambaSamAccount)) (!(uid=*$)))";
|
||||
$filter = "(&(objectClass=sambaSamAccount) (!(uid=*$))";
|
||||
}
|
||||
else {
|
||||
// Samba users have the attribute "sambaAccount" and end with "$"
|
||||
$filter = "(&(&(|(objectClass=posixAccount) (objectClass=sambaAccount)) (!(uid=*$)))";
|
||||
$filter = "(&(objectClass=sambaAccount) (!(uid=*$))";
|
||||
}
|
||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||
if ($_POST["filter" . strtolower($attr_array[$k])])
|
||||
|
@ -165,7 +165,7 @@ if ($_SESSION["userlist"] && $_GET["norefresh"]) {
|
|||
}
|
||||
else
|
||||
StatusMessage("ERROR",
|
||||
_("LDAP Search failed! Please check your preferences."),
|
||||
_("LDAP Search failed! Please check your preferences."),
|
||||
_("No Groups found!"));
|
||||
}
|
||||
|
||||
|
@ -186,27 +186,27 @@ if ($user_count != 0) {
|
|||
echo "<table rules=\"all\" class=\"userlist\" width=\"100%\">\n";
|
||||
|
||||
|
||||
echo "<tr class=\"userlist_head\"><th width=22 height=34></th><th></th>\n";
|
||||
echo "<tr class=\"userlist-head\"><th width=22 height=34></th><th></th>\n";
|
||||
// table header
|
||||
for ($k = 0; $k < sizeof ($desc_array); $k++) {
|
||||
if ($sortattrib == strtolower($attr_array[$k]))
|
||||
echo "<th class=\"userlist_activecolumn\">\n";
|
||||
echo "<th class=\"userlist-activecolumn\">\n";
|
||||
else
|
||||
echo "<th>\n";
|
||||
echo "<a class=\"userlist\" href=\"listusers.php?norefresh=1&sortattrib=" .
|
||||
strtolower($attr_array[$k]) . $searchfilter . "\">" .
|
||||
strtolower($attr_array[$k]) . $searchfilter . "\">" .
|
||||
$desc_array[$k] . "</a></th>\n";
|
||||
}
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr class=\"test\"><th width=22 height=34></th><th>\n";
|
||||
echo "<tr class=\"userlist\"><th width=22 height=34></th><th>\n";
|
||||
echo "<input type=\"submit\" name=\"apply_filter\" value=\"" . _("Apply") . "\">";
|
||||
echo "</th>\n";
|
||||
|
||||
// print input boxes for filters
|
||||
for ($k = 0; $k < sizeof ($desc_array); $k++) {
|
||||
echo "<th>";
|
||||
echo ("<input type=\"text\" name=\"filter" . strtolower ($attr_array[$k]) .
|
||||
echo ("<input type=\"text\" name=\"filter" . strtolower ($attr_array[$k]) .
|
||||
"\" value=\"" . $_POST["filter" . strtolower($attr_array[$k])] . "\">");
|
||||
echo "</th>";
|
||||
}
|
||||
|
@ -214,8 +214,8 @@ if ($user_count != 0) {
|
|||
|
||||
if ($user_count != 0) {
|
||||
// print user list
|
||||
$userinfo = array_slice ($userinfo, ($page - 1) * $max_pageentrys,
|
||||
$max_pageentrys);
|
||||
$userinfo = array_slice ($userinfo, ($page - 1) * $max_pageentrys,
|
||||
$max_pageentrys);
|
||||
for ($i = 0; $i < sizeof ($userinfo); $i++) { // ignore last entry in array which is "count"
|
||||
echo("<tr class=\"userlist\" onMouseOver=\"user_over(this, '" . $userinfo[$i]["dn"] . "')\"" .
|
||||
" onMouseOut=\"user_out(this, '" . $userinfo[$i]["dn"] . "')\"" .
|
||||
|
@ -283,9 +283,9 @@ function draw_navigation_bar ($user_count) {
|
|||
global $sortattrib;
|
||||
global $searchfilter;
|
||||
|
||||
echo ("<table class=\"userlist_navbar\" width=\"100%\" border=\"0\"\n");
|
||||
echo ("<table class=\"userlist-navbar\" width=\"100%\" border=\"0\"\n");
|
||||
echo ("<tr>");
|
||||
echo ("<td class=\"userlist_navbar\"><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
||||
echo ("<td class=\"userlist-navbar\"><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
||||
if ($page != 1)
|
||||
echo ("<a class=\"userlist\" href=\"listusers.php?norefresh=1&page=" .
|
||||
($page - 1) . "&sortattrib=" . $sortattrib .
|
||||
|
@ -300,12 +300,12 @@ function draw_navigation_bar ($user_count) {
|
|||
else
|
||||
echo ("=>");
|
||||
echo ("</td>");
|
||||
echo ("<td class=\"userlist_navbartext\">");
|
||||
echo ("<td class=\"userlist-navbartext\">");
|
||||
echo " " . $user_count . " " . _("Users found");
|
||||
echo ("</td>");
|
||||
|
||||
|
||||
echo ("<td class=\"userlist_activepage\" align=\"right\">");
|
||||
echo ("<td class=\"userlist-activepage\" align=\"right\">");
|
||||
for ($i = 0; $i < ($user_count / $max_pageentrys); $i++) {
|
||||
if ($i == $page - 1)
|
||||
echo (" " . ($i + 1));
|
||||
|
|
Loading…
Reference in New Issue