?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/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/rms/application/views/master/edit_maintenance_contract.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $location=$this->mastermodel->getdatas('location','location_id','asc','location_id'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_maintenance_contract','view_maintenance_contract','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating maintenance contracting company </h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('master/addinmaster/update_maintenance_contract/view_maintenance_contract/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main"> Company Details </div> <div class="content no-padding"> <div class="section _100"> <label>Company Name </label> <div> <input name="maintenance_cc_name" id="maintenance_cc_name" class="required" " value="<?=$viewinfo->maintenance_cc_name?>"> </div> </div> <div class="section _100"> <label> Code </label> <div> <input name="maintenance_cc_code" id="maintenance_cc_code" readonly="readonly" value="<?=$viewinfo->maintenance_cc_code?>"> </div> </div> <div class="section _100"> <label>Address</label> <div> <textarea name="maintenance_cc_address" id="maintenance_cc_address"><?=$viewinfo->maintenance_cc_address?></textarea> </div> </div> <div class="section _100"> <label> Country </label> <div> <input name="maintenance_cc_country" id="maintenance_cc_country" value="<?=$viewinfo->maintenance_cc_country?>"> </div> </div> <div class="section _100"> <label> Location </label> <div style="margin-top: 6px;"> <select name="maintenance_cc_location" class="required" id="maintenance_cc_location"> <option value="">Select</option> <?php foreach ($location as $list) { ?> <option value="<?=$list['location_id'];?>"<?php if($list['location_id']==$viewinfo->maintenance_cc_location){echo "selected";} ?>><?=$list['location_name'];?></option> <?php } ?> </select> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main"> Contact Details </div> <div class="content no-padding"> <div class="section _100"> <label> Office Phone </label> <div> <input name="maintenance_cc_phone" id="maintenance_cc_phone" value="<?=$viewinfo->maintenance_cc_phone?>" class="required"> </div> </div> <div class="section _100"> <label> Mobile </label> <div> <input name="maintenance_cc_mobile" id="maintenance_cc_mobile" value="<?=$viewinfo->maintenance_cc_mobile?>" class="required" > </div> </div> <div class="section _100"> <label> Fax</label> <div> <input name="maintenance_cc_fax" id="maintenance_cc_fax" value="<?=$viewinfo->maintenance_cc_fax?>" > </div> </div> <div class="section _100"> <label> E Mail </label> <div> <input name="maintenance_cc_e_mail" class="mail" id="maintenance_cc_e_mail" value="<?=$viewinfo->maintenance_cc_e_mail?>"> </div> </div> <div class="section _100"> <label> Work Type </label> <div> <input name="maintenance_cc_work_type" id="maintenance_cc_work_type" value="<?=$viewinfo->maintenance_cc_work_type?>"> </div> </div> <div class="section _100"> <label>Remarks</label> <div> <textarea name="maintenance_cc_remarks" id="maintenance_cc_remarks"><?=$viewinfo->maintenance_cc_remarks?></textarea> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main"> Contact Person <span></span> </div> <div class="content no-padding"> <table class="table"> <caption></caption> <tr> <th>Contact Name</th> <th>Designation</th> <th>Mobile</th> <th>Phone</th> <th>Email</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php if(!empty($details)) { foreach($details as $row) { echo' <tr>'; echo '<td><input class="w_90" value="'.$row['maintenance_contact_name'].'" type="text" name="maintenance_contact_name" id="maintenance_contact_name"/></td>'; echo '<td><input class="w_90" value="'.$row['maintenance_contact_designation'].'"type="text" name="maintenance_contact_designation" id="maintenance_contact_designation"/></td>'; echo '<td><input class="w_90" value="'.$row['maintenance_contact_mobile'].'"type="text" name="maintenance_contact_mobile" id="maintenance_contact_mobile"/></td>'; echo '<td><input class="w_90" value="'.$row['maintenance_contact_phone'].'" type="text" name="maintenance_contact_phone" id="maintenance_contact_phone"/></td>'; echo '<td><input class="w_90" value="'.$row['maintenance_contact_email'].'" type="text" name="maintenance_contact_email" id="maintenance_contact_email"/></td>'; echo '<td>'; echo '<img src="'.base_url().'assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>'; echo '</td>'; echo '</tr>'; } } else { ?> <tr> <td><input class="w_90" type="text" name="maintenance_contact_name" id="maintenance_contact_name"/></td> <td><input class="w_90" type="text" name="maintenance_contact_designation" id="maintenance_contact_designation"/></td> <td><input class="w_90" type="text" name="maintenance_contact_mobile" id="maintenance_contact_mobile"/></td> <td><input class="w_90" type="text" name="maintenance_contact_phone" id="maintenance_contact_phone"/></td> <td><input class="w_90" type="text" name="maintenance_contact_email" id="maintenance_contact_email"/></td> <td> <img src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> </table> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_maintenance_contract"/> <input type="hidden" name="maintenance_cc_id" value="<?=$viewinfo->maintenance_cc_id?>"/> <input type="hidden" name="maintenance_cc_code" id="maintenance_cc_code" value="<?=$viewinfo->maintenance_cc_code?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> <?php echo form_close();?> </div> </div> </div>