 <?php 

  $tk = md5(rand(0,100));
  if (isset($_GET['ses'])) {
    
    //when session is = 3 set it to 0
    $sess = $_GET['ses'];
    if($sess == 3){
      $sess = 0;
    }

    
  }else{
    header('location: gateway.php?act=view_admission_reports_landing');
  }


  $block = block_user($user_id);


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

        
        	<ul class="breadcrumb">
                  <!--<li><a href="gateway.php?act=view_reports">Reports Menu</a> <span class="divider"></span></li>-->
                  <li class="active"> Applicants reports  </li>
                  
           </ul>
                   
                   



                               


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

						<br/>
					
                      
                      
                           <hr />
              
                       
                       <div class="well alert" >
                       
                            <h4>Report on Applied  Programmes  (NCE)</h4>
                           
                           <p>Click on each tab to view list of applied candidates</p>
                       
                       </div>


                        <div class="row pull-right">
                            
                              <a href="gateway.php?act=view_rejected_applicants&tk=<?php echo $tk; ?>&qi=1&pt=2" class="btn btn-danger btn-lg" target="_blank" >Rejected</a>

                              <a href="gateway.php?act=view_qualified_applicants_nce_trans&tk=<?php echo $tk; ?>&qi=0&pt=2" class="btn btn-warning btn-lg" target="_blank" >NCE Transiting</a>

                           
                            <a href="gateway.php?act=view_qualified_applicants&tk=<?php echo $tk; ?>&qi=0&pt=2" class="btn btn-primary btn-lg" target="_blank" >Not Qualified</a>

                                 
                            
                            
                              <a href="gateway.php?act=view_qualified_applicants&tk=<?php echo $tk; ?>&qi=1&pt=2" class="btn btn-success btn-lg" target="_blank" >Qualified</a>

                           
                          
                            <?php 
                               if ($block == false) {
                             ?>
                            
                              <a href="gateway.php?act=view_applicants_nce_records&tk=<?php echo $tk; ?>" class="btn btn-info btn-lg" target="_blank" >Download</a>

                           <?php } ?>
                        </div>
                          

        
                         <?php 

                        /*   
                           echo $sess;
                           exit();*/
                           //to enable access profile or admission manager 
                           $_SESSION['PROadmin'] = 'default';
                            //echo get_programme_list($pt = 2 ); //pass programme type 
                            echo get_programme_list_nce($pt = 2 , $sess = 5 , $md =1); //pass programme type 

                         ?> 

                          <hr />
                       
                    
        
                </div> 
        
                
        
         
        
              </div>
        




</form>

</div>