?
Current Path : /home1/savoy/www/savoyglobal.net/rms/application/views/building_management/ |
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/rms/application/views/building_management/edit_extension.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $appliance=$this->mastermodel->getdatas('appliance','appliance_id','','appliance_id'); ?> <script type="text/javascript"> $(document).ready(function() { var id=document.getElementById('lease_id').value; $("#building_details").load("<?= site_url()?>"+'/bm/load_building_details/' +id); }); </script> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('bm','viewinbmsearch','search_extension','view_extension','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Renewal</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('bm/addinbm/update_extension/view_extension/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Extension Code </label> <div class="single_page"> <?=$viewinfo->extension_code?> </div> </div> <div class="section _100"> <label> Lease Code </label> <div class="single_page"> <?=$lease->lease_agreement_code?> </div> <input type="hidden" name="lease_id" id="lease_id" value="<?=$lease->lease_id?>"/> </div> <div id="building_details"></div> <div class="section _100"> <label> Customer Name </label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('customer','customer_name','customer_id',$lease->lease_customer_id)?> </div> </div> <div class="section _100"> <label> Previous Contract Start Date</label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($lease->lease_start_date)?> </div> </div> <div class="section _100"> <label> Previous Contract End Date</label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($lease->lease_end_date)?> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label> Previous Rent</label> <div class="single_page"> <?=$lease->lease_rent_amount?> </div> </div> <div class="section _100"> <label> Renewal Contract Start Date</label> <div> <input name="renewal_contract_start_date" id="renewal_contract_start_date" type="dateonly" class="required" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->renewal_contract_start_date)?>"> </div> </div> <div class="section _100"> <label> Renewal Contract End Date</label> <div> <input name="renewal_contract_end_date" id="renewal_contract_end_date" type="dateonly" class="required" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->renewal_contract_end_date)?>"> </div> </div> <div class="section _100"> <label> Current Rent</label> <div> <input type="text" name="extension_current_rent" id="extension_current_rent" value="<?=$viewinfo->extension_current_rent?>" class="auto number"> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main">Appliance Allocation </div> <table class="table"> <tr> <th>Appliance</th> <th>Date</th> <th>Remarks</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) { ?> <tr> <td> <select name="extension_appliance_id" id="extension_appliance_id" class="chzn-done" > <option value="">Select</option> <?php foreach ($appliance as $list) { ?> <option value="<?=$list['appliance_id']?>" <?php if($list['appliance_id']==$row['extension_appliance_id']){ echo 'selected'; } ?> ><?=$list['appliance_type']?></option> <?php } ?> </select> </td> <td><input type="dateonly" name="extension_appliance_date" id="extension_appliance_date" value="<?=$this->mastermodel->convertdatenormalformat($row['extension_appliance_date'])?>"/></td> <td><textarea class="w_90" name="extension_appliance_remarks" id="extension_appliance_remarks"><?=$row['extension_appliance_remarks']?></textarea></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } } ?> <tr> <td> <select name="extension_appliance_id" id="extension_appliance_id" class="chzn-done" > <option value="">Select</option> <?php foreach ($appliance as $list) { ?> <option value="<?=$list['appliance_id']?>"><?=$list['appliance_type']?></option> <?php } ?> </select> </td> <td><input type="dateonly" name="extension_appliance_date" id="extension_appliance_date" /></td> <td><textarea class="w_90" name="extension_appliance_remarks" id="extension_appliance_remarks"></textarea></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="extension_id" id="extension_id" value="<?=$viewinfo->extension_id?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> </div> </div> <?php echo form_close(); ?>