| Server IP : 172.64.80.1 / Your IP : 172.70.50.62 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/admissionProcess/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: aspoaSoftTech
* Date: 7/22/2020
* Time: 9:16 PM
*/
require_once('../connect.php');
//$reportHead='National Diploma (Full Time)';
extract($_POST);
if ($mode=='NFT') $reportHead='National Diploma (Full Time)';
if ($mode=='HFT') $reportHead='Higher National Diploma (Full Time)';
if ($mode=='HDPT') $reportHead='Higher National Diploma (Daily PT)';
if ($mode=='DPT') $reportHead='National Diploma (Daily PT)';
if ($mode=='RPT') $reportHead='National Diploma (Regular PT)';
$db=db_connect();
//echo "select * from `vw_acceptance_stat_real` where mode='$mode' group by course";
//die();
$sql=$db->query("select * from `vw_acceptance_stat_real` where mode='$mode' group by course");
//$reportHead="ND Full Time";
$mainPage='
<html>
<head>
<title>Acceptance Fee Payment Report Head</title>
</head>
<body>
<center><img src="../images/siwesHead.png" align="center">
<h2 align="center">REPORT OF 2022/2023 ACCEPTANCE FEE PAYMENT</h2><table width="80%" align="center">';
$mainPage.='<tr><td>Date Printed: <b>'.date('l, M d, o, h:i:s a').'</b><br></td></tr>';
$mainPage.='<tr><td>Report Title: <b>'.$reportHead.'</b></td></tr></table>';
$mainPage.= '<p></p><div class="row">
<div class="col-lg-12" >
<div class="panel panel-info">
<div class="panel-heading">
</div>
<!-- /.panel-heading -->
<div>
<div >
<table align="center" width="80%" border="1" cellpadding="3" cellspacing="0" >
<thead>
<tr >
<th>S/N</th>
<th>Department</th>
<th>Population</th>
<th>Amount Paid</th>
</tr>
</thead>
<tbody>';
$i=0;
$total=0;
while ($row=$sql->fetch(PDO::FETCH_BOTH)){
$r=$i+1;
$dept=$row['course'];
$population= $row['population'];
// $numb=$row['level'];
// if (($dept=='Science Laboratory Technology') and ($numb=='dptForm')){
// $population= $row['pop']-2;
// }
// if (($dept=='Science Laboratory Technology') and ($numb=='utmeForm')){
// $population= $row['pop']-10;
// }
// if (($dept=='Business Administration and Mgt.') and ($numb=='hndForm')){
// $population= $row['pop']-3;
// }
$total=$total+$population;
$amt=25000*$population;
$mainPage.='<tr class="odd gradeX">
<td>'.$r.'</td>
<td>'.$dept.'</td>
<td>'.$population.'</td>
<td align="right">'.number_format($amt,2).'</td>';
++$i;
}
$tAnt=$total*15000;
$mainPage.='</tr>
<tr><th colspan="2" align="center">Total</th><th align="left">'.$total.'</th><th align="left">'.number_format($tAnt,2).'</th></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><p></p>
<table width="80%" align="center"><tr><td><img src="../images/head_ict.jpg" width="100px"></td></tr>
<tr><td>Principal System Analyst</td></tr></table>';
//echo $mainPage;
//die();
//$mainPage='ooo';
$filename='Acceptance_'.$mode.'_.pdf';
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->SetTitle('My Title');
$mpdf->WriteHTML($mainPage);
$mpdf->setFooter($customizedFooter) ;
$mpdf->Output($filename, 'D');
exit;
?>