

         <script type="text/javascript">
  
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid1").val(itemid); 
		  
		  
		   
        });
		$(document).on("click", "#editbtn", function()
        {
          var mycategoryid = $(this).data('id');
		  $("#mycategoryid").val(mycategoryid); 
		   
		   		   
   var maincategory = $(this).data('maincategory');
		   $("#maincategory").val(maincategory);
 
		    var name = $(this).data('name');
		   $("#name").val(name); 
		   
		     var description = $(this).data('description');
		   $("#description").val(description); 
		 
		  
		     var comments = $(this).data('comments');
		   $("#comments").val(comments); 
		 
		   var status = $(this).data('status');
		   $("#status").val(status);
		    var houseno = $(this).data('houseno');
		   $("#houseno").val(houseno);
		     var plotno = $(this).data('plotno');
		   $("#plotno").val(plotno);
		     var type = $(this).data('type');
		   $("#type").val(type);
		      var approval = $(this).data('approval');
		   $("#approval").val(approval);
		      var userid = $(this).data('userid');
		   $("#userid").val(userid);
		         var exactdate = $(this).data('exactdate');
		   $("#exactdate").val(exactdate);
		   
        });
		
		
		

    </script>   
 
 <div class="row">
  
   	

   	<div class="col-md-12">
		
		<?php
					echo $this->session->flashdata('deletemsg'); 
		   $session_data = $this->session->userdata('logged_in');
				echo $this->session->flashdata('msg'); 

   
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
	      $viewhouse=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewhouse',$userid);
$viewhouse=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewhouse',$userid);
	      $viewroomcleaned=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewroomcleaned',$userid);

	      $checkin=$this->usermodel->populatuserpermissionsdataarray('accomodation','checkin',$userid);

	      $config=$this->usermodel->populatuserpermissionsdataarray('accomodation','config',$userid);

	      $postexpense=$this->usermodel->populatuserpermissionsdataarray('accomodation','postexpense',$userid);


	      $bankdeposits=$this->usermodel->populatuserpermissionsdataarray('accomodation','bankdeposits',$userid);


	      $housekeeping=$this->usermodel->populatuserpermissionsdataarray('accomodation','housekeeping',$userid);


	      $dailysales=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailysales',$userid);


	      $customerregister=$this->usermodel->populatuserpermissionsdataarray('accomodation','customerregister',$userid);


	      $managehotel=$this->usermodel->populatuserpermissionsdataarray('accomodation','managehotel',$userid);


	      $assignrooms=$this->usermodel->populatuserpermissionsdataarray('accomodation','assignrooms',$userid);


	      $dailypayments=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailypayments',$userid);


	      $dailycollections=$this->usermodel->populatuserpermissionsdataarray('accomodation','dailycollections',$userid);


	      $advancebooking=$this->usermodel->populatuserpermissionsdataarray('accomodation','advancebooking',$userid);


	      $managecustomer=$this->usermodel->populatuserpermissionsdataarray('accomodation','managecustomer',$userid);

				   $checkoutroom=$this->usermodel->populatuserpermissionsdataarray('accomodation','checkoutroom',$userid);


	      $viewreports=$this->usermodel->populatuserpermissionsdataarray('accomodation','viewreports',$userid);

	       $cleanrooms=$this->usermodel->populatuserpermissionsdataarray('accomodation','cleanrooms',$userid);

			 				   $bulkcheckin =$this->usermodel->populatuserpermissionsdataarray('accomodation','bulkcheckin ',$userid);

       
		      $bulkstatuschange=$this->usermodel->populatuserpermissionsdataarray('accomodation','bulkstatuschange',$userid);

	?>
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
		VIEW HOUSE KEEPING HISTORY

            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>

					<?php
					if( $assignrooms==true){
						?> <a data-toggle='modal' data-target='#uploadcleanedroomsModal' class="btn btn-info"> Upload Cleaned Rooms </a>

									 <a data-toggle='modal' data-target='#cleaniningreportModal' class="btn btn-success"> Cleaned Rooms Report </a>
									 <a data-toggle='modal' data-target='#cleaniningsoldreportModal' class="btn btn-success"> Cleaned  Vs Sold Rooms  </a>

									 <a data-toggle='modal' data-target='#addModal' class="btn btn-info">Assign  Rooms  </a>
									 <a data-toggle='modal' data-target='#addfloorModal' class="btn btn-info">Assign by Floor  </a>

						
						
					<?php	
					}
					
					?>

						 <a href="<?php echo base_url();?>admin/viewpallmyplots" class="btn btn-primary">  Go back</a>	
						 <a href="<?php echo base_url();?>admin/viewassignedrooms" class="btn btn-info">  View Room allocation list</a>	
						 <a href="<?php echo base_url();?>admin/viewpallmyroomstoclean" class="btn btn-info">  House Keeping</a>	


							
								<?php
					if( $bulkstatuschange==true){
						?>
        <a data-toggle='modal' data-target='#Checkout' class="btn btn-warning">Bulk Status Change</a>


						
					<?php	
					}
					
					?>


                    
            	</div>
            </div>
			<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >				
	<?PHP


								?>	
										
					<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">
	
									
									
  <table cellpadding="1" cellspacing="1" border="1" class="table  table-striped" id="example" style="border-color:#CCCCCC; width:100%;"  >

             <thead>
			 	<tr>
	<th colspan="11">
	
								<h4><b><center>DETAILED ROOMS CLEANED  REPORT</CENTER> </b></h4>	
</th> 
	</tr>
         <tr>
		      <th>Date</th>

     <th>Cleaner Name</th>

	 <th>Room No</th>

	 <th>Plot No</th>

<!--
<th>Approval Status</th>	

-->	
	  	 <th>Times Cleaned</th>

 
		
	<th>More</th>	

                 </tr>
             </thead><tbody>
<?php
 if(!is_array($viewhousekeeping)) {
				    echo '<div class="alert alert-danger text-center">There was no data found in the system</div>';

			 }else{

    
       
  
  	foreach ($viewhousekeeping as $c): 

		 

             ?>



             <tr>
                
            <?php 
$id=$c->id;


?>

    
  <td><?php echo $c->exactdate ; ?></td>          

  <td><?php echo $c->name ; ?></td>
    <td><?php echo $c->houseno ; ?></td>

         <td><?php echo $c->plotno ; ?></td>

	 
  
  
  
  
  <!--


		  	  <td><?php echo $c->approval ; ?></td>
			  
			  -->
		  	  <td><?php echo $c->counter ; ?></td>

	  

	 <td> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
									
                                    <ul class="dropdown-menu dropdown-primary pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK -->
                                 
                                        
                                     	  <li> 


	 <a class="btn btn-primary editbtn" id="editbtn" data-type='<?php echo  $c->type;?>' data-plotno='<?php echo  $c->plotno;?>' data-houseno='<?php echo  $c->houseno;?>' data-userid='<?php echo  $c->userid;?>' data-exactdate='<?php echo  $c->exactdate;?>' data-status='<?php echo  $c->status;?>'data-approval='<?php echo  $c->approval;?>'data-name='<?php echo  $c->name;?>' data-comments='<?php echo  $c->comments;?>'   data-description='<?php echo  $c->description;?>'  data-id='<?php echo  $c->id;?>' data-toggle='modal' data-target='#editProductModel'> 	 

                                                <i class="glyphicon glyphicon-pencil"></i>
																Update
                                                </a>
                                                        </li>
																						      <li class="divider"></li>

											     
										<?php
										if($usertype=="admin"){
											
											?>
											
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'    data-toggle='modal' data-target='#myModal<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
									
									
															<?php
										}
										?>
                                  
										     
                                    </ul>
										
                                </div>
</td>
		 
		 
		 
             </tr>

	<?php endforeach;} ?>

             
<tbody>
        </table>

									
									
									
					</div>	

					
					
					
					
					
						<div id="uploadModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Please Upload Correct Products Category data(CSV)</h4>
		
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/uploadcategoryproducts' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
				<input type="hidden" name="view" value="user/viewproductcategory"id="view" class="form-control" required placeholder="Enter view">
	
	
	<div class="form-group">
    <label for="inputsurname" class="col-sm-2 control-label">	CSV LIST</label>
    <div class="col-sm-10">
		
			<input type="file" name="file" width="400"  value="<?php echo set_value('file') ;?>" placeholder="Select EXCELL" class="form-control" required placeholder="Enter Surname"  >

		  		
				
		<span class="text-danger"> Upload correct format of CSV File  here..<?php echo form_error('file'); ?>
		
		</span>
	</div>
  </div>	
  
	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="products" name="btn_uploadcategoryproducts" class="btn btn-primary">Upload products Category </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>
				   
		
  <div id="Checkout" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Bulk Status Change</h4>
      </div>
      <div class="modal-body">
        <h4>Are you sure you want to change the status in  bulk? </h4>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('adminlogged_in');
 echo $this->session->flashdata('msg'); 
    $closedatedate=date("Y-m-d 10:01:01");

		
                 echo form_open('admin/updatebulkstatuschange' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>  								  		

 <div class="form-group">
    <label for="inputidno" class="col-sm-2 control-label">Check-Out  Time</label>
    <div class="col-sm-7">
				<input type="text" name="checkoutdate" value="<?php echo set_value('checkoutdate',$closedatedate); ?>" id="idno" class="form-control" required placeholder="Enter End  Date">
        <span class="text-danger"><?php echo form_error('checkoutdate'); ?></span>
	</div>
  </div>
   <div class="form-group">
    <label for="inputfromstatus" class="col-sm-2 control-label">From Status</label>
    <div class="col-sm-7">
   	<select class="form-control" name="fromstatus" required>
	<option  value=""  >--Select status-</option>
<option value="occupied" selected >Occupied Ready </option>


  
<option value="Occupied Dirty" >Occupied Dirty </option>




	
</select>
  
  	</div>
  </div>
  
     <div class="form-group">
    <label for="inputtostatus" class="col-sm-2 control-label">To Status</label>
    <div class="col-sm-7">
   	<select class="form-control" name="tostatus" required>
	<option  value=""  >--Select status-</option>
<option value="occupied"  >Occupied Ready </option>


  
<option value="Occupied Dirty" selected  >Occupied Dirty </option>

	
</select>
  
  	</div>
  </div>
  
  
  
  
  
  
  
 <input type="hidden" id="table"name="table" class="table" placeholder="bookroom" value="house">

 
 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/viewhousekeeping">

 		   		  	         <button type="submit" name="bulkstatuschange" value="status" class="btn btn-success"> Yes  </button>

 <button type="button" class="btn btn-danger" data-dismiss="modal">No</button>


	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>




		
<div id="editProductModel" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Update house Keeping</h4>
      </div>
      <div class="modal-body">
      
	  	
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		
                 echo form_open('admin/posthousekeeping' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="update" class="form-control" required placeholder="Enter action">
	<input type="hidden" name="mycategoryid" value=""id="mycategoryid" class="form-control" required placeholder="Enter mycategoryid">

  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">Status	?</label>
    <div class="col-sm-10">
		<select class="form-control" name="status" id="status"  required>
			<option  value=""selected="selected"  ></option>

	<option  value=""  >--Select room status-</option>
			
   <option value="vacant"  >Vacant Ready</option>
       <option  value="Vacant Dirty" >Vacant Dirty</option>

<option value="Occupied Dirty" >Occupied Dirty </option>

   <option value="Blocked" >Blocked</option>
   <option value="Reserved" >Reserved</option>					 									   <option value="Pending">Pending</option>



	
</select>
	</div>
  </div>
<div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">Approval Status	?</label>
    <div class="col-sm-10">
		<select class="form-control" name="approval" id="approval" required>
	<option  value=""  >--Select Approval status-</option>
   <option value="approved" selected="selected">approved</option>
						 <option value="rejected"  >rejected</option>
			  						 <option value="new"  >new</option>
			  						 <option value="pending"  >pending</option>
			  						 <option value="closed"  >closed</option>

																 									   <option value="Pending">Pending</option>



	
</select>
	</div>
  </div>

 <div class="form-group">
    <label for="inputexactdate" class="col-sm-2 control-label"> Date </label>
    <div class="col-sm-10">
	
		  		<input type="date" name="exactdate" id="exactdate" value="" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('exactdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 <div class="form-group">
    <label for="inputuser" class="col-sm-2 control-label">User?</label>
    <div class="col-sm-10">
	<select class="form-control" name="user" id="userid"  required>
	
	<option value=""  >---Select user---</option>

			<?php
			$allusers = $this->usermodel->populatealldatanoarray('people', 'id',$userid,'id >',0);

 		
				
	

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
						<option selected="selected" value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('user'); ?>

	</div>
  </div>
  


  
  
  <div class="form-group">
    <label for="inputhouseno" class="col-sm-2 control-label">Room No.?</label>
    <div class="col-sm-10">
	
			  		<input type="text" name="houseno"  id="houseno" value="<?php echo set_value('houseno'); ?>" class="form-control" required placeholder="Enter  houseno">

	
	</div>
  </div>
  
  <div class="form-group">
    <label for="inputplotno" class="col-sm-2 control-label">Plotno	Number </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="plotno"  id="plotno" value="<?php echo set_value('plotno'); ?>" class="form-control" required placeholder="Enter the plotno">
		 
				
		<span class="text-danger"> <?php echo form_error('plotno'); ?>
		
		</span>
	</div>
  </div>
  
  <div class="form-group">
    <label for="inputtype" class="col-sm-2 control-label">House type </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="type"  id="type" value="<?php echo set_value('type'); ?>" class="form-control" required placeholder="Enter the house type">
		 
				
		<span class="text-danger"> <?php echo form_error('type'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
				  		
	<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">Incharge	Name </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name"  id="name" value="<?php echo set_value('name'); ?>" class="form-control" required placeholder="Enter the person incharge">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>

   <div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">Description </label>
    <div class="col-sm-10">
	<textarea name="description"  id="description"   placeholder="Enter any description" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('description'); ?></span>
   </div>
  </div>
    
	
   <div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">Supervisor Comment </label>
    <div class="col-sm-10">
	<textarea name="comments"   placeholder="Enter any comments" id="comments" class="form-control"></textarea>
    <span class="text-danger"><?php echo form_error('comments'); ?></span>
   </div>
  </div>
    
	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="house" name="btn_addhousekeeping" class="btn btn-primary"> Post House Keeping   </button>

    </div>
  </div>
  					<?php echo form_close();?>
	</div>					
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>
					
					
					
					
					
					
					
					
					
					
					
					
						<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Delete</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to delete this item? </h3>
      </div>
      <div class="modal-footer">
	  	

     
		<?PHP
				$session_data = $this->session->userdata('logged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" placeholder="view" value="housekeeping">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/viewhousekeeping">
 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete  </button>

	<?php echo form_close();?>
      </div>
    </div>

  </div>

  </div>	

  
  
<div id="uploadcleanedroomsModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Upload  rooms cleaned</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		                 echo form_open('admin/postcleanedrooms' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
//
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter action">



  <div class="form-group">
    <label for="inputmethod" class="col-sm-2 control-label">Method to use?</label>
    <div class="col-sm-10">
	<select class="form-control" name="method"  required>
		<option value=""  selected="selected" >---Select method to use for recording rooms cleaned---</option>
		<option value="one"  >One by One</option>
		<option value="bulk"  >Bulk/ Multple (By use of uploading)(EXCEL Sheet Order of columns: Houseno (A),Plotno(B),Cleaner Name(C))</option>

</select>
		

	</div>
  </div>



 <div class="form-group">
    <label for="inputexactdate" class="col-sm-2 control-label"> Date Cleaned </label>
    <div class="col-sm-10">
	
		  		<input type="datetime" name="exactdate" value="<?php echo  date("Y-m-d H:s:i"); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('exactdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 <div class="form-group">
    <label for="inputuser" class="col-sm-2 control-label">Uploaded By</label>
    <div class="col-sm-10">
	<select class="form-control" name="user" required>
	
	<option value=""  >---Select user---</option>

			<?php
			$allusers = $this->usermodel->populatealldatanoarray('people', 'companyid',$companyid,'category','user');

 		
				
	

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
						<option selected="selected" value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('user'); ?>

	</div>
  </div>
  


  
  
  <div class="form-group">
    <label for="inputhouseno" class="col-sm-2 control-label">Room No.?</label>
    <div class="col-sm-10">
	<select class="form-control" name="houseno"  required>
		<option value=""  >---Select room Number---</option>
		<option value="na"  >Na</option>


	
	
	<?php 
					 
						$house= $this->usermodel->populateall('house','companyid',$companyid);

			//		 


if(is_array($house)) {

   foreach($house as $houserow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $houserow->id;   ?>"><?=  $houserow->houseno."-Plotno :" .$houserow->plotno; ?></option>



	<?php

}} else {
    echo 'No Room  available.';
}
	
?>
</select>
		

	</div>
  </div>
  <div class="form-group" >
    <label for="inputstatus" class="col-sm-2 control-label">status</label>
    <div class="col-sm-10">
	
		 	<select class="form-control" name="status" required>
	<option  value=""  >--Select status-</option>
	 <option value="vacant" selected >Vacant Ready</option>
     
	 <option  value="Vacant Dirty" >Vacant Dirty</option>

<option value="Occupied Dirty" >Occupied Dirty </option>

   <option value="Blocked" >Blocked</option>
   <option value="Reserved" >Reserved</option>	
	
</select>		  		
		</div>
  </div>
   <div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">Remarks / Name</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="description" value="" class="form-control" required placeholder="Enter remarks / Name">
		 
				
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
  
    <div class="form-group">  <div class="form-group">

    <label for="inputfile" class="col-sm-2 control-label">Upload file</label>
    <div class="col-sm-7">
		  		<input type="file" name="file" value="<?php echo set_value('file'); ?>"id="file" class="form-control"  placeholder="Enter Country Name">
     <span class="text-danger"><?php echo form_error('file'); ?></span>
   </div>
  </div>

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="clean" name="btn_roomscleaned" class="btn btn-primary"> Post Rooms Cleaned  </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>

   </div>
  
  
  
  
  
  
  
  
  
<div id="addModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Assign room</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		                 echo form_open('admin/asignrooms' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));

				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter action">



  <div class="form-group">
    <label for="inputmethod" class="col-sm-2 control-label">Method to use?</label>
    <div class="col-sm-10">
	<select class="form-control" name="method"  required>
		<option value=""  selected="selected" >---Select method to use for assigning rooms---</option>
		<option value="one"  >One by One</option>
		<option value="bulk"  >Bulk/ Multple (By use of uploading)(EXCEL Sheet Order of columns: Houseno (A),Plotno(B),Floor(C))</option>

</select>
		

	</div>
  </div>



 <div class="form-group">
    <label for="inputexactdate" class="col-sm-2 control-label"> Date </label>
    <div class="col-sm-10">
	
		  		<input type="date" name="exactdate" value="<?php echo  date("Y-m-d"); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('exactdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 <div class="form-group">
    <label for="inputuser" class="col-sm-2 control-label">User?</label>
    <div class="col-sm-10">
	<select class="form-control" name="user" required>
	
	<option value=""  >---Select user---</option>

			<?php
			$allusers = $this->usermodel->populatealldatanoarray('people', 'companyid',$companyid,'category','user');

 		
				
	

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
						<option selected="selected" value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('user'); ?>

	</div>
  </div>
  

  
  
  
  <div class="form-group">
    <label for="inputhouseno" class="col-sm-2 control-label">Room No.?</label>
    <div class="col-sm-10">
	<select class="form-control" name="houseno"  required>
		<option value=""  >---Select room Number---</option>
		<option value="na"  >Na</option>


	
	
	<?php 
					 
						$house= $this->usermodel->populateall('house','companyid',$companyid);

					 


if(is_array($house)) {

   foreach($house as $houserow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $houserow->id;   ?>"><?=  $houserow->houseno."-Plotno :" .$houserow->plotno; ?></option>



	<?php

}} else {
    echo 'No Room  available.';
}
	
?>
</select>
		

	</div>
  </div>
  
				  		
	
  
    <div class="form-group">  <div class="form-group">

    <label for="inputfile" class="col-sm-2 control-label">Upload file</label>
    <div class="col-sm-7">
		  		<input type="file" name="file" value="<?php echo set_value('file'); ?>"id="file" class="form-control"  placeholder="Enter Country Name">
     <span class="text-danger"><?php echo form_error('file'); ?></span>
   </div>
  </div>

  <div class="form-group">
    <label for="inputfloor" class="col-sm-2 control-label">Floor</label>
    <div class="col-sm-10">
	<select class="form-control" name="floor"  >
			<option value="na"  >na</option>

		<option value=""  >---Select Floor---</option>
		<option value="Ground"  >Ground</option>
		<option value="1"  >1</option>
		<option value="2"  >2</option>
		<option value="3"  >3</option>
		<option value="4"  >4</option>
		<option value="5"  >5</option>
		<option value="6"  >6</option>
		<option value="7"  >7</option>
		<option value="8"  >8</option>
		<option value="9"  >9</option>

		<option value="10"  >10</option>
		<option value="11"  >11</option>
		<option value="12"  >12</option>
		<option value="13"  >13</option>
		<option value="14"  >14</option>
		<option value="15"  >15</option>
		<option value="16"  >16</option>
		<option value="17"  >17</option>
		<option value="18"  >18</option>
		<option value="19"  >19</option>
		<option value="20"  >20</option>
		<option value="20"  >20</option>
		<option value="21"  >21</option>
		<option value="22"  >22</option>
		<option value="23"  >23</option>
		<option value="24"  >24</option>
		<option value="25"  >25</option>
		<option value="26"  >26</option>
		<option value="27"  >27</option>
		<option value="28"  >28</option>
		<option value="29"  >29</option>
		<option value="30"  >30</option>
</select>
		

	</div>
  </div>
  
	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="clean" name="btn_asignrooms" class="btn btn-primary"> Assign Room   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>

   </div>


  
<div id="addfloorModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Assign room per floor</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		                 echo form_open('admin/asignrooms' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));

				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter action">



  <div class="form-group">
    <label for="inputmethod" class="col-sm-2 control-label">Method to use?</label>
    <div class="col-sm-10">
	<select class="form-control" name="method"  required>
		<option value=""   >---Select method to use for assigning rooms---</option>
		<option value="Floor"  selected="selected">Assign per floor</option>

</select>
		

	</div>
  </div>



 <div class="form-group">
    <label for="inputexactdate" class="col-sm-2 control-label"> Date </label>
    <div class="col-sm-10">
	
		  		<input type="date" name="exactdate" value="<?php echo  date("Y-m-d"); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('exactdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 <div class="form-group">
    <label for="inputuser" class="col-sm-2 control-label">User?</label>
    <div class="col-sm-10">
	<select class="form-control" name="user" required>
	
	<option value=""  >---Select user---</option>

			<?php
			$allusers = $this->usermodel->populatealldatanoarray('people', 'companyid',$companyid,'category','user');

 		
				
	

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
						<option selected="selected" value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('user'); ?>

	</div>
  </div>
  

  
  <div class="form-group">
    <label for="inputhouseno" class="col-sm-2 control-label">Plot No.?</label>
    <div class="col-sm-10">
	<select class="form-control" name="houseno"  required>
		<option value=""  >---Select plot/Building Number---</option>

		<option value="all"  >All</option>

	
	
	<?php 
					 
						$house= $this->usermodel->populateall('plot','companyid',$companyid);

					 


if(is_array($house)) {

   foreach($house as $houserow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $houserow->id;   ?>"><?=  $houserow->name."-Plotno :" .$houserow->id; ?></option>



	<?php

}} else {
    echo 'No Room  available.';
}
	
?>
</select>
		

	</div>
  </div>
  
				  		
	
  
  
  <div class="form-group">
    <label for="inputfloor" class="col-sm-2 control-label">Floor</label>
    <div class="col-sm-10">
	<select class="form-control" name="floor"  required>
		<option value=""  >---Select Floor---</option>
		<option value="Ground"  >Ground</option>
		<option value="1"  >1</option>
		<option value="2"  >2</option>
		<option value="3"  >3</option>
		<option value="4"  >4</option>
		<option value="5"  >5</option>
		<option value="6"  >6</option>
		<option value="7"  >7</option>
		<option value="8"  >8</option>
		<option value="9"  >9</option>

		<option value="10"  >10</option>
		<option value="11"  >11</option>
		<option value="12"  >12</option>
		<option value="13"  >13</option>
		<option value="14"  >14</option>
		<option value="15"  >15</option>
		<option value="16"  >16</option>
		<option value="17"  >17</option>
		<option value="18"  >18</option>
		<option value="19"  >19</option>
		<option value="20"  >20</option>
		<option value="20"  >20</option>
		<option value="21"  >21</option>
		<option value="22"  >22</option>
		<option value="23"  >23</option>
		<option value="24"  >24</option>
		<option value="25"  >25</option>
		<option value="26"  >26</option>
		<option value="27"  >27</option>
		<option value="28"  >28</option>
		<option value="29"  >29</option>
		<option value="30"  >30</option>
</select>
		

	</div>
  </div>
  
  
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="clean" name="btn_asignrooms" class="btn btn-primary"> Assign Room   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>

   </div>

  
<div id="cleaniningsoldreportModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Report for rooms cleaned Vs Sold</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		
                 echo form_open('admin/searchroomscleanedandsold' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter action">






 <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">From Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="fromdate" value="<?php echo  date("Y-m-d 00:00:00"); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
 <div class="form-group">
    <label for="inputenddate" class="col-sm-2 control-label">To Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="enddate" value="<?php echo  date("Y-m-d 23:59:59"); ?>" class="form-control" required placeholder="Enter end date">
		 
				
		<span class="text-danger"> <?php echo form_error('enddate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  

  
	
  
  

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="clean" name="btn_Assignrooms" class="btn btn-primary"> Assign Room   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>

			
  
<div id="cleaniningreportModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Report for rooms cleaned</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		
                 echo form_open('admin/searchroomscleaned' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
<input type="hidden" name="view" value="admin/viewhousekeeping"id="view" class="form-control" required placeholder="Enter status">
<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Enter action">
<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="Enter action">






 <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">From Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="fromdate" value="<?php echo  date("Y-m-d 00:00:00"); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
 <div class="form-group">
    <label for="inputenddate" class="col-sm-2 control-label">To Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="enddate" value="<?php echo  date("Y-m-d 23:59:59"); ?>" class="form-control" required placeholder="Enter end date">
		 
				
		<span class="text-danger"> <?php echo form_error('enddate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 <div class="form-group">
    <label for="inputuser" class="col-sm-2 control-label">Select User?</label>
    <div class="col-sm-10">
	<select class="form-control" name="user" required>
	
	<option value=""  >---Select user---</option>
	<option value="all" selected="selected"  >--ALL/Everyone---</option>

			<?php
			$allusers = $this->usermodel->populatealldatanoarray('people', 'companyid',$companyid,'category','user');

 		
				
	

	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

   //echo $courserow->coursename;
    ?>
						<option value="<?=  $userrow->id;   ?>"><?=  $userrow->firstname ."- ".$userrow->surname ."(". $userrow->email.")"; ?></option>




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('user'); ?>

	</div>
  </div>
  


  
  
	
  
  

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="clean" name="btn_Assignrooms" class="btn btn-primary"> Assign Room   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>



		
									
									
							</div>		
									
							</div>
						</div>
				

			
			</div>
		</div>
  
  </div>
			
				
		
		
  

 
</div>


















