} 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; } else { $write_url = 'index.php?option=com_adsmanager&c=contents&task=edit'; } ?> <script type="text/javascript"> jQ(document).ready(function() { jQ('#categoryselect').change(function() { if (jQ(this).val() != "") {
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; } ?> </div> </div> </div> <?php } ?> <?php if (isset($searchfields)) { foreach ($searchfields as $fsearch) { $currentvalue = JRequest::getVar($fsearch->name, ""); ?>
<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 } ?> <div class="row-fluid"> <?php foreach ($this->simple_fields as $fsearch) { echo "<div id='searchfield_{$fsearch->fieldid}' class=\"span12\">"; echo "<div class=\"control-group\">"; echo "<label class=\"control-label\" for=\"{$fsearch->name}\">" . JText::_($fsearch->title) . "</label>"; echo "<div class=\"controls\">";
<?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() { <?php if ($without_page_reload == 1) {?> jQ('#category').change(function() { updateFields(); <?php foreach($this->fields as $field) { if (@$field->options->is_conditional_field == 1) { ?>
$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 { $write_url = TRoute::_('index.php?option=com_adsmanager&task=write'); } ?> <script type="text/javascript"> jQ(document).ready(function() { jQ('#categoryselect').change(function() { if (jQ(this).val() != "") {
<?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 } ?> <?php if (isset($searchfields)) { foreach($searchfields as $fsearch) { if (($catid == 0)||(strpos($fsearch->catsid, ",$catid,") !== false)||(strpos($fsearch->catsid, ",-1,") !== false)) { $currentvalue = JRequest::getVar($fsearch->name, "" ); ?>