Code

update Fai package
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 09:30:55 +0000 (09:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Jan 2010 09:30:55 +0000 (09:30 +0000)
-Show a message if only the first 200 entries were shown.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14995 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc
gosa-plugins/fai/admin/fai/faiPackageEntry.tpl

index f86f89a96aff64eefcd72d3697101ef4e5c5789e..794a8d344da5148099c71665e89cd5e0d0150017 100644 (file)
@@ -130,6 +130,8 @@ class faiPackageEntry extends plugin
               "attach" => "style='border-right:0px;text-align:left;'")));
     }
 
+    $smarty->assign("max_entries", (count($this->pkgs) >=200));
+
     $smarty->assign("Section_boxes"          , $Section_boxes);
     $smarty->assign("searchStrPKG"  , $this->searchStrPKG);
     $smarty->assign("faihead"       , "");
index 44cbbf8010e735cee00c4a7194f6516e48ece575..f8958039a974e7ed093e1dfc22794ae07e99514d 100644 (file)
                </div>
                <div style='height:4px;'>
                </div>
+      {if $max_entries}
+               <div class="contentboxb" style="border-top:1px solid #B0B0B0; padding: 10px;">
+        <font style='color:red; font-weight:bold;'>
+        {t}The search returned too many results, only the first 200 entries are shown.{/t}
+      </div>
+      {/if}
                <div class="contentboxb" style="border-top:1px solid #B0B0B0;">{$failist}<input type="hidden" name="edit_helper">
                </div>
        </td>