<?php

include_once 'includes/functions.php';

//include authenticator
//include_once 'includes/auth.php';

if(isset($_GET['tk']))
{
  $url_tk = $_GET['tk'];
}else{
  header('location: ../');
}

$tk = hash_token(url_token());

$enc_tk = base64url_encode($tk);

$dec_tk = base64url_decode($enc_tk);
//validating link
if ($url_tk !== $enc_tk) {
  header('location: ../');
}


?>

<!DOCTYPE html>
<html>
  <head>
    <title>.::NIGER STATE COLLEGE OF EDUCATION, MINNA ID CARD MANAGEMENT SYSTEM::.</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="images/favicon.png" type="image/x-icon" />
    <!-- Bootstrap -->
    
    <!-- call bootstap styles -->
    <link href="bootstrap-3.3.4/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- call custom admin styles -->
	<link href="login/css/signin.css" rel="stylesheet">
	<link href="login/css/docs.css" rel="stylesheet" >
    
    
    
    
     <!-- call full slider CSS here -->
	<link href="full-slider/css/full-slider.css" rel="stylesheet">
    
    
     <!-- call jquery file for ajax login -->
    <script src="login/js/jquery.js" type="text/javascript" language="javascript"></script>
    
     <!-- for full slider index -->
	<script type="text/javascript" src="full-slider/js/jquery-1.10.2.js"></script>
    
 
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  
</head>
<body>
	<header class="navbar" role="banner">
			
            <!-- call the header -->
            <?php include 'includes/header.php'; ?>
				
		 <div style="border-bottom:green solid 2px"></div>
    
    </header>


	 
     
	<div class="container">
			<div class="row">
            
                <div style="height:10px; display: block;"> .</div>
                <div class="col-lg-12"><!-- feedback message on different kinds of logout -->
                
                <h2 class="text-center">User Friendly ID Card Software</h1><p class="text-center"> Create professional ID Cards for memberships, access cards</p>
                </div><!-- /col lg 12 -->
                
                <div class="col-lg-12">
                
                
                 <div class="col-sm-4" >
                            <div class="col-sm-10  text-center"><h3>Create</h3><p class="text-center">Create cards in a few clicks,also with dynamic barcode integration..</p><i class="fa fa-cog fa-5x"></i>
                            </div>
                         
                 </div>
                 <div class="col-sm-4 text-center" >
                          
                         
                  			<div class="col-sm-10  text-center"><h3>Simple</h3><p>No design or database knowledge required</p><i class="fa fa-user fa-5x"></i>
                            </div>
                        
                 </div>
                <div class="col-sm-4 text-center">
                         
                     <div class="col-sm-10 text-center"><h3>Flexible</h3><p>Use with any printer, for any type of cards..</p><i class="fa fa-mobile fa-5x"></i>
                     </div>
                         
               </div>
               
                </div><!-- /.col lg 12 -->				

                  
                  
                  
                  
                
                    
			</div><!-- /.row -->
            
             <div class="row" >
                  <div class="well text-center" >
                      <div class="col-lg-3 col-sm-4 col-xs-6 alert-info">

                         <a href="#"  title="Print One ID Card" class="dropdown-toggle btn btn-lg btn-info" data-toggle="dropdown">
                                    PRE-NCE
                          </a>
                        <ul class="dropdown-menu pull-right">
                             
                              <li class="text-center"><a href="index_progs_prence.php?ky=<?php echo $url_tk.'&pt=1&yr=2017'; ?>" target="_new"><h6><b>2017/2018</b></h6></a></li>
                              
                              <li class="divider"></li>

                               <li class="text-center"><a href="index_progs_prence.php?ky=<?php echo $url_tk.'&pt=1&yr=2018'; ?>" target="_new"><h6><b>2018/2019</b></h6></a></li>
                              
                              
                                <li class="divider"></li>

                               <li class="text-center"><a href="index_progs_prence.php?ky=<?php echo $url_tk.'&pt=1&yr=2019'; ?>" target="_new"><h6><b>2019/2020</b></h6></a></li>
                              
                              
                              

                              
                             <!-- <li class="divider"></li>
                              <li><a href="#">Separated link</a></li>-->
                        </ul>

                      </div>
                    
                  </div>
                </div>
                <div class="row" >
                  <div class="well text-center" >
                      <div class="col-lg-3 col-sm-4 col-xs-6 alert-info">
                        <!-- <a title="Print One ID Card" href="index_progs.php?pt=2" class="btn btn-lg btn-info"> NCE <<img class="thumbnail img-responsive" src="//placehold.it/600x350/2255EE"></a> -->

                          <a href="#"  title="Print One ID Card" class="dropdown-toggle btn btn-lg btn-info" data-toggle="dropdown">
                                    NCE
                          </a>

                                   
                        <ul class="dropdown-menu pull-right">
                             
                              <li class="text-center"><a href="index_progs.php?ky=<?php echo $url_tk.'&pt=2&lvl=I'; ?>" target="_new"><h6><b>100 Level</b></h6></a></li>
                              
                              <li class="divider"></li>

                                <li class="text-center"><a href="index_progs.php?ky=<?php echo $url_tk.'&pt=2&lvl=II'; ?>" target="_new"><h6><b>200 Level</b></h6></a></li>
                              
                              <li class="divider"></li>
                               <li class="text-center"><a href="index_progs.php?ky=<?php echo $url_tk.'&pt=2&lvl=III'; ?>" target="_new"><h6><b>300 Level</b></h6></a></li>

                              

                              
                             <!-- <li class="divider"></li>
                              <li><a href="#">Separated link</a></li>-->
                        </ul>
                    </div>
                  </div>
                </div>
        
        
                          <h2 class="text-center"> Share the printing, reduce your workload</h2>

            
            
	</div><!-- container -->
<!-- continer for the copied templates ends ---->

	


     
     
     
    <!-- JS boostrap -->
    <!-- Include all compiled plugins (below), or include individual files as needed -->
   <!-- <script src="bootstrap-3.3.4/js/bootstrap.min.js"></script>
    
    <script src="bootstrap-3.3.4/js/bootstrap.js"></script>
    -->
    
    
      <?php include 'includes/js_plugins.php';?>
   
        

    
    <?php include 'includes/hide_notification.php'; ?>
    
  </body>
</html>

