Osclass forums
Support forums => Themes => Bender => Topic started by: data99 on January 19, 2014, 03:46:30 am
-
I can make Country as dropdown but I cant make Region and City , have latest osclass with blender theme
Please help :)
-
Please tell me how to make the country drop down thank you.
And
I also need something like that and searched the forum found many people asking for this type of options but these kind of post were never replied.
I have posted the same idea on http://osclass.uservoice.com/forums/183966-general/suggestions/6714009-side-bar-cities-under-regions-selections-region (http://osclass.uservoice.com/forums/183966-general/suggestions/6714009-side-bar-cities-under-regions-selections-region)
Please vote for it.
-
I ALSO WANT SOLUTION FOR THIS....
-
Search for region:
<?php $listRegions = Region::newInstance()->listAll(); ?>
<?php if(count($listRegions) >= 0 ) { ?>
<select id="sRegion" name="sRegion">
<option value=""><?php _e('Select Region', 'your_theme'); ?></option>
<?php foreach($listRegions as $region) { ?>
<option value="<?php echo $region['pk_i_id']; ?>"<?php if(Params::getParam('sRegion') == $region['pk_i_id']) { ?>selected<?php } ?>><?php echo $region['s_name'] ; ?></option>
<?php } ?>
</select>
<?php } ?>
Search for city:
<?php $listCities = City::newInstance()->listAll(); ?>
<?php if(count($listCities) >= 0 ) { ?>
<select id="sCity" name="sCity">
<option value=""><?php _e('Select City', 'your_theme'); ?></option>
<?php foreach($listCities as $city) { ?>
<option value="<?php echo $city['s_name']; ?>"<?php if(Params::getParam('sCity') == $city['s_name']) { ?>selected<?php } ?>><?php echo $city['s_name'] ; ?></option>
<?php } ?>
</select>
<?php } ?>
-
sorry, wrong post :-[