Code

Made list summary configurable during setup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Aug 2007 09:47:04 +0000 (09:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Aug 2007 09:47:04 +0000 (09:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7057 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
include/class_MultiSelectWindow.inc
setup/class_setupStep_Config3.inc
setup/setup_config3.tpl

index cc112e0e9b65141a5df7369e5aa214757ada858f..86e1d7b9f65a7254a4c769e005a954940958855b 100644 (file)
        </logtabs>
        
        <main default="{$cv.location}"
-
+{if $cv.optional.list_summary}
+               list_summary="true"
+{else}
+               list_summary="false"
+{/if}
 {if $cv.pwd_rules.pwminlen_active}
                pwminlen="{$cv.pwd_rules.pwminlen}"
 {/if}
index 66dad408d6f6548148566558c76bfc624789131a..7961247b8019770ab07ca0250434670f61165cb3 100644 (file)
@@ -296,7 +296,11 @@ class MultiSelectWindow{
                $divlist = new divlist($this->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);
index 6bd45ee3402add5d6afb947f511cdf7977ccd2b1..8ed1d6df4b2dcaf0470a84454b94ec81f04bf16c 100644 (file)
@@ -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);
         }
index 6b249ac32e25b728b205ab892c9d62ed9f0b72d3..4f71c89373bf146c06881fc87c2ac9e3e907c242 100644 (file)
         </div>
     </div>
 
+    <div class='step4_container'>
+        <div class='step4_name'>
+            {t}Display summary in listings{/t}
+        </div>
+        <div class='step4_value'>
+       
+            <select name="list_summary" size="1" title="">
+               {html_options options=$bool selected=$optional.list_summary}
+            </select>
+        </div>
+    </div>
+
     <div class='step4_container'>
         <div class='step4_name'>
             {t}Honour administrative units{/t}