| Server IP : 172.64.80.1 / Your IP : 108.162.241.66 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/admin_student/ |
Upload File : |
<?php
ob_start();
include('headMain.php');
/**
* Created by PhpStorm.
* User: adisa
* Date: 3/2/2016
* Time: 3:31 PM
*/
//session_start();
if(!isset($_SESSION['matNo'])){
header('location:login.php');
}
if(isset($_GET['ID'])){
$sn=$_GET['ID'];
$s=$db->query("select * from room_allocation where sn='$sn'");
if ($s->rowCount()>0){
$s_fetch=$s->fetch(PDO::FETCH_ASSOC);
$hostel_id=$s_fetch['hostel_id'];
$room_id=$s_fetch['room_id'];
$bed_space=$s_fetch['bed_space'];
}else{
die("An Error Has Occurred-001. Contact ICT on WhatsApp- 07061230735");
}
}else{
die("An Error Has Occurred-002. Contact ICT on WhatsApp- 07061230735");
}
?>
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" >
$(function(){
$("#idNo").change(function(){
($("#idNo").val());
$.post("../js/getNameNon.php",{idNo:$("#idNo").val()},function(data){
$("#names").html(data);
});
});
});
$(function(){
$("#ptype").change(function(){
($("#ptype").val());
//alert("make sure the amount is "+$("#ptype").val());
$.post("../js/getAmountc.php",{ptype:$("#ptype").val()},function(data){
$("#amt2").html(data);
});
});
});
$(function(){
$("#ptype").change(function(){
($("#ptype").val());
//alert("make sure the amount is "+$("#ptype").val());
$.post("../js/getAmountc2.php",{ptype:$("#ptype").val()},function(data){
$("#amt2c").html(data);
});
});
});
</script>
<div id="wrapper">
<table width="100%" align="center" cellpadding="3" cellspacing="5">
<tr>
<td><fieldset>
<form id="form1" name="form1" method="post" action="postjson_otherpayment.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">
Payment Gateway (<?php echo $sn.'-'.$hostel_id.'-'.$room_id.'-'.$bed_space;?>)
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form role="form">
<table width="100%" align="center">
<tbody>
<tr>
<td width="40%">ID No (Matric No)</td>
<td><input name="idNo" type="text" required="required" id="idNo" value="<?php echo $_SESSION['matNo'];?>" readonly="readonly" class="form-control" /></td>
</tr>
<tr>
<td width="200">Payer Full Name:</td>
<td id="names"><input name="payerName" type="text" class="form-control" size="45" readonly="readonly" id="payerName" value="<?php echo $_SESSION['names'];?>"></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">
</td>
</tr>
<tr>
<td>Payment Type</td>
<td><label for="ptype"></label>
<select name="ptype" id="ptype" class="form-control">
<option value="Accommodation Levy,20000,0">Accommodation Levy</option>
</select></td>
</tr>
<tr>
<td width="40%">Payment Description</td>
<td><input name="pdis" type="text" required="required" id="pdis" value="<?php echo 'Accommodation '.$sn.'-'.$hostel_id.'-'.$room_id.'-'.$bed_space ;?>" class="form-control" /></td>
</tr>
<tr>
<td width="200">Hostel Accommodation Fee: <font color="red">*</font></td>
<td id="amt2"><input name="amt" type="text" required value="10000" class="form-control"readonly="readonly" id="amt"></td>
<input type="hidden" name="amt" value="20000">
</tr>
<tr>
<td width="200">Hostel Maintenance Fee: <font color="red">*</font></td>
<td id="amt2c"><input name="amtc00" type="text" required value="10000" class="form-control"readonly="readonly" id="amtc"></td>
<input type="hidden" name="amtc" value="0">
</tr>
<tr>
<td width="200">Payment Method 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>
<div> <a href="reprintNon.php"> 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>