<?php
error_reporting(0);
define('INCLUDE_CHECK',true);
session_start();
require ('classes/config.php');
require_once('classes/session.php');
			 		   
?>



<!DOCTYPE html>
<html>
<head>
<title>OSCOTECH | Web Pay List</title>
<link href="http://oscotechesaoke.edu.ng/admission_portal/layout/css/bootstrap.login.css" rel="stylesheet" type="text/css" media="all" />
<link href="http://oscotechesaoke.edu.ng/admission_portal/layout/css/login.css" rel="stylesheet" type="text/css" media="all" />		
<link rel="shortcut icon" href="../images/favicon.ico">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<style type="text/css">
	body{margin-top:-40px; padding:0; top:0;}
</style>
</head>
<body>
	<div style="width:97%; margin:0 auto"> 
        <center>
        <h1 style="font-weight:bold; font-size:25px">OSUN STATE COLLEGE OF TECHNOLOGY, ESA-OKE</h1>
    	<h2 style="font-weight:bold; font-size:16px; text-decoration:underline"><?php echo $_SESSION['sek']?>  ONLINE PAYMENT STUDENT REPORT</h2>
        <h2 style="font-weight:bold; font-size:16px;text-decoration:underline">FULL TIME <?php echo $_SESSION['courses']. " " .$_SESSION['level']?> LIST</h2>
        <br>
        <table class="table table-bordered  table-condensed table-responsive" style="width:750px; font-size:12px">
        	<thead>
                <tr height="10px">
                    <th>S/N</th>
                        <th>MATRIC. NO</th>
                        <th>TXN. REF NO</th>
                        <th>SURNAME</th>
                        <th>OTHER NAME</>
                        <th>TXN FEE</th>
                        <th>OVERHEAD</th>
                        <th>AMOUNT</th>          
                        <th>DATE/TIME</th>
                </tr>
            </thead>
        						<?php
								if($_SESSION[programme]=="" AND $_SESSION[fromdate]=="" AND $_SESSION[todate]=="")
								$sql = mysql_query("SELECT * FROM tranzact_t
                                                  WHERE responsecode='00'
                                                  AND department='{$_SESSION['courses']}'
                                                  AND level='{$_SESSION['level']}'
                                                  AND ptype='{$_SESSION['ptype']}'
                                                  AND fno LIKE '%FT%'
                                                  AND session='{$_SESSION['sek']}'");
                                                  
                                elseif ($_SESSION[programme]=="")
                                           $sql = mysql_query("SELECT * FROM tranzact_t
                                                  WHERE responsecode='00'
                                                  AND department='{$_SESSION['courses']}'
                                                  AND level='{$_SESSION['level']}'
                                                  AND ptype='{$_SESSION['ptype']}'
                                                  AND fno LIKE '%FT%'
                                                  AND date_time Between '{$_SESSION['fromdate1']}' AND '{$_SESSION['todate1']}'
                                                  AND session='{$_SESSION['sek']}'");

                        $i=0;
                        while($row=mysql_fetch_array($sql)){
                        $i++;
                        $color=($i%2==0)?"lightblue":"white";
												
                    ?>
                                    <tbody>
                                        <tr height="10px" >
                                        	<td><?php echo $i;?></td>
                                            <td><?php echo $row['fno'];?></td>
                                            <td><?php echo $row['txn_ref'];?></td>
                                            <td><?php echo $row['surname'];?></td>
                                            <td><?php echo $row['othername'];?></td>
                                            <td><?php echo $row['txn_fee'];?></td>
                                            <td><?php echo $row['overhead'];?></td>
                                            <td><?php echo $row['amount'];?></td>
                                            <td><?php echo $row['date_time'];?></td>
                                        </tr>
                                    </tbody>
                          <?php	
							}														
							?>
                                </table>
        
                           
        </center>
    </div>
    	<br>
    <center>
   		<INPUT TYPE="button" class="btn btn-success " VALUE="PRINT" ONCLICK="self.print();">
    </center>
    <br>
</body>
</html>

<?php mysql_close();  ?>