-
Notifications
You must be signed in to change notification settings - Fork 5
/
fct_single_profile.php
70 lines (65 loc) · 1.72 KB
/
fct_single_profile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
ob_start();
session_start();
require "php/config.php";
require_once "php/functions.php";
$user = new login_registration_class();
$fid = $_SESSION['f_id'];
$funame = $_SESSION['f_uname'];
$fname = $_SESSION['f_name'];
if(!$user->get_faculty_session()){
header('Location: facultylogin.php');
exit();
}
?>
<?php
$pageTitle = "Student Profile";
include "php/headertop.php";
?>
<div class="faculty">
<p style="font-size:18px;text-align:center;background:#1abc9c;color:#fff;padding:10px;margin:0">Welcome : <?php echo $funame; ?> <i class="fa fa-check-circle" aria-hidden="true"></i></p>
<table class="tab_one">
<?php
$getuser = $user->get_faculty_by_username($funame);
while($row = $getuser->fetch_assoc()){
?>
<tr>
<td style="text-align:center">Name: </td>
<td><?php echo $row['name']; ?></td>
</tr>
<tr>
<td style="text-align:center">Username: </td>
<td><?php echo $row['username']; ?></td>
</tr>
<tr>
<td style="text-align:center">E-mail: </td>
<td><?php echo $row['email']; ?></td>
</tr>
<tr>
<td style="text-align:center">Birthday: </td>
<td><?php echo $row['birthday']; ?></td>
</tr>
<tr>
<td style="text-align:center">Education: </td>
<td><?php echo $row['education']; ?></td>
</tr>
<tr>
<td style="text-align:center">Contact: </td>
<td><?php echo $row['contact']; ?></td>
</tr>
<tr>
<td style="text-align:center">Gender: </td>
<td><?php echo $row['gender']; ?></td>
</tr>
<tr>
<td style="text-align:center">Address: </td>
<td><?php echo $row['address']; ?></td>
</tr>
<?php if($row['username'] == $funame){ ?>
<?php } } ?>
</table>
</div>
<?php
include "php/footerbottom.php";
ob_end_flush();
?>