diff --git a/lam/lib/functions.js b/lam/lib/functions.js index 4ed32c5b..66b57907 100644 --- a/lam/lib/functions.js +++ b/lam/lib/functions.js @@ -52,7 +52,7 @@ function user_click(list, box) { // mouseOver function function group_over(list, box) { 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 @@ -66,11 +66,11 @@ function group_click(list, box) { cbox = document.getElementsByName(box)[0]; if (cbox.checked == true) { cbox.checked = false; - list.setAttribute('class','grouplist_over', 0); + list.setAttribute('class','grouplist-over', 0); } else { 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 function host_over(list, box) { 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 @@ -92,10 +92,10 @@ function host_click(list, box) { cbox = document.getElementsByName(box)[0]; if (cbox.checked == true) { cbox.checked = false; - list.setAttribute('class','hostlist_over', 0); + list.setAttribute('class','hostlist-over', 0); } else { cbox.checked = true; - list.setAttribute('class','hostlist_checked', 0); + list.setAttribute('class','hostlist-checked', 0); } } diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index 060fe2db..84da28d5 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -140,14 +140,14 @@ table.groupnav { } /* text in navigation bar */ -td.groupnav_text { +td.groupnav-text { color:green; font-family:Verdana; font-size:10px; } /* color for active page digit */ -td.groupnav_activepage { +td.groupnav-activepage { color:red; } @@ -164,22 +164,22 @@ tr.grouplist { } /* color of head row */ -tr.grouplist_head { +tr.grouplist-head { background-color:#a8c3ff; } /* color of sorted column in head row */ -th.grouplist_sort { +th.grouplist-sort { background-color:#d6e3ff; } /* color of rows on mouseOver */ -tr.grouplist_over { +tr.grouplist-over { background-color:#C7E7C7; } /* color of checked rows */ -tr.grouplist_checked { +tr.grouplist-checked { background-color:#f27c71; } @@ -197,14 +197,14 @@ table.hostnav { } /* text in navigation bar */ -td.hostnav_text { +td.hostnav-text { color:green; font-family:Verdana; font-size:10px; } /* color for active page digit */ -td.hostnav_activepage { +td.hostnav-activepage { color:red; } @@ -221,22 +221,22 @@ tr.hostlist { } /* color of head row */ -tr.hostlist_head { +tr.hostlist-head { background-color:#ffc4ba; } /* color of sorted column in head row */ -th.hostlist_sort { +th.hostlist-sort { background-color:#ffe2dd; } /* color of rows on mouseOver */ -tr.hostlist_over { +tr.hostlist-over { background-color:#ffe265; } /* color of checked rows */ -tr.hostlist_checked { +tr.hostlist-checked { background-color:#f27c71; } diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index bf036629..9700449d 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -50,7 +50,7 @@ if ($_POST['new_group'] || $_POST['del_group']){ // search for checkboxes $groups = array_keys($_POST, "on"); $groupstr = implode(";", $groups); - echo(""); + echo(""); } exit; } @@ -135,11 +135,11 @@ echo ("
"); // print group table header echo "\n"; -echo ""; +echo ""; // table header for ($k = 0; $k < sizeof($desc_array); $k++) { if (strtolower($attr_array[$k]) == $sort) { - echo ""; } else echo "" . - " "); + " "); for ($k = 0; $k < sizeof($attr_array); $k++) { echo ("\n"); echo (""); - echo (""); - echo ("
" . $desc_array[$k] . "" . + " onDblClick=parent.frames[1].location.href=\"../account.php?type=group&DN='" . $info[$i]["dn"] . "'\">" . " " . _("Edit") . "" . _("Edit") . ""); // 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 // if user was found in LDAP make link, otherwise just print name if ($dn) { - $linklist[$d] = "" . + $linklist[$d] = "" . $info[$i][strtolower($attr_array[$k])][$d] . ""; } else $linklist[$d] = $user; @@ -232,27 +232,27 @@ function draw_navigation_bar ($count) { echo ("
  "); if ($page != 1) - echo ("<=\n"); + echo ("<=\n"); else echo ("<="); echo (" "); if ($page < ($count / $max_pageentrys)) - echo ("=>\n"); + echo ("=>\n"); else echo ("=>"); + echo (""); echo " " . $count . " " . _("Group(s) found"); echo (""); + echo (""); for ($i = 0; $i < ($count / $max_pageentrys); $i++) { if ($i == $page - 1) echo (" " . ($i + 1)); else echo (" " . ($i + 1) . "\n"); + "&sort=" . $sort . "\">" . ($i + 1) . "\n"); } echo ("
\n"); } diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 9f96cbe0..65ee84cc 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -50,7 +50,7 @@ if ($_POST['new_host'] || $_POST['del_host']){ // search for checkboxes $hosts = array_keys($_POST, "on"); $hoststr = implode(";", $hosts); - echo(""); + echo(""); } exit; } @@ -135,11 +135,11 @@ echo ("
"); // print host table header echo "\n"; -echo ""; +echo ""; // table header for ($k = 0; $k < sizeof($desc_array); $k++) { if (strtolower($attr_array[$k]) == $sort) { - echo ""; } else echo "" . - " "); + " "); for ($k = 0; $k < sizeof($attr_array); $k++) { echo ("\n"); echo (""); - echo (""); @@ -235,7 +235,7 @@ function draw_navigation_bar ($count) { echo (" " . ($i + 1)); else echo (" " . ($i + 1) . "\n"); + "&sort=" . $sort . "\">" . ($i + 1) . "\n"); } echo ("
" . $desc_array[$k] . "" . + " onDblClick=parent.frames[1].location.href=\"../account.php?type=host&DN='" . $info[$i]["dn"] . "'\">" . " " . _("Edit") . "" . _("Edit") . ""); // print all attribute entries seperated by "; " @@ -215,17 +215,17 @@ function draw_navigation_bar ($count) { echo ("
  "); if ($page != 1) - echo ("<=\n"); + echo ("<=\n"); else echo ("<="); echo (" "); if ($page < ($count / $max_pageentrys)) - echo ("=>\n"); + echo ("=>\n"); else echo ("=>"); + echo (""); echo " " . $count . " " . _("Samba Host(s) found"); echo ("
\n"); }