?
Current Path : /home1/savoy/www/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/www/savoyglobal.net/drafthr/system/application/views/Master/addcountry.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php if($action=='update') { foreach($viewinfo as $adb) { $countryname=$adb['countryname']; $id=$adb['id']; $countrycode=$adb['countrycode']; $countryisd=$adb['countryisd']; $currencyname=$adb['currencyname']; $currencycode=$adb['currencycode']; } } else{ $countryname=''; $countrycode=''; $countryisd=''; $currencyname=''; $currencycode=''; } ?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showcountry()" alt="Back" align = "center" width="25" height="25" /></label> </div> <fieldset> <?php $attributes = array('id' => 'customForm'); if($action=='add') { echo '<legend>Add Country</legend>'; echo form_open('master/addcountry',$attributes); } else if($action=='update') { echo '<legend>Update Country</legend>'; echo form_open('master/editcountry',$attributes); echo '<input type="hidden" name="countryid" value="'.$id.'">'; } ?> <ul> <li> <label for="country">Country</label> <?php $data = array( 'name' => 'countryname', 'id' => 'countryname', 'value' => $countryname, 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> <span id="countrynameInfo" class="red_bold">*</span> </li> <li> <label for="country">Country Code</label> <?php $data = array( 'name' => 'countrycode', 'id' => 'countrycode', 'value' => $countrycode, 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> <span id="countrycodeInfo" class="red_bold">*</span> </li> <li> <label for="country">Country ISD code</label> <?php $data = array( 'name' => 'countryisd', 'id' => 'countryisd', 'value' => $countryisd, 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> <span id="countryisdInfo" class="red_bold">*</span> </li> <li> <label for="country">Currency Name</label> <?php $data = array( 'name' => 'currencyname', 'id' => 'currencyname', 'value' => $currencyname, 'style' =>'width:250px;' ); echo form_input($data).form_error($data); ?> <span id="currencynameInfo" class="red_bold">*</span> </li> <li> <label for="country">Currency Code</label> <?php echo form_input('currencycode',$currencycode).form_error('currencycode'); ?> </li> <li><label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="return validateform('countryname','countrycode','countryisd','currencyname');"><?php if($action=='add') {?>Save<?php } else {?>Update <?php }?></button> </li> </ul> <?php echo form_close();?> </fieldset>