-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofilepage.php
More file actions
123 lines (118 loc) · 4.29 KB
/
profilepage.php
File metadata and controls
123 lines (118 loc) · 4.29 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
include('session.php');
?>
<!doctype html>
<html>
<head>
<!--<meta charset="utf-8">-->
<title>Prisoner's Dilemma</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link href='https://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
<link href="css/stylesheet.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<!-- Navigation Bar begin -->
<header class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand/Logo and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapse" aria-expanded="false">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Prisoner's Dilemma</a>
</div>
<!-- Collect the nav links and other content for toggling -->
<div class="collapse navbar-collapse" id="collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php">Home</a></li>
<?php
if($_SESSION['admin_course'] == 'admin')
{
?>
<li><a href="editgame.php">Edit Game</a></li>
<li><a href="administration.php">Check Scores</a></li>
<?php
}
else
{
?>
<li><a href="useronline.php">Who's Online</a></li>
<li><a href="playgame.php">Play Game</a></li>
<li><a href="playgame_live.php">Play Game Live</a></li>
<?php
}
?>
<li class="dropdown active">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">My Account <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="profilepage.php">My Profile</a></li>
<li role="separator" class="divider"></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</header><!-- end Navigation Bar -->
<!-- Profile Table begin-->
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 col-xs-offset-0 col-sm-offset-0 col-md-offset-2 col-lg-offset-2 top-margin" >
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Profile</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-3 col-md-3 col-lg-3" align="center">
<div class="outerContainer" style='background-color:<?php echo $login_teamcolor ?>'>
<div class="innerContainer" style='color:black;'><br><?php echo $login_teamcolor_num; ?>
</div>
</div>
</div>
<div class="col-sm-9 col-md-9 col-lg-9 ">
<table class="table table-user-information">
<tbody>
<tr>
<td>Name</td>
<td><?php echo $login_session. " ".$login_lname; ?></td>
</tr>
<tr>
<td>Username</td>
<td><?php echo $login_uname; ?></a></td>
</tr>
<tr>
<td>Email</td>
<td><?php echo $login_session_email; ?></a></td>
</tr>
<tr>
<td>Course Name</td>
<td><?php echo $course; ?></a></td>
</tr>
<tr>
<td>Course Section</td>
<td><?php echo $section; ?></a></td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn-default dropdown-toggle btn-warning" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="float:right" id="editbtn">
<i class="glyphicon glyphicon-edit"></i> Edit Profile
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!-- end Profile Table -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type=" src=js/myscript.js"></script>
<script src="js/zsparks.js"></script>
</body>
</html>