echo "<div id=\"select_ads\">"; //select_ads echo "<form class=\"marketplace\" action=\"".$mosConfig_live_site."/index.php?option=com_marketplace&page=show_category&catid=$catid&Itemid=$Itemid\" method=\"post\" name=\"adsearch\">"; echo "<input maxlength ='30' class='text' id='searchtext' type='text' name='searchtext' value=\"".$searchtext."\">"; echo "<input class='image' type='image' SRC=\"".$mosConfig_live_site."/components/com_marketplace/images/system/search.gif\" name=\"submit_search\" alt=\"".ELX_FORM_SUBMIT_SEARCH_TEXT."\" title=\"".ELX_FORM_SUBMIT_SEARCH_TEXT."\" value=\"".ELX_FORM_SUBMIT_SEARCH_TEXT."\">"; $database->setQuery("SELECT id, name FROM #__marketplace_types WHERE published='1' ORDER BY sort_order"); $rows_type = $database->loadObjectList(); echo "<select class='selectbox' name='ad_type'>"; echo "<option value='0' selected>".ELX_ALL."</option>"; foreach( $rows_type as $rowtype) { if( $rowtype->id == $ad_type) { echo "<option value='$rowtype->id' selected>$rowtype->name</option>"; } else { echo "<option value='$rowtype->id'>$rowtype->name</option>"; } } echo "</select>"; echo "</form>"; echo "<form class=\"marketplace\" action=\"".$mosConfig_live_site."/index.php?option=com_marketplace&page=show_category&catid=$catid&Itemid=$Itemid\" method=\"post\" name=\"adselect\">"; echo "<input class='image' type='image' SRC=\"".$mosConfig_live_site."/components/com_marketplace/images/system/refresh.gif\" alt=\"".ELX_FORM_SUBMIT_REFRESH_TEXT."\" title=\"".ELX_FORM_SUBMIT_REFRESH_TEXT."\" value=\"".ELX_FORM_SUBMIT_REFRESH_TEXT."\">"; echo "<input type='hidden' name='searchtext' value=''>"; echo "</form>"; echo "</div>"; //select_ads end