From: hickert Date: Tue, 14 Aug 2007 09:47:04 +0000 (+0000) Subject: Made list summary configurable during setup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c62a3b741fbb9e9123c2613186b5217a9c875d2e;p=gosa.git Made list summary configurable during setup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index cc112e0e9..86e1d7b9f 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -338,7 +338,11 @@
string_Title); $divlist->SetSummary($this->string_Summary); $divlist->SetEntriesPerPage(0); // 0 for scrollable list - $divlist->SetFooter($this->get_List_Bottom_Info()); + + /* Display list footer with summary of all listed entries */ + if(isset($this->config->data['MAIN']['LIST_SUMMARY']) && preg_match("/true/i",$this->config->data['MAIN']['LIST_SUMMARY'])){ + $divlist->SetFooter($this->get_List_Bottom_Info()); + } if($this->DivHeight != ""){ $divlist->SetHeight($this->DivHeight); diff --git a/setup/class_setupStep_Config3.inc b/setup/class_setupStep_Config3.inc index 6bd45ee34..8ed1d6df4 100644 --- a/setup/class_setupStep_Config3.inc +++ b/setup/class_setupStep_Config3.inc @@ -28,6 +28,7 @@ class Step_Config3 extends setup_step var $optional = array( "strict_units" => false, + "list_summary" => true, "forceglobals" => true, "forcessl" => false, "ldapstats" => false, @@ -93,7 +94,7 @@ class Step_Config3 extends setup_step } } - foreach(array("strict_units","noprimarygroup","forceglobals","forcessl","ldapstats","warnssl","compile","debuglevel","session_lifetime") as $name){ + foreach(array("list_summary","strict_units","noprimarygroup","forceglobals","forcessl","ldapstats","warnssl","compile","debuglevel","session_lifetime") as $name){ if(isset($_POST[$name])){ $this->optional[$name] = get_post($name); } diff --git a/setup/setup_config3.tpl b/setup/setup_config3.tpl index 6b249ac32..4f71c8937 100644 --- a/setup/setup_config3.tpl +++ b/setup/setup_config3.tpl @@ -13,6 +13,18 @@ +
+
+ {t}Display summary in listings{/t} +
+
+ + +
+
+
{t}Honour administrative units{/t}