
<script>
	function printDiv(divName) {
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

    // document.body.innerHTML = printContents.fontsize(12);
     window.print();
//
	 if( window.print()) {
         window.location.href = "../user/searchhousebalance";
		alert(" printing...........");
    }else {

	
		      return      window.location.href = "../user/searchhousebalance";

		    // document.body.innerHTML = originalContents;

	}
}


       
		 
  
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid").val(itemid); 
		  
		  
		   
        });
		








	</script>
   <style type="text/css">
  
  

    #printable { display: none; }

    #myprint { display: none; }
#print{  	


    background-repeat: no-repeat;
	font-size;12px;
  
    


}


#sale{  	
background-image:url(images/add.png) ;

    background-repeat: no-repeat;
  
    width:100px; height:50px;


}
    
    @media print
    {
    	#non-printable { display: none; }
    	#printableArea { display: block; font-size:16; width:100%; }
		    	#myprint { display: block; font-size:16; width:100%; }

    }
    </style>







 <div class="row">

 

   	<div class="col-md-12">

				 
				 	<div class="print-hide" id="non-printable"  >
<form name="print" method="post" action="">
 
 <div class="row">

 

   	<div class="col-md-6">
				 <a class="btn btn-success" href="<?php echo base_url(); ?>admin/viewpallmyplots">	GO BACK</a> ||

					 <a class="btn btn-info"href="<?php echo base_url(); ?>admin/viewmeterreadings">Go back to readings reports</a><BR>

</div> 	 

   	<div class="col-md-6">
<input type="submit" id="print"  accesskey="p" class="btn btn-primary"  name="print"onclick="printDiv('printableArea')" value="Print Report!" />
</form></div></div>
							</div> 
     
	 
	 <?php
	 	$session_data = $this->session->userdata('logged_in');

    $data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
 $data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
        
		
			 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
	        		$configuration = $this->usermodel->populateallarray('smsconfig','id',$companyid);
   		
$mydate=date('Y-m-d');
$mytime=date('H:i:s');
		 	 $year = Date('Y') ;
		  $month = Date('m') ; 
	 ?>
	 
	 
	 


 <div class="panel panel-primary" data-collapsed="0">
 	<div class="table-responsive">
			<div id="printableArea">
			
			<table width="100%">
           
			
			<tr>
				 	
	<td colspan="2" width="100%">
	<center>
		
										<?php $bussinessname=$configuration[0]['businessname']; if(isset($bussinessname)) {echo   $bussinessname; }?>
		</center>	
		</td>

			</tr>
			<?php if(isset($fromdate)) {
			
				
				
			
			?>

			
				<?php 
				
				}
			
			?>
			
			
			
</table >
			
			
			
			
			

<table  border="1"width="100%">
             <thead>
	<tr>
	<th colspan="11">
	
								<h4><b><center>CLOSE METER READINGS</CENTER> </b></h4>	
</th> 
	</tr>
		

         <tr>
		 
		 		   <th>Year </th>
		 		   <th>Month </th>
				   		<th>Open</th>
		<th>Closed</th>
		 		   <th>Status </th>
		 		   <th>Type </th>

		 
    
   
    
<th>Customer</th> 	
	
	
	 <th>Rm No </th>
	<th>HS No</th>
		<th>Meter No</th>

		<th>Used</th>

	<th>Rate </th> 
		<th>Standing</br>charge </th> 

		<th>Total </th> 


	 <th>Served By</th> 
	 <th>Edit</th> 


                 </tr>
             </thead>
<?php
	
				echo $this->session->flashdata('msg');
				 echo $this->session->flashdata('deletemsg'); 
		if(validation_errors()):
		 endif;
 if(!is_array($readings)) 

 {




    
       echo '<div class="alert alert-warning text-center">There is no booking found by now from system..</div>';
    
    }else {
?>
    				
					

             <?php 
  $totalamount=0;
  $totalpaid=0;
    $actualtotal=0;
    $people=0;
    $discount=0;

    $totalbalance=0;


	  

  	foreach ($readings as $c){ 
									// echo$totalpaid= $c->card+$c->amount+$c->mpesa+$c->voucher+$c->cheque;;
		

             ?>
			 		<?php
					
		
                 echo form_open('admin/bulkclosingofreadingsingle' , 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;?>


							 <tr> <td>
							<input type="hidden" name="readingtype" value="<?php echo set_value('readingtype',$readingtype); ?>" class="form-control" required placeholder="category ">
							<input type="hidden" name="roomno" value="<?php echo set_value('roomno',$roomno); ?>" class="form-control" required placeholder="category ">

							<input type="hidden" name="category" value="<?php echo set_value('category',$category); ?>" class="form-control" required placeholder="category ">

							<input type="hidden" name="month2" value="<?php echo set_value('month2',$month2); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="metername2" value="<?php echo set_value('metername2',$metername); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="plotno2" value="<?php echo set_value('plotno2',$plotno); ?>" class="form-control" required placeholder="Enter method ">
							<input type="hidden" name="type2" value="<?php echo set_value('type2',$type); ?>" class="form-control"  placeholder="Enter totalconsumed ">
							<input type="hidden" name="year2" value="<?php echo set_value('year2',$year); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="nextmonth" value="<?php echo set_value('nextmonth',$nextmonth); ?>" class="form-control"  placeholder="Enter totalconsumed ">
							<input type="hidden" name="nextyear" value="<?php echo set_value('nextyear',$nextyear); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="closetype" value="<?php echo set_value('closetype',$closetype); ?>" class="form-control"  placeholder="Enter totalconsumed ">
							<input type="hidden" name="method" value="<?php echo set_value('method',$method); ?>" class="form-control" required placeholder="Enter method ">




							<input type="hidden" name="view" value="admin/viewmeterreadings" class="form-control" required placeholder="Enter view">
							<input type="hidden" name="myid" value="<?php echo set_value('myid',$c->id); ?>" class="form-control" required placeholder="Enter id">

							<input type="hidden" name="branchid" value="<?php echo set_value('branchid',$c->branchid); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="houseno" value="<?php echo set_value('houseno',$c->houseno); ?>" class="form-control" required placeholder="Enter  ">
							<input type="hidden" name="plotno" value="<?php echo set_value('plotno',$c->plotno); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="rate" value="<?php echo set_value('rate',$c->rate); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="charge" value="<?php echo set_value('charge',$c->charge); ?>" class="form-control" required placeholder="Enter  ">
							<input type="hidden" name="opening" value="<?php echo set_value('opening',$c->opening); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="tenantid" value="<?php echo set_value('tenantid',$c->tenantid); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="roomid" value="<?php echo set_value('roomid',$c->roomid); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="type" value="<?php echo set_value('type',$c->type); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="month" value="<?php echo set_value('month',$c->month); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="metername" value="<?php echo set_value('metername',$c->category); ?>" class="form-control" required placeholder="Enter ">
							<input type="hidden" name="totalconsumed" value="<?php echo set_value('totalconsumed',$totalconsumed); ?>" class="form-control" required placeholder="Enter totalconsumed ">


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


   $houseno=$c->houseno;
   $plotno=$c->plotno;


		  $mychargetype = $this->usermodel->populatealldataarray('charges','id >', 0,'id', $c->type);
		$TYPE=$mychargetype[0]["type"];
?>
            <?php echo $c->year ; ?></td> 

             <td><?php echo $c->month ; ?></td> 
			 
			 										<td><?php echo $c->opening ; ?></td> 

			 		<td>
						<input type="text" name="closing" id="non-printable" style="width:50%; margin:0px" value="<?php echo set_value('closing',$c->closing); ?>" class="form-control2" required placeholder="Closing" >
																								 <span id="myprint"><?php echo $c->closing ; ?></span>

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

                         <td><?php echo $TYPE ; ?></td> 

						 				         <td><?php 
					
   $tenantid=$c->tenantid;
				    $tenants = $this->accomodationmodel->gettenantbyid($tenantid);
 if(is_array($tenants)) {
   foreach($tenants as $tenantsrow){

    $names=$tenantsrow->surname. " ".$tenantsrow->firstname ; 
   
   ?>
   
					 <?php   {echo  $names;}  ?> 
					
						 <span id="myprint"><?php echo $names ; ?></span>

   
   <?php
    

}
    } else {
    echo 'No tenant.';
}
?>
				 
				 
		</td>

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

											<td><?php echo $c->meternumber ; ?></td> 
									
										<td><?php echo $c->usedqty ; ?></td> 

																<td><?php echo $c->rate ; ?></td> 
																<td><?php echo $c->charge ; ?></td> 
																<td><?php echo $c->totalamount ; ?></td> 

													      
		 <td>
												 
	<?php 
					// $branch="";
					 $userid=$c->userid;

					 $user= $this->usermodel->populateall('people','id',$userid);



if(is_array($user)) {

   foreach($user as $userhrow){

   echo $userhrow->surname;
 
 
}} else {
    echo 'No Name.';
}
	
?>
 		   		  	         <button type="submit" name="btn_bulkclosereadings" value="closereadings" class="btn btn-success"> Close readings  </button>
											 
	 </td>	
 

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

	<?php
	} 
	
	?>
	<!--
			<tr>

<th colspan="3">			

								
								</th>
							<th colspan="15">
 		   		  	         <button type="submit" name="btn_bulkclosereadings" value="closereadings" class="btn btn-success"> Close readings in bulk  </button>

							
							</th>
							</tr>
				-->	
							 
							 
		

		 <?php }?>



             
			  <tr>
			  <td colspan="4"> <b>Total Amount</b></td>
				 	 <td colspan="2"><b><?php  if(isset($actualtotal)){ echo $actualtotal; } ?></b></td> 
			  	 	 <td ><b><?php  if(isset($total_rows)){ echo $total_rows." Rows"; } ?></b></td> 

			  </tr>

        </table>

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









	<div id="openreadingModal" 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">Start meter readings</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to start the reading? </h3>
      </div>
      <div class="modal-footer">
	  	

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

		
                 echo form_open('admin/startmeterreading' , 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="inputmetername" class="col-sm-2 control-label">Meter name</label>
    <div class="col-sm-10">
	<select class="form-control" name="metername"  id="metername" required>
	
	
	<option value="" selected="selected" >---Select meter name to start--</option>
	<option value="waterno" >Water Meter</option>
	<option value="electricityno" >Electricity Meter</option>
	<option value="bowholeno" >Bowholeno Meter</option>

				
</select>

		
	</div>
  </div>
  
  <div class="form-group">
    <label for="inputtype" class="col-sm-2 control-label">Meter Type</label>
    <div class="col-sm-10">
	<select class="form-control" name="type"  id="type" required>
	
	
	<option value="" selected="selected" >---Select meter type to start--</option>

					
								

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


							


if(is_array($maincategory2)) {

   foreach($maincategory2 as $maincategoryrow2){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $maincategoryrow2->id;   ?>"><?=  $maincategoryrow2->type; ?></option>



	<?php

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

		
	</div>
  </div>

  <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">Opening Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="startdate" value="<?php echo set_value('startdate',$mydate); ?>" class="form-control" required placeholder="Enter start date">
		 
						  		<input type="hidden" name="postedtime" value="<?php echo set_value('postedtime',$mytime); ?>" class="form-control" required placeholder="Enter start time">

		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
	Time:	<?php echo $mytime; ?>

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

 <div class="form-group">
    <label for="inputplotno" class="col-sm-2 control-label">Building Name</label>
    <div class="col-sm-10">
	<select class="form-control" name="plotno"  id="branchid" required>
	
	
	<option value="" selected="selected" >---Select building--</option>
			
								

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


							


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $maincategoryrow->id;   ?>"><?=  $maincategoryrow->name; ?></option>



	<?php

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

		
	</div>
  </div>


  <div class="form-group">
    <label for="inputbranchname" class="col-sm-2 control-label">Counter/ branch</label>
    <div class="col-sm-10">
	<select class="form-control" name="branchid"  id="branchid" required>
	
	
	<option value="" selected="selected"  >---Select one Branch/Counter to Open--</option>

					<option value="Main"  >-Main Store-</option>
					
								

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


							


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $maincategoryrow->id;   ?>"><?=  $maincategoryrow->name; ?></option>



	<?php

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

		
	</div>
  </div>



  <div class="form-group">
    <label for="inputamount" class="col-sm-2 control-label">Year</label>
    <div class="col-sm-10">
	
   				<input type="number" name="year" value="<?php echo set_value('year',$year); ?>" id="idno" class="form-control"  placeholder="Enter year">

	</div>
  </div>






  <div class="form-group">
    <label for="inputamount" class="col-sm-2 control-label">Month</label>
    <div class="col-sm-10">
	
	<select name="month" class="form-control" required>
<option value="" >Select month</option>

<option value="<?php echo $month; ?>" selected="selected" ><?php echo  $month; ?></option>
<option value="01"  >01</option>
<option value="02"  >02</option>
<option value="03"  >03</option>
<option value="04"  >04</option>
<option value="05"  >05</option>
<option value="06"  >06</option>
<option value="07"  >07</option>
<option value="08"  >08</option>
<option value="09"  >09</option>
<option value="10"  >10</option>
<option value="11"  >11</option>
<option value="12"  >12</option>

	</select>		 

	</div>
  </div>








  





				<input type="hidden" name="view" value="user/viewproducts" id="view" class="form-control" required placeholder="Enter view">

 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="openmeter" value="meter" class="btn btn-info"> Start Readings </button>

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

  </div>

  </div>				
	
	
	
	
	



	<div id="closereadingModal" 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">Close meter readings1</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to close the reading? </h3>
      </div>
      <div class="modal-footer">
	  	

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

		
                 echo form_open('admin/closemeterreading' , 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="inputclosetype" class="col-sm-2 control-label">Close type</label>
    <div class="col-sm-10">
	<select class="form-control" name="closetype"  id="closetype" required>
	
	
	<option value="" selected="selected" >---Select close type--</option>
	<option value="close" >Close Only</option>
	<option value="closeopen" >Close and open new Meter readings</option>

				
</select>

		
	</div>
  </div>
	

  <div class="form-group">
    <label for="inputmetername" class="col-sm-2 control-label">Meter type</label>
    <div class="col-sm-10">
	<select class="form-control" name="metername"  id="metername" required>
	
	
	<option value="" selected="selected" >---Select meter type to close--</option>
	<option value="waterno" >Water Meter</option>
	<option value="electricityno" >Electricity Meter</option>
	<option value="bowholeno" >Bowholeno Meter</option>

				
</select>

		
	</div>
  </div>
  <div class="form-group">
    <label for="inputbranchname" class="col-sm-2 control-label">Counter/ branch</label>
    <div class="col-sm-10">
	<select class="form-control" name="branchid"  id="branchid" required>
	
	
	<option value=""  >---Select one Branch/Counter to Open--</option>

					<option value="Main"  >-Main Store-</option>
					
								

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


							


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
					<option selected="selected" value="<?=  $maincategoryrow->id;   ?>"><?=  $maincategoryrow->name; ?></option>



	<?php

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

		
	</div>
  </div>

  <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">Closing Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="startdate" value="<?php echo set_value('startdate',$mydate); ?>" class="form-control" required placeholder="Enter start date">
		 
						  		<input type="hidden" name="postedtime" value="<?php echo set_value('postedtime',$mytime); ?>" class="form-control" required placeholder="Enter start time">

		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
	Time:	<?php echo $mytime; ?>

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


 <div class="form-group">
    <label for="inputplotno" class="col-sm-2 control-label">Building Name</label>
    <div class="col-sm-10">
	<select class="form-control" name="plotno"  id="branchid" required>
	
	
	<option value="" selected="selected" >---Select building to close--</option>
			
								

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


							


if(is_array($maincategory)) {

   foreach($maincategory as $maincategoryrow){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $maincategoryrow->id;   ?>"><?=  $maincategoryrow->name; ?></option>



	<?php

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

		
	</div>
  </div>




  <div class="form-group">
    <label for="inputyear" class="col-sm-2 control-label">Year to close</label>
    <div class="col-sm-10">
	
   				<input type="number" name="year" value="<?php echo set_value('year',$year); ?>" id="idno" class="form-control"  placeholder="Enter year">

	</div>
  </div>






  <div class="form-group">
    <label for="inputmonth" class="col-sm-2 control-label">Month to close</label>
    <div class="col-sm-10">
	
	<select name="month" class="form-control" required>
<option value="" >Select month</option>

<option value="<?php echo $month; ?>" selected="selected" ><?php echo  $month; ?></option>
<option value="01"  >01</option>
<option value="02"  >02</option>
<option value="03"  >03</option>
<option value="04"  >04</option>
<option value="05"  >05</option>
<option value="06"  >06</option>
<option value="07"  >07</option>
<option value="08"  >08</option>
<option value="09"  >09</option>
<option value="10"  >10</option>
<option value="11"  >11</option>
<option value="12"  >12</option>

	</select>		 

	</div>
  </div>





  <div class="form-group">
    <label for="inputnextyear" class="col-sm-2 control-label">Year to open</label>
    <div class="col-sm-10">
	
   				<input type="number" name="nextyear" value="<?php echo set_value('year',$year); ?>" id="nextyear" class="form-control"  placeholder="Enter year">

	</div>
  </div>






  <div class="form-group">
    <label for="inputnextmonth" class="col-sm-2 control-label">Month to open</label>
    <div class="col-sm-10">
	
	<select name="nextmonth" class="form-control" required>
<option value="" >Select month to open</option>

<option value="<?php echo $month; ?>" selected="selected" ><?php echo  $month; ?></option>
<option value="01"  >01</option>
<option value="02"  >02</option>
<option value="03"  >03</option>
<option value="04"  >04</option>
<option value="05"  >05</option>
<option value="06"  >06</option>
<option value="07"  >07</option>
<option value="08"  >08</option>
<option value="09"  >09</option>
<option value="10"  >10</option>
<option value="11"  >11</option>
<option value="12"  >12</option>

	</select>		 

	</div>
  </div>







  





				<input type="hidden" name="view" value="user/viewproducts" id="view" class="form-control" required placeholder="Enter view">

 <button type="button" class="btn btn-success" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="closemeter" value="meter" class="btn btn-info"> Close Readings </button>

	<?php echo form_close();?>
      </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('adminlogged_in');
 echo $this->session->flashdata('deletemsg'); 

		
                 echo form_open('user/deleteallbyid' , 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="bookroom" value="bookroom">
 <input type="hidden" id="view2"name="view2" class="view2" placeholder="view2" value="">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="admin/dailypayment">
 <input type="hidden" id="itemid"name="itemid" class="itemid" placeholder="itemid" value=""><br>
           <input type="hidden" id="houseno"name="houseno" class="form-control" placeholder="houseno"  value="">

          <input type="hidden" id="plotno1"name="plotno" class="form-control" placeholder="plotno"  value="">
 <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>