    

   <style type="text/css">

    @media print
    {
    	#non-printable { display: none; }
    	#printableArea { display: block; font-size:20;margin-top:0; margin-bottom:0;


    margin: 0 0 0 0;
    overflow: hidden;  
		}
    }
    </style>
	<script>

 

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

     document.body.innerHTML = printContents.fontsize(28);
     window.print();


}
	</script>








<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#list" data-toggle="tab"><i class="entypo-menu"></i> 
					
					<form name="print" method="post" action="">
<input type="submit" id="print"  accesskey="p" class="btn btn-primary"  name="print"onclick="printDiv('printableArea')" value="Click here to Print" />
</form>
                    	</a></li>
			
						
						
						
		</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
            <div class="tab-pane box active" id="list">
				
     


 <div class="panel panel-primary" data-collapsed="0" >
  <div id="printableArea">
  <h2>
  <?php 
  				$session_data = $this->session->userdata('adminlogged_in');
$data['firstname'] = $session_data['firstname'];


 $firstname=$data['firstname'];

  	echo $this->session->flashdata('msg'); 
		if(validation_errors()):
		 endif;
 if(!is_array($mypayment)) 

 {




    
       echo '<div class="alert alert-warning text-center">There is no Payment found by now from system..Try again</div>';
   
    }else {
?>
    
             <?php 
  
  	foreach ($mypayment as $row): 

		 

             ?>
			 
 <table  align="center" width="95%">
 
		<tr>
			<td colspan="2"><div style="text-align: left; font-weight: bold; margin-left:50px" >
			
	JUJA NEW GUEST HOUSE.<BR>

		P.O BOX 97165-80100  SABA SABA<BR>

		TEL: (060) 21149,Kerugoya Branch.<br>
		
		<br><br>
				<p style="margin-center;">OFFICIAL RECEIPT.</p>
			</div></td>
		</tr>
		<tr>
			<td width="40%">RECEIPT NO</td>
			<td width="60%">137140</td>
		</tr>
		<tr>
			<td>DATE </td>
			<td style="padd-left:30px">:26/10/2016 8:00 AM</td>
		</tr>
	
	<tr>
			
			<td>NAME</td>
			<td>:ROBERT MANYALA</td>
		</tr>
		<tr>
			
			<td>ID NO</td>
			<td>:0257049</td>
		</tr>
		<tr>
			
			<td>HOUSE NO</td>
			<td>:D10</td>
		</tr>
		
		<tr>
			
			<td>AMOUNT </td>
			<td>:Ksh.3800</td>
		</tr>
			<tr>
			
			<td>DESCRIPTION </td>
			<td>:Accommodation , supper and breakfast</td>
		</tr>
	
			<tr>
			
			<td>PAID BY </td>
						<td>: <?php echo $row->userid ; ?></td>
		</tr>
		</h2>


             <?php endforeach; ?>

              <?php }?>
			  	</table>
	<div style="text-align: left; text-size:16px ; margin-left:20px; ">
	<h3>
		</br>


Thank you  <br>
You have been served by :<?php echo $firstname ; ?> <br>

Developed by Robiseach LTD (0716413386)<br>
.............*******...............
</h3>
</div>

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