?> " method="post"> <div class="row"> <div class="col-md-3 col-sm-6"> <div class="form-group"> <label for="input-11"><?php echo lang_key('select_city'); ?> </label> <select id="input-11" name="city" class="form-control chosen-select"> <option data-name="" value="any"><?php echo lang_key('any_city'); ?> </option> <?php foreach (get_all_locations_by_type('city')->result() as $row) { $sel = $row->id == set_value('city') ? 'selected="selected"' : ''; ?> <option data-name="<?php echo $row->name; ?> " class="cities city-<?php echo $row->parent; ?> " value="<?php echo $row->id; ?> " <?php echo $sel; ?> ><?php
public function location() { $value = array(); $value['countries'] = get_all_locations_by_type('country'); $data['content'] = load_view('location_view', $value, TRUE); $data['alias'] = 'location'; load_template($data, $this->active_theme); }