<?php 
session_start();
require('../db.php');
include('inc/access.php');
						
								
$user = $_SESSION['user'];
								
$ins = mysqli_query($conn,"SELECT * FROM users WHERE email='$user' ");
$data = mysqli_fetch_array($ins);
								
$email = $data['email'];
$rowpas = $data['pass'];
$bal = $data['bal'];
							
$deps = "SELECT * FROM deposit  ";
$payment = $conn->query($deps);
							
							
								
						?> 
<?php
define("sitename","Vtoper");
define("footername","vtoper.com");
include('../inc/logo.php');
?>

<?php include('inc/header.php');?>

<body class="fixed-nav sticky-footer bg-dark" id="page-top">



  <!-- Navigation-->
 <?php include('inc/nav.php');?>
  <!-- Navigation Ends--> 
      </ul>
    </div>
  </nav>
  <div class="content-wrapper">
  
    <div class="container-fluid">
      <!-- Breadcrumbs-->
     
      <div class="row">
        <div class="col-12">
          
     
     <h1 class="w3-xxxlarge w3-text-green" align="center"><b>EXAM PIN Rates</b></h1>
       
<p align="center"><strong>Description:</strong> Configure selling price for Examination PINs for Normal Users.  </p>
      <!-- Example Bar Chart Card-->
       
     <?php 
		   // define variables and set to empty values
 
		
		if(isset($_POST['pinrate'])){
		include('inc/exampin_billerR.php');
		
						}
			
			
			$query_rec = mysqli_query($conn,"SELECT * FROM exam_billing_regular");
			
			$pin_bil = mysqli_fetch_array($query_rec);
		?> 
       
  <form action="" method="post" autocomplete = 'off' > 
  
     <table class="table  margin-tp-10" id="transTable">
                     
                     
                 
                          <tr>
                            <td width="30%">WAEC Result Checking PIN</td>
                            <td id="mainService"> <input type="text" id="waec" name="waec" value="<?php echo $pin_bil['waec'];?>"  class="form-control" required> </td>
                        </tr>
                                                <tr>
                            <td width="30%">NECO Result Checking TOKEN</td>
                            <td><input type="text" id="neco" name="neco"  class="form-control" value="<?php echo $pin_bil['neco'];?>" required>  </td>
                        </tr>                   
                                                            <tr>
                        <td width="30%">NABTEB Result Checking PIN</td>
                        <td><input type="text" id="nabteb" name="nabteb"  class="form-control" value="<?php echo $pin_bil['nabteb'];?>" required></td>
                    </tr>
                                          
                    <tr>
                        <td width="30%">WAEC Verification PIN</td>
                        <td><input type="text" id="nysc" name="nysc"  class="form-control" value="<?php echo $pin_bil['nysc'];?>" required></td>
                    </tr>    
  
                   <tr>
                        <td width="30%">WAEC GCE Registration PIN</td>
                        <td><input type="text" id="waecgce" name="waecgce"  class="form-control" value="<?php echo $pin_bil['waecGCE'];?>" required></td>
                    </tr>  

                      <tr>
                        <td width="30%">NECO GCE Registration PIN</td>
                        <td><input type="text" id="necogce" name="necogce"  class="form-control" value="<?php echo $pin_bil['necoGCE'];?>" required></td>
                    </tr>     
 
                    <tr>
                        <td width="30%">NABTEB GCE Registration PIN</td>
                        <td><input type="text" id="nabtebgce" name="nabtebgce"  class="form-control" value="<?php echo $pin_bil['nabtebGCE'];?>" required></td>
                    </tr>      

                  <tr>
                        <td width="30%">JAMB UTME Registration PIN</td>
                        <td><input type="text" id="jambutme" name="jambutme"  class="form-control" value="<?php echo $pin_bil['jambutme'];?>" required></td>
                    </tr>  
 
                   <tr>
                        <td width="30%">JAMB DE Registration PIN</td>
                        <td><input type="text" id="jambde" name="jambde"  class="form-control" value="<?php echo $pin_bil['jambde'];?>" required></td>
                    </tr>                      
                   
                    
                                            <tr>
                            <td colspan="2">
                           <button type="submit" id="submit" name="pinrate" class="btn btn-info">Save Settings</button>
                                <div class="pay-button">
                                                                                                                                                                                                                                
                                </div>
                              							               </td>
                        </tr>
                                    </table> 
  
  </form>
  
        
    </div>
    <!-- /.container-fluid-->
    
   
    
    <!-- /.content-wrapper-->
    <?php include('inc/footer.php');?>