} else { $catid = 0; } } if ($without_page_reload == 1) { $selectid = "category"; } else { $selectid = "categoryselect"; } switch ($this->conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories($selectid, $this->cats, $catid, array("root_allowed" => $this->conf->root_allowed, "display_price" => true)); break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories($selectid, $this->cats, $catid, array("root_allowed" => $this->conf->root_allowed)); break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories($selectid, $this->cats, $catid, array("root_allowed" => $this->conf->root_allowed)); break; break; case 'cascade': $separator = "<br/>"; JHTMLAdsmanagerCategory::displaySplitCategories($selectid, $this->cats, $catid, array("root_allowed" => $this->conf->root_allowed)); break; } ?> </td></tr></table> <?php if (@$this->content->id) { $write_url = 'index.php?option=com_adsmanager&c=contents&task=edit&id=' . $this->content->id;
<label class="control-label" for="catid"><?php echo $searchLabel; ?> </label> <?php } ?> <div class="controls"> <?php switch (@$conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories("catid", $cats, $catid, array("allow_empty" => true, 'id' => "catid-" . $moduleId)); break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories("catid", $cats, $catid, array("allow_empty" => true, 'id' => "catid-" . $moduleId)); break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories("catid", $cats, $catid, array("allow_empty" => true, 'id' => "catid-" . $moduleId)); break; break; case 'cascade': if ($type == "horizontal") { $separator = ""; } else { $separator = "<br/>"; } JHTMLAdsmanagerCategory::displaySplitCategories("catid", $cats, $catid, array('separator' => $separator, 'id' => "catid-" . $moduleId)); break; } ?>
</legend> <div class="row-fluid"> <?php if ($this->search_by_cat == 1) { ?> <div class="control-group"> <label class="control-label" for="catid"></label> <div class="controls"> <?php switch ($this->conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories("search_catid", $this->cats, $this->catid); break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories("search_catid", $this->cats, $this->catid); break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories("search_catid", $this->cats, $this->catid); break; case 'cascade': $separator = "<br/>"; JHTMLAdsmanagerCategory::displaySplitCategories("search_catid", $this->cats, $this->catid, array('separator' => $separator)); break; } ?> </div> </div> <?php } ?>
} else { $selectid = "categoryselect"; } ?> <div class="control-group"> <?php if(@$this->conf->single_category_display_label): ?> <label class="control-label" for="<?php echo $selectid; ?>"><?php echo JText::_('ADSMANAGER_SELECT_CATEGORY_LABEL') ?></label> <?php endif; ?> <div class="controls"> <?php switch($this->conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break; break; case 'cascade': JHTMLAdsmanagerCategory::displaySplitCategories($selectid ,$this->cats,$this->catid,array("root_allowed"=>$this->conf->root_allowed,"display_price"=>true),array("required"=>"","class"=>"input-large text-center"));break; } ?> </div> <?php if (@$this->content->id) { $write_url = TRoute::_('index.php?option=com_adsmanager&task=write&id='.$this->content->id); } else { $write_url = TRoute::_('index.php?option=com_adsmanager&task=write'); }?> <script type="text/javascript"> jQ(document).ready(function() {
<tr name='category'> <td width="100"><?php echo JText::_('ADSMANAGER_FORM_CATEGORY'); ?> </td> <td> <?php $target = TRoute::_("index.php?option=com_adsmanager&task=save"); if ($this->nbcats == 1) { switch ($this->conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories("categoryselect", $this->cats, $this->catid, array("root_allowed" => $this->conf->root_allowed, "display_price" => true)); break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories("categoryselect", $this->cats, $this->catid, array("root_allowed" => $this->conf->root_allowed, "display_price" => true)); break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories("categoryselect", $this->cats, $this->catid, array("root_allowed" => $this->conf->root_allowed, "display_price" => true)); break; break; case 'cascade': JHTMLAdsmanagerCategory::displaySplitCategories("categoryselect", $this->cats, $this->catid, array("root_allowed" => $this->conf->root_allowed, "display_price" => true)); break; } ?> </td></tr></table> <?php if (@$this->content->id) { $write_url = TRoute::_('index.php?option=com_adsmanager&task=write&id=' . $this->content->id); } else {
</div> <?php }?> <?php if ($search_by_cat == 1) { ?> <div class="<?php echo $class; ?>"> <div class="control-group"> <?php if($display_cat_label == 1): ?> <label class="control-label" for="catid"><?php echo JText::_('ADSMANAGER_SELECT_CATEGORY_LABEL') ?></label> <?php endif; ?> <div class="controls"> <?php switch(@$conf->single_category_selection_type) { default: case 'normal': JHTMLAdsmanagerCategory::displayNormalCategories("catid",$cats,$catid,array("allow_empty"=>true));break; case 'color': JHTMLAdsmanagerCategory::displayColorCategories("catid",$cats,$catid,array("allow_empty"=>true));break; case 'combobox': JHTMLAdsmanagerCategory::displayComboboxCategories("catid",$cats,$catid,array("allow_empty"=>true));break; break; case 'cascade': if ($type == "horizontal") $separator = ""; else $separator = "<br/>"; JHTMLAdsmanagerCategory::displaySplitCategories("catid",$cats,$catid,array('separator'=>$separator));break; } ?> </div> </div> </div> <?php