| 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/admissionProcess/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: aspoaSoftTech
* Date: 7/22/2020
* Time: 9:16 PM
*/
//extract($_POST);
$batchName=$_POST['batchName'];
$levelName=$_POST['levelName'];
$dept=$_POST['dept'];
//echo $dept;
if ($levelName=='National Diploma (Full Time)') $levelID='utmeForm';
if ($levelName=='National Diploma (Daily Part Time)') $levelID='dptForm';
if ($levelName=='National Diploma (Regular Part Time)') $levelID='ptForm';
if ($levelName=='Higher National Diploma (Full Time)') $levelID='hndForm';
if ($levelName=='Higher National Diploma (Daily Part Time)') $levelID='hdptForm';
//echo $levelID;
//die();
require_once('../connect.php');
$reportHead='2023_2024 ADMISSION_LIST ';
$db=db_connect();
if ($batchName=='All List'){
$aspoa="select * from stddata where level='$levelID' and admStatus>5 and `option`='$dept' order by surname";
}else{
$aspoa="select * from stddata where batchNo='$batchName' and level='$levelID' and admStatus>5 and `option`='$dept' order by surname";
}
//die();
$sql=$db->query($aspoa);
$dd="date('l, M d, o, h:i:s a')";
//$reportHead="ND Full Time";
$mainPage='
<html>
<head>
<title>Admission List</title>
</head>
<body>
<center><img src="../images/siwesHead.png" align="center">
<div>
<h3 align="left">OFFICE OF THE REGISTRAR</h3>
<h3 align="left">ACADEMIC AFFAIRS DIVISION</h3>
<h3 align="left">'.strtoupper($levelName).' 2023_2024 PROVISIONAL_ADMISSION_LIST </h2>
<h3 align="left">DEPARTMENT: '.strtoupper($dept).' </h3>
<h3 align="left">Batch: <b>'.$batchName.'</b></h3></div>';
;
//'.strtoupper($dept).' ('.strtoupper($levelName).')
//$mainPage.='<tr><td>Date Printed: <b>'.$dd.'</b><br></td></tr>';
$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>Form/Application No</th>
<th>Jamb No</th>
<th>Names</th>
</tr>
</thead>
<tbody>';
$i=0;
$total=0;
$r=0;
while ($row=$sql->fetch(PDO::FETCH_BOTH)){
$r=$i+1;
$appNo=$row['formNo'];
$jambNo=strtoupper($row['jambNo']);
$names= strtoupper($row['surname']).' '.$row['otherNames'];
// $numb=$row['level'];
// if (($dept=='Business Administration and Mgt.') and ($numb=='hndForm')){
// $population= $row['pop']-3;
// }
// $total=$total+$population;
$mainPage.='<tr class="odd gradeX">
<td>'.$r.'</td>
<td>'.$appNo.'</td>
<td>'.$jambNo.'</td>
<td>'.$names.'</td>';
++$i;
}
$mainPage.='</tr>
<tr><th colspan="2" align="center">Total</th><th align="left">'.$r.'</th></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div><p></p>
<table width="80%" align="center"><tr><td>______________________</td></tr>
<tr><td></td></tr></table>';
//echo $mainPage;
//die();
//$mainPage='ooo';
$filename=$dept.'-'.$levelID.'-'.$batchName.'.pdf';
include("../mpdf/mpdf.php");
$mpdf=new mPDF('c');
$mpdf->SetWatermarkImage('../images/logoBack.png');
$mpdf->showWatermarkImage = true;
$mpdf = new mPDF('', 'A4', 10, '10', 15, 15, 5, 5, 8, 8);
//new mPDF('','A4',10,10,)
$customizedFooter='<img src="../images/siwesfooter.png"><br><div align="right">'. $dat.'</div>';
$mpdf->WriteHTML($mainPage);
$mpdf->setFooter($customizedFooter) ;
$mpdf->Output($filename, 'D');
exit;
?>