| Server IP : 172.64.80.1 / Your IP : 172.69.59.194 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/print/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: SERVER
* Date: 06/02/2016
* Time: 3:29 PM
*/
ob_start();
session_start();
$matNo=$_SESSION['matNo'];
require_once('../../connect.php');
$dat=date('l, M d, o, h:i:s a');
$db=db_connect();
$sql=$db->query("select * from realdata where matNo='$matNo'");
$sql_fetch=$sql->fetch(PDO::FETCH_BOTH);
$num=$sql->rowCount();
if ($num==1){
$matNo=$sql_fetch['matNo'];
$fullName=explode(' ',($sql_fetch['names']));
$surname=strtoupper($fullName[0]);
$othernames=$fullName[1].' '.$fullName[2];
$sex=$sql_fetch['sex'];
$dept=$sql_fetch['course'];
if ($sex=='Male') {
$title = 'Mr.';
$dd="He";
$dd2="his";
}else{
$title = 'Miss.';
$dd="She";
$dd2="her";
}
$azezat="select * from dept where dOption='$dept'";
$azezat_exe=$db->query($azezat);
if ($azezat_exe->rowCount()==1){
$azezat_fetch=$azezat_exe->fetch(PDO::FETCH_ASSOC);
$azezat_schl=$azezat_fetch['dSchool'];
}
// $k=count($fullName);
// $ku=$db->query("select * from current");
// $ku_fetch=$ku->fetch(PDO::FETCH_BOTH);
// $it_date=$ku_fetch['start_date'];
// $it_session=$ku_fetch['it_session'];
}
//<div align="right">Date: '.date('d/m/y').' </div>
$mainBody=
'<img src="../../images/siwesHead.png">
<table width="100%">
<tr><td rowspan="1" align="center"><h4><div align="center">OFFICE OF THE REGISTRAR</div></h4></td><td align="right" rowspan="4"><div align="right" style="ovaerflow"><img src="../../passport/Reg'. $matNo.'.jpg" alt="" width="105" height="115" /></div></td></tr>
<tr><td rowspan="1" align="center"><h3><div align="center">UNDERTAKING TO BE OF GOOD BEHAVIOR</div></h3></td></tr>
<tr><td rowspan="1" align="center"><h3><div align="center"></div></h3></td></tr>
</table>
I, <b>'.$surname.' '.$othernames.'</b>
with Matric No <b>'.$matNo.'</b>
of Department of <b>'.$dept.'</b>
in the school of <b>'.$azezat_schl.'</b> solemnly and truthfully declare that I will comply with the Polytechnic Rules and Regulations that are enforced from time to time as long as I remain a student of the Polytechnic. Thus, I hereby undertake that I will:
<ol type="a">
<li> Not cause any detriment to the interests, well-being or image of the Polytechnic, Students, Staff or Employees of the Polytechnic;</li>
<li> Not cause any detriment to public order, safety or security, morality, decency or discipline whether within or outside the campus;</li>
<li>Not join, associate or express sympathy to any authorized or unauthorized society, group of persons or association to cause damage or disruption to the peace and property of the Polytechnic or any other within or outside the Polytechnic campuses;</li>
<li> Pay the prescribed fee for damages to the Polytechnic and its community’s property(ies) as a result of the students‘ unrest</li>
<p>I hereby acknowledge and understand that if I fail to comply with any of the above or any of the provisions in any laws, statues, regulations, rules or orders, of the polytechnic and any other one that may be promulgated based on circumstances, shall be lead to my summary dismissal.
<div> <b>Signature of Student: ____________________________ Date: ________________________________</div>
<p></p>
<div> <b>Name of Parent/Guardian: ___________________________ Phone Number: _____________________</div>
<p></p><div> <b>Signature of Parent/Guardian: __________________________ Date: ______________________</div>
<p>
<img src="../../images/passportPa.png" alt="" width="100" height="100"></div>
<div> <div>sworm at the High Court of Justice Registry </div>
<div>this ______________ day of ______________ 2023</div>
<p></p><div align="center">BEFORE ME</div>
<p>
<br>
<div align="center">_____________________</div>
<div align="center">COMMISSIONER FOR OATH</div>
</p></div>
';
//echo $mainBody;
$customizedFooter='<img src="../../images/siwesfooter.png"><br><div align="right">'. $dat.'</div>';
include("../../mpdf/mpdf.php");
$filename='undertaking-'.$matNo.'.pdf';
$mpdf=new mPDF('c');
$mpdf->SetWatermarkImage('../../images/logoBack.png');
$mpdf->showWatermarkImage = true;
$mpdf->WriteHTML($mainBody);
$mpdf->setFooter($customizedFooter) ;
$mpdf->Output($filename,'D');
exit;
?>