From 6ae512e69e30debb221b2e8f42a9a5a77a11a3ea Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 27 May 2003 15:59:53 +0000 Subject: [PATCH] lists now show the number of found objects --- lam/style/500_layout.css | 29 ++++++++++++++++++++++++++--- lam/templates/lists/listgroups.php | 14 +++++++++----- lam/templates/lists/listhosts.php | 12 ++++++++---- 3 files changed, 43 insertions(+), 12 deletions(-) diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index 30465fd6..03d00634 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -29,7 +29,6 @@ $Id$ */ h1,h2,h3,h4,p,ul,ol,li,div,td,th,address,blockquote,nobr,b,i { font-family:Arial,Verdana,sans-serif; - font-size:14px; } body { @@ -129,12 +128,24 @@ th.userlist_activecolumn { * */ -/* */ +/* navigation bar */ table.groupnav { background-color:#a8c3ff; border-width:1px; border-style:solid; - border-color:#7167bf;//#0050ff; + border-color:#7167bf; +} + +/* text in navigation bar */ +td.groupnav_text { + color:green; + font-family:Verdana; + font-size:x-small; +} + +/* color for active page digit */ +td.groupnav_activepage { + color:red; } /* table preferences */ @@ -182,6 +193,18 @@ table.hostnav { border-color:#911a1a; } +/* text in navigation bar */ +td.hostnav_text { + color:green; + font-family:Verdana; + font-size:x-small; +} + +/* color for active page digit */ +td.hostnav_activepage { + color:red; +} + /* table preferences */ table.hostlist { border-width:1px; diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php index 4f27ad6a..988b4d7a 100644 --- a/lam/templates/lists/listgroups.php +++ b/lam/templates/lists/listgroups.php @@ -70,7 +70,7 @@ $hash_table = $_SESSION["ldap"]->attributeGroupArray(); // get current page $page = $_GET["page"]; if (!$page) $page = 1; -// take maximum count of user entries shown on one page out of session +// take maximum count of group entries shown on one page out of session if ($_SESSION["config"]->get_MaxListEntries() <= 0) $max_pageentrys = 10; // default setting, if not yet set else @@ -230,22 +230,26 @@ function draw_navigation_bar ($count) { echo ("\n"); echo ("  "); if ($page != 1) - echo ("<=\n"); + echo ("<=\n"); else echo ("<="); echo (" "); if ($page < ($count / $max_pageentrys)) - echo ("=>\n"); + echo ("=>\n"); else echo ("=>"); - 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"); } echo ("\n"); diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php index 332b5e42..170de1fe 100644 --- a/lam/templates/lists/listhosts.php +++ b/lam/templates/lists/listhosts.php @@ -213,22 +213,26 @@ function draw_navigation_bar ($count) { echo ("\n"); echo ("  "); if ($page != 1) - echo ("<=\n"); + echo ("<=\n"); else echo ("<="); echo (" "); if ($page < ($count / $max_pageentrys)) - echo ("=>\n"); + echo ("=>\n"); else echo ("=>"); - echo (""); + echo (""); + echo " " . $count . " " . _("Samba Host(s) found"); + echo (""); + + echo (""); for ($i = 0; $i < ($count / $max_pageentrys); $i++) { if ($i == $page - 1) echo (" " . ($i + 1)); else - echo (" " . ($i + 1) . "\n"); } echo ("\n");