
<?php 

     if (isset($_GET['ses'])) {
        $ses  = $_GET['ses'];
        $yr =  $_GET['yr'];
     }
?>


<div class="well"><!-- well start -->

        
        	<ul class="breadcrumb">
                  <li><a href="gateway.php?act=view_student_fin_sys">Student Payment System Manager </a> <span class="divider"></span></li>
                  <li class="active"> Students Payments Report DUAP  </li>
                  
           </ul>
                   
                   

              <ul class="tabs"> 
                
                <li><a href="#view1">DUAP Payments Listings</a></li>
<!--                <li><a href="gateway.php?act=view_admitted_applicants_prence">Admitted Applicants</a></li> 
-->               
               </ul> 
              <div class="tabcontents"> 
              
                
                <div id="view1">

						    <br/>
						
                    
                      
                      
                           <hr />
                           
                       
                       
                       
                      
                       
                       <div class="well alert" >
                       
                            <h4>Students Payments Report on DUAP  Programmes  (DUAP)</h4>
                          
                       
                       </div>

                          <div class="row ">
                            <div class="col-md-3  col-md-offset-9 text-center" >
                              <a href="gateway.php?act=view_students_fin_summary_all_deg&tk=<?php echo md5(rand(0,100)) .'&ses='.$ses?>" class="btn btn-info btn-lg" target="_blank" >Download All</a>

                            </div>
                          </div>
                          
                          

                         <div class="row  col-sm-8 col-sm-offset-4">
                            <div class=" ">
                               <br> 
                             
                                <a href="gateway.php?act=view_students_summary_all_nce&tk=<?php echo $rnd_num .'&lev=100&ses='.$ses?>" class="btn btn-info btn-lg" target="_blank" >Download (100 Level)</a>

                                <a href="gateway.php?act=view_students_summary_all_nce&tk=<?php echo $rnd_num .'&lev=200&ses='.$ses?>" class="btn btn-primary btn-lg" target="_blank" >Download (200 Level)</a>
                               
                               
                                <a href="gateway.php?act=view_students_summary_all_nce&tk=<?php echo $rnd_num .'&lev=300&ses='.$ses?>" class="btn btn-success btn-lg" target="_blank" >Download (300 Level)</a>

                                <a href="gateway.php?act=view_students_summary_all_nce&tk=<?php echo $rnd_num .'&lev=400&ses='.$ses?>" class="btn btn-danger btn-lg" target="_blank" >Download (400 Level)</a>
                                
                                 <a href="gateway.php?act=view_students_summary_all_nce&tk=<?php echo $rnd_num .'&lev=400S&ses='.$ses?>" class="btn btn-danger btn-lg" target="_blank" >Download (SPILL OVER)</a>

                                <br> 
                               <br> 

                                    <?php
                                      //for ABU students level
                                      $deg_abu_100 = get_total_deg_sf_payment_2($ses, $pt = 1, $lev = '100');

                                      $deg_abu_200 = get_total_deg_sf_payment_2($ses,$pt = 1,  $lev = '200');
                                                                         
                                      $deg_abu_300 = get_total_deg_sf_payment_2($ses,$pt = 1,  $lev = '300');

                                      $deg_abu_400 = get_total_deg_sf_payment_2($ses,$pt = 1,  $lev = '400');
                                      
                                      $deg_abu_400S = get_total_deg_sf_payment_2($ses,$pt = 1,  $lev = '400S');
                                     

                                     //for UDUS students level
                                      $deg_udus_100 = get_total_deg_sf_payment_2($ses, $pt = 2, $lev = '100');

                                      $deg_udus_200 = get_total_deg_sf_payment_2($ses,$pt = 2,  $lev = '200');
                                                                         
                                      $deg_udus_300 = get_total_deg_sf_payment_2($ses,$pt = 2,  $lev = '300');

                                      $deg_udus_400 = get_total_deg_sf_payment_2($ses,$pt = 2,  $lev = '400');
                                      
                                      $deg_udus_400S = get_total_deg_sf_payment_2($ses,$pt = 2,  $lev = '400S');
                                     
                                      //All total
                                      $SF_Total_100 = get_total_nce_sf_payment_by_level($ses, $lev = '100');
                                      
                                      $SF_Total_200 = get_total_nce_sf_payment_by_level($ses, $lev = '200');
                                      
                                      $SF_Total_300 = get_total_nce_sf_payment_by_level($ses, $lev = '300');

                                      $SF_Total_400 = get_total_nce_sf_payment_by_level($ses, $lev = '400');
                                      
                                      $SF_Total_400S = get_total_nce_sf_payment_by_level($ses, $lev = '400S');

                                     

                                    ?>
                                    <div class="table-responsive ">
	                                    <table id="example" class="display table-bordered table-hover table-striped table table-center ">
	                                      <tr  colspan="5"  class=""><th ><b>Summary</b></th><th></th><th></th><th></th></tr>
	                                      <tr ><th> DUAP </th><th>100 L</th><th>200 L</th><th>300 L</th><th>400 L</th><th>SPILL</th></tr>
	                                      <?php

	                                        echo "
	                                        <tr><th>ABU </th><th>$deg_abu_100</th><th>$deg_abu_200</th><th>$deg_abu_300</th><th>$deg_abu_400</th><th>$deg_abu_400S</th></tr>

	                                        <tr><th>UDUS </th><th>$deg_udus_100</th><th>$deg_udus_200</th><th>$deg_udus_300</th><th>$deg_udus_300</th><th>$deg_udus_300</th></tr>

	                                        <tr><b><th>TOTAL </th><th> $SF_Total_100</th><th> $SF_Total_200</th><th> $SF_Total_300</th><th> $SF_Total_400</th><th> $SF_Total_400S</th></b></tr>";

	                                      ?>
	                                    </table>
	                                </div>

                                </div>
                             </div>  
                          	<!-- <div class="col-md-12"> -->
        
        
                         <?php 

                        
                          echo get_programme_list_for_students_payments_report_deg($ses,$yr); //pass programme type ?> 
                         
                        
                        
                          <hr />
                       
                        
        
                
        
                </div> 
        
                
        
         
        
              </div>
        




</form>

</div>