?
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/edit-ourbranch-page.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showourbranch(<?php echo $currpage; ?>,'branchname','');" alt="Back" align = "center" width="25" height="25" /></label> </div> <script type="text/javascript"> </script> <?php $result= $company->row(); $attributes = array('id' => 'customForm'); echo form_open_multipart('master/editourbranch',$attributes);?> <fieldset> <legend>Edit Branch</legend> <table style="margin-left:10px "> <tr> <td> <label for="compname">Branch Name</label> </td> <td height="55px"> <input type="text" name="branchname" id="branchname" value="<?=$result->branchname?>"/><br/> <span id="branchnameInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label for="compname">Branch Code</label> </td> <td height="55px"> <input type="text" name="code" id="code" value="<?=$result->code?>"/><br/> <span id="codeInfo" class="red_bold">*</span> </td> </tr> <tr> <td height="55px"> <label> Address</label> </td> <td> <textarea id="address" name="address" value=""><?=$result->address?></textarea> </td> </tr> <tr> <td height="55px"> <label> Country</label> </td> <td> <select style="width:135px" id="country" name="country" onchange="loadcitydiv(this.value)"> <?php $city= $this->customermodel->getSingleFieldValue('city','cityname','id',$result->city); $country= $this->customermodel->getSingleFieldValue('country','countryname','id',$result->country); if (count($countrys)) { foreach ($countrys as $key => $list) { echo "<option value='". $list['id'] . "'";if($result->country == $list['id']) { echo "selected"; } echo">" . $list['countryname'] . "</option>"; } } ?> </select> </td> </tr> <tr> <td height="55px"> <label> City</label> </td> <td id="loadcity"> <select style="width:135px" id="city" name="city" disabled><option value="<?=$result->city?>"><?=$city?></option> </select> </td> </tr> <tr> <td height="55px"> <label> Telephone No</label> </td> <td> <input type="text" id="phone" name="phone" value="<?=$result->phone?>"/> <input type="hidden" id="my_cid" name="my_cid" value="<?=$result->id?>"/> </td> </tr> <tr> <td height="55px"> <label for="website"> Website</label> </td> <td> <input type="text" id="website" name="website" value="<?=$result->website?>"/> </td> </tr> <tr> <td height="55px"> <label for="email"> E-mail</label> </td> <td> <input type="text" id="email" name="email" value="<?=$result->email?>"/> </td> </tr> <tr> <td height="55px"> <label for="fax"> Fax</label> </td> <td> <input type="text" id="fax" name="fax" value="<?=$result->fax?>"/> </td> </tr> <tr> <td height="55px"> <label for="foot"> Footer</label> </td> <td> <textarea id="footers" name="footers" value=""> <?=$result->footer?></textarea> </td> </tr> <tr> <td></td> <td height="55px"> <button type="submit" name="addmycomp" onclick="return validateform('companyname');" id="addmycomp"> Update </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?> <div id="resultdiv" style="display: none"></div>