 <ul class="breadcrumb">
      <li><a href="gateway.php?act=view_applicants_pins">Applicants Menu</a> <span class="divider"></span></li>
      <li><a href="gateway.php?act=view_search_applicants">Search Applicants </a> <span class="divider"></span></li>
      <li class="active"> Generated ePIN</li>
  </ul>
<div class="well">

      <ul class="tabs"> 
        <li><a href="#view1">Applicant</a></li> 
      </ul> 
      <div class="tabcontents"> 
        <div id="view1"  style="background-image:images/background.png;">
        
        	<!-- this is the search button -->
            
        	 <div class="row">
                    
              </div>
       
         <div class="row alert alert-success">
            	 
                <div style="float:left; width:90%">
                   
                        <img src="images/ibbu_logo.png"   class="pull-left"/>
                   
                      <p class="text-center"> <span style="font-size:20px;font-weight:bold;"><br/>Applicant's PIN Slip </span>  <br/><span>IBBUL NON DEGREE PROGRAMME, APPLICATION PORTAL  </span> </p>
                        <!--<p class="info text-center">Please visit the portal to continue application</p>-->
                    
            	</div>
            
            
            	<div style="float:left; width:10%">
                 <img src="images/gen_epin.png" />
    				 
                
                </div>
                
                
            </div><!-- /alert info -->
        	                   
              <?php 
			  
			  //colllect the id to generate the password for candidate
			  
			  
			  //check the action passed
			  if(($_POST['act']== 'generate_epin')) 
			  {
				  //************************ special case *********************/
				  
				  $id_array = $_POST['applicant']; // return array
				  $id_count = count($_POST['applicant']); // count array
				  
				  for($i=0; $i < $id_count; $i++) {
					  
					  //collect the id through aray
					  
					  $id = $id_array[$i];
					  
					  
				?>
                
                
                
                
              	<div class="container"  >
               		
                        <div class="well col-sm-3" style="margin-right:15px; margin-left:-10px;">
                        	
                       
                            
                             <span class="label label-success center-block" style="width:200px">
							 <h3> <img src="images/password_gen_icon.png" /> <br/>
							 <?php  //function that get pin generated for user generated for user
							 
							 echo get_candidate_epin($id);
							 
							 
							 ?>
                             </h3>
                             </span>
                        
                        </div>
                        
                        
                        
                    	<div class="well col-sm-7 text-success"  >
                        
                        	<ul class="list-group">

                              <?php // display voter infor 
							  
							  		echo get_candidate_info($id);
							  ?>
                              
                              
                              <li class="list-group-item"> <a href="javascript:doit()"><img src="images/print_big.png" border=0 align="middle" class="pull-right" title="Print" data-toggle="tooltip"> </a>    </li>
							  
                          
                          </ul>
                          
                          
                         
             
                        
                        </div>
                    
                   
              	</div><!-- end of well -->
                
                
                
                <?php
					  
					  
					  
					  
				  
				  
				  
				  }//end of for loop for collecting the id
				  //header("Location: gateway.php?act=view_users&is=Update done successfully."); // redirent after deleting
			   }//end of if act is generate password
			 
			 
			 
			 //display the information
			 

			  
			  		
					
			  ?>
              
              
              <!--<img src="images/background.png" border=0 align="middle"  title="Print"> -->

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

</form>



