<?php

  
        
    //collect the passed
    if(isset($_GET['yr']))
    {
     $yr =  $_GET['yr'];
     $ses =  $_GET['ses'];
     
    }else{
      header('location: gateway.php?act=view_student_info_sys');
    }
	
	$rnd_num = md5(rand(0,100));

  ?>

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

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



                               


              <ul class="tabs"> 
                
                <li><a href="#view1">DUAP Students 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 Report on DUAP Programmes  (DUAP)</h4>
                           
                           <p>Click on each tab to view list of  students</p>
                       
                       </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>

                                <br> 
                               <br> 

                               <label class="btn btn-warning btn-lg"> 
                                    <?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');
                                     

                                     //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');
                                     
                                      //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');
                                     

                                    ?>
                                    <div class="table-responsive ">
	                                    <table class="table text-center ">
	                                      <tr  colspan="5"  class=""><th ><b>Payment 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></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></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></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></b></tr>";

	                                      ?>
	                                    </table>
	                                </div>

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



	        
	                         
	                        
                        </div>
                        <div class="row col-md-12">
                        </div>
                        	<br>
	                         <?php echo get_programme_list_for_students_report_deg_2x( $yr); //pass programme type ?> 
                          <hr />
                       
                        
        
                
        
                </div> 
        
                
        
         
        
              </div>
        




</form>

</div>