
<?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 NCE  </li>
                  
           </ul>
                   
                   



                               


              <ul class="tabs"> 
                
                <li><a href="#view1">NCE programme 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 NCE  Programmes  (NCE)</h4>
                           
                       
                       </div>

                         <div class="row pull-right">
                               
                               <br> 
                             
                                <a href="gateway.php?act=view_students_fin_summary_all_nce&tk=<?php echo md5(rand(0,100)) .'&lev=I&ses='.$ses?>" class="btn btn-info btn-lg" target="_blank" >Download (100 Level)</a>

                                <a href="gateway.php?act=view_students_fin_summary_all_nce&tk=<?php echo md5(rand(0,100)) .'&lev=II&ses='.$ses?>" class="btn btn-primary btn-lg" target="_blank" >Download (200 Level)</a>
                                
                                <a href="gateway.php?act=view_students_fin_summary_all_nce&tk=<?php echo md5(rand(0,100)) .'&lev=III&ses='.$ses?>" class="btn btn-danger btn-lg" target="_blank" >Download (300 Level)</a>
                                
                                <a href="gateway.php?act=view_students_fin_summary_all_nce&tk=<?php echo md5(rand(0,100)) .'&lev=IIIS&ses='.$ses?>" class="btn btn-danger btn-lg" target="_blank" >Download (SPILL OVER)</a>

                               
                                <br> 
                               <br> 

                                    <?php
                                      //for regular students level
                                      $reg_100 = get_total_regular_nce_sf_payment_2($ses, $lev = 'I');

                                      $reg_200 = get_total_regular_nce_sf_payment_2($ses, $lev = 'II');
                                      
                                      $reg_300 = get_total_regular_nce_sf_payment_2($ses, $lev = 'III');
                                      
                                      $reg_300s = get_total_regular_nce_sf_payment_2($ses, $lev = 'IIIS');

                                      
                                      //UNICEF AND SPORT 
                                      $UN_100 = get_total_others_nce_sf_payment($ses, $lev = 'I', $spt = 4);

                                      $UN_200 = get_total_others_nce_sf_payment($ses, $lev = 'II', $spt = 4);
                                      
                                      $UN_300 = get_total_others_nce_sf_payment($ses, $lev = 'III', $spt = 4);
                                      
                                      $UN_300S = get_total_others_nce_sf_payment($ses, $lev = 'IIIS', $spt = 4);


                                      
                                      

                                      $SP_100 = get_total_others_nce_sf_payment($ses, $lev = 'I', $spt = 5);
                                      
                                      $SP_200 = get_total_others_nce_sf_payment($ses, $lev = 'II', $spt = 5);
                                      
                                      $SP_300 = get_total_others_nce_sf_payment($ses, $lev = 'III', $spt = 5);
                                      
                                      $SP_300S = get_total_others_nce_sf_payment($ses, $lev = 'IIIS', $spt = 5);



                                      //All total
                                      $SF_Total_100 = get_total_nce_sf_payment_by_level($ses, $lev = 'I');
                                      
                                      $SF_Total_200 = get_total_nce_sf_payment_by_level($ses, $lev = 'II');
                                      
                                      $SF_Total_300 = get_total_nce_sf_payment_by_level($ses, $lev = 'III');
                                      
                                      $SF_Total_300S = get_total_nce_sf_payment_by_level($ses, $lev = 'IIIS');


                                     

                                    ?>
                                    <table id="example" class="user display table-bordered table-hover table-striped table table-center">
                                      <tr  colspan="4" ><th ><b>Payment Summary</b></th><th></th><th></th><th></th></tr>
                                      <tr ><th>NCE</th><th>100 LEVEL</th><th>200 LEVEL</th><th>300 LEVEL</th><th>SPILL</th></tr>
                                      <?php

                                        echo "<tr ><th>Regular </th><th>$reg_100</th><th>$reg_200</th><th>$reg_300</th><th>$reg_300s</th></tr>
                                        <tr><th>UNICEF </th><th>$UN_100</th><th>$UN_200</th><th>$UN_300</th><th>$UN_300S</th></tr>
                                        <tr><th>SPORT </th><th>$SP_100</th><th>$SP_200</th><th>$SP_300</th><th>$SP_300S</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_300S</th></b></tr>";

                                      ?>
                                    </table>

                          </div>
                          <br> <br> 
                          <br> <br> 
                             
                         <?php 

                        
                         echo get_programme_list_for_students_payments_report_nce($pt = 2, $ses,$yr); //pass programme type ?> 
                         
                        
                        
                          <hr />
                       
                        
        
                
        
                </div> 
        
                
        
         
        
              </div>
        




</form>

</div>