<?php 
require_once("./includes/initialize.php");
global $database;
// $allsession = ONLINEPAY:: showsession();
// $session = $allsession->session;
// $allpayment =ONLINEPAY::showpayment_online("acceptance_tranzact");
// $level = COURSECLASS::course_authenticate();

// if(isset($_POST['session']) || ($_POST['level']) || ($_POST['department']))
// {
  $department = $_POST['department'];
  $level = $_POST['level'];
  $session = $_POST['session'];
    $show = ONLINEPAY::search_session($department, $level, $session);
 
$count = 0;
           echo '<table id="fo_table" class="table table-striped table-bordered">
                      <thead>
                              <tr>
                                  <th>S/N</th>  
                                  <th>FORM NO</th>
                                  <th>SURNAME</th>     
                                  <th>OTHER NAMES</th>
                                  <th>DEPARTMENT</th>
                                  <th>LEVEL</th>
                                  <th>PHONE NUMBER</th>
                                  
                                  <th>SESSION</th>                        
                              </tr>
                          </thead> ';            
            		foreach($show as $pay) 
                    {
                        echo '<tr>'
    							.'<td>'.++$count.'</td>'
    							.'<td>'.$pay->formno.'</td>'
    							.'<td>'.$pay->surname.'</td>'
    							.'<td>'.$pay->othernames.'</td>'
    							.'<td>'.$pay->department.'</td>'
    							.'<td>'.$pay->level.'</td>'
    							.'<td>'.$pay->phone.'</td>'
    							.'<td>'.$pay->session.'</td>'
    						.'</tr>'; 
                    } 
                    echo '</table>';
?>
