public function print_slip($id)
    {
        $user = $this->_db->get('users', array('ID', '=', $id))->first();
        $lastpay = $this->_db->get('payment', array('student_id', '=', $id))->first();
        $slip = '
		<!DOCTYPE HTML>
		<html>
		<head>
			<title>Hostel Admission Slip</title>
				<link rel="stylesheet" type="text/css" href="css/Print.css">
				<script type="text/javascript">
					function Redirect()
					{
						window.location="Payments.php";
					}
				</script>

		</head>
		<body>
			<div id="header">
				<img src="image/project header.jpg" width="1024" height="100" />
			</div>
		
			<div id="s">
			<table id="studentDetails">
				<tr><td>Student ID </td><td>:</td><td>' . $user->ID . '</td><tr>
				<tr><td>Name </td><td>:</td><td>' . $user->Name . '</td><tr>
				<tr><td>Branch </td><td>:</td><td>Multimedia College</td><tr>
				<tr><td>Faculty </td><td>:</td><td>' . $user->School . '</td><tr>
				<tr><td>Major </td><td>:</td><td>' . $user->Course . '</td><tr>
			</table>
		
			<div id="Payment">
				<h3>Deposit Payment</h3>
				<table id="PayTable">
					<tr><td>Payment ID</td><td>Date</td><td>Payment Type</td><td> Amount</td><td>Student Name</td><td>Student ID</td></tr>
					<tr><td>' . $lastpay->payment_id . '</td><td>' . $lastpay->payment_regisdate . '</td><td>' . $lastpay->payment_type . '</td><td>RM' . $lastpay->payment_amt . '</td><td>' . $user->Name . '</td><td>' . $user->ID . '</td></tr>
				</table>
			</div>
			
			<div id="terms&conditions">
			</div>
		
			<div id="footer">
				<div id="StudentSignature">
					<hr>
					Student Signature
				</div>
				<div id="StudentSignature">
					<hr>
					Hostel Management Signature
				</div>
				<div id="DateBox">
					Date : ' . TheDate() . '
				</div>
			</div><script type="application/javascript">window.onload=function(){setTimeout(Redirect(),1000000);window.print()}</script></body></html>
			<br><br>
			<hr>
			<br><br><br><a href="Payments.php">Click To Return</a>
			';
        return $slip;
    }
            	<li><a href="index.php">Home</a></li>
				<li><a href="EditForm.php">Edit Profile</a></li>
				<?php 
echo $options;
?>
				<li><a href="Logout.php">Log Out</a></li>
			</ul>
		</div>
        <!-- end of button -->
        
        <!-- content -->
        <div id="content">
		<form id="AddPayment" action method="POST">
			<table>
				<tr><td>Payment Month </td><td>:</td><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="PaidMonth" value="<?php 
echo TheDate('month');
?>
"></td></tr>
				<tr><td>Amount  </td><td>:</td><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbspRM <?php 
echo $payment->get_room($user->data()->RoomID)->room_price;
?>
</td></tr>
				<tr><td>Receipt No</td><td>:</td><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input name="ReceiptNo" type="text"></td></tr>
				<tr><td>Type of payment</td><td>:</td><td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<select name="TypeOfPay">
																			<option value="monthly">Monthly</option>
																			<option value="deposit">Deposit</option></select>
																					</td>
				<tr><td><input type="hidden" name="token" value="<?php 
echo Token::generate();
?>
"></td></tr>