Advertisement:

Author Topic: I can make Country as dropdown but I cant make Region and City , have latest  (Read 1166 times)

data99

  • Full Member
  • ***
  • Posts: 180

I can make Country as dropdown  but I cant make  Region and City , have latest osclass with blender theme

Please help :)

friend4chams

  • Newbie
  • *
  • Posts: 9
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

Please vote for it.

jkachhara

  • Newbie
  • *
  • Posts: 40
  • Bigbro.in
I ALSO WANT SOLUTION FOR THIS....

BC-Products

  • Newbie
  • *
  • Posts: 12
Search for region:

Code: [Select]
<?php $listRegions Region::newInstance()->listAll(); ?>
<?php if(count($listRegions) >= ) { ?>
    <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:

Code: [Select]
<?php $listCities City::newInstance()->listAll(); ?>
<?php if(count($listCities) >= ) { ?>
    <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 ?>

BerniBCN

  • Jr. Member
  • **
  • Posts: 86
sorry, wrong post  :-[
« Last Edit: January 21, 2015, 01:42:24 pm by BerniBCN »