 <?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  (SUMMER)</h4>
                           
                           <p>Click on each tab to view list of applied candidates</p>
                       
                       </div>


                           
                          
                        <div class="row pull-right">
                            <?php 
                               if ($block == false) {
                             ?>
                            
                              <a href="gateway.php?act=view_applicants_sum_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_sum( $sess = 5 ); //pass programme type 

                         ?> 

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




</form>

</div>