| 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_backup/admin_student/ |
Upload File : |
<?php
ob_start();
include('headMain.php');
//require_once('footMain.php)');
echo '<div align="right"><a href="javascript:history.go(-1)"> Go to Previous page</a></div>';
//echo ('<div style="color: #003300"><h2 align="center">Payment for 2022/2023 Academic Session Has Closed!</h2></div><br>');
//echo ('<div style="color: #003300"><h2 align="center">No Payment Found for 2024/2025 Academic Session!/You have tobalance your payment</h2></div><br>');
echo ('<div style="color: #003300"><h2 align="center">No payment record found for the 2024/2025 academic session. Please settle your outstanding balance</h2></div><br>');
//echo '<p> <br /><a href="paymentHistory.php"> Click here to Login to Payment Link</a>';
echo '<div> <br /><a href="https://eportal.federalpolyede.edu.ng/registration/" class="btn-primary"> Click here to Login to Payment Link</a></div>';
require_once('footMain.php');
die();
//echo $remark;
//die();
//require_once('closedSemester.php');
//echo "äm here";
$levelID=$_SESSION['levelID'];
$coursek= strtoupper($_SESSION['course']);
//$sqlr=$db->query("select late from realdata where matNo='$matNo' and (late=1 or fresher<>6)");
$sqlr=$db->query("select late from realdata where (matNo='$matNo' or formNo='$formNo') and late=1");
$numr=$sqlr->rowCount();
$numr=1;
if ($numr==1){
$matno = $_SESSION['matNo'];
$checkExemption=$db->query("select * from late_exempt where matNo='$matNo'")->rowCount();
$checkExemption=1;
if ($checkExemption==0) {
$checkLate_NUM = $db->query("SELECT * FROM `latepaid` where regNo='$matNo' and regNo not in (select matNo from late_exempt)")->rowCount();
$late_reg = $db->query("select * from remitaorder where regNo='$matNo'and paymenttype='Late Registration Penalty Charges' and transApproved='True'and `pay_session`='$asession' and status<>'Re-fund' ");
$checkPaid = $db->query("select * from remitaorder where regNo='$matNo'and paymenttype='School Fees' and transApproved='True'and `pay_session`='$asession' and status<>'Re-fund'")->rowCount();
$late_reg_count = $late_reg->rowCount();
// echo $late_reg_count=1 ;
//die();
if ((($late_reg_count == 0) and ($checkPaid == 0)) or ($checkLate_NUM == 1)) {
header('location:late_remitaPayment.php');
include('footMain.php');
die();
}
}
?>
<div id="wrapper">
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript">
$(function () {
$("#olevel").change(function () {
($("#olevel").val());
$.post("../js/getolevel.php", {olevel: $("#olevel").val()}, function (data) {
$("#amt_total").val(data);
//$("#amt").val(data);
});
});
$("#paymentMode").change(function () {
// ($("#paymentMode").val());
$.post("../js/getPartPayment.php", {paymentMode: $("#paymentMode").val()}, function (data) {
// alert (data);
$("#trow").html(data);
});
});
});
</script>
<?php
?>
<table width="100%" align="center" cellpadding="3" cellspacing="5">
<tr>
<td>
<fieldset>
<form id="form1" name="form1" method="post" action="postjson_schoolFees.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">
School Fees Payment (<?php echo $_SESSION['matNo'];?>)
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form role="form">
<table width="100%" cellspacing="5" cellpadding="3">
<?php
$_SESSION['ptype'] = 'School Fees';
$matno = $_SESSION['matNo'];
$course = $_SESSION['course'];
// echo '<font color="#FF0000"><h3> Click on "Make Other Payment" to pay Late Registration Penalty</h3></font>';
//deptID
$_SESSION['deptID'] = 0;
$res = $db->query("select * from dept where dOption='$course'");
$res_fetch = $res->fetch(PDO::FETCH_BOTH);
$n = $res->rowCount();
if ($n > 0) {
$deptID = $_SESSION['deptID'] = $res_fetch['sn'];
}
$sql_current = $db->query("select * from current");
$sql_current_fetch = $sql_current->fetch(PDO::FETCH_BOTH);
$num_current = $sql_current->rowCount();
if ($num_current > 0) {
$semester = $_SESSION['asemester'] = $sql_current_fetch['asemester'];
$asession = $_SESSION['asession'] = $sql_current_fetch['asession'];
}
//End
$sdouble = $db->query("select * from realdata where formNo='$matno' and fresher='8'");
$sdouble_fetch = $sdouble->fetch(PDO::FETCH_BOTH);
$rdouble = $sdouble->rowCount();
if ($rdouble > 0) {
$matno = $sdouble_fetch['matNo'];
$_SESSION['matNo'] = $matno;
// $formNo=$sdouble_fetch['formNo'];
}
$query = $db->query("select * from remitaorder where `regNo`='$matno' and paymentType='School Fees' and transApproved='True' and pay_session='$asession' and status<>'Re-fund'");
$q_num = $query->rowCount();
require_once('check_amount.php');
// echo ("here");
if (($q_num > 0) and ($k_amount <= 0)) {
echo "Payment Has Been Made, Proceed to Registration";
} else {
//check status repeater
//$session_split=explode('/',$asession);
// $session_gena=$session_split[0]-1;
//$session_genb=$session_split[1]-1;
// $session_gen = $session_gena . '/' . $session_genb;
// $checkRemark = "select * from summertable where matNo='$matNo' and `carryCourse` LIKE 'REPE%'";
// $resultRemark = $db->query($checkRemark);
// //echo $checkRemark;
// $numRemark = $resultRemark->rowCount();
//
// if (($numRemark == 1) and ($levelID <> 9) and ($levelID <> 2) and ($levelID <> 7) and ($levelID <> 6)) {
//// if ($numRemark==1) {
// $remark = 'Repeater';
//
// // echo $levelID;
// echo $_SESSION['repeater'] = $remark;
// //$levelID=$levelID-1;
// }
//// $specialFee=$_SESSION['specialFee'] =0.0;
//
// $checkFresher = "select * from admitted where formNo='$matno'";
// $resultFresher = $db->query($checkFresher);
// $resultFresher_fetch = $resultFresher->fetch(PDO::FETCH_BOTH);
// $numFresher = $resultFresher->rowCount();
// if ($numFresher > 0) {
// $remark = $resultFresher_fetch['status'];
//// $specialFee=$_SESSION['specialFee'] = $resultFresher_fetch['specialFee'];
// }
//
// $k = $db->query("select * from realdata where matNo='$matno' and `status`='Deferment'");
// $deferment = $k->rowCount();
// if ($deferment == '1') {
// $remark = 'Repeater';
// $_SESSION['repeater'] = $remark;
// }
// if ((($levelID == '6') or ($levelID == '7')or ($levelID == '2')or ($levelID == '6')) and ($remark == 'Repeater')) {
// $remark = 'Normal';
// }
// // echo $remark;//End status
// //echo $formNo;
// // echo $asession;
//// echo $remark;
// // echo $levelID;
// $checkAmount = "select * from schoolfee where dept='$deptID' and level='$levelID' and status='$remark' and asession='$asession'";
// $resultAmount = $db->query($checkAmount);
// $resultAmount_fetch = $resultAmount->fetch(PDO::FETCH_BOTH);
// $numAmount = $resultAmount->rowCount();
if ($k_amount > 0) {
//echo $remark;
// $amount=$_SESSION['amount']= $resultAmount_fetch['amount'];//+5000;
$amount = $_SESSION['amount'] = $k_amount;
$_SESSION['amount1'] = $amount + 500+ $specialFee ;
?>
<tr>
<td><h4 style="color: red; display: no0ne" >Note:
<ul><li>All New Students i.e. ND 1 FT, ND 1 DPT, ND PT YR 1, HND 1 FT & HND 1 DPT must get Eligibility Form signed by their HOD before payment.</li>
<li>ALL fees paid to the Polytechnic account is NONREFUNDABLE. Students are advised to ensure that they pay approved fee for any service or registration as any form of repayment will not be entertained.</li></ul></h4></td>
</tr>
<tr>
<td colspan="3"><b><h3> Amount
Expected: <?php echo $amount; ?></h3>
</b></td>
</tr>
<tr>
<td colspan="3">
<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"
id="txtRound"
class="form-control"/>
</td>
</tr>
<tr>
<td width="200">Payer Email:
<font color="red">*</font>
</td>
<td><input name="payerEmail"
required="required"
value="" type="email"
id="txtRound"
class="form-control"/>
</td>
</tr>
<tr>
<td width="200">Payer Phone:
</td>
<td><input name="payerPhone"
required="required"
value="" type="text"
id="txtRound"
class="form-control"/>
</td>
</tr>
<?php
//}
$b = $db->query("select * from realdata where matNo='$matno' and fresher='8' or fresher='80'");
$olevelCheck = $b->rowCount();
if ($olevelCheck > 0) {
?>
<tr>
<td>No. of O'level</td>
<td><label
for="paymentMode"></label>
<select name="olevel"
id="olevel"
class="form-control">
<option value="0">
1
</option>
<option
value="2500">2
</option>
</select></td>
</tr>
<?php
}
?>
<tr>
<td width="200">
Amount:
</td>
<td><input name="amt"
type="text"
required="required"
value="<?php echo $amount?>"
readonly="readonly"
id="amt"
class="form-control"/>
</td>
</tr>
<tr>
<td width="200">
Charges:
</td>
<td><input name="amt_charge"
type="text"
required="required"
value="500"
readonly="readonly"
id="amt_charge"
class="form-control"/>
</td>
</tr>
<tr>
<td width="200">
Total Amount:
</td>
<td><input name="amt_total"
type="text"
required="required"
value="<?php echo $amount + 500;?>"
readonly="readonly"
id="amt_total"
class="form-control"/>
</td>
</tr>
<tr>
<td><p></p></td>
</tr>
<tr>
<td colspan="2" align="center">
<p><input type="submit"
name="input"
value="Pay"
id="button"
class="btn btn-primary form-control"/>
<table width="50%"
cellspacing="5"
cellpadding="3">
</table>
<!-- <img src="../images/remitaLogo.jpg" alt="" width="418" height="90" />-->
<p><?php echo ' <br /><a href="paymentHistory.php"> Click to check Payment History</a>';?>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php } else {
?>
<tr>
<td> </td>
<td> </td>
<td><b>
<h3 style="color: blue"> Amount
Expected: 0</h3></b></td>
</tr>
<?php
}
}
?>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</legend>
</fieldset>
</form>
</fieldset>
</td>
</tr>
</table>
<?php
}else{
// echo "<div align='center'><h2 style='color: red'>The Payment Cannot be Made Presently, Kindly Contact ICT on 07061230735</h2></div>";
echo "<div align='center'><h2 style='color: red'> 2022/2023 School Fees Payment For Newly Admitted Students Has Been Closed</h2></div>";
}
include('footMain.php');
ob_end_flush();
?>
</div>