| Server IP : 172.64.80.1 / Your IP : 172.69.58.211 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/entranceform/ |
Upload File : |
<?php
session_start();
$transID=$_SESSION['transID'];
$surname=$_SESSION['surname'];
$otherNames=$_SESSION['otherNames'];
$_SESSION['names']=$surname.' '.$otherNames;
$dept=$_SESSION['dept'];
$gsm=$_SESSION['gsm'];
$email=$_SESSION['email'];
$formType=$_SESSION['formType'];
require_once('../connect.php');
$_SESSION['ptype']=$formType;
$db=db_connect();
// echo $transID.'<br>';
// echo $formType;
$query_k=$db->query("select * from remitaorderform where `regNo`='$transID' and paymentType='$formType' and transApproved='True'");
$f_query=$query_k->fetch(PDO::FETCH_BOTH);
$f_query['transApproved'];
$q_num=$query_k->rowCount();
if ($q_num>0){
echo 'Payment Has Been Made, Proceed to Registration, <a href="apply.php">Click Here to Continue</a>';
// header_remove();
//header('location:login.php');
die();
}else {
$db = db_connect();
$qtyInst="select * from form_tb where formType='$formType'";
$qtyInst=$db->query($qtyInst);
$qtyInst_count=$qtyInst->rowCount();
$qtyInst_fetch=$qtyInst->fetch(PDO::FETCH_BOTH);
$status=$qtyInst_fetch['status'];
// $_SESSION['f_charges']=$f_charges=500.00;
$_SESSION['f_charges']=$f_charges=$qtyInst_fetch['charge'];
// if ($formType =='utmeForm') {
// $_SESSION['f_amount'] = $f_amount = 2000.00;
// $_SESSION['amount'] = $amount = 2500.00;
// }else if ($formType =='remForm') {
// $_SESSION['f_amount']=$f_amount = 5000.00;
// $_SESSION['amount']=$amount = 5500.00;
// }else if ($formType =='preForm') {
// $_SESSION['f_amount']=$f_amount = 5000.00;
// $_SESSION['amount']=$amount = 5500.00;
// }else{
// $_SESSION['f_amount']= $f_amount=10000.00;
// $_SESSION['amount']=$amount = 10500.00;
$_SESSION['f_amount']= $f_amount=$qtyInst_fetch['amount'];
$_SESSION['amount']=$amount = $f_amount+$f_charges;
// }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="../Templates/mainTemp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- Bootstrap Core CSS -->
<link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- MetisMenu CSS -->
<link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="../dist/css/sb-admin-2.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- 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.4.2/respond.min.js"></script>
<![endif]-->
<script src="../../chat/js/libs/jquery-1.7.2.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Federal Poly Ede | Admission Form</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<!-- InstanceEndEditable -->
<style type="text/css">
body {
background-color: #CFD1DE;
background-image: url(../images/logo2fade.png);
}
</style>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-dark.min.css">
</head>
<body background="../images/logo2fade.png">
<table width="90%" align="center" cellpadding="3" cellspacing="5" background="../images/ba.png">
<tr>
<td>
jkh
</td
<br>
<td>h</td>
</tr>
<tr></tr>
<tr><td><br></td></tr>
<tr><td><br></td></tr>
<tr><td><br></td></tr>
<tr><td><br></td></tr>
<tr><td><br></td></tr>
<tr><td><br></td></tr>
</table><br>
<div id="wrapper">
<table width="100%" align="center" cellpadding="3" cellspacing="5">
<tr>
<td><fieldset>
<form id="form1" name="form1" method="post" action="postjson_form.php" role="form">
<fieldset>
<legend>
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="panel panel-default">
<div class="panel-heading">
Application Payment Gateway (<?php echo $transID;?>)
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form role="form">
<?php
require_once('../connect.php');
$_SESSION['ptype'] = $formType;
$aspoaForm=$db->query("select * from form_tb where formType='$formType' and status=1")->rowCount();
//
// if (($formType<>'utmeForma') or ($formType<>'utmeForma')) {
// $k=0;
// }else{
// $k=1;
// }
$k=$aspoaForm;
// die();
// if (($formType<>'utmeForm') or ($formType<>'hndForm')){
//=======================================Admitted Already Area
$qk=$db->query("select formNo from admitted where formNo='$transID' or jambNo='$transID'")->rowCount();
// $d="select formNo from admitted where formNo='transID'";
// echo $d;
// $qk=0;
//=======================================End==================
// echo $k.$formType;
// echo $qk;
// echo $k;
if (($k==1) or ($qk==1)){
?>
<table width="100%" align="center">
<tbody>
<tr>
<td width="60%">Payer Name:</td>
<td><input name="payerName" type="text"
value="<?php echo $_SESSION['names'];
?>" size="45" readonly="readonly"
class="form-control"></td>
</tr>
<tr>
<td width="60%">Payer Email: <font
color="red">*</font></td>
<td><input name="payerEmail" required value=""
type="email" class="form-control">
</td>
</tr>
<tr>
<td>Payer Phone:</td>
<td><input name="payerPhone" value=""
type="text" class="form-control" maxlength="11">
</td>
</tr>
<tr>
<td width="200">Amount: <font
color="red">*</font></td>
<td><input name="amt_1" type="text"
class="form-control" required
value="<?php echo $f_amount;?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="200">Charges: <font
color="red">*</font></td>
<td><input name="amt_c" type="text"
class="form-control" required
value="<?php echo $f_charges;?>" readonly="readonly">
</td>
</tr>
<tr style="display: none">
<td width="200">Do you want to purchase Screening Past Question: <font
color="red">*</font></td>
<td>
<select class="form-control" id="equestion" name="equestion">
<option value="1">Yes</option>
<option value="2">No</option>
</select>
</td>
</tr>
<tr>
<td width="200">Total Amount: <font
color="red">*</font></td>
<td><input name="amt" type="text"
class="form-control" required
value="<?php echo $amount;?>" readonly="readonly">
</td>
</tr>
<tr>
<td width="200">Payment Type:</td>
<td>
<select class="required-entry form-control"
title="Credit Card Type"
name="paymenttype" id="paymenttype"
autocomplete="off">
<option>-- Select Payment Type --
</option>
<option value="VERVE"> Verve Card
</option>
<option value="VISA"> Visa</option>
<option value="MASTERCARD"> MasterCard
</option>
<option value="POCKETMONI"> PocketMoni
</option>
<option value="POS"> POS</option>
<option value="ATM"> ATM</option>
<option value="BANK_BRANCH">BANK
BRANCH
</option>
<option value="BANK_INTERNET">BANK
INTERNET
</option>
<option value="REMITA_PAY"> Remita
Account Transfer
</option>
</select>
</td>
</tr>
<tr>
<td width="200"></td>
<td><p></p><input type="submit" name="" value="Pay"
class="btn btn-primary form-control">
<img src="../images/remitaLogo.jpg"
alt="" width="418" height="90"/></td>
</tr>
</tbody>
</table>
<?php
}else{
echo "<h3 style=' color: red; display: ruby-text';>Sorry, 2022/2023 Application Forms Have Closed</h3>";
// echo "<h2>Sorry, All Application Forms Have Closed</h2>";
}
?>
<div> <a href="paymentHistoryForm.php" style="display:"> Click to check Payment History</a></div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</legend>
</fieldset>
</form>
</fieldset>
</td>
</tr>
</table>
<?php
include('footMain.php');
?>
</div>