| Server IP : 172.64.80.1 / Your IP : 172.69.7.193 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/ace_entranceForm/ |
Upload File : |
<?php
ob_flush();
//session_start();
//echo $_SESSION['orderID'];
//die();
$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>
';
if (isset($_GET['id'])){
$orderID=$_GET['id'];
}
//echo $idNo;
require_once('../../connect.php');
$db=db_connect();
$ptype=$_GET['ptype'];
$sqlBank="select * from remitaorder where orderID='$orderID' and transApproved='True' and paymenttype='$ptype'";
$resultBank=$db->query($sqlBank);
$countBank=$resultBank->rowCount();
$resultBank_fetch=$resultBank->fetch(PDO::FETCH_BOTH);
$idNo=$resultBank_fetch['regNo'];
$biodataSQL="select * from otherpayment where idNo='$idNo'";
$biodataResult=$db->query($biodataSQL);
$biodataResult_fetch=$biodataResult->fetch(PDO::FETCH_BOTH);
$biodataNum=$biodataResult->rowCount();
// $orderID=mysql_result($biodataResult,0,'orderID');
$names=$biodataResult_fetch['names'];
$idNo=$biodataResult_fetch['idNo'];
//$ptype=mysql_result($biodataResult,0,'ptype');
$descr=$biodataResult_fetch['descr'];
$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/siwesHead.png" width="731" height="95" /></p></td>
</tr>
<tr>
<td align="center" bgcolor="#CCCCCC"><strong id="cen"> '.strtoupper($ptype);
$mainBody.='
RECEIPT </strong></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table width="100%" cellspacing="5" cellpadding="3">
<tr>
<td colspan="1" id="lab">ID No.</td>
<td > </td>
<td colspan="3">'. $biodataResult_fetch['idNo'].'</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="6" 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" ><em>*Proceed to the Students Account Unit of the Busary Department for confirmation of your payment.</em></td>
</tr>
<tr>
<td height="25" colspan="5" bgcolor="#FFFFFF" id="headingg2"> </td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#666666" id="headingg">FOR OFFICIAL USE ONLY
<tr>
<td colspan="5"><table width="100%" cellspacing="5" cellpadding="3">
<tr>
<td> </td>
<td id="sch"> </td>
</tr>
<tr>
<td>Account Officer:: ______________________</td>
<td rowspan="2"> </td>
</tr>
<tr>
<td>Sign./ Date & Stamp: _________________</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="right"><hr />'.date('l, M d, o, h:i:s a').'</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>';
echo $mainBody;
include("../../mpdf/mpdf.php");
$mpdf=new mPDF('c');
$mpdf->SetWatermarkImage('../../images/logoBack.png');
$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();
?>