Current File : /home/inlingua/public_html/sensoriumpsychologists.com/diagnostics/screening/online_payment.php
<?php require_once("../franchise_between/check_franchise.php");?>
<?php require_once("../franchise_between/user_details_msg_setup.php");?>
<?php require_once("../franchise_between/validate_functions.php");?>
<?php require_once("../franchise_between/student_funcs.php");?>
<?php require_once("../franchise_between/payment_funcs.php");?>
<?php require_once("../franchise_between/accounts_banks_funcs.php");?>
<?php require_once("../franchise_between/e_wallet_funcs.php");?>
<?php 
$payment_no=$_GET['payment_no'];
$new_conn = new mysqli($host_db,$user_db,$pass_db,$name_db);
if ($new_conn->connect_errno){
	echo("COULD NOT CONNECT TO THE SERVER.....TRY AGAIN LATER");
	exit();
}
$sql="SELECT * FROM `shristi_students_payments` where status='unpaid' AND table_id='".$payment_no."'";
$result=$new_conn->query($sql);
$row=$result->fetch_assoc();
$student_id=$row['student_id'];

$sql1="SELECT * FROM `shristi_child_details` where table_id='".$student_id."'";
$result1=$new_conn->query($sql1);
$row1=$result1->fetch_assoc();

//echo "<pre>";
//print_r($row1);
?>
<!doctype html>
<html>
<?php include("common/page_head.php");?>
<body>
<?php include("common/header_var.php");?>
<?php
$top_enrollment=$top_val;
?>
<?php include("common/header.php");?>
<div id="main_container">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-10">
  <div style="position: relative;width: 78%;min-width: 1000px;margin: auto; font-size: 12px;">
 
  <br><br>
    <fieldset>
    <legend>PAYMENT SUMMARY</legend>
    <form action="online_payment_request.php" method="post">
    <table border="0" class="tables_fieldset" cellpadding="3px" cellspacing="0">
      <tr>
        <td style="font-weight:bold;width:150px;">Name</td>
        <td style="font-weight:bold;width:20px;">:</td>
        <td><input type="text" name="name" value="<?php echo $row1['name'];?>" readonly></td>
      </tr>
     
      <tr>
        <td style="font-weight:bold;">Email</td>
        <td style="font-weight:bold;">:</td>
        <td><input type="text" name="email" value="<?php echo $row1['email'];?>" readonly></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Registration no</td>
        <td style="font-weight:bold;">:</td>
        <td><input type="text" name="registration_no" value="<?php echo $row1['registration_no'];?>" readonly></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Contact no</td>
        <td style="font-weight:bold;">:</td>
        <td><input type="text" name="contact_no" value="<?php echo $row1['contact_no'];?>" readonly></td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Amount</td>
        <td style="font-weight:bold;">:</td>
        <td><input type="text" name="amount" placeholder="Enter amount"></td>
      </tr>
      <tr>
       <td>
       <input type="hidden" value="<?php echo rand(100000454,10000000999);?>" id="OrderId" name="OrderId">
       <input type="hidden" value="S" id="meTransReqType" name="meTransReqType">
       <input type="hidden" value="INR" id="currencyName" name="currencyName">
       <input type="hidden" name="MID" id="MID" value="WL0000000006575">
	   <input type="hidden" name="enckey" id="enckey" value="2e64c689a7018c84b1cebbb111a1864a">
	   
	   
       <input type="hidden" value="<?php echo date('Y-m-d');?>" id="recurDay" name="recurDay">
       
       
       <input type="hidden" name="responseUrl" id="responseUrl" value="https://www.shristisensorium.com/franchise/treatment_payment/meTrnCardStatusSuccess.php">
       </td>
      </tr>
      <tr>
      <td></td>
       <td><input type="submit" class="btn btn-danger btn-block"
        style="background:#33CC33;padding:5px;font-size:15px" 
					name="CHECKOUT" value= "CHECKOUT" /></td>
      </tr>
    </table>
    </fieldset>
    </form>
  </div>
  </div>
  </div>
</div>
</body>	
</html>

<?php /*?><form action="student-registration-extension.php" method="post">
    <h4 align="center">Redirecting To Payment Please Wait..</h4>
	<h4 align="center">Please Do Not Press Back Button OR Refresh Page</h4>
		
			
				<input type="hidden" value="<?php echo rand(100000454,10000000999);?>" id="OrderId" name="OrderId">
				<input type="hidden" value="<?php // echo $session_row2['amount'];?>" id="amount" name="amount">
				<input type="hidden" value="INR" id="currencyName" name="currencyName">
                <input type="hidden" value="S" id="meTransReqType" name="meTransReqType">
				
			    <input type="hidden" name="MID" id="MID" value="WL0000000006575">
				<input type="hidden" name="enckey" id="enckey" value="2e64c689a7018c84b1cebbb111a1864a">
				
                <input type="hidden" value="<?php //echo $date;?>" id="recurDay" name="recurDay">
			    <input type="hidden" name="mobile" value="<?php //echo $session_row1['mobile1'];?>">
                <input type="hidden" name="registration_no" id="registration_no" value="<?php //echo $session_row['registration_no'];?>">	
				<input type="hidden" name="f_name" id="f_name"  value="<?php //echo $session_row['fname'];?>">
				<input type="hidden" name="email" id="email" value="<?php //echo $session_row['email'];?>">
                
                 <input type="hidden" name="responseUrl" id="responseUrl" value="http://www.shristiuniverse.com/student/meTrnCardStatusSuccess.php">
				 <input type="submit" class="btn btn-danger btn-block" style="background:#33CC33;padding:5px;font-size:15px" 
					name="CHECKOUT" value= "CHECKOUT" />	
		    </form><?php */?>