| Server IP : 172.64.80.1 / Your IP : 172.69.214.9 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/siwes/ |
Upload File : |
<script type="text/javascript" language="javascript" src="../../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" src="../../js/scriptSupervisor.js"></script>
<?php
/**
* Created by PhpStorm.
* User: SERVER
* Date: 06/02/2016
* Time: 4:11 PM
*/
session_start();
include('headMain.php');
//header('location:'.'../student/remitaschoolfee.php');
require_once('../../connect.php');
$db=db_connect();
if(!isset($_SESSION['matNo'])){
header('location:'.'login.php');
}
//header('location:'.'../student/remitaschoolfee.php');
$matNo=$_SESSION['matNo'];
$sql=$db->query("select * from realdata where matNo='$matNo'");
$sql_fetch=$sql->fetch(PDO::FETCH_BOTH);
$num=$sql->rowCount();
if ($num==1) {
$matNo = $sql_fetch['matNo'];
$fullName = explode(' ', ($sql_fetch['names']));
$surname = strtoupper($fullName[0]);
$othernames = $fullName[1] . ' ' . $fullName[2];
$sex = $sql_fetch['sex'];
$dept = $sql_fetch['course'];
$levelID=$sql_fetch['levelID'];
$levelN=$db->query("select * from leveltb where id='$levelID'");
$levelN_fetch=$levelN->fetch(PDO::FETCH_BOTH);
$levelName=$levelN_fetch['levelName'];
//echo $levelN->rowCount();
$dob=$sql_fetch['dob'];
$levelID=$sql_fetch['levelID'];
$address=$sql_fetch['address'];
$email=$sql_fetch['email'];
$phoneNo=$sql_fetch['gsm'];
}
?>
<body>
<div id="wrapper" >
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Print Employers' Form</h3> <div align="right"></div>
</div>
<div class="panel-body">
<form role="form" action="employerForm_process.php" method="post">
<fieldset>
<div class="form-group">
<table width="100%"><tr><td>
<?php
if (isset($_GET['id'])){
if ($_GET['id']==1){
echo '<td colspan="3" class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Record Updated Successfully';
}
if ($_GET['id']==2){
echo '<td colspan="3" class="alert alert-success" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Record Created Successfully, <a href="login.php"> Click Here to LogIn</a>';
}
if ($_GET['id']==3){
echo '<td colspan="3" class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>An Error Occurred</a>';
}
if ($_GET['id']==4){
echo '<td colspan="3" class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Select Course of Study</a>';
}
if ($_GET['id']==5){
echo '<td colspan="3" class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Record Already Created</a>';
}
}
?>
</td></tr></table>
</div>
<div class="form-group">Company Name
<select name="compName" id="company" class="form-control">
<?php
// require('../connect.php');
$query="SELECT distinct companyName FROM siwesbiodata where matNo='$matNo'";
$rs=$db->query($query);
echo '<option>'.'Select Option...'.'</option>';
while ($row=$rs->fetch(PDO::FETCH_BOTH)){
//for($i=0;$i<mysql_num_rows($rs);$i++){
//$row=mysql_fetch_row($rs);
echo '<option>'.$row[0].'</option>';
}
?>
</select>
</div>
<div class="form-group" id="supervisor">Supervisor Name
<!-- <select name="txtstate" id="state" class="form-control">
<?php
/* require('../connect.php');
$query="SELECT distinct placementName FROM siwesbiodata";
$rs=$db->query($query);
echo '<option>'.'Select Option...'.'</option>';
while ($row=$rs->fetch(PDO::FETCH_BOTH)){
//for($i=0;$i<mysql_num_rows($rs);$i++){
//$row=mysql_fetch_row($rs);
echo '<option>'.$row[0].'</option>';
}*/
?>
</select>-->
</div>
<!-- <div class="form-group">Department/Section at your Placement:<input class="form-control" name="siwesDept" type="text"></div>-->
<!-- Change this to a button or input when using this as a form -->
<!-- <a href="index.html" class="btn btn-lg btn-success btn-block">Login</a>-->
<br>
<div class=""> <input type="submit" class="btn btn-primary btn-block btn-lg " value="Generate">
</div>
<input type="hidden" name="hiddenField" id="loginStatus" value="<?php
if (isset($_GET['id'])){
echo $_GET['id'];
}else{
echo '0';
}
?>">
</fieldset>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="../../bower_components/metisMenu/dist/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../../dist/js/sb-admin-2.js"></script>
</body>
<?php
ob_end_flush();
?>