-
Notifications
You must be signed in to change notification settings - Fork 1
/
other_user_settings.php
89 lines (89 loc) · 3.08 KB
/
other_user_settings.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!--User profile page-->
<?php
$title = "IDCP - User Profile";
$page = 'user_settings';
$page_name = 'user';
require('includes/header.php');
require( 'includes/connect_db_c9.php' ) ;
require( 'includes/user_helpers.php' ) ;
$other_user_id = $_SESSION['OTHER_USER_ID'];
//Regular user cannot access this page
if($user_role == "User"){
$page = 'home.php';
header("Location: $page");
}
?>
<style>
.inline {
display: inline;
}
.link-button {
background: none;
border: none;
}
.link-button:focus {
outline: none;
}
.link-button:hover {
outline: none;
}
.link-button:active {
color:white;
}
</style>
<!-- Bread Crumbs -->
<ol class = "breadcrumb">
<li><a href = "home.php">Home</a></li>
<li><a href = "user_settings.php">User Settings</a></li>
<li class = "active"><?php echo $other_user_id ?></li>
</ol>
<!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
<div class="page-header">
<h1>
<?php
echo "$other_user_id's User Account";
?>
</h1>
</div>
<div class="row">
<div class="col-sm-4">
<div class="panel panel-red">
<div class="panel-heading">
<h3 class="panel-title">Account Information</a></h3>
</div>
<div class="panel-body">
<div class="form-group">
<p><label>User ID: </label><br>
<?php
echo $other_user_id;
?>
</p>
<p><label>Role:</label><br>
<?php
echo get_user_role($dbc, $other_user_id);
?>
</p>
<button class="btn btn-default btn-sm" onclick ="location.href='other_user_edit.php';">Edit</button>
<button class="btn btn-default btn-sm" onclick ="location.href='other_user_change_pwd.php';">Change Password</button>
</div>
</div>
</div>
<button class="btn btn-default btn-sm" onclick ="location.href='user_settings.php';">Back to Settings</button>
</div>
</div>
<!-- /#container close -->
</div>
<!-- /#page-content-wrapper -->
</div>
<!--Footer-->
<?php require('includes/footer.php'); ?>
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>