| 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 : |
<?php
session_start();
?>
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptFile.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptLga.js"></script>
<script type="text/javascript" language="javascript" src="../js/scripJamb.js"></script>
<?php
require_once('headMain2.php');
$formNo=$_SESSION['formNo'];
$formType=$_SESSION['formType'];
$level=$_SESSION['formType'];
if ($formType=='utmeForm') {
die("<h3>UPLOADING HAS CLOSED.</h3>");
}
require_once('../connect.php');
$db=db_connect();
$sql=$db->query("select * from otherinfo where formNo='$formNo'");
$sql_count=$sql->rowCount();
$sql_fetch=$sql->fetch(PDO::FETCH_BOTH);
$gName=$sql_fetch['gName'];
$gAddress=$sql_fetch['gAddress'];
$gGsm=$sql_fetch['gGsm'];
$gRel=$sql_fetch['gRel'];
$nName=$sql_fetch['nName'];
$nAddress=$sql_fetch['nAddress'];
$nGsm=$sql_fetch['nGsm'];
$nrel=$sql_fetch['nrel'];
/**
* Created by PhpStorm.
* User: SERVER
* Date: 08/31/2016
* Time: 2:12 PM
*/
?>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Upload Document</h3> <div align="right"><a href="javascript:history.go(-1)"> Go to Previous page</a></div>
</div>
<div class="panel-body">
<form role="form" action="upload_document_process.php" method="post" enctype="multipart/form-data">
<?php
if (isset($_GET['id'])){
if ($_GET['id']=='1'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>National Diploma Uploaded Successfully</div>';
}
if ($_GET['id']=='2'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>O\'level 2 Uploaded Successfully</div>';
}
if ($_GET['id']=='3'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>O\'level 1 Uploaded Successfully</div>';
}
if ($_GET['id']=='4'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>2 O\'level Uploaded Successfully</div>';
}
if ($_GET['id']=='5'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>O\'level 1 and ND result Uploaded Successfully</div>';
}
if ($_GET['id']=='6'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>O\'level 2 and ND result Uploaded Successfully</div>';
}
if ($_GET['id']=='7'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>2 O\'level and ND result Uploaded Successfully</div>';
}
if ($_GET['id']=='8'){
echo '<div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Uploading Failed</div>';
}
}
?>
<div><?php echo '<img src="../passportForm/'. $formNo.'.jpg" alt="" width="105" height="115" class="img-rounded" />';?></div>
<table width="100%" cellspacing="5" cellpadding="3">
<tr><td style="color: #FF0000" colspan="6"><strong>Note: Kindly make sure you Re-Confirm your O'level below or on your printout. ANY FALSE information discovered will disqualify you for the Admission</strong></td></tr><tr>
<td>Exam Type</td>
<td><select name="eType1" id="select37" class="form-control">
<option>WAEC</option>
<option>NECO</option>
<option>NABTEB</option>
<option selected="selected">Select Type</option>
</select></td>
<td><label for="select37"></label></td>
<td>Exam Type</td>
<td><select name="eType2" class="form-control" id="select38">
<option>WAEC</option>
<option>NECO</option>
<option>NABTEB</option>
<option selected="selected">Select Type</option>
</select></td>
</tr>
<tr>
<td>Exam Date</td>
<td><input type="date" class="form-control" name="eYear1"></td>
<td> </td>
<td>Exam Date</td>
<td><input type="date" class="form-control" name="eYear2"></td>
</tr>
<tr>
<td>Exam Number</td>
<td><label for="textfield"></label>
<input type="text" name="examNo1" class="form-control" id="textfield" /></td>
<td> </td>
<td>Exam Number</td>
<td><input type="text" name="examNo2" id="textfield2" class="form-control" /></td>
</tr>
<tr>
<td colspan="2" valign="top">
<table width="100%" cellspacing="5" cellpadding="3">
<?php
// if ($formType =='utmeForm') {
echo '<tr><td colspan="3">
<input type="hidden" name="MAX_FILE_SIZEPix" value="1000000" />
<input type="hidden" name="olevelPix" id="username1Pix" />
<input name="olevelPix" type="file" id="user_file1Pix" accept="image/jpeg, image/png" />
<br />
<div class="alert-danger"> *O\'level must be JPEG format and not more than 150KB. </div></label></td>
</td></tr>';
// }
?>
</table></td>
<td bgcolor="#FFFFFF"> </td>
<td colspan="2" valign="top">
<table width="100%" cellspacing="5" cellpadding="3">
<?php
// if ($formType =='utmeForm'){
echo '<tr><td colspan="3">
<input type="hidden" name="MAX_FILE_SIZEPix2" value="1000000" />
<input type="hidden" name="olevelPix2" id="username2Pix" />
<input name="olevelPix2" type="file" id="user_file1Pix2" accept="image/jpeg, image/png" /><br />
<div class="alert-danger"> *O\'level must be JPEG format and not more than 150KB.</div> </label></td>
</td></tr>';
// }
?>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top"><p><hr></p>
<table width="100%" cellspacing="5" cellpadding="3">
<?php
if (($formType =='hndForm') or ($formType =='hdptForm')){
echo '<tr><td colspan="3">
<input type="hidden" name="MAX_FILE_SIZEPix" value="1000000" />
<input type="hidden" name="NDPix1" id="usernameND" />
<input name="NDPix1" type="file" id="user_NDPix1" accept="image/jpeg, image/png" /><br />
<div class="alert-danger"> *ND result must be in JPEG format and not more than 150KB. </div></label></td>
</td></tr>';
}
?>
</table></td>
<tr><td><div><input type="submit" class="btn-primary form-control" value="Upload Document"></div></td></tr>
</div>
</div>
</div>
</div>
<?php
$mainBody='<hr width="10"><table width="100%" cellspacing="5" cellpadding="3">';
$sql3="select * from preolevel where formNo='$formNo'";
$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>';
}
// $mainBody.= '';
}
}
}else{
$mainBody.= '<h1><b>Update Your O\'Level</b></h1>';
}
$mainBody.='</td>
</tr><tr><td><hr></td></tr>';
//echo $formNo;
$fileName1='../olevelScanned/' . $formNo . '_1.jpg';
$fileName2='../olevelScanned/' . $formNo . '_2.jpg';
$fileName3='../olevelScanned/' . $formNo . '_3.jpg';
if (file_exists($fileName1)) $mainBody.='<tr><td bgcolor="aqua" class="fa fa-check">O\'Level 1 Uploaded</td></tr>';
if (file_exists($fileName2)) $mainBody.='<tr><td bgcolor="aqua" class="fa fa-check">O\'Level 2 Uploaded</td></tr>';
if (file_exists($fileName3)) $mainBody.='<tr><td bgcolor="aqua" class="fa fa-check">National Diploma Result Uploaded</td></tr>';
//$mainBody.='<tr><td>O\'Level 1 Uploaded</td></tr>';
$mainBody.='</table></td>
</tr>
</table>';
echo $mainBody;
?>
</div>