diff --git a/lam/lib/functions.js b/lam/lib/functions.js index efbe4f64..8a801b48 100644 --- a/lam/lib/functions.js +++ b/lam/lib/functions.js @@ -522,3 +522,82 @@ function onKeyDownArrowsHandler(e) { } e.returnValue = false; } + +// functions for row checking and mouseOver effects + +// mouseOver function +function user_over(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','userlist_over', 0); +} + +// mouseOut function +function user_out(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','userlist', 0); +} + +// onClick function +function user_click(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == true) { + cbox.checked = false; + list.setAttribute('class','userlist_over', 0); + } + else { + cbox.checked = true; + list.setAttribute('class','userlist_checked', 0); + } +} + + +// mouseOver function +function group_over(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','grouplist_over', 0); +} + +// mouseOut function +function group_out(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','grouplist', 0); +} + +// onClick function +function group_click(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == true) { + cbox.checked = false; + list.setAttribute('class','grouplist_over', 0); + } + else { + cbox.checked = true; + list.setAttribute('class','grouplist_checked', 0); + } +} + + +// mouseOver function +function host_over(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','hostlist_over', 0); +} + +// mouseOut function +function host_out(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == false) list.setAttribute('class','hostlist', 0); +} + +// onClick function +function host_click(list, box) { + cbox = document.getElementsByName(box)[0]; + if (cbox.checked == true) { + cbox.checked = false; + list.setAttribute('class','hostlist_over', 0); + } + else { + cbox.checked = true; + list.setAttribute('class','hostlist_checked', 0); + } +} \ No newline at end of file diff --git a/lam/lib/listgroups.php b/lam/lib/listgroups.php index 0524ce55..f402414e 100644 --- a/lam/lib/listgroups.php +++ b/lam/lib/listgroups.php @@ -29,7 +29,10 @@ include_once("ldap.php"); session_save_path("../sess"); @session_start(); -echo ""; +echo "hjhj"; +echo "\n"; +echo "\n"; +echo "\n"; // generate attribute-description table $attr_array; // list of LDAP attributes to show @@ -65,20 +68,25 @@ if ($sr) { } else echo ("

" . _("LDAP Search failed! Please check your preferences.
No Groups found!") . "


"); +echo ("
\n"); + // print host table header -echo "\n"; -echo ""; +echo "
\n"; +echo ""; // table header for ($k = 0; $k < sizeof($desc_array); $k++) { - echo ""; + echo ""; } echo "\n"; -echo ("\n"); // print group list for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which is "count" - echo(""); + echo("" . + "" . + ""); for ($k = 0; $k < sizeof($attr_array); $k++) { - echo ("
" . $desc_array[$k] . "" . $desc_array[$k] . "
" . _("Edit") . ""); + echo (""); // print all attribute entries seperated by "; " if (sizeof($info[$i][strtolower($attr_array[$k])]) > 0) { array_shift($info[$i][strtolower($attr_array[$k])]); @@ -90,11 +98,10 @@ for ($i = 0; $i < sizeof($info)-1; $i++) { // ignore last entry in array which i } echo ("
"); echo ("

 

\n"); -echo ("

 

\n"); echo (""); -echo ("\n"); +echo ("\n"); echo ("
"); -echo (" "); -echo (" 
"); +echo (" 
\n"); echo ("
\n"); +echo "\n"; ?> diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index edd3d511..1d5cc2ea 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -96,23 +96,34 @@ text-decoration:none; * table style for grouplist.php * */ -th.grouplist { + +/* table preferences */ +table.grouplist { border-width:1px; border-style:solid; - border-color:#B7C7B7; - padding:10px; - background-color:#a8c3ff; + border-color:#7167bf; font-size:14px; +} + +/* color of entry rows */ +tr.grouplist { + background-color:#d6e3ff; +} + +/* color of head row */ +tr.grouplist_head { + background-color:#a8c3ff; font-weight:bold; } -td.grouplist { - border-width:1px; - border-style:solid; - border-color:#C7D7C7; - padding:4px; - background-color:#d6e3ff; - font-size:14px; +/* color of rows on mouseOver */ +tr.grouplist_over { + background-color:#C7E7C7; +} + +/* color of checked rows */ +tr.grouplist_checked { + background-color:#f27c71; } /**