<?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>PIN Generator Rates</b></h1>
       
<p align="center"><strong>Description:</strong> Configure selling price for recharge card PINs.  </p>
      <!-- Example Bar Chart Card-->
       
     <?php 
		   // define variables and set to empty values
 
		
		if(isset($_POST['pinrate'])){
		include('inc/pin_billerR.php');
		
						}
			
			
			$query_rec = mysqli_query($conn,"SELECT * FROM pin_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%">MTN PIN</td>
                            <td id="mainService"> <input type="text" id="mtnpin" name="mtnpin" value="<?php echo $pin_bil['mtn'];?>"  class="form-control" required> </td>
                        </tr>
                                                <tr>
                            <td width="30%">Airtel PIN</td>
                            <td><input type="text" id="airtelpin" name="airtelpin"  class="form-control" value="<?php echo $pin_bil['airtel'];?>" required>  </td>
                        </tr>                   
                                                            <tr>
                        <td width="30%">GLO PIN</td>
                        <td><input type="text" id="glopin" name="glopin"  class="form-control" value="<?php echo $pin_bil['glo'];?>" required></td>
                    </tr>
                                          
                    <tr>
                        <td width="30%">9mobile PIN</td>
                        <td><input type="text" id="etisalatpin" name="etisalatpin"  class="form-control" value="<?php echo $pin_bil['etisalat'];?>" 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');?>