-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserdetails.php
More file actions
79 lines (63 loc) · 1.58 KB
/
userdetails.php
File metadata and controls
79 lines (63 loc) · 1.58 KB
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
71
72
73
74
75
76
77
78
79
<?php
session_start();
include('header.php');
include_once("db_connect.php");
if (!empty($_GET)){
$userID = (int) $_GET['id'];
}
$result = mysqli_query($conn, "SELECT * FROM users WHERE user_id = '" . $userID. "' ");
$row = mysqli_fetch_array($result);
$uid = $row['user_id'];
$userType = $row['userType'];
$firstname = $row['firstname'];
$middle = $row['middle'];
$lastname = $row['lastname'];
$email = $row['email'];
$title = $row['title'];
$managed_byID = $row['managed_by'];
$dept_id = $row['dept_id'];
$location_id = $row['location_id'];
$primary_phone = $row['primary_phone'];
?>
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<?php if ((isset($_SESSION['user_id']) )) { ?>
<div class="main-page">
<div class="form">
<fieldset>
<legend>Employee Profile</legend>
<table align=left>
<tr>
<td>UserID</td>
<td><?php echo $userID ?></td>
</tr>
<tr>
<td>First Name</td>
<td><?php echo $firstname ?></td>
</tr>
<tr>
<td>Middle Name</td>
<td><?php echo $middle ?></td>
</tr>
</tr>
<tr>
<td>Last Name</td>
<td><?php echo $lastname ?></td>
</tr>
<tr>
<td>Email</td>
<td><?php echo $email ?></td>
</tr>
<tr>
<td>Title</td>
<td><?php echo $title ?></td>
</tr>
<tr>
<td>Manager</td>
<td><?php echo "<a href=userdetails.php?id=".$managed_byID. ">".$managed_byID."</a>" ?></td>
</tr>
</table>
</fieldset>
</div>
<?php } ?>