<?php 
session_start();
require('db.php'); 
include('inc/func.php');
include('inc/logo.php');
?> 
<?php include('inc/header.php');?>
        <!-- ============================================================== -->
        <!-- end navbar -->
        <!-- ============================================================== -->
       
        <!-- ============================================================== -->
        <!-- left sidebar -->
        <!-- ============================================================== -->
         <?php include('inc/nav.php');?>
        <!-- ============================================================== -->
        <!-- end left sidebar -->
        <!-- ============================================================== -->
        <!-- ============================================================== -->
        <!-- wrapper  -->
        <!-- ============================================================== -->
        <div class="dashboard-wrapper">
            <div class="dashboard-ecommerce">
                <div class="container-fluid dashboard-content ">
                    <!-- ============================================================== -->
                    
                    <!-- pageheader  -->
                    <!-- ============================================================== -->
                    <div class="row">
                        <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="page-header">
                                <h2 class="pageheader-title"><li class="fa fa-hand-holding-usd"></li> <?php echo $_SERVER['SERVER_NAME'];?> Reseller Program </h2>
                        
                            
                        
                            </div>
                        </div>
                    </div>
                    <!-- ============================================================== -->
                    <!-- end pageheader  -->
                    <!-- ============================================================== -->
                    <div class="ecommerce-widget">

                        <div class="row"></div>
                        <div class="row">
                            <!-- ============================================================== -->
                      
                            <!-- ============================================================== -->

                                          <!-- recent orders  -->
                            <!-- ============================================================== -->
                            <div class="col-xl-9 col-lg-12 col-md-6 col-sm-12 col-12">
                            
                                <div class="card">
                                 
                             <h3 class="card-header">Commission Rates </h3>            
                              <p class="card-header">
                              
                              <?php 
                              
                              $query_rec = mysqli_query($conn,"SELECT * FROM commission");
			
			$com = mysqli_fetch_array($query_rec);

$query_rec = mysqli_query($conn,"SELECT * FROM exam_billing");
$bil2 = mysqli_fetch_array($query_rec);

$query_rec = mysqli_query($conn,"SELECT * FROM exam_billing_agent");
$bilA = mysqli_fetch_array($query_rec);
	

$query_rec2 = mysqli_query($conn,"SELECT * FROM exam_billing_regular");
$regbil2 = mysqli_fetch_array($query_rec2);

$qrypinBil = mysqli_query($conn,"SELECT * FROM pin_billing");
  $bill = mysqli_fetch_array($qrypinBil);

$qrypinBil = mysqli_query($conn,"SELECT * FROM pin_billing_agent");
  $billA = mysqli_fetch_array($qrypinBil);

$qrypinBil = mysqli_query($conn,"SELECT * FROM pin_billing_regular");
  $billR= mysqli_fetch_array($qrypinBil);



                              ?>

<span class="float-right">
 </span>

<div class="table-responsive">
                    <table class="table table-bordered" style="text-align: center;">
                        <thead>
                            <th>Service</th>
                           
                            <th>Affilate</th>
                            <th>Normal User</th>
                            <th>Reseller</th>
                            <th>API User</th>
                           
                        </thead>
                        <tbody>
                                                      <tr>
                                <td style="text-align: left;">Airtel Airtime VTU</td>
                                <td>
                                                                       <?php echo $com['airtelvtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['airtelvtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['airtelvtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['airtelvtu'];?>%
                                </td>
                            
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">MTN Airtime VTU</td>
                                <td>
                                                                        <?php echo $com['mtnvtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['mtnvtu'];?>%
                                </td>
                                <td>
                                                                       <?php echo $bil['mtnvtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['mtnvtu'];?>%
                                </td>
                              
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">GLO Airtime VTU</td>
                                <td>
                                                                        <?php echo $com['glovtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['glovtu'];?>%
                                </td>
                                <td>
                                                                       <?php echo $bil['glovtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['glovtu'];?>%
                                </td>
                             
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">9mobile Airtime VTU</td>
                                <td>
                                                                       <?php echo $com['9mobilevtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['9mobilevtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['9mobilevtu'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['9mobilevtu'];?>%
                                </td>
                              
                            </tr>
                                                     
                                                      <tr>
                                <td style="text-align: left;">Airtel Data</td>
                                <td>
                                                                        <?php echo $com['airtelData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['airtelData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['airtelData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['airtelData'];?>%
                                </td>
                              
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">MTN Data</td>
                                <td>
                                                                        <?php echo $com['mtnData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['mtnData'];?>%
                                </td>
                                <td>
                                                                       <?php echo $bil['mtnData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['mtnData'];?>%
                                </td>
                            
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">GLO Data</td>
                                <td>
                                                                        <?php echo $com['gloData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['gloData'];?>%
                                </td>
                                <td>
                                                                       <?php echo $bil['gloData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['gloData'];?>%
                                </td>
                             
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">9mobile Data</td>
                                <td>
                                                                         <?php echo $com['9mobileData'];?>%
                                </td>
                                <td>
                                                                         <?php echo $regbil['9mobileData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['9mobileData'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['9mobileData'];?>%
                                </td>
                               
                            </tr>
                            

                     <tr>
                                <td style="text-align: left;">Airtel Recharge Card PIN</td>
                                <td>
                                                                       ₦<?php echo $com['airtel'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $billR['airtel'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['airtel'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['airtel'];?>
                                </td>
                            
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">MTN Recharge Card PIN</td>
                                <td>
                                                                        ₦<?php echo $com['mtn'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $billR['mtn'];?>
                                </td>
                                <td>
                                                                       ₦<?php echo $bill['mtn'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['mtn'];?>
                                </td>
                              
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">GLO Recharge Card PIN</td>
                                <td>
                                                                        ₦<?php echo $com['glo'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $billR['glo'];?>
                                </td>
                                <td>
                                                                       ₦<?php echo $billR['glo'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['glo'];?>
                                </td>
                             
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">9mobille Recharge Card PIN</td>
                                <td>
                                                                       ₦<?php echo $com['etisalat'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $billR['etisalat'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['etisalat'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bill['etisalat'];?>
                                </td>
                              
                            </tr>
                                                   <tr>
                                <td style="text-align: left;">MTN SME Data (500MB)</td>
                                <td>
                                                                        <?php echo $com['sme'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $smeR['mtnA'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $sme['mtnA'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $sme['mtnA'];?>
                                </td>
                              
                            </tr>

                                  <tr>
                                <td style="text-align: left;">MTN SME Data (1GB)</td>
                                <td>
                                                                        <?php echo $com['sme'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $smeR['mtnB'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $sme['mtnB'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $sme['mtnB'];?>
                                </td>
                              
                            </tr>

                                <tr>
                                <td style="text-align: left;">DSTV Subscription</td>
                                <td>
                                                                        <?php echo $com['dstv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['dstv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['dstv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['dstv'];?>%
                                </td>
                               
                            </tr>


                                                      <tr>
                                <td style="text-align: left;">Gotv Payment</td>
                                <td>
                                                                        <?php echo $com['gotv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['gotv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['gotv'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['gotv'];?>%
                                </td>
                              
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">Startimes Subscription</td>
                                <td>
                                                                        <?php echo $com['startimes'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['startimes'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['startimes'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['startimes'];?>%
                                </td>
                              
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">Ikeja Electric Payment - PHCN</td>
                                <td>
                                                                       <?php echo $com['IkejaElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['IkejaElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['IkejaElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['IkejaElectric'];?>%
                                </td>
                           
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">Eko Electric Payment - EKEDC</td>
                                <td>
                                                                       <?php echo $com['EkoElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['EkoElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['EkoElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['EkoElectric'];?>%
                                </td>

                            </tr>
                                                     
                  
                                                      <tr>
                                <td style="text-align: left;">KEDCO - Kano Electric</td>
                                <td>
                                                                        <?php echo $com['Kedc'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['Kedc'];?>%
                                </td>
                                <td>
                                                                       <?php echo $bil['Kedc'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['Kedc'];?>%
                                </td>
                             
                            </tr>
                                                      <tr>
                                <td style="text-align: left;">PHED - Port Harcourt Electric</td>
                                <td>
                                                                        <?php echo $com['Phed'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['Phed'];?>%
                                </td>
                                <td>
                                                                         <?php echo $bil['Phed'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['Phed'];?>%
                                </td>
                              
                            </tr>
                                                     
                                                     
                                                                                                                -    
                                     
                                </td>
                            </tr>
                                                     
                                                      <tr>
                                <td style="text-align: left;">Jos Electric - JED</td>
                                <td>
                                                                        <?php echo $com['JosElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['JosElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['JosElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['JosElectric'];?>%
                                </td>
                              
                            </tr>

                                      <tr>
                                <td style="text-align: left;">Enugu Electric - EEDC</td>
                                <td>
                                                                        <?php echo $com['EnuguElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['EnuguElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['EnuguElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['EnuguElectric'];?>%
                                </td>
                               
                            </tr>



                                    <tr>
                                <td style="text-align: left;">Abuja Electric - AEDC</td>
                                <td>
                                                                        <?php echo $com['aedc'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['AbujaElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['AbujaElectric'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['AbujaElectric'];?>%
                                </td>
                               
                            </tr>

                                 <tr>
                                <td style="text-align: left;">IBEDC - Ibadan Electricity Distribution Company</td>
                                <td>
                                                                         <?php echo $com['Ibedc'];?>%
                                </td>
                                <td>
                                                                         <?php echo $regbil['Ibedc'];?>%
                                </td>
                                <td>
                                                                         <?php echo $bil['Ibedc'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['Ibedc'];?>%
                                </td>
                              
                            </tr>

                               
                                                      <tr>
                                <td style="text-align: left;">BulkSMS</td>
                                <td>
                                                                        0.00
                                </td>
                                <td>
                                                                        ₦<?php echo $regbil['sms'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil['sms'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil['sms'];?>
                                </td>
                    
                            </tr>


                                  <tr>
                                <td style="text-align: left;">WAEC Result Checker PIN</td>
                                <td>
                                                                        <?php echo $com['waec'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $regbil2['waec'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['waec'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['waec'];?>
                                </td>
                              
                            </tr>
                                    

                                 <tr>
                                <td style="text-align: left;">NECO Result Checker TOKEN</td>
                                <td>
                                                                        <?php echo $com['neco'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $regbil2['neco'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['neco'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['neco'];?>
                                </td>
                            
                            </tr>



                              <tr>
                                <td style="text-align: left;">NABTEB Result Checker PIN</td>
                                <td>
                                                                        <?php echo $com['nabteb'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $regbil2['nabteb'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['nabteb'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['nabteb'];?>
                                </td>
                           
                            </tr>


                                 <tr>
                                <td style="text-align: left;">WAEC Verification PIN</td>
                                <td>
                                                                        <?php echo $com['nysc'];?>%
                                </td>
                                <td>
                                                                        ₦<?php echo $regbil2['nysc'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['nysc'];?>
                                </td>
                                <td>
                                                                        ₦<?php echo $bil2['nysc'];?>
                                </td>
                          
                            </tr>

                                 <tr>
                                <td style="text-align: left;">Smile Payment</td>
                                <td>
                                                                       <?php echo $com['smile'];?>%
                                </td>
                                <td>
                                                                        <?php echo $regbil['smile'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['smile'];?>%
                                </td>
                                <td>
                                                                        <?php echo $bil['smile'];?>%
                                </td>
                                <td>
                                                      
                                                     
                            
                            
                                                  </tbody>                            	
                    </table>
                </div>


</p>
 
        
                                    <div class="card-body">
                                      
                                    <?php
							
							if(isset($_GET['ref'])){
								       echo'<div class="alert alert-success">
										<button type="button" class="close" data-dismiss="alert">×</button>
										<strong>Transaction successful</strong>  
									</div>'; 
									
									echo '<script>
									setTimeout(function(){ window.location.href="dashboard.php" }, 3000);</script>';
									      
								        }
								        
								
									
									if(isset($_POST['req'])){
										
										$username = $_SESSION['user'];
										$amount = $_POST['amount'];
										$service = $_POST['service'];
										$fname = $_POST['fname'];
										$phone = $_POST['tel'];
										$lname = $_POST['lname'];
						if(!empty($amount) && !empty($service)&& !empty($phone) && !empty($lname) ){
										$uid = substr(str_shuffle("0123456789678901"), 0, 16);	
										$_SESSION['amt'] = $amount;
										$_SESSION['service'] = $service;
										$_SESSION['phone'] = $phone;
										$_SESSION['lname'] = $lname;
										$_SESSION['transid'] = $uid;
										$_SESSION['fname'] = $fname;
										
										
									
											$dat = date("d/m/Y");
											
											$token = uniqid();
											$stat = "pending";
											
										// replace comma
		$str1 = $amount;
        $xamount = str_replace( ',', '', $str1);	
												
										
									
								$qsel = "INSERT INTO transactions(network,phone,ref,refer,amount,email,status,token,customer,del)VALUES('$service','$phone','$uid','$token','$amount','$username','$stat','$token','$fname $lname','Delete')";	
								
								$sav = $conn->query($qsel);
								
			?>
        <script>						
       document.location="transaction-view/upgrade?<?php echo $uid; ?>#transPreview";
          </script>
         <?php 
											
 
			
								
                                	}
                                
                       
                                else{
										echo'<div class="alert alert-danger">
										<button type="button" class="close" data-dismiss="alert">×</button>
										<strong>Please Select Ticket Type</strong>  
									</div>'; }
									}
									
									 ?>
                      
           
                   
                                        <label for="inputText3" class="col-form-label">Please Select Reseller Package</label><br>
                                            <label class="custom-control custom-radio custom-control-inline">
                                                <input type="radio" name="carier"  class="custom-control-input" value="VIP" onclick="javascript:showTicket(); vip_value() " id="VIP" ><span class="custom-control-label">Upgrade + Setup My Reseller Portal  </span>
                                            </label>
                                            
                                            
                                            <label class="custom-control custom-radio custom-control-inline">
                                                <input type="radio" name="carier" class="custom-control-input"value="Regular" onclick="javascript:showTicket(); regular_value()" id="Regular"><span class="custom-control-label" >Upgrade to Reseller </span>
                                            </label>
                                            
                                            
                                            
                                       
                                           
                                        <p></p>
                                        <div class="float-center">
                                        <img style="display:none;" id="bigpic" src="bigpic"  width="120" height="90"/>     
                                                   
                                    </div>
                                    
                                   
                                 
                                  <!-- Start VIP hidden -->       
                              <div class="float-center" id="ifVIP" style="display:none;">                 
                                       <div class="form-group" >
                                
		One-time setup fee:
		<h1 class="card-header">&#x20A6;<?php echo number_format($bil['setup'],2,'.',',');?></h1>
      </div>
                
                </div>
                <!-- End VIP hidden -->   
                
               
                <!-- Start Regular hidden -->       
                              <div class="float-center" id="ifRegular" style="display:none;">                 
                                       <div class="form-group" >
                                                 
		 One-time Upgrade fee: 
       <h1 class="card-header">&#x20A6;<?php echo number_format($bil['reseller'],2,'.',',');?></h1>
		
      </div>

              
                                              
                                            
                </div>
                <!-- End Regular hidden -->  
                
                                             
                 <form method="post" action="" >                            
          
                 <input type="hidden" value="" name="fname" id="fname">
		 <input type="hidden" value="" name="service" id="service">
         
         <input type="hidden" value="" name="amount" id="amount">
         
         <input type="hidden" value="" name="lname" id="lname">
         
         <input type="hidden" value="" name="tel" id="tele">
         
                                            
                     <div class="col-sm-6 pl-0">
                           <p class="text-center">
                                                    <button type="submit" name="req" class="btn btn-rounded btn-primary" >Proceed </button>
                           <button class="btn btn-rounded btn-secondary">Cancel</button>                    
                                                </p>                                            
                                            </div>       
                                        </form>
                                        
                                 
                                    </div>
                                </div>
                            </div>
                            <!-- ============================================================== -->
                            <!-- end recent orders  -->
                            
                    
                            
<script>

function vip_value()
{
var hidden_field = document.getElementById('amount');
hidden_field.value = '<?php echo $bil['setup'];?>';

var hidden_field = document.getElementById('service');
hidden_field.value = 'Upgrade + Reseller Portal Setup ';

var hidden_field = document.getElementById('tele');
hidden_field.value = '<?php echo $data['phone'];?>';

var hidden_field = document.getElementById('lname');
hidden_field.value = '<?php echo $data['lastname']?>';

var hidden_field = document.getElementById('fname');
hidden_field.value = '<?php echo $data['firstname']?>';
}

function regular_value()
{
var hidden_field = document.getElementById('amount');
hidden_field.value = '<?php echo $bil['reseller'];?>';

var hidden_field = document.getElementById('service');
hidden_field.value = 'Reseller Account Upgrade ';

var hidden_field = document.getElementById('tele');
hidden_field.value = '<?php echo $data['phone'];?>';

var hidden_field = document.getElementById('lname');
hidden_field.value = '<?php echo $data['lastname']?>';

var hidden_field = document.getElementById('fname');
hidden_field.value = '<?php echo $data['firstname']?>';
}

 function Comma(Num)
 {
       Num += '';
       Num = Num.replace(/,/g, '');

       x = Num.split('.');
       x1 = x[0];

       x2 = x.length > 1 ? '.' + x[1] : '';

       
         var rgx = /(\d)((\d{3}?)+)$/;

       while (rgx.test(x1))

       x1 = x1.replace(rgx, '$1' + ',' + '$2');
     
       return x1 + x2;       
        
 }
 
 
 
 function showTicket(){
    if (document.getElementById('VIP').checked) {
        document.getElementById('ifVIP').style.display = 'block';
		
		var sourceOfPicture = "assets/images/limited-time-special-offers.png";
  var img = document.getElementById('bigpic')
  img.src = sourceOfPicture.replace('90x90', '225x225');
  img.style.display = "block";
  
  
 

  
    }else document.getElementById('ifVIP').style.display = 'none';
	
	
	if (document.getElementById('Regular').checked) {
        document.getElementById('ifRegular').style.display = 'block';
		
		var sourceOfPicture = "assets/images/reseller-program.png";
  var img = document.getElementById('bigpic')
  img.src = sourceOfPicture.replace('90x90', '225x225');
  img.style.display = "block";
  
  $('#IsDstv').change(function(){
	  var selected = $(this).find('option:selected');
	  var amount = selected.data('amount');
	  var service = selected.data('service');
	  var plan = selected.data('plan');
	  $('#amount').val(amount);
	  $('#service').val(service);
	  $('#plan').val(plan);
	  });
		
	
		
		}else document.getElementById('ifRegular').style.display = 'none';
	
	
	}



                            </script> 
                            <!-- ============================================================== -->
                            <!-- ============================================================== -->
                            <!-- customer acquistion  -->
                            <!-- ============================================================== -->
                             <?php include('inc/nav-reflink.php'); ?> 
                            <!-- ============================================================== -->
                            
                            
                            
                            <!-- ============================================================== -->
                        </div>
                        <div class="row">
                          
                        </div>

                        <div class="row">
                            <!-- ============================================================== -->
                            <!-- sales  -->
                         
                            <!-- end new customer  -->
                           
                        </div>
                        <div class="row">
              
                        </div>
                        <div class="row">
                      
                        </div>
                    </div>
                </div>
            </div>
            <!-- ============================================================== -->
            <!-- footer -->
            <!-- ============================================================== -->
           <?php include('inc/footer.php');?>