| Server IP : 172.64.80.1 / Your IP : 172.71.120.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/eClass/ |
Upload File : |
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptFileLong.js"></script>
<?php
session_start();
/**
* Created by PhpStorm.
* User: fpe
* Date: 5/16/2020
* Time: 11:52 AM
*/
if(isset($_SESSION['username'])){
header('location:staff_main.php');
}
require_once('header_eclass.php')
?>
<p></p>
<div style="height: 100px" ></div>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3>Staff Profile Creation</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12"
<div class="col-lg-8 offset-2" style=" background-color: #a9b7d1">
<form action="staff_creation_process.php" method="POST" enctype="multipart/form-data">
<div><?php
if (isset($_GET['id'])){
if ($_GET['id']==1){
echo '<div class="alert alert-success" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Biodata Updated Successfully</div>';
}elseif($_GET['id']==2){
echo ' <div class="alert alert-danger" align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>Update Failed</div>';
}
}
?>
</div>
<div>
<label for="surname">Upload Passport</label>
<input type="hidden" name="MAX_FILE_SIZE2" value="1000000" />
<input type="hidden" name="username1" id="username1" />
<input name="user_file1" type="file" id="user_file1" class="form-control" />
<br />
<div class="alert alert-warning">*Passport must be JPEG format and not more than 50KB.</div>
</div>
<div class="form-group">
<label for="surname">Title</label>
<select name="title" class="form-control" >
<option>Select Title</option>
<option>Dr.</option>
<option>Dr. (Mrs.)</option>
<option>Engr. (Dr.)</option>
<option>Engr.</option>
<option>Mr.</option>
<option>Mrs.</option>
<option>Miss.</option>
</select>
</div>
<div class="form-group">
<label for="surname">surname</label>
<input type="text" class="form-control" id="surname" placeholder="Surname" name="surname" required>
</div>
<div class="form-group">
<label for="othernames">Othernames</label>
<input type="text" class="form-control" id="othernames" name="othernames" placeholder="Other names" required>
</div>
<div class="form-group">
<label for="staffid">Staff ID</label>
<input type="text" class="form-control" id="staffid" name="staffid" placeholder="FPE/SS/XXXXX" required>
</div>
<div class="form-group">
<label for="gsm">GSM</label>
<input type="text" class="form-control" id="gsm" name="gsm" placeholder="GSM" required>
</div>
<div class="form-group">
<label for="dob">Date of Birth</label>
<input type="date" class="form-control" name="dob" id="dob" placeholder="Date of Birth" required>
</div>
<div class="form-group">
<label for="surname">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email" name="email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
</div>
<div class="form-group">
<label for="school">School/Faculty</label>
<select name="txtschools" class="form-control" id="school">
<?php
require_once('../connect.php');
$db=db_connect();
$query="SELECT distinct dSchool FROM dept where activeDept='1'";
$rs=$db->query($query);
echo '<option>'.'Select Option...'.'</option>';
while ($row=$rs->fetch(PDO::FETCH_BOTH)){
echo '<option>'.$row[0].'</option>';
}
//for($i=0;$i<mysql_num_rows($rs);$i++){
// $row=mysql_fetch_row($rs);
// }
?>
</select>
</div>
<div class="form-group">
<label for="dept">Department/Unit</label>
<div id="dept">
<select class="form-control" name="dept" id="dept4">
<option>Select Option...</option>
</select>
</div>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" name="password" placeholder="Password" required>
</div>
<div class="form-group">
<label for="password2">Re-Password</label>
<input type="password" class="form-control" name="password2" placeholder="Re-Password" required>
</div>
<input type="submit" class="btn btn-primary">
<div> <a href="staff_login.php" class="btn btn-lg btn-success btn-block" style="">Existing User</a></div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="height: 10px"></div>
<?php
require_once('footer_eclass.php');?>