403Webshell
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/entranceform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/entranceform/applyPrint.php
<?php
ob_start();
session_start();
$jambScore=0;
//$jambScoreReal=0;
$homeTown='0';
$mainBodyaa='';
$mainBody = '
';
if ( isset($_SESSION['formNo'])) {
    //die( $_SESSION['formNo']);
    $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 | Biodata</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body size="7" >
';
    require_once('../connect.php');
    $db = db_connect();
    $matNo = $_SESSION['formNo'];
    $deptID = $_SESSION['dept'];
    $sqlDept = "select * from dept where sn='$deptID'";
    $ResultDept = $db->query($sqlDept);
    $sqlDept_fetct = $ResultDept->fetch(PDO::FETCH_BOTH);
    $deptName = $sqlDept_fetct['dOption'];
    $biodataSQL = "select * from stddata where formNo='$matNo' and formNo<>''";
    $biodataResult = $db->query($biodataSQL);
    $biodataNum = $biodataResult->rowCount();
    $biodataResult_fetch = $biodataResult->fetch(PDO::FETCH_BOTH);
    $formNo = $biodataResult_fetch['formNo'];
    $formTypea = $biodataResult_fetch['level'];
   // $adm = $biodataResult_fetch['admStatus'];
    $jambNo = $biodataResult_fetch['jambNo'];
    $admittedSQL = $db->query("select * from admitted where (formNo='$matNo' or formNo='$jambNo') and formNo<>'' and jambNo<>''");
    $admittedSQL_num = $admittedSQL->rowCount();
    $admittedSQL_fetch=$admittedSQL->fetch(PDO::FETCH_BOTH);
    $kDept=$admittedSQL_fetch['course'];
    $kMode=$admittedSQL_fetch['mode'];
    $address=$admittedSQL_fetch['address'];
    $homeTown=$admittedSQL_fetch['homeTown'];
    $adm = $admittedSQL_num;
    $adm=100;
    switch ($adm) {
        case 1:
            $admStatus = 'Admitted <br>( '.$kDept.' - <br>'.$kMode.')';
            break;
        default:
            $admStatus = 'Not Admitted Yet';
    }
    $sqlNOK = "select * from otherinfo where formNo='$formNo'";
    $ResultNOK = $db->query($sqlNOK);
    $sqlNOK_fetct = $ResultNOK->fetch(PDO::FETCH_BOTH);
    $nameNOK = $sqlNOK_fetct['nName'];
    $addressNOK = $sqlNOK_fetct['nAddress'];
    $GSMNOK = $sqlNOK_fetct['nGsm'];
    if ($formTypea == 'preForm') {
        $formType = 'Pre National Diploma';
    } elseif ($formTypea == 'hndForm') {
        $formType = 'Higher National Diploma (Full Time)';
    } elseif ($formTypea == 'hdptForm') {
        $formType = 'Higher National Diploma (Daily Part Time)';
    } elseif ($formTypea == 'utmeForm') {
        $formType = 'National Diploma (FT) Screening';
    } elseif ($formTypea == 'dptForm') {
        $formType = 'National Diploma (Daily Part Time)';
    } elseif ($formTypea == 'ptForm') {
        $formType = 'National Diploma (Regular Part Time)';
    } elseif ($formTypea == 'remForm') {
    $formType = 'Remedial Course';
}
    if ($formTypea == 'utmeForm') {
        $formHead = 'CANDIDATE\'S INFORMATION PAGE';
    } else {
        $formHead = 'CANDIDATE\'S INFORMATION PAGE';
        //$formHead='APPLICANT FORM';
    }
    $mainBody .= '
<table width="100%" 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" /><br />
            </p></td>
            </tr>
                    <tr>
            <td align="center" bgcolor="#CCCCCC"><strong id="cen"><h2>' . $formHead . '</h2></strong></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" cellpadding="0" cellspacing="3">
          <tr>
            <td width="22%" colspan="1" id="lab"><b>Application No.</b></td>
            <td width="1%">&nbsp;</td>
            <td colspan="3">' . $matNo . '</td>
            <td width="31%" rowspan="4" colspan="2"><img src="../passportForm/' . $matNo . '.jpg" alt="" width="105" height="115" /></td>
          </tr>
          <tr>
            <td colspan="1" id="lab"><b>Form Type</b></td>
            <td>&nbsp;</td>
            <td colspan="3"><strong>' . $formType . '</strong></td>
          </tr>
          <tr>
            <td colspan="1" id="lab"><b>Full Name</b></td>
            <td>&nbsp;</td>
            <td colspan="3"><b><H4>' . strtoupper($biodataResult_fetch['surname'] . ' ' . $biodataResult_fetch['otherNames']) . '</H4></b></td>
          </tr>
          <tr>
            <td colspan="1" id="lab"><b>Department</b></td>
            <td>&nbsp;</td>
            <td colspan="3">' . $biodataResult_fetch['dept'] . '</td>
          </tr>
          <tr>
            <td colspan="1" id="lab"><b>Phone No.</b></td>
            <td>&nbsp;</td>
            <td colspan="3">' . $biodataResult_fetch['gsm'] . '</td>
          </tr>';
    if (($formTypea <> 'utmeForma') or ($formTypea <> 'hndForma') or ($formTypea <> 'hdptForma')) {
        $mainBody .= '      <tr>
            <td id="lab"><b>Jamb Reg. No.</b></td>
            <td>&nbsp;</td>
            <td width="26%">' . $biodataResult_fetch['jambNo'] . '</td>
            <td width="18%" id="lab"><b>Jamb Score</b></td>
            <td width="2%">&nbsp;</td>
            <td >' . $jambScore = $biodataResult_fetch['jambScore'] . '
			</td>
          </tr>';
    }
    $mainBody .= '
          <tr>
            <td id="lab"><b>E-Mail</b></td>
            <td>&nbsp;</td>
            <td width="26%">' . $biodataResult_fetch['email'] . '</td>
            <td width="18%" id="lab"><b>Date of Birth</b></td>
            <td width="2%">&nbsp;</td>
            <td  >' . $biodataResult_fetch['dob'] . '
			</td>
          </tr>
          <tr>
            <td id="lab"><b>State</b></td>
            <td>&nbsp;</td>
            <td>' . $biodataResult_fetch['state'] . '</td>
            <td id="lab"><b>LGA</b></td>
            <td>&nbsp;</td>
            <td >' . $biodataResult_fetch['lga'] . '</td>
          </tr>
           <tr>
            <td id="lab"><b>Contact Address</b></td>
            <td>&nbsp;</td>
            <td>' . wordwrap($biodataResult_fetch['address']) . '</td>
            <td id="lab"><b>Home Town</b></td>
            <td>&nbsp;</td>
            <td >' . $biodataResult_fetch['homeTown'] . '</td>
          </tr>
          <tr>
            <td id="lab"><b>Sex</b></td>
            <td>&nbsp;</td>
            <td>' . $biodataResult_fetch['sex'] . '</td>
            <td id="lab"><b>Marital Status</b></td>
            <td>&nbsp;</td>
            <td >' . $biodataResult_fetch['maritalStatus'] . '</td>
          </tr>

          <tr>
            <td id="lab2"><b>Next of Kin</b></td>
            <td>&nbsp;</td>
            <td>' . $nameNOK . ',' . wordwrap($addressNOK) . '</td>
            <td id="lab2"><strong>Admission Status</strong></td>
            <td>&nbsp;</td>
            <td colspan="2" style="color:blue; font-size:20px">' . $admStatus . '</td>
          </tr>
          <tr>
            <td colspan="7" bgcolor="#CCCCCC" id="headingg"><b>O\' LEVEL RESULT</b></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td>
        <table width="100%" cellpadding="0" cellspacing="3">
          <tr>
            <td colspan="5">
              <table width="100%" cellspacing="5" cellpadding="3">';
    $sql3 = "select * from preolevel where formNo='$matNo'";
    $result3 = $db->query($sql3);
    $num3 = $result3->rowCount();
    $result3_fetch = $result3->fetch(PDO::FETCH_BOTH);
    if ($num3 > 0) {
        $k = $result3_fetch['olevel1'];
        $olevel = explode(',', $k);
        $count = count($olevel);
        $k2 = $result3_fetch['olevel2'];
        $olevel2 = explode(',', $k2);
        $count2 = count($olevel2);
        //echo mysql_result($result3,0,'olevel1')
        $mainBody .= '
                              <tr>
                                <td><table width="100%" cellspacing="5" cellpadding="0">
                                  <tr><td><b>Exam Type: </b></td><td>' . $result3_fetch['eType1'] . '</td></tr>
								  <tr><td><b>Exam Number: </b></td><td>' . $result3_fetch['examNo1'] . '</td></tr>
								 <tr><td><b>Exam Date: </b></td><td>' . $result3_fetch['eYear1'] . '</td></tr>
								 <tr><td colspan="2"><hr></td></tr>
                                 ';
        for ($a = 0; $a < $count - 1; ++$a) {
            $splitOlevel = explode('-', $olevel[$a]);
            $mainBody .= '<tr><td>' . $splitOlevel[0] . '</td><td>' . $splitOlevel[1] . '</td>';
        }
        $mainBody .= '</td></tr>
                                </table></td>
                                <td><table width="100%" cellspacing="5" cellpadding="0">
                                  <tr>
                                    <td>';
        if ($result3_fetch['examNo2'] != '') {
            $mainBody .= '
 <tr>
                                <td><table width="100%" cellspacing="5" cellpadding="0">
                                  <tr><td><b>Exam Type: </b></td><td>' . $result3_fetch['eType2'] . '</td></tr>
								  <tr><td><b>Exam Number: </b></td><td>' . $result3_fetch['examNo2'] . '</td></tr>
								 <tr><td><b>Exam Date: </b></td><td>' . $result3_fetch['eYear2'] . '</td></tr>
								 <tr><td colspan="4"><hr></td></tr>
';
                    }
        $mainBody .= '</td>
                                  </tr>
                                  <tr>
                                    <td>';
        if ($result3_fetch['noOfResult'] == 2) {
            for ($a = 0; $a < $count2 - 1; ++$a) {
                $splitOlevel2 = explode('-', $olevel2[$a]);
                $mainBody .= '<tr><td>' . $splitOlevel2[0] . '</td><td>' . $splitOlevel2[1] . '</td></tr>';
            }
        }
    } else {
        $mainBody .= '<h1><b>Update Your O\'Level</b></h1>';
    }
    $mainBody .= '</td>
                                  </tr>
                                </table></td>
                              </tr>
                    </table>
</td>
            </tr>';
    if (($formTypea == 'hndForm') or ($formTypea == 'hdptForm')){
        $sql_nd = $db->query("select * from ndresult where formNo='$formNo'");
        $sql_nd_fetch = $sql_nd->fetch(PDO::FETCH_BOTH);
        $sql_nd_count = $sql_nd->rowCount();
        if ($sql_nd_count > 0) {
            $inst = $sql_nd_fetch['inst'];
            $ndMatNo = $sql_nd_fetch['rMatNo'];
            $grade = $sql_nd_fetch['result'];
            $gYear = $sql_nd_fetch['rYear'];
            $itName = $sql_nd_fetch['itName'];
            $itAddress = $sql_nd_fetch['itAddress'];
            $itFrom=$sql_nd_fetch['itFrom'];
                $itTo=$sql_nd_fetch['itTo'];
            $ndCourse=$sql_nd_fetch['course'];
        } else {
            $inst = 'Nil';
            $ndMatNo = 'Nil';
            $grade = 'Nil';
            $gYear = 'Nil';
            $itName = 'Nil';
            $itAddress = 'Nil';
            $ndCourse='Nil';
        }
        $mainBody .= '
   <tr>
            <td colspan="8" bgcolor="#CCCCCC" id="headingg"><b>ND INFORMATION</b></td>
          </tr>
    <tr>
            <td colspan="8"><table>
            <tr><td><b>Institution</b></td>
            <td>&nbsp;</td>
            <td>' . $inst . '</td>
            <td ><b>Matric No</b></td>
            <td>&nbsp;</td>
            <td>' . $ndMatNo . '</td>
          </tr>
          <tr>
            <td id="lab"><b>Course & Grade</b></td>
            <td>&nbsp;</td>
            <td>'.$ndCourse.' (' . $grade . ')</td>
            <td id="lab"><b>Year of Graduated</b></td>
            <td>&nbsp;</td>
            <td>' . $gYear . '</td>
          </tr>
          <tr>
            <td id="lab"><b>IT Placement</b></td>
            <td>&nbsp;</td>
            <td>' . $itName . ', '.$itAddress.'</td>
            <td id="lab"><b>IT Period</b></td>
            <td>&nbsp;</td>
            <td>' . $itFrom .' - '.$itTo .'</td>
          </tr></table>';
    }
//echo $formNo;
//    die($formTypea);
    $sql_venue = $db->query("select * from venuetb where formNo='$formNo'");
    $sql_venue_num = $sql_venue->rowCount();
    if (($sql_venue_num > 0) and (($formTypea == 'utmeForm') or ($formTypea=='hndForm') or ($formTypea=='hdptForm') or ($formTypea=='dptForm') or ($formTypea=='ptForm'))) {
        $sql_venue_fetch = $sql_venue->fetch(PDO::FETCH_BOTH);
        $dayID = $sql_venue_fetch['examDay'];
        $venueID = $sql_venue_fetch['venue'];
        $sessionID = $sql_venue_fetch['examSession'];
        $aspK= $sql_venue_fetch['cat'];
        if ($aspK<>''){
            $aspK='Oral Interview Group -'.$aspK;
        }
        if ($formTypea=='utmeForm') {
            switch ($dayID) {
                case 1:
                    $day = 'DAY 1 - (Tue, 25th Jan, 2022)';
                    break;
                case 2:
                    $day = 'DAY 2 - (Wed, 26th Jan, 2022)';
                    break;
                case 3:
                    $day = 'DAY 3 - (Thur, 27th Jan, 2022)';
                    break;
                case 4:
                    $day = 'DAY 4 - (Fri, 28th Jan, 2022)';
                    break;
                case 5:
                    $day = 'DAY 5 - (Sat, 29th Jan, 2022)';
                    break;
            }
        }
        if (($formTypea=='dptForm') or  ($formTypea=='ptForm')){
            switch ($dayID) {
                case 1:
                    $day = 'DAY 1 - (Tuesday, 22nd February, 2022)';
                    break;
                case 2:
                    $day = 'DAY 2 - (Wednesday, 23rd February, 2022)';
                    break;
            }
        }
        if (($formTypea=='hndForm') or ($formTypea=='hdptForm')) {
            switch ($dayID) {
                case 3:
                    $day = 'DAY 3 - (Thursday, 24th February, 2022)';
                    break;
                case 4:
                    $day = 'DAY 4 - (Friday, 25th February, 2022)';
                    break;
            }
        }
        $venueID=strtoupper($venueID);
        switch ($venueID) {
            case 'SOUTH':
                $venue = 'South Campus, ICT Center';
                break;
            case 'PTDF':
                $venue = 'North Campus, PTDF Center';
                break;
            case 'ONLINE':
                $venue = 'Online (https://www.federalpolyede.edu.ng/CBT)';
                break;
        }
        switch ($sessionID) {
            case 1:
                $sTime = 'Session 1 - (9:00 am)';
                break;
            case 2;
                $sTime = 'Session 2 - (9:00 am)';
                break;
            case 3:
                $sTime = 'Session 3 - (9:00 am)';
                break;
            case 4;
                $sTime = 'Session 4- (12:00 Noon)';
                break;
            case 5:
                $sTime = 'Session 5 - (12:00 Noon)';
                break;
            case 6;
                $sTime = 'Session 6 - (12:00 Noon)';
                break;
            case 7;
                $sTime = 'Session 7 - (12:00 Noon)';
                break;
        }

        if (($formTypea=='hndForm') or ($formTypea=='hdptForm')) {

            switch ($sessionID) {
                case 1;
                    $sTime = 'Session 1 - (9:00 am)';
                    break;
                case 2;
                    $sTime = 'Session 2 - (9:00 am)';
                    break;
                case 3:
                    $sTime = 'Session 3 - (9:00 am)';
                    break;
                case 4;
                    $sTime = 'Session 4- (12:00 Noon)';
                    break;
                case 5:
                    $sTime = 'Session 5 - (12:00 Noon)';
                    break;
                case 6;
                    $sTime = 'Session 6 - (12:00 Noon)';
                    break;
                case 7;
                    $sTime = 'Session 7 - (12:00 Noon)';
                    break;
            }
        }
//        die($sTime);
        $aspK=
                $mainBody .= '</table><table width="100%">
        <tr>
            <td colspan="8" bgcolor="#CCCCCC" id="headingg"><b>SCREENING TEST INFORMATION</b></td>
          </tr>
    <tr>
            <td><b>Day:</b></td>
            <td>&nbsp;</td>
            <td>' . $day . $aspK.'</td>
          </tr>
          <tr>
            <td id="lab"><b>Venue:</b></td>
            <td>&nbsp;</td>
            <td>' . $venue . '</td>
          </tr>
          <tr>
            <td id="lab"><b>Session/Time</b></td>
            <td>&nbsp;</td>
            <td>' . $sTime . '</td>
          </tr><tr><td colspan="3"><hr></td></tr>';
    }
    $sql_score = $db->query("select * from cbtscore where formNo='1000'");
    $sql_score_num = $sql_score->rowCount();
//    echo $formNo;
    if ($sql_score_num > 0) {
        $sql_score_fetch = $sql_score->fetch(PDO::FETCH_BOTH);
        $score = $sql_score_fetch['score'];

        $total = $jambScoreReal + $score;
        if ($formTypea == "utmeForm") {
            $jambScoreReal = $jambScore / 8;
            $jambScoreReal = round($jambScoreReal, 2);
            $total = $jambScoreReal + $score;
            $mainBody .= '
<tr>
    <td id="lab"><b>Post UTME Score (50) </b></td>
    <td>&nbsp;</td>
    <td>' . round($score,2) . '</td>
</tr>
<tr>
    <td id="lab"><b>Jamb Score (400)</b></td>
    <td>&nbsp;</td>
    <td>' . $jambScore . '</td>
</tr>
<tr>
    <td id="lab"><h2>Aggregate Score</h2> </td>
    <td>&nbsp;</td>
    <td><h2>' . $total . '%</h2></td>
</tr>
<tr>
    <td id="lab" style="color: blue" colspan="8"><b> </b> Note: Aggregate Score = (Jamb Score/8) + Post UTME Score</h4></td>
</tr>
          </table>';
        }elseif (($formTypea == "hndForm") or ($formTypea == "hdptForm")) {
//            echo "select * from oralscore where formNo='$formNo' and display=0";
            $kkk=0;
            if ($kkk==0) {
                $oral = $db->query("select * from oralScore where formNo=1000 and display=0");
                if ($oral->rowCount() == 1) {
                    $oral_fetch = $oral->fetch(PDO::FETCH_BOTH);
                    $oralScore = $oral_fetch['score'];
//                $total=$oralScore+$score/70*80;
                } else {
                    $oralScore = 0;
//                $total=$oralScore+$score;
                }

                $nd = $db->query("select * from ndresult where formNo='1000'");
                if ($nd->rowCount() == 1) {
                    $nd_fetch = $nd->fetch(PDO::FETCH_BOTH);
                    $ndGrade = $nd_fetch['result'];

                    switch ($ndGrade) {
                        case 'Lower Credit':
                            $ndScore = 10;
                            break;
                        case 'Distinction':
                            $ndScore = 20;
                            break;
                        case 'Pass':
                            $ndScore = 5;
                            break;
                        case 'Upper Credit':
                            $ndScore = 15;
                            break;
                        default:
                            $ndScore=0;
                    }
//                $score=$score/70*80;
                    if ($oralScore>0){
                        $oralScore=$oralScore-$ndScore;
                    }

                    $total = $ndScore + $score + $oralScore;
                } else {
                    $oralScore = 0;
                    $total = 0;
                }


                $mainBody .= '
<tr>
    <td id="lab"><b>CBT Score (50%) </b></td>
    <td>&nbsp;</td>
    <td>' . round($score, 2) . '</td>
</tr>
<tr >
    <td id="lab"><b>ND Result Point (20%)</b></td>
    <td>&nbsp;</td>
   <td>' . round($ndScore, 2) . '</td>
</tr>
<tr >
    <td id="lab"><b>Oral Score (30%)</b></td>
    <td>&nbsp;</td>
   <td>' . round($oralScore, 2) . '</td>
</tr>
<tr>
    <td id="lab"><h2>Aggregate Score(%)</h2> </td>
    <td>&nbsp;</td>
    <td><h2>' . round($total, 2) . '%</h2></td>
</tr>
<tr>
    <td id="lab" style="color: blue" colspan="8"><b> </b> Note: Aggregate Score = CBT Score  + ND Result Point+ Oral Score <br>ND Result Point=> (Distinction=20, Upper Credit=15, Lower Credit=10, Pass=5)</h4></td>

</tr>
          </table>';
            }
        } elseif (($formTypea <> "hndForm") or ($formTypea <> "hdptForm")) {
            $mainBody .= '
<tr>
    <td id="lab"><h2>Entrance Screening Result</h2> </td>
    <td>&nbsp;</td>
    <td><h2>' . $score*2 .'%</h2></td>
</tr>
<tr>
    <td id="lab" style="color: blue" colspan="8"><b> </b> <hr></h4></td>
</tr>
          </table>';
        }
    } else{
        $mainBody .= '<tr>
            <td height="25" colspan="8" bgcolor="#CCCCCC" id="headingg"><b>NOTE</b></td>
          </tr>
';
if ($formTypea=="utmeForm"){
    $mainBody .= '<tr>
    <td  colspan="5" valign="top">
            <ol type="a" style="font-size: 15px; color: #0000cc; font-family: "Arial Black", arial-black">
            <li>Make sure you upload/input correct O\'Level Result(s) on both Federal Polytechnic Ede Portal and JAMB Portal. It is mandatory before you can be considered for the Admission.</li>
             <li>Awaiting Result will not be accepted in Admission Processing.</li>
             <li style="display: none" >Kindly Upload your O\'level Scanned Copy(ies) come along to the Examination Venue with the printout of this slip.</li>
             <li >Kindly Upload your O\'level Scanned Copy on or before Friday 11 November, 2022.</li>
             <li >Original JAMB Admission Letter and Result Slip will be required for registration after you have been given Admission.</li>
             <li style="display: none">Please do not come with your phone to the Examination Venue.</li>
             <li style="display: none">Make sure you adhere strictly with Covid-19 protocols (Come with your FACE MASK)</li>
             </ol>
    </td>
          </tr>';
}else if(($formTypea=="hndForm") or ($formTypea=="hdptForm")) {
//    die($formTypea);
    $aamainBody .= '<tr>
            <td  colspan="5" valign="top">
            <ol type="a" style="font-size: 15px; color: #0000cc; font-family: "Arial Black", arial-black">
            <li>You are advised to use a reliable Internet connection for the exercise. </li>
            <li>Note that all your activities during the exercise will be monitored and recorded. Chart icon can be used in case you need support of the technical staffs.</li>
            <li>The duration for the exercise is 30 minutes. You are strongly advised to login at the time slot allocated to you</li>
            <li>Use of face mask or face caps during the exercise is prohibited.</li>
            <li>Kindly be informed that your Screening Examination will be conducted Online whereever you are as scheduled on this slip</li>
            <li>Make sure you upload/input correct O\'Level Result(s), JAMB registration Number and IT Information on Federal Polytechnic Ede Portal.</li>
             <li>Original copy of Evidence Letter of Industrial Attachment completion, National Diploma Certificate/Notification and O\'level Result(s) will be required for registration </li>
             <li style="display: none">Kindly use this link (federalpolyede.edu.ng/CBT) to access your screening examination ONLY on the scheduled time allocated to you.</li>
             </ol>
    </td>
            <td>&nbsp;</td>
          </tr>';
    $mainBody .= '<tr>
            <td  colspan="5" valign="top">
            <ol type="a" style="font-size: 15px; color: #0000cc; font-family: "Arial Black", arial-black">
 <li>Awaiting Result will not be accepted in Admission Processing.</li>
            <li>Make sure you upload/input correct O\'Level Result(s), JAMB registration Number and IT Information on Federal Polytechnic Ede Portal.</li>
             <li>Original copy of Evidence Letter of Industrial Attachment completion, National Diploma Certificate/Notification and O\'level Result(s) will be required for registration </li>
             <li style="display: none" >Kindly come along to the Examination Venue with the printout of this slip.</li>
             <li style="display: none">Please do not come with your phone to the Examination Venue.</li>
              <li style="display: none">Kindly proceed to Department for Oral Interview after Screening Examination as slated on your printout.</li>
               <li >Kindly Upload your O\'level Result(s) and ND Result/Certificate Scanned Copy on or before Friday 11 November, 2022.</li>
             </ol>
    </td>
            <td>&nbsp;</td>
          </tr>';
}else{
    $mainBody .= '<tr>
    <td  colspan="5" valign="top">
            <ol type="a" style="font-size: 15px; color: #0000cc; font-family: "Arial Black", arial-black">
            <li>Make sure you register on JAMB Portal for Part Time as mandatory by JAMB Registrar.</li>
            <li>Make sure you upload/input correct O\'Level Result(s) on both Federal Polytechnic Ede Portal and JAMB Portal.</li>
             <li>Awaiting Result will not be accepted in Admission Processing.</li>
             <li style="display: none">Kindly come along to the Examination Venue with the printout of this slip.</li>
             <li style="display: none">Please do not come with your phone to the Examination Venue.</li>
             <li style="display: none">Make sure you adhere strictly with Covid-19 protocols (Come with your FACE MASK).</li>
             </ol>
    </td>
          </tr>';
}
    }
    $mainBody .= ' </table></td>
      </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>';
    $db->query("UPDATE `fedpoly`.`venuetb` SET `used` = '1' WHERE `venuetb`.`formNo` = '$formNo'");
//    flush();
//    if ($formNo=='22111031361'){
//        echo $mainBody;
//    }
//
//    die();
    include("../mpdf/mpdf.php");
    $filename='appform-'.$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($mainBody);
    $mpdf->setFooter($customizedFooter);
//    $mpdf->Output("c:a/","D");
    $mpdf->Output($filename,'D');
//    $mpdf->output();
    exit;
//    ob_end_flush();
}else{
    header('location:login.php?id=2');
    //echo '<h2>An Error Occurred, Kindly re-login</h2>';
    ob_end_flush();
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit