changed color of group/host lists
This commit is contained in:
parent
eb33604b2f
commit
e0d693ed2f
|
@ -67,18 +67,18 @@ else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please che
|
||||||
|
|
||||||
// print host table header
|
// print host table header
|
||||||
echo "<table width=\"100%\">\n";
|
echo "<table width=\"100%\">\n";
|
||||||
echo "<tr><th class=\"userlist\" width=12></th>";
|
echo "<tr><th class=\"grouplist\" width=12></th>";
|
||||||
// table header
|
// table header
|
||||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
echo "<th class=\"userlist\">" . $desc_array[$k] . "</th>";
|
echo "<th class=\"grouplist\">" . $desc_array[$k] . "</th>";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
echo ("<form action=\"../templates/account.php?type=group\" method=\"post\">\n");
|
echo ("<form action=\"../templates/account.php?type=group\" method=\"post\">\n");
|
||||||
// print group list
|
// print group list
|
||||||
for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count"
|
for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count"
|
||||||
echo("<tr><td class=\"userlist\"><input type=\"radio\" name=\"DN\" value=\"" . $info[$i]["dn"] . "\"></td>");
|
echo("<tr><td class=\"grouplist\"><input type=\"radio\" name=\"DN\" value=\"" . $info[$i]["dn"] . "\"></td>");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td class=\"userlist\">");
|
echo ("<td class=\"grouplist\">");
|
||||||
// print all attribute entries seperated by "; "
|
// print all attribute entries seperated by "; "
|
||||||
if (sizeof($info[$i][strtolower($attr_array[$k])]) > 0) {
|
if (sizeof($info[$i][strtolower($attr_array[$k])]) > 0) {
|
||||||
array_shift($info[$i][strtolower($attr_array[$k])]);
|
array_shift($info[$i][strtolower($attr_array[$k])]);
|
||||||
|
|
|
@ -68,17 +68,17 @@ else echo ("<br><br><font color=\"red\"><b>" . _("LDAP Search failed! Please che
|
||||||
echo ("<form action=\"../templates/account.php?type=host\" method=\"post\">\n");
|
echo ("<form action=\"../templates/account.php?type=host\" method=\"post\">\n");
|
||||||
// print host table
|
// print host table
|
||||||
echo "<table width=\"100%\">\n";
|
echo "<table width=\"100%\">\n";
|
||||||
echo "<tr><th class=\"userlist\" width=12></th>";
|
echo "<tr><th class=\"hostlist\" width=12></th>";
|
||||||
// table header
|
// table header
|
||||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
echo "<th class=\"userlist\">" . $desc_array[$k] . "</th>";
|
echo "<th class=\"hostlist\">" . $desc_array[$k] . "</th>";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
// print host list
|
// print host list
|
||||||
for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count"
|
for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count"
|
||||||
echo("<tr><td class=\"userlist\"><input type=\"radio\" name=\"DN\" value=\"" . $info[$i]["dn"] . "\"></td>");
|
echo("<tr><td class=\"hostlist\"><input type=\"radio\" name=\"DN\" value=\"" . $info[$i]["dn"] . "\"></td>");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td class=\"userlist\">");
|
echo ("<td class=\"hostlist\">");
|
||||||
// print all attribute entries seperated by "; "
|
// print all attribute entries seperated by "; "
|
||||||
if (sizeof($info[$i][strtolower($attr_array[$k])]) > 0) {
|
if (sizeof($info[$i][strtolower($attr_array[$k])]) > 0) {
|
||||||
array_shift($info[$i][strtolower($attr_array[$k])]);
|
array_shift($info[$i][strtolower($attr_array[$k])]);
|
||||||
|
|
|
@ -56,3 +56,49 @@ td.userlist {
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* table style for grouplist.php
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
th.grouplist {
|
||||||
|
border-width:1px;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:#B7C7B7;
|
||||||
|
padding:10px;
|
||||||
|
background-color:#a8c3ff;
|
||||||
|
font-size:14px;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.grouplist {
|
||||||
|
border-width:1px;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:#C7D7C7;
|
||||||
|
padding:4px;
|
||||||
|
background-color:#d6e3ff;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* table style for hostlist.php
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
th.hostlist {
|
||||||
|
border-width:1px;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:#B7C7B7;
|
||||||
|
padding:10px;
|
||||||
|
background-color:#ffc4ba;
|
||||||
|
font-size:14px;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.hostlist {
|
||||||
|
border-width:1px;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:#C7D7C7;
|
||||||
|
padding:4px;
|
||||||
|
background-color:#ffe2dd;
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue