?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Master/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/drafthr/system/application/views/Master/editcity.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php foreach($viewinfo as $updata) { $cityname=$updata['cityname']; $citycode=$updata['citycode']; $country_id=$updata['country_id']; $cityid=$updata['id']; } $countrydata=$this->mastermodel->get_data('country',$country_id,'id'); foreach($countrydata as $val) { $countryname=$val['countryname']; $countryid=$val['id']; } ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showcity()" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <legend>Edit City</legend> <?php $attributes = array('id' => 'customForm'); echo form_open_multipart('master/editcity',$attributes);?> <ul> <li> <label for="country">Country</label> <?php echo "<select name='country_id' id='country_id'>"; echo "<option value='". $countryid . "'>" . $countryname . "</option>"; if (count($country)) { foreach ($country as $key => $list) { if($list['countryname']!=$countryname) echo "<option value='". $list['id'] . "'>" . $list['countryname'] . "</option>"; } echo "</select>"; } ?> <span id="country_idInfo" class="red_bold">*</span> </li> <?php echo form_hidden('cityid',$cityid)?> <li> <label for="country">City Name</label> <?php $data = array( 'name' => 'cityname', 'id' => 'cityname', 'value' => $cityname, 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?><span id="citynameInfo" class="red_bold">*</span> </li> <li> <label for="country">City code</label> <?php echo form_input('citycode',$citycode).form_error('citycode'); ?> </li> <li><label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="return validateform('country_id','cityname');">Update</button> </li> </ul> <?php echo form_close();?> </fieldset>