| Server IP : 172.64.80.1 / Your IP : 172.70.127.136 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 : |
<?php
session_start();
require_once('headMain2.php');
extract($_POST);
if (isset($_SESSION['jamb'])){
$jamb=$_SESSION['jamb'];
}else{
$_SESSION['jamb']=$jamb;
}
require_once('../connect.php');
$db=db_connect();
$dd=$db->query("select * from current WHERE sn=2");
$dd_fetch=$dd->fetch(PDO::FETCH_BOTH);
$_SESSION['it_print']=$dd_fetch['it_start'];
$_SESSION['asession']=$dd_fetch['asession'];
$_SESSION['asemester']=$dd_fetch['asemester'];
//$sql="select * from admitted where (jambNo ='$jamb' or formNo='$jamb') and course not in ('BIOCHEMISTRY','Chemistry','MICROBIOLOGY','PHYSICS ELECTRONICS')";
$sql="select * from admitted where (sex ='$jamb' and formNo<>$jamb)";
$result=$db->query($sql);
$num =$result->rowCount();
//die();
?>
<div class="col-lg-8 col-lg-offset-2 ">
<?php
if ($num=='1'){
$result_fetch=$result->fetch(PDO::FETCH_BOTH);
$batch=$result_fetch['batch'];
$formStatus=$result_fetch['formStatus'];
$OriginalForm=$result_fetch['formNo'];
$closed=$_SESSION['closed']=$result_fetch['closed'];
$_SESSION['olevelVerify']=$olevelVerify=$result_fetch['olevelVerify'];
$kMode=$result_fetch['mode'];
require('../filetoU/logFile.php');
$logD='LogIn from Admission Status';
logDetail($jamb,$logD);
echo' <div class="col-lg-12 alert-info" style="margin-top: 20px; margin-bottom: 20px">';
$k= $result_fetch['mode'];
if ($k=='DPT'){
$msg='Daily Part Time';
}elseif($k=='HFT'){
$msg='HND FT';
}elseif($k=='NFT'){
$msg='ND FT';
}elseif($k=='RPT'){
$msg='ND PT';
}elseif($k=='PFT'){
$msg='Pre ND';
}elseif($k=='HDPT'){
$msg='HND DPT';
}
echo '<div style="font-size: 20px; color: #000066; margin-top: 20px; margin-bottom: 20px">Congratulation '. strtoupper($result_fetch['names']).', <br> You have been offered Admission to study <div style="color:#ff00ff">'. $result_fetch['course'].' ('.$msg.')</div></div>';
$deptTest=$result_fetch['course'];
$formNo= $_SESSION['formNo']=$result_fetch['formNo'];
$_SESSION['matNo']=$result_fetch['formNo'];
$_SESSION['sn']=$result_fetch['sn'];
$_SESSION['names']=$result_fetch['names'];
$course=$_SESSION['course']=$result_fetch['course'];
$_SESSION['deptID']=0;
$res=$db->query("select * from dept where dOption='$course'");
$n=$res->rowCount();
if ($n>0){
$res_fetch=$res->fetch(PDO::FETCH_BOTH);
$_SESSION['deptID']=$res_fetch['sn'];
$_SESSION['dschool']=$res_fetch['dSchool'];
}
$_SESSION['acceptance']=$result_fetch['acceptance'];
$_SESSION['levelID']=$result_fetch['levelID'];
$kk=$db->query("select * from remitaorder where regNo='$formNo'and (paymentType='Acceptance Fee' or paymentType='Admission Slip') and transApproved='True' and pay_session='2019/2020'")->rowCount();
// echo $k;
//die($formNo);
if ($kk==2) {
echo '<br>
<div style="font-size: 19px"class="fa fa-arrow-circle-o-right">Acceptance Fee has been PAID</div><p>
<div style="font-size: 19px" class="fa fa-arrow-circle-o-right"><a href="../admin_student/print/acceptancePrint.php" target="_blank">Print Acceptance Receipt</a></p></div>
<p><div style="font-size: 19px" class="fa fa-arrow-circle-o-right"><a href="../admin_student/print/admissionLetter.php" target="_blank">Print Admission Letter</a></div>';
$res_bio=$db->query("select * from realdata where formNo='$formNo' and fresher='40' and matNo in (select regNo from remitaorder where transApproved='True')");
$k=$res_bio->rowCount();
if ($k>0){
$res_bio_fetch=$res_bio->fetch(PDO::FETCH_BOTH);
$newMatNo=$res_bio_fetch['matNo'];
echo '<div style="font-size: 19px; color: red" >Kindly Login With Your Matric No.('.$newMatNo .')</div>';
}else{
//echo $kMode;
if (($olevelVerify<>'1') and (($kMode<>'HFT') and ($kMode<>'HDPT') and ($kMode<>'PFT') )){
echo '<div style="font-size: 30px"><a href="olevelVerify.php" style="color: red">Check Your O\'Level</a></div>';
}else{
echo' <p></p><div style="font-size: 19px; color: #f14833; display: none" class="fa fa-arrow-circle-o-right"><a href="../admin_student/index_pay_schoolFees.php" style="color: #0FF00F; font-size: larger""> Kindly Proceed to Pay School Fees</a></div>';
}
}
}else if ($kk==1) {
?>
<br><div style="font-size: 19px" class="fa fa-arrow-circle-o-right"><a href="../admin_student/print/admissionSlip.php"> Click to Print Admission Slip</a></div>
<br><div style="font-size: 19px;color:#ff0000" class="fa fa-arrow-circle-o-right"> <a href="../admin_student/index_pay_Acceptance.php"> Click to Pay Acceptance Fees</a></div>
<?php
}else{
$noForm=$db->query("select formStatus from admitted where formNo='$formNo' and formStatus=1")->rowCount();
if($closed==0) {
if ($formStatus == 1) {
echo '<br><div style="font-size: 19px" class="fa fa-arrow-circle-o-right">Admission Conversion Code is ' . $OriginalForm . '</div>';
echo '<br><a style="font-size: 39px" href=login_process.php?user=' . $OriginalForm . '&pass=' . $OriginalForm . '><p>Click Here to Proceed</a>';
echo "<p><hr><div style='color: red; font-size: 25px'>Kindly Wait for 12 hours after Application Form Payment and use your New Form No to check the Admission Status.
<br>For Any Complaint kindly email us at '[email protected]' or use our contact page.</div>";
die("<hr>");
}
}else{
echo '<div style="font-size: 20px; color: red"><h2>Application Form Payment Has Closed</h2>';
}
//echo $deptTest;
if ($closed<>1 ){
$_SESSION['batch']=$batch;
?>
<br><div style="font-size: 19px" class="fa fa-arrow-circle-o-right"><a href="../admin_student/index_pay_adminSlip.php"> Click to Print Admission Slip</a></div>
<br />
<?php
}else{
echo '<div style="font-size: 20px; color: red"><h2>Acceptance Fees Payment Has Closed</h2>';
// echo $closed;
}
}
echo '</div></div>';
echo'<br> <div style="font-size: 19px; color: #96a3b4;display: none" class="col-lg-6 col-lg-offset-3"><a href="paymentHistory.php"> Click to check Payment History</a></div></div>';
echo '</div>';
}else{
echo '<div style="font-size: 19px; color: red" class="col-lg-6 col-lg-offset-3"><h3>'."No Conversion Admission For You, Kindly Check Main Admission Page".'</h3><a href="adminStatus.php"> Go to Admission Status Page</a> </div>';
}
?>
<br /><br />
</div>
</div>
<p></p>
<div class="col-lg-8 col-lg-offset-2">
<div class="col-lg-12 btn btn-info" style="font-size: 18px; color: red"><a href="logout_out.php" style="text-decoration: none">Log Out </a></div>
<div class="col-lg-12 btn btn-default" style=" data-x :30; data-y: 340"> <a onclick="window.open('../chat/student_chat.php?chatwith=ICT ADMIN','_blank','height=500,width=430,left=10,top=10, resizable=no,scrollbars=no,titlebar=no, toolbar=no,menubar=no,location=no,directories=no,status=no');" style="text-decoration:underline; cursor:pointer; font-weight:bold;" >Online ICT Support </a><br /><br /></div>
</div>