fixed HTML errors
This commit is contained in:
parent
04987de624
commit
43d99b53f4
|
@ -52,7 +52,7 @@ function user_click(list, box) {
|
||||||
// mouseOver function
|
// mouseOver function
|
||||||
function group_over(list, box) {
|
function group_over(list, box) {
|
||||||
cbox = document.getElementsByName(box)[0];
|
cbox = document.getElementsByName(box)[0];
|
||||||
if (cbox.checked == false) list.setAttribute('class','grouplist_over', 0);
|
if (cbox.checked == false) list.setAttribute('class','grouplist-over', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mouseOut function
|
// mouseOut function
|
||||||
|
@ -66,11 +66,11 @@ function group_click(list, box) {
|
||||||
cbox = document.getElementsByName(box)[0];
|
cbox = document.getElementsByName(box)[0];
|
||||||
if (cbox.checked == true) {
|
if (cbox.checked == true) {
|
||||||
cbox.checked = false;
|
cbox.checked = false;
|
||||||
list.setAttribute('class','grouplist_over', 0);
|
list.setAttribute('class','grouplist-over', 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cbox.checked = true;
|
cbox.checked = true;
|
||||||
list.setAttribute('class','grouplist_checked', 0);
|
list.setAttribute('class','grouplist-checked', 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ function group_click(list, box) {
|
||||||
// mouseOver function
|
// mouseOver function
|
||||||
function host_over(list, box) {
|
function host_over(list, box) {
|
||||||
cbox = document.getElementsByName(box)[0];
|
cbox = document.getElementsByName(box)[0];
|
||||||
if (cbox.checked == false) list.setAttribute('class','hostlist_over', 0);
|
if (cbox.checked == false) list.setAttribute('class','hostlist-over', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mouseOut function
|
// mouseOut function
|
||||||
|
@ -92,10 +92,10 @@ function host_click(list, box) {
|
||||||
cbox = document.getElementsByName(box)[0];
|
cbox = document.getElementsByName(box)[0];
|
||||||
if (cbox.checked == true) {
|
if (cbox.checked == true) {
|
||||||
cbox.checked = false;
|
cbox.checked = false;
|
||||||
list.setAttribute('class','hostlist_over', 0);
|
list.setAttribute('class','hostlist-over', 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cbox.checked = true;
|
cbox.checked = true;
|
||||||
list.setAttribute('class','hostlist_checked', 0);
|
list.setAttribute('class','hostlist-checked', 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,14 +140,14 @@ table.groupnav {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* text in navigation bar */
|
/* text in navigation bar */
|
||||||
td.groupnav_text {
|
td.groupnav-text {
|
||||||
color:green;
|
color:green;
|
||||||
font-family:Verdana;
|
font-family:Verdana;
|
||||||
font-size:10px;
|
font-size:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color for active page digit */
|
/* color for active page digit */
|
||||||
td.groupnav_activepage {
|
td.groupnav-activepage {
|
||||||
color:red;
|
color:red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,22 +164,22 @@ tr.grouplist {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of head row */
|
/* color of head row */
|
||||||
tr.grouplist_head {
|
tr.grouplist-head {
|
||||||
background-color:#a8c3ff;
|
background-color:#a8c3ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of sorted column in head row */
|
/* color of sorted column in head row */
|
||||||
th.grouplist_sort {
|
th.grouplist-sort {
|
||||||
background-color:#d6e3ff;
|
background-color:#d6e3ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of rows on mouseOver */
|
/* color of rows on mouseOver */
|
||||||
tr.grouplist_over {
|
tr.grouplist-over {
|
||||||
background-color:#C7E7C7;
|
background-color:#C7E7C7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of checked rows */
|
/* color of checked rows */
|
||||||
tr.grouplist_checked {
|
tr.grouplist-checked {
|
||||||
background-color:#f27c71;
|
background-color:#f27c71;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,14 +197,14 @@ table.hostnav {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* text in navigation bar */
|
/* text in navigation bar */
|
||||||
td.hostnav_text {
|
td.hostnav-text {
|
||||||
color:green;
|
color:green;
|
||||||
font-family:Verdana;
|
font-family:Verdana;
|
||||||
font-size:10px;
|
font-size:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color for active page digit */
|
/* color for active page digit */
|
||||||
td.hostnav_activepage {
|
td.hostnav-activepage {
|
||||||
color:red;
|
color:red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,22 +221,22 @@ tr.hostlist {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of head row */
|
/* color of head row */
|
||||||
tr.hostlist_head {
|
tr.hostlist-head {
|
||||||
background-color:#ffc4ba;
|
background-color:#ffc4ba;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of sorted column in head row */
|
/* color of sorted column in head row */
|
||||||
th.hostlist_sort {
|
th.hostlist-sort {
|
||||||
background-color:#ffe2dd;
|
background-color:#ffe2dd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of rows on mouseOver */
|
/* color of rows on mouseOver */
|
||||||
tr.hostlist_over {
|
tr.hostlist-over {
|
||||||
background-color:#ffe265;
|
background-color:#ffe265;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* color of checked rows */
|
/* color of checked rows */
|
||||||
tr.hostlist_checked {
|
tr.hostlist-checked {
|
||||||
background-color:#f27c71;
|
background-color:#f27c71;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ if ($_POST['new_group'] || $_POST['del_group']){
|
||||||
// search for checkboxes
|
// search for checkboxes
|
||||||
$groups = array_keys($_POST, "on");
|
$groups = array_keys($_POST, "on");
|
||||||
$groupstr = implode(";", $groups);
|
$groupstr = implode(";", $groups);
|
||||||
echo("<meta http-equiv=\"refresh\" content=\"0; URL=../delete.php?type=group&DN='$groupstr'\">");
|
echo("<meta http-equiv=\"refresh\" content=\"0; URL=../delete.php?type=group&DN='$groupstr'\">");
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -135,11 +135,11 @@ echo ("<br>");
|
||||||
|
|
||||||
// print group table header
|
// print group table header
|
||||||
echo "<table rules=\"all\" class=\"grouplist\" width=\"100%\">\n";
|
echo "<table rules=\"all\" class=\"grouplist\" width=\"100%\">\n";
|
||||||
echo "<tr class=\"grouplist_head\"><th width=22 height=34></th><th></th>";
|
echo "<tr class=\"grouplist-head\"><th width=22 height=34></th><th></th>";
|
||||||
// table header
|
// table header
|
||||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
if (strtolower($attr_array[$k]) == $sort) {
|
if (strtolower($attr_array[$k]) == $sort) {
|
||||||
echo "<th class=\"grouplist_sort\"><a href=\"listgroups.php?".
|
echo "<th class=\"grouplist-sort\"><a href=\"listgroups.php?".
|
||||||
"sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . "</a></th>";
|
"sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . "</a></th>";
|
||||||
}
|
}
|
||||||
else echo "<th><a href=\"listgroups.php?".
|
else echo "<th><a href=\"listgroups.php?".
|
||||||
|
@ -170,9 +170,9 @@ for ($i = $table_begin; $i < $table_end; $i++) {
|
||||||
echo("<tr class=\"grouplist\" onMouseOver=\"group_over(this, '" . $info[$i]["dn"] . "')\"" .
|
echo("<tr class=\"grouplist\" onMouseOver=\"group_over(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onMouseOut=\"group_out(this, '" . $info[$i]["dn"] . "')\"" .
|
" onMouseOut=\"group_out(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onClick=\"group_click(this, '" . $info[$i]["dn"] . "')\"" .
|
" onClick=\"group_click(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onDblClick=parent.frames[1].location.href=\"../account.php?type=group&DN='" . $info[$i]["dn"] . "'\">" .
|
" onDblClick=parent.frames[1].location.href=\"../account.php?type=group&DN='" . $info[$i]["dn"] . "'\">" .
|
||||||
" <td height=22><input onClick=\"group_click(this, '" . $info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $info[$i]["dn"] . "\"></td>" .
|
" <td height=22><input onClick=\"group_click(this, '" . $info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $info[$i]["dn"] . "\"></td>" .
|
||||||
" <td align='center'><a href=\"../account.php?type=group&DN='" . $info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
" <td align='center'><a href=\"../account.php?type=group&DN='" . $info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td>");
|
echo ("<td>");
|
||||||
// print all attribute entries seperated by "; "
|
// print all attribute entries seperated by "; "
|
||||||
|
@ -187,7 +187,7 @@ for ($i = $table_begin; $i < $table_end; $i++) {
|
||||||
$dn = $_SESSION["ldap"]->search_username($user); // DN entry
|
$dn = $_SESSION["ldap"]->search_username($user); // DN entry
|
||||||
// if user was found in LDAP make link, otherwise just print name
|
// if user was found in LDAP make link, otherwise just print name
|
||||||
if ($dn) {
|
if ($dn) {
|
||||||
$linklist[$d] = "<a href=../account.php?type=user&DN='" . $dn . "' >" .
|
$linklist[$d] = "<a href=../account.php?type=user&DN='" . $dn . "' >" .
|
||||||
$info[$i][strtolower($attr_array[$k])][$d] . "</a>";
|
$info[$i][strtolower($attr_array[$k])][$d] . "</a>";
|
||||||
}
|
}
|
||||||
else $linklist[$d] = $user;
|
else $linklist[$d] = $user;
|
||||||
|
@ -232,27 +232,27 @@ function draw_navigation_bar ($count) {
|
||||||
echo ("<tr>\n");
|
echo ("<tr>\n");
|
||||||
echo ("<td><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
echo ("<td><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
||||||
if ($page != 1)
|
if ($page != 1)
|
||||||
echo ("<a href=\"listgroups.php?page=" . ($page - 1) . "&sort=" . $sort . $searchfilter . "\"><=</a>\n");
|
echo ("<a href=\"listgroups.php?page=" . ($page - 1) . "&sort=" . $sort . $searchfilter . "\"><=</a>\n");
|
||||||
else
|
else
|
||||||
echo ("<=");
|
echo ("<=");
|
||||||
echo (" ");
|
echo (" ");
|
||||||
|
|
||||||
if ($page < ($count / $max_pageentrys))
|
if ($page < ($count / $max_pageentrys))
|
||||||
echo ("<a href=\"listgroups.php?page=" . ($page + 1) . "&sort=" . $sort . $searchfilter . "\">=></a>\n");
|
echo ("<a href=\"listgroups.php?page=" . ($page + 1) . "&sort=" . $sort . $searchfilter . "\">=></a>\n");
|
||||||
else
|
else
|
||||||
echo ("=></td>");
|
echo ("=></td>");
|
||||||
|
|
||||||
echo ("<td class=\"groupnav_text\">");
|
echo ("<td class=\"groupnav-text\">");
|
||||||
echo " " . $count . " " . _("Group(s) found");
|
echo " " . $count . " " . _("Group(s) found");
|
||||||
echo ("</td>");
|
echo ("</td>");
|
||||||
|
|
||||||
echo ("<td class=\"groupnav_activepage\" align=\"right\">");
|
echo ("<td class=\"groupnav-activepage\" align=\"right\">");
|
||||||
for ($i = 0; $i < ($count / $max_pageentrys); $i++) {
|
for ($i = 0; $i < ($count / $max_pageentrys); $i++) {
|
||||||
if ($i == $page - 1)
|
if ($i == $page - 1)
|
||||||
echo (" " . ($i + 1));
|
echo (" " . ($i + 1));
|
||||||
else
|
else
|
||||||
echo (" <a href=\"listgroups.php?page=" . ($i + 1) .
|
echo (" <a href=\"listgroups.php?page=" . ($i + 1) .
|
||||||
"&sort=" . $sort . "\">" . ($i + 1) . "</a>\n");
|
"&sort=" . $sort . "\">" . ($i + 1) . "</a>\n");
|
||||||
}
|
}
|
||||||
echo ("</td></tr></table>\n");
|
echo ("</td></tr></table>\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ if ($_POST['new_host'] || $_POST['del_host']){
|
||||||
// search for checkboxes
|
// search for checkboxes
|
||||||
$hosts = array_keys($_POST, "on");
|
$hosts = array_keys($_POST, "on");
|
||||||
$hoststr = implode(";", $hosts);
|
$hoststr = implode(";", $hosts);
|
||||||
echo("<meta http-equiv=\"refresh\" content=\"0; URL=../delete.php?type=host&DN='$hoststr'\">");
|
echo("<meta http-equiv=\"refresh\" content=\"0; URL=../delete.php?type=host&DN='$hoststr'\">");
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@ -135,11 +135,11 @@ echo ("<br>");
|
||||||
|
|
||||||
// print host table header
|
// print host table header
|
||||||
echo "<table rules=\"all\" class=\"hostlist\" width=\"100%\">\n";
|
echo "<table rules=\"all\" class=\"hostlist\" width=\"100%\">\n";
|
||||||
echo "<tr class=\"hostlist_head\"><th width=22 height=34></th><th></th>";
|
echo "<tr class=\"hostlist-head\"><th width=22 height=34></th><th></th>";
|
||||||
// table header
|
// table header
|
||||||
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
for ($k = 0; $k < sizeof($desc_array); $k++) {
|
||||||
if (strtolower($attr_array[$k]) == $sort) {
|
if (strtolower($attr_array[$k]) == $sort) {
|
||||||
echo "<th class=\"hostlist_sort\"><a href=\"listhosts.php?".
|
echo "<th class=\"hostlist-sort\"><a href=\"listhosts.php?".
|
||||||
"sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . "</a></th>";
|
"sort=" . strtolower($attr_array[$k]) . $searchfilter . "\">" . $desc_array[$k] . "</a></th>";
|
||||||
}
|
}
|
||||||
else echo "<th><a href=\"listhosts.php?".
|
else echo "<th><a href=\"listhosts.php?".
|
||||||
|
@ -170,9 +170,9 @@ for ($i = $table_begin; $i < $table_end; $i++) {
|
||||||
echo("<tr class=\"hostlist\" onMouseOver=\"host_over(this, '" . $info[$i]["dn"] . "')\"" .
|
echo("<tr class=\"hostlist\" onMouseOver=\"host_over(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onMouseOut=\"host_out(this, '" . $info[$i]["dn"] . "')\"" .
|
" onMouseOut=\"host_out(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onClick=\"host_click(this, '" . $info[$i]["dn"] . "')\"" .
|
" onClick=\"host_click(this, '" . $info[$i]["dn"] . "')\"" .
|
||||||
" onDblClick=parent.frames[1].location.href=\"../account.php?type=host&DN='" . $info[$i]["dn"] . "'\">" .
|
" onDblClick=parent.frames[1].location.href=\"../account.php?type=host&DN='" . $info[$i]["dn"] . "'\">" .
|
||||||
" <td height=22><input onClick=\"host_click(this, '" . $info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $info[$i]["dn"] . "\"></td>" .
|
" <td height=22><input onClick=\"host_click(this, '" . $info[$i]["dn"] . "')\" type=\"checkbox\" name=\"" . $info[$i]["dn"] . "\"></td>" .
|
||||||
" <td align='center'><a href=\"../account.php?type=host&DN='" . $info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
" <td align='center'><a href=\"../account.php?type=host&DN='" . $info[$i]["dn"] . "'\">" . _("Edit") . "</a></td>");
|
||||||
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
for ($k = 0; $k < sizeof($attr_array); $k++) {
|
||||||
echo ("<td>");
|
echo ("<td>");
|
||||||
// print all attribute entries seperated by "; "
|
// print all attribute entries seperated by "; "
|
||||||
|
@ -215,17 +215,17 @@ function draw_navigation_bar ($count) {
|
||||||
echo ("<tr>\n");
|
echo ("<tr>\n");
|
||||||
echo ("<td><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
echo ("<td><input type=\"submit\" name=\"refresh\" value=\"" . _("Refresh") . "\"> ");
|
||||||
if ($page != 1)
|
if ($page != 1)
|
||||||
echo ("<a href=\"listhosts.php?page=" . ($page - 1) . "&sort=" . $sort . $searchfilter . "\"><=</a>\n");
|
echo ("<a href=\"listhosts.php?page=" . ($page - 1) . "&sort=" . $sort . $searchfilter . "\"><=</a>\n");
|
||||||
else
|
else
|
||||||
echo ("<=");
|
echo ("<=");
|
||||||
echo (" ");
|
echo (" ");
|
||||||
|
|
||||||
if ($page < ($count / $max_pageentrys))
|
if ($page < ($count / $max_pageentrys))
|
||||||
echo ("<a href=\"listhosts.php?page=" . ($page + 1) . "&sort=" . $sort . $searchfilter . "\">=></a>\n");
|
echo ("<a href=\"listhosts.php?page=" . ($page + 1) . "&sort=" . $sort . $searchfilter . "\">=></a>\n");
|
||||||
else
|
else
|
||||||
echo ("=></td>");
|
echo ("=></td>");
|
||||||
|
|
||||||
echo ("<td class=\"hostnav_text\">");
|
echo ("<td class=\"hostnav-text\">");
|
||||||
echo " " . $count . " " . _("Samba Host(s) found");
|
echo " " . $count . " " . _("Samba Host(s) found");
|
||||||
echo ("</td>");
|
echo ("</td>");
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ function draw_navigation_bar ($count) {
|
||||||
echo (" " . ($i + 1));
|
echo (" " . ($i + 1));
|
||||||
else
|
else
|
||||||
echo (" <a href=\"listhosts.php?page=" . ($i + 1) .
|
echo (" <a href=\"listhosts.php?page=" . ($i + 1) .
|
||||||
"&sort=" . $sort . "\">" . ($i + 1) . "</a>\n");
|
"&sort=" . $sort . "\">" . ($i + 1) . "</a>\n");
|
||||||
}
|
}
|
||||||
echo ("</td></tr></table>\n");
|
echo ("</td></tr></table>\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue