summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 833767c)
raw | patch | inline | side by side (parent: 833767c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Jun 2006 05:00:25 +0000 (05:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Jun 2006 05:00:25 +0000 (05:00 +0000) |
- Filter, if it is empty
- Force max height for divlist, currently not working when JA in on
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3618 594d385d-05f5-0310-b6e9-bd551577e9d8
- Force max height for divlist, currently not working when JA in on
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3618 594d385d-05f5-0310-b6e9-bd551577e9d8
ihtml/themes/default/MultiSelectWindow.tpl | patch | blob | history | |
include/class_MultiSelectWindow.inc | patch | blob | history | |
include/class_divlist.inc | patch | blob | history |
diff --git a/ihtml/themes/default/MultiSelectWindow.tpl b/ihtml/themes/default/MultiSelectWindow.tpl
index 2532ee08e0c771e43ed337e0ecfcab7a16714bfb..7f735e038ba6dd818e1771c6a7125092d8945895 100644 (file)
-<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
+ <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
<tr>
- <td style="vertical-align:top; width:50%;">
+ <td style="vertical-align:top; width:50%;">
<div class="contentboxh">
<p class="contentboxh">
{$Summary} {$hint}
</div>
<div style='height:4px;'>
</div>
- <div class="contentboxb" style="border-top:1px solid #B0B0B0;">
+ <div class="contentboxb" style="border-top:1px solid #B0B0B0;">
{$DivList}
<input type=hidden name="edit_helper">
</div>
</div>
{$UserBox2}
<br>
+ {if !$Skip_Filter_Part }
<div class="contentboxh">
<p class="contentboxh">
<img src="{$launchimage}" align="right" alt="[F]">{t}Filters{/t}
{$apply}
</div>
{$UserBox3}
+ {/if}
</td>
{else}
<td style="vertical-align:top;">
index df2e0ee37867836de5b68668dd33207bf327a215..89dd459c833f3cbe20cf60656c103369b5ce113a 100644 (file)
var $DepartmentsAdded = false;
var $selectedBase = "";
+ var $DivHeight = "";
+
+ var $HideFilterPart = false;
+
var $SaveAdditionalVars = array(); // Additional Post vars to store
$this->array_Elements = array();
}
+ function ForceMaximumDivHeight($height = "")
+ {
+ $this->DivHeight = $height;
+ }
+
+
+ function HideFilterPart($bool = true)
+ {
+ $this->HideFilterPart = $bool;
+ }
/* Adds a regex input field to the current dialog */
function AddRegex($name,$string,$value,$conn,$image="images/search.png")
$divlist = new divlist($this->string_Title);
$divlist->SetSummary($this->string_Summary);
$divlist->SetEntriesPerPage(0); // 0 for scrollable list
+
+ if($this->DivHeight != ""){
+ $divlist->SetHeight($this->DivHeight);
+ }
/* set Header informations
*/
}
$smarty->assign("regexes" , $regexes );
+ /* Hide Filter Part if Requested or empty */
+ if((empty($boxes)) && (empty($regexes)) || ($this->HideFilterPart)){
+ $smarty->assign("Skip_Filter_Part", true);
+ }else{
+ $smarty->assign("Skip_Filter_Part", false);
+ }
+
/* Assign alphabet and display it
*/
$smarty->assign("Display_alphabet", $this->bool_DisplayAlpahabet);
index 52eaecce87fb642fae430ec7c3afbf368377b0d6..69d43a1fb1b97005c0c3ba17f11d575cf1a41168 100644 (file)
var $i_currentPage;
var $i_entriesPerPage;
+ var $height_forced = false;
+
// Added php 4 constructor
function divlist($pageid){
function SetHeight($s_height) {
$this->s_height= $s_height;
+ $this->height_forced =true;
}
function SetWidth($s_width) {