?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/report/ |
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/report/view_lease_agreement.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function load_details(id) { $("#lease_flat_no").empty(); $.ajax({ type: "POST", url: "<?= site_url()?>"+'/bm/building_details/'+id, success: function(msg) { var details = JSON.parse(msg); var field=details.field; $("#lease_flat_no").append('<option value="">All</option>'); length=details.detail.length; if(length>0) { for(var i=0;i<length;i++) { $("#lease_flat_no").append('<option value='+ details.detail[i]['id']+'>'+ details.detail[i][field]+'</option>');// str+='<option value='+ details.detail[i][field]+'>'+ details.detail[i][field]+'</option>'; } } } }); } </script> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('report','viewinreportsearch','search_report','view_report','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Lease Agreement Report</h4> </div> </div> <?php $code=$this->mastermodel->getdatas(' lease_agreement','lease_id','','lease_id'); $building = $this->mastermodel->getdatas('building_details', 'building_id', 'asc', 'building_id'); $customer=$this->mastermodel->getdatas('customer','customer_id','','customer_id'); $status=$this->mastermodel->getenumvalues('lease_agreement', 'lease_status'); $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('report/generate_report/get_lease_agreement_report/xls_lease_agreement_report', $attributes); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header main no-icon">Lease Agreement Report <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>From Date </label> <div> <input name="start_date" id="date1" type="dateonly" /> </div> </div> <div class="section _100"> <label>To Date</label> <div> <input name="end_date" id="date" type="dateonly" /> </div> </div> <div class="section _100"> <label>Tenancy Agreement No</label> <div> <select name="lease_agreement_code" class=""> <option Value="">All</option> <?php foreach($code as $row) { ?> <option value="<?=$row['lease_agreement_code']?>"><?=$row['lease_agreement_code']?></option>'; <?php } ?> </select> </div> </div> <div class="section _100"> <label> Customer Name </label> <div> <select name="lease_customer_id" class="" id="lease_customer_id"> <option value="">All</option> <?php foreach($customer as $row) { ?> <option value="<?=$row['customer_id']?>"><?=$row['customer_name']?> </option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Building Name </label> <div> <select name="lease_building_id" class=" " id="lease_building_id" onchange="load_details(this.value)"> <option value="">All</option> <?php foreach ($building as $list) { ?> <option value="<?= $list['building_id'] ?>"><?= $list['building_name'] ?></option> <?php } ?> </select> </div> </div> <div class="section _100" id="type"> <label> Flat/Room/Villa No</label> <div id="drop"> <select name="lease_flat_no" id="lease_flat_no" class="chzn-done"> <option value="">All</option> </select> </div> </div> <div class="section _100"> <label> Status </label> <div style="margin-top: 6px;"> <select name="lease_status" id="lease_status" class="chzn-done"> <option value="">All</option> <?php foreach($status['val'] as $row) { ?> <option value=<?=$row?>><?=$row?></option> <?php } ?> </select> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main no-icon">Report Field <span></span> </div> <div class="content no-padding"> <table class="table"> <tr> <th style="text-align: center"><input type="checkbox" id="checkall" name="checkall" class="reportcheck" onchange="field_check_all()"/></th> <th style="text-align: center">Report Fields</th> </tr> <?php $i=1; ?> <tr> <td style="text-align: center"><input type="checkbox" value="lease_agreement_code~Tenancy_Agreement_No" name="field_name_<?=$i++;?>" class="reportcheck" checked /></td> <td>Tenancy Agreement No</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="customer.customer_name~Customer_Name" name="field_name_<?=$i++;?>" checked class="reportcheck"/></td> <td>Customer Name</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="building_details.building_name~Building_Name" name="field_name_<?=$i++;?>" checked class="reportcheck"/></td> <td>Building Name</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_flat_no~Flat/Room/Villa_No" name="field_name_<?=$i++;?>" class="reportcheck" /></td> <td>Flat/Room/Villa No</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_status~Status" name="field_name_<?=$i++;?>" checked class="reportcheck" /></td> <td>Status</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_remarks~Remarks" name="field_name_<?=$i++;?>" class="reportcheck"/></td> <td>Remarks</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_date~Lease_Date" name="field_name_<?=$i++;?>" checked class="reportcheck"/></td> <td>Lease Date</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_start_date~Lease_Start_Date" name="field_name_<?=$i++;?>" class="reportcheck"/></td> <td>Lease Start Date</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_end_date~Lease_End_Date" name="field_name_<?=$i++;?>" class="reportcheck"/></td> <td>Lease End Date</td> </tr> <tr> <td style="text-align: center"><input type="checkbox" value="lease_rent_amount~Rent_Amount" name="field_name_<?=$i++;?>" checked class="reportcheck"/></td> <td>Rent Amount</td> </tr> </table> </div> </div> </div> <input type="hidden" name="field_count" value="<?=$i;?>"/> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" >Generate</button> </div> </div> </div> </div> <?php echo form_close(); ?> <div id="loadresult"></div> <div style="display: none"> <div id="color"></div> </div> <?php