diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 0a363315..43686f1d 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -97,8 +97,8 @@ for ($i = 0; $i < sizeof($temp_array); $i++) { $searchfilter = ""; for ($k = 0; $k < sizeof($desc_array); $k++) { if ($_POST["filter" . strtolower($attr_array[$k])]) { - $searchfilter = $searchfilter . "&filter" . strtolower($attr_array[$k]) . "=". - $_POST["filter" . strtolower($attr_array[$k])]; + $searchfilter = $searchfilter . "&filter" . strtolower($attr_array[$k]) . "='". + $_POST["filter" . strtolower($attr_array[$k])] . "'"; } } @@ -130,8 +130,11 @@ else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences echo ("
\n"); +// draw navigation bar if group accounts were found +if (sizeof($info) > 0) { draw_navigation_bar(sizeof($info)); echo ("
"); +} // print group table header echo "\n"; @@ -206,13 +209,16 @@ for ($i = $table_begin; $i < $table_end; $i++) { echo ("
"); echo ("
"); +// draw navigation bar if group accounts were found +if (sizeof($info) > 0) { draw_navigation_bar(sizeof($info)); - echo ("
\n"); -echo (""); -echo ("\n"); -echo ("\n"); -echo ("
\n"); +} + +echo ("

\n"); +echo ("\n"); +if (sizeof($info) > 0) echo ("\n"); +echo ("

\n"); echo ("
\n"); echo "\n"; diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index abf4d530..f9888cd0 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -97,8 +97,8 @@ else { $searchfilter = ""; for ($k = 0; $k < sizeof($desc_array); $k++) { if ($_POST["filter" . strtolower($attr_array[$k])]) { - $searchfilter = $searchfilter . "&filter" . strtolower($attr_array[$k]) . "=". - $_POST["filter" . strtolower($attr_array[$k])]; + $searchfilter = $searchfilter . "&filter" . strtolower($attr_array[$k]) . "='". + $_POST["filter" . strtolower($attr_array[$k])] . "'"; } } @@ -136,8 +136,11 @@ else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences echo ("
\n"); +// draw navigation bar if host accounts were found +if (sizeof($info) > 0) { draw_navigation_bar(sizeof($info)); -echo ("
"); +echo ("
\n"); +} // print host table header echo "\n"; @@ -195,13 +198,16 @@ echo ("
"); echo ("
"); +// draw navigation bar if host accounts were found +if (sizeof($info) > 0) { draw_navigation_bar(sizeof($info)); - echo ("
\n"); -echo ("\n"); -echo ("\n"); -echo ("\n"); -echo ("
\n"); +} + +echo ("

\n"); +echo ("\n"); +if (sizeof($info) > 0) echo ("\n"); +echo ("

\n"); echo ("
\n"); echo "\n";