| 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/ace_entranceForm/ |
Upload File : |
<?php
session_start();
$mainBody='
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ePortal | Other Payment</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>';
//$_SESSION['matNo']='1610409186';
//$_SESSION['paymentTYPE']='utmeForm';
if (isset($_SESSION['matNo'])){
$idNo=$_SESSION['matNo'];
if (isset($_SESSION['paymentTYPE'])){
$ptype=$_SESSION['paymentTYPE'];
}
}else{
die("An Error Occured");
}
require_once('../connect.php');
$db=db_connect();
$biodataSQL="select * from ace_entrancetable where formNo='$idNo' or transID='$idNo'";
$biodataResult=$db->query($biodataSQL);
$biodataNum=$biodataResult->rowCount();
$biodataResult_fetch=$biodataResult->fetch(PDO::FETCH_BOTH);
// $orderID=mysql_result($biodataResult,0,'orderID');
$names=$biodataResult_fetch['surname'].' '.$biodataResult_fetch['othernames'];
//$idNo=$biodataResult_fetch['surname'];
$formTypea=$biodataResult_fetch['formType'];
$formNo=$biodataResult_fetch['formNo'];
if ($formTypea == 'aceForm') {
$formType = 'Dual Award Programme Form';
} elseif ($formTypea == 'hndForm') {
$formType = 'Higher National Diploma (Full Time)';
} elseif ($formTypea == 'utmeForm') {
$formType = 'National Diploma (FT) Screening';
} elseif ($formTypea == 'dptForm') {
$formType = 'National Diploma (Daily Part Time)';
} elseif ($formTypea == 'ptForm') {
$formType = 'National Diploma (Regular Part Time)';
} elseif ($formTypea == 'remForm') {
$formType = 'Remedial Course';
}
$sqlBank="select * from ace_remitaorderform where regNo='$idNo' and transApproved='True' and paymenttype='$formTypea'";
$resultBank=$db->query($sqlBank);
$resultBank_fetch=$resultBank->fetch(PDO::FETCH_BOTH);
$countBank=$resultBank->rowCount();
$descr=$formType;
$mainBody.='
<table width="80%" align="center" cellpadding="3" cellspacing="5">
<tr>
<td><table width="100%" cellspacing="1" cellpadding="1">
<tr>
<td valign="top"><table width="100%" cellspacing="1" cellpadding="1">
<tr>
<td align="center" valign="top"><p><img src="../images/ace_siwesHead.png" width="731" height="95" /></p></td>
</tr>
<tr>
<td align="center" bgcolor="#CCCCCC"><H2><strong> PAYMENT RECEIPT </strong></H2></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" cellspacing="5" cellpadding="3">
<tr>
<td colspan="1" id="lab">Application Number</td>
<td > </td>
<td colspan="3">'.$biodataResult_fetch['formNo'].'</td>
</tr>
<tr>
<td colspan="1" id="lab">Name</td>
<td> </td>
<td colspan="3"><b><H3>'. strtoupper($names).'</H3></b></td>
</tr>
<tr>
<td colspan="1" id="lab">Description</td>
<td> </td>
<td colspan="3">'. $descr.'</td>
</tr>
<tr>
<td colspan="4" id="lab"> </td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table width="100%" cellspacing="5" cellpadding="3">
<tr>
<td colspan="5" bgcolor="#999999" id="headingg">PAYMENT DETAILS</td>
</tr>
<tr>
<td colspan="5">
<table width="100%" cellspacing="5" cellpadding="3">
<tr>
<td><table width="100%" border="1" cellpadding="3" cellspacing="0">';
if ($countBank>0){
$mainBody.='
<tr>
<td colspan="2" id="heeee">Payment Details</td>
</tr>
<tr>
<td width="29%"><strong>Receipt Number</strong></td>
<td width="71%">'.$resultBank_fetch['orderID'].'</td>
</tr>
<tr>
<td><strong>Amount Paid</strong></td>
<td>N'.$resultBank_fetch['amtPaid'].'</td>
</tr>
<tr>
<td><strong>Transaction Reference</strong></td>
<td>'.$resultBank_fetch['remitaRRR'].'</td>
</tr>
<tr>
<td><strong>Date Paid</strong></td>
<td>'. $resultBank_fetch['dateCreated'].'</td>
</tr>';
}else{
$mainBody.='
<tr>
<td> </td>
<td id="errr"><h3> Payment has not been made</h3></td>
</tr>';
}
$mainBody.='
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" colspan="5" bgcolor="#ffffff">Print this receipt for Official Purpose.</td>
</tr>
<tr>
<td height="25" colspan="5" bgcolor="#FFFFFF" id=""> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>';
//echo $mainBody;
include("../mpdf/mpdf.php");
$mpdf=new mPDF('c');
$mpdf->SetWatermarkImage('../images/ace_logo_back');
$mpdf->showWatermarkImage = true;
$dat=date('l, M d, o, h:i:s a');
$customizedFooter='<img src="../images/siwesfooter.png"><br><div align="right">'. $dat.'</div>';
$mpdf->WriteHTML($mainBody);
$mpdf->setFooter($customizedFooter) ;
$mpdf->Output();
exit;
ob_end_flush();
?>