    <script>
        $(function() {
<!--             $(".datepicker").datepicker(); -->
<!--             $(".uniform_on").uniform() -->;
            $(".chzn-select").chosen();
   <!--          $('.textarea').wysihtml5(); -->

        });
	   </script>
	   
	   
 

         <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 code = $(this).data('code');
		   $("#code").val(code); 
		     var expamount = $(this).data('expamount');
		   $("#expamount").val(expamount); 
		     var year = $(this).data('year');
		   $("#year").val(year); 
		     var month = $(this).data('month');
		   $("#month").val(month); 
		   
		     var description = $(this).data('description');
		   $("#description").val(description); 
		 
		     var usedamount = $(this).data('usedamount');
		   $("#usedamount").val(usedamount);
		  
		   
        });
		
		
		
		
    </script> 
	   	  <style type="text/css">
  
  	
  .invoice-box table tr.heading td {
        background: #eee;
        border-bottom: 1px solid #ddd;
        font-weight: bold;
		
		
    }
  
  #printable { display: none; }
  @media print
    {
		
    	#non-printable { display: none; }
    	#printableArea { display: block; font-size:18; width:100%; }
		  margin:0; 
		#printdive2{
	font-style: normal;font-size: 0.5em;
	
	padding:0px;
	
}
    }

#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:18; width:100%; }
    }
    </style>
 <link href="<?php echo base_url(); ?>assets/select/chosen.min.css" rel="stylesheet" media="screen">
	
		   
		   		   <script src="<?php echo base_url(); ?>assets/select/chosen.jquery.min.js"></script>
 <div class="row">
  
   	

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

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

      $mydate=date("Y-m-d H:i:s");
 $date = Date('Y-m-d') ;
 $fromdate = Date('Y-m-01') ;
  $mymonth = Date('F') ;
  
  
    
   $STARTDATE=date("Y-m-01 00:00:00");
					  $ENDDATE=date("Y-m-d 23:59:59");


		 	 $year = Date('Y') ;
		  $month = Date('m') ;
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
    $deletebank=$this->usermodel->populatuserpermissionsdataarray('accounting','deletebank',$userid);
function formatMoney($number, $fractional=false) {
						if ($fractional) {
							$number = sprintf('%.2f', $number);
						}
						while (true) {
							$replaced = preg_replace('/(-?\d+)(\d\d\d)/', '$1,$2', $number);
							if ($replaced != $number) {
								$number = $replaced;
							} else {
								break;
							}
						}
						
						return $number;
					}
  
  ?>
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading" id="non-printable">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
				 <span class="pull-right"> View Labour  </span>

				 	  				 <a href="<?php echo base_url();?>user/viewrequest" class="btn btn-info"> Back </a>
				 	  				 <a href="<?php echo base_url();?>user/viewlabour" class="btn btn-info"> Refresh </a>
									 
									 <a data-toggle='modal' data-target='#uploadModal' class="btn btn-success">Upload Labour sheet  </a>
 <a href="<?php echo base_url();?>downloads/labour.xlsx" class="btn btn-default">   Labour sheet template </a>	 
				 	  				 <a href="<?php echo base_url();?>user/viewlabour" class="btn btn-info"> Go back </a>

									 <!--
 <a data-toggle='modal' data-target='#purchaseModal' class="btn btn-default">View Labour Report</a>
 
 -->
 <div class="pull-right"  >
<form name="print" method="post" action="">
 <input type="submit" id="print"  accesskey="p" class="btn btn-default"  name="print"onclick="printDiv('sortable_table')" value="Print Report!" />

 </form></div>
				 
            	</div>
            </div>
			<div class="panel-body" id="non-printable">


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

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

                 echo form_open('user/viewlabourreport' , 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="usedamount" id="usedamount" value="0.00" class="form-control" required placeholder="Enter  actual amount used ">

		  		<input type="hidden" name="action" value="insert" class="form-control" required placeholder="Insert ">
		  		<input type="hidden" name="view" value="user/viewlabour" class="form-control" required placeholder="view ">
		  		<input type="hidden" name="mycategoryid" value="" class="form-control" required placeholder="mycategoryid ">

 </div>
	<div class="col-md-12">
 	<div class="form-group">
	    <label for="inputcode" class="col-sm-2 control-label">  Employee:</label>
    <div class="col-sm-4">

  <select  class="chzn-select" name="supplier" required  style="width:100%">
	
	<option value=""  >---Select Employee---</option>
	<option value="all"  selected="selected" >---ALL Employees---</option>

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


	
if(is_array($allusers)) {

   foreach($allusers as $userrow){

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




	<?php

}} else {
    echo 'No user available.';
}
	
?>
</select>
    
  </div>
	
    <label for="inputcode" class="col-sm-2 control-label">Activity/ Account</label>
    <div class="col-sm-4">
		
		
	
		<select  class="chzn-select"  name="code" required style="width:100%">
	
	<option value=""  >---Select PAY/Deduction Account--</option>

		<option value="all"  selected="selected">---ALL-</option>



	<?php 
					 
		
											$mybanking= $this->usermodel->populatealldatanoarray('salarycharges','companyid',$companyid,'status','Active');


if(is_array($mybanking)) {

   foreach($mybanking as $mybankingrow){

   //echo $courserow->coursename;
   ?>
					<option value="<?=  $mybankingrow->code;   ?>"><?=  $mybankingrow->name."-".$mybankingrow->code; ?></option>




	<?php

}} else {
    echo 'No Customer available.';
}
	
?>
</select>		
		  		
				
		<span class="text-danger"> 	<?php echo form_error('code'); ?>
		
		</span>
		
		
	</div>
  
	
    </div>	
	</br>
		 </div>	
		
		
		
		
		
		
		
		
						    <label for="inputfromdate" class="col-sm-2 control-label">From Date </label>

				<div class="col-sm-5">
					<div class="form-group">

                     		  		<input type="date" name="fromdate" value="<?php echo set_value('fromdate',date("Y-m-d", strtotime($fromdate))); ?>" class="form-control" required placeholder="Enter start date">

					</div>
				</div>
				<div class="col-sm-5">
					<div class="form-group">
					

							  		<input type="time"  name="frotime" value="<?php echo set_value('frotime',"00:00:00"); ?>" class="form-control" required placeholder="Enter start time">

					</div>
				</div>
			

			
			
						    <label for="inputfromdate" class="col-sm-2 control-label">To Date </label>

				<div class="col-sm-5">
					<div class="form-group">

		  		<input type="date" name="todate" value="<?php echo set_value('todate',date("Y-m-d", strtotime($date))); ?>" class="form-control" required placeholder="Enter End date">

					</div>
				</div>
				<div class="col-sm-5">
					<div class="form-group">
					

							  		<input type="time"  name="totime" value="<?php echo set_value('totime',"23:59:59"); ?>" class="form-control" required placeholder="Enter stop time">

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

					
				<div class="col-md-12" id="non-printable">		
					
   <div class="form-group">
   <label for="inputmonth" class="col-sm-1 control-label">Month </label>
    <div class="col-sm-4">

 <select name='month' class="form-control" required>
    <option value='all' selected="selected">--All/ Any Month--</option>

    <option value=''>--Select Month for payment--</option>
    <option  value='Janaury'>Janaury</option>
    <option value='February'>February</option>
    <option value='March'>March</option>
    <option value='April'>April</option>
    <option value='May'>May</option>
    <option value='June'>June</option>
    <option value='July'>July</option>
    <option value='August'>August</option>
    <option value='September'>September</option>
    <option value='October'>October</option>
    <option value='November'>November</option>
    <option value='December'>December</option>
    </select> 		 
				
		
		</span>
	</div>
	   <label for="inputmonth" class="col-sm-1 control-label">Group? </label>

	 <div class="col-sm-5">
	 <select name='group' class="form-control" required style="width:30%">

    <option value=''>--Group--</option>
    <option  value='yes'>Yes</option>
    <option  value='no' selected="selected">No</option>

    </select>
	</br>
	Description
		<input name="description" required style="width:40%" class="form-control" placeholder="Description/comments">

     </div>
	 
    <label for="inputdescription" class="col-sm-2 control-label"></label>

    <div class="col-sm-2">     
	         <button type="submit"  name="btn_labour"  value="labour"  class="btn btn-primary">View Report </button>

    </div>
  </div>

</div>
	
  </div>
  	
		
  
  
	
	
  					<?php echo form_close();?>
					
		 </div>			
					
				
	</div>
		</br></br>				
		
					<table class="tablesorter table table-bordered  table-hover" id="sortable_table">			

             <thead>
         <tr>
		   							<th>Name  </th>

		   							<th>Account  </th>

							  							<th>Qty /No   </th>
																	<th>Rate   </th>
							  						

			<th> Total </th>
				<th>Month  </th>
			<th> Description </th>

			<th> Date </th>
										<th> Added by? </th>

		<th id="non-printable">More</th>
		


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

	
    }else {
?>
    
             <?php 
 
  $ttexpected=0;
    $ttrates=0;
  	foreach ($viewlabour as $c): 

	
	
			
		  $ttexpected= $ttexpected+$c->qty;
    $ttrates= $ttrates+($c->qty*$c->rate);


             ?>


			 
			
	
	 
			 
			 
			 
			 
			 
			 
			 
			 
			 

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


?>



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

					 $employee= $this->usermodel->populateallarray('people','idno',$employeeid);

	$employeeno=$employee[0]['firstname'];
	
	if($employeeid==""){
		
		echo "No Employee No Assigned.." .$employeeid;
	}else{
		
	echo $employeeno;
	}
	   
?>
												 
	 </td>	


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

					 $account= $this->usermodel->populateallarray('salarycharges','code',$mycode);

	echo$name=$account[0]['name'];
	
	if($name==""){
		
		echo "No Payable account with this No.." .$mycode;
	}
	 
	   
	
?>
												 
	 </td>											 
												 
			
              
   <td><?php echo $c->qty ; ?></td>

	 

	  
	  
	  <td><?php 
		echo  formatMoney(($c->rate), true); 
		
		?></td>


      <td><?php echo  formatMoney(($c->qty *  $c->rate), true);   ?></td>
	  
	  
	  
	  
	  
	  
	  
	  
	     <td><?php echo $c->month ; ?></td>
	  <td><?php echo $c->description ; ?></td>
	  	  <td><?php echo $c->exactdate ; ?></td>

	  
	 <td><?php  $userids= $c->userid ;

$myuser=$this->usermodel->geteuser($userids);
   echo $myname=$myuser[0]['firstname'];

  ?></td>
   	 	 <td id="non-printable"> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
									<?php
										if($usertype=="admin"){
											
											?>
                                    <ul class="dropdown-menu dropdown-primary pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK -->
                                      
										
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'    data-toggle='modal' data-target='#deleteModal<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
									
									
                                        <li class="divider"></li>
										
                                        
                                     	  <li> 
<!---
									
										  
	 <a class="btn btn-primary editbtn" id="editbtn" data-usedamount='<?php echo  $c->usedamount;?>' data-code='<?php echo  $c->code;?>' data-expamount='<?php echo  $c->expamount;?>'data-year='<?php echo  $c->year;?>'data-month='<?php echo  $c->month;?>' 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>
                                        
                                        <!-- teacher DELETION LINK -->
                                        
                                    </ul>
											<?php
										}
										?>
                                </div>
</td>
     	
                  
             </tr>

	<?php endforeach;} ?>

          
 
			<tr border="1" background="green">
									<td  colspan="2" ><center><b>Expected  qty:</center></b></td>
									<td ><center><b>
		<?php if(isset($ttexpected)) {echo formatMoney($ttexpected, true);  }?><b></center></td>
		
			<td colspan="2"><center><b>
		<?php if(isset($ttrates)) {echo formatMoney($ttrates, true);  }?><b></center></td>

		
<td  id="non-printable"></td>

</tr>
        </table>			
					
					
						



					
	<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 labour sheet 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/uploadlabour' , 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/viewlabour"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..
		<br> Order of columns: Empno,Account,No/Qty,Month,Description,date
		<?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="labour" name="btn_uploadlabour" class="btn btn-primary">Upload Labour sheet </button>

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

    

				</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 Budget</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addbudget' , 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="mycategoryid" value=""id="mycategoryid" class="form-control" required placeholder="Enter mycategoryid">
			<input type="hidden" name="action" value="update"id="action" class="form-control" required placeholder="Enter mycategoryid">
		  		<input type="hidden" name="view" value="user/viewbudget" class="form-control" required placeholder="view ">

<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">Account</label>
    <div class="col-sm-10">
		
	
		<select class="form-control" name="code" id="code" required >
	
		<option value=""  selected="selected"> </option>

	<option value=""  >---Select Income/Expense Account---</option>

	


	<?php 
					 
		
											$mybanking= $this->usermodel->populatealldatanoarray('glaccounts','companyid',$companyid,'description','5');


if(is_array($mybanking)) {

   foreach($mybanking as $mybankingrow){

   //echo $courserow->coursename;
   ?>
					<option value="<?=  $mybankingrow->number;   ?>"><?=  $mybankingrow->accountname; ?></option>




	<?php

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







		<div class="form-group">
    <label for="inputexpamount" class="col-sm-2 control-label">Expected Amount: </label>
    <div class="col-sm-10">
	
		  		<input type="number" name="expamount" id="expamount" value="<?php echo set_value('expamount'); ?>" class="form-control" required placeholder="Enter  expected amount ">
		 
				
		<span class="text-danger"> <?php echo form_error('expamount'); ?>
		
		</span>
	</div>
  </div>

	<div class="form-group">
    <label for="inputusedamount" class="col-sm-2 control-label">Actual Amount: </label>
    <div class="col-sm-10">
	
		  		<input type="number" name="usedamount" id="usedamount" value="<?php echo set_value('usedamount'); ?>" class="form-control" required placeholder="Enter  actual amount used ">
		 
				
		<span class="text-danger"> <?php echo form_error('usedamount'); ?>
		
		</span>
	</div>
  </div>

				
			  <div class="form-group">
    <label for="inputmonth" class="col-sm-2 control-label">Month </label>
    <div class="col-sm-10">

 <select name='month' id='month'  class="form-control" required>
 		<option value=""  selected="selected"> </option>

    <option value=''>--Select Month for payment--</option>
    <option  value='Janaury'>Janaury</option>
    <option value='February'>February</option>
    <option value='March'>March</option>
    <option value='April'>April</option>
    <option value='May'>May</option>
    <option value='June'>June</option>
    <option value='July'>July</option>
    <option value='August'>August</option>
    <option value='September'>September</option>
    <option value='October'>October</option>
    <option value='November'>November</option>
    <option value='December'>December</option>
    </select> 		 
				
		
		</span>
	</div>
  </div>		
			
		
		
		
		
		
		
		
		<div class="form-group">
    <label for="inputyear" class="col-sm-2 control-label">Year: </label>
    <div class="col-sm-10">
	
   				<input type="text" name="year"  id="year" value="<?php echo set_value('year',$year); ?>" id="idno" class="form-control"  placeholder="Enter year">
		 
				
		<span class="text-danger"> <?php echo form_error('year'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 
  <div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">Comments</label>
    <div class="col-sm-10">
	<textarea name="description" id="description" class="form-control" placeholder="Bussines/comments"><?php echo set_value('description'); ?></textarea> 

			
	</div>
  </div>
  
	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-20">
     	         <button type="submit"  name="btn_budget"  value="budget"  class="btn btn-primary">Update Budget </button>


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

    

				</div>

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

	
			
			
			
<div id="purchaseModal" 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">Budget Report</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');
					  $mydate=date("Y-m-d H:i:s");
					  $frommydate=date("Y-m-d 00:00:00");

         $YEAR = date('Y');
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/viewbudgetreport' , 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;?>

	
	
	
	
	
	
	

  	
	
	<div class="form-group">
    <label for="inputbmonth" class="col-sm-2 control-label">	Month </label>
    <div class="col-sm-10">
	
     <select name='bmonth' class="form-control" required>
    <option value=''>--Select Month for payment--</option>
	    <option  value='all'>The whole year</option>

    <option  value='Janaury'>Janaury</option>
    <option value='February'>February</option>
    <option value='March'>March</option>
    <option value='April'>April</option>
    <option value='May'>May</option>
    <option value='June'>June</option>
    <option value='July'>July</option>
    <option value='August'>August</option>
    <option value='September'>September</option>
    <option value='October'>October</option>
    <option value='November'>November</option>
    <option value='December'>December</option>
    </select> 		 
				
		<span class="text-danger"> <?php echo form_error('bmonth'); ?>
		
		</span>
	</div>
  </div>

  
	 <div class="form-group">
    <label for="inputbyear" class="col-sm-2 control-label">	Year </label>
    <div class="col-sm-10">


		  		<input type="number" name="byear" value="<?php echo set_value('byear',$YEAR); ?>" class="form-control" required placeholder="Enter salary year">
		 

		<span class="text-danger"> <?php echo form_error('byear'); ?>
		
		</span>
	</div>
  </div>
  
	 <div class="form-group">
    <label for="inputdownload" class="col-sm-2 control-label">Download?</label>
    <div class="col-sm-10">
	<select class="form-control" name="download" required>
	
	<option value=""  >---Select your option---</option>

		<option value="no" selected="selected" >--I want to view the budget---</option>
			<option value="yes"  >--I want to download the budget---</option>

</select>
		

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

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="event" name="btn_invoice" class="btn btn-primary"> View Budget  </button>

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

    

				</div>

		</div>
	    </div>
    </div>	
	
			
			
			
			
			
			
					
					
	
	<div id="deleteModal" 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="labour">

 <input type="hidden" id="view"name="view" class="view" placeholder="view" value="user/viewlabour">
 <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>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

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

 
</div>



<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/viewbudget";
		alert(" printing...........");
    }else {

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

		    // document.body.innerHTML = originalContents;

	}
}
	</script>















