From: hickert Date: Tue, 14 Aug 2007 09:42:28 +0000 (+0000) Subject: Made list summary configurable within setup X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a1f51c74026826590a2dfa6ad303c12362033a6;p=gosa.git Made list summary configurable within setup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index e46fa2337..191e2fd9c 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -338,7 +338,11 @@ {/if}
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}