diff --git a/ihtml/themes/breezy/management/filter.tpl b/ihtml/themes/breezy/management/filter.tpl index 783b562b7937bd603ef505d00029b7538a326e86..82e6c37071c78175c21bd1a13e07bb153bdd5c2a 100644 --- a/ihtml/themes/breezy/management/filter.tpl +++ b/ihtml/themes/breezy/management/filter.tpl @@ -28,12 +28,15 @@ {/foreach} <hr/> + + {if $BASEMODE} <label for="SCOPE"> <input type="checkbox" id="SCOPE" name="SCOPE" value="1" {if ($SCOPE == 'sub')}checked="checked"{/if}/> {t}Search in subtrees{/t} </label> <hr/> + {/if} <label for="SEARCH" title="{$SEARCHDESC|escape}"><img src="geticon.php?context=actions&icon=system-search&size=16" alt="Search"/> <input class="filter_textfield" id="SEARCH" name="SEARCH" type="search" value="{$SEARCH}"/> diff --git a/include/management/class_managementFilter.inc b/include/management/class_managementFilter.inc index 41fffa265400abcbfc2a96bc8ef8c6e2b2c1798a..316feba582328ef0f553858e07d61d51598d50d5 100644 --- a/include/management/class_managementFilter.inc +++ b/include/management/class_managementFilter.inc @@ -122,6 +122,7 @@ class managementFilter $smarty = get_smarty(); $smarty->assign('SCOPE', $this->scope); + $smarty->assign('BASEMODE', $this->parent->listing->getBaseMode()); $smarty->assign('FILTER_PID', $this->pid); $smarty->assign('SEARCH', $this->search); $smarty->assign('TYPES', $this->types); diff --git a/include/management/class_managementListing.inc b/include/management/class_managementListing.inc index e27ad7e55fa2d49ac862ef5b6aa9e5563830af96..66e97f311402608970a5900aaae9f7a10f37ceb3 100644 --- a/include/management/class_managementListing.inc +++ b/include/management/class_managementListing.inc @@ -85,6 +85,11 @@ class managementListing $this->reloadColumns(); } + function getBaseMode() + { + return $this->baseMode; + } + function reloadColumns() { $columnInfos = $this->parent->getColumnConfiguration();