
<? //echo "URL : " .$this->url($basicSearch) ."\n"; ?>

<? if (count($searchTabs) > 0): ?>
<div="row">
    <? foreach ($searchTabs as $Tabs) : ?>
	<? if ($pos = strpos($Tabs['url'], $this->url($basicSearch))!== false) $Tabs['url'] = substr($Tabs['url'], strlen($this->url($basicSearch))+1)  ; ?>
	<? echo $Tabs['url']; ?>
    <? endforeach; ?>

    <? foreach ($searchTabs as $tab): ?>
        <? if ($this->permission()->allowDisplay($tab['permission'])): ?>
          <? $tab['selected'] ? ' class="active"' : ''?>
		<? //print_r($tab) ; ?>
		<input type="checkbox" <?=$isSelected ? 'checked="checked" ' : ''?>name='hiddenFilters' value='<?=($tab['url'])?>' /> <?=$this->transEsc($tab['label'])?>
        <? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
            <?=$block?>
        <? endif; ?>
    <? endforeach; ?>
</div>
<? endif ?>
