forked from chriszhou1992/ABCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditTimeline - Copy.php
178 lines (164 loc) · 10.2 KB
/
editTimeline - Copy.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Edit Timeline</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/font-awesome.min.css" rel="stylesheet" >
<!-- Custom
<link href="css/flat.css" rel="stylesheet">-->
<!-- Custom styles -->
<link href="css/customCSS/navbar.css" rel="stylesheet">
<link href="css/customCSS/homeCarousel.css" rel="stylesheet">
<link href="css/customCSS/form.css" rel="stylesheet">
<link href="css/customCSS/admin.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script src="js/customJS/userSystems.js"></script>
</head>
<body>
<nav class="navbar navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav navbar-left leftside">
<?php
if(isset($_SESSION["user"])) {
echo '<li class="customBorder customNotActive suggestGames"><a href="#">Games you might like <i class="fa fa-question"></i></a></li>';
echo ' <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user users"></i>   <i class="fa fa-caret-down usersCaret caretBrown"></i></a>
<ul class="dropdown-menu dropdownLog">
<li><a href=#><i class="fa fa-fighter-jet"></i> Logged in as '.$_SESSION["user"].'</a></li>
<li><a href=# id="destroySession"><i class="fa fa-sign-out"></i>  Log out</a></li>
<li class="divider"></li>
<li class="showLiked"><a href="#" data-toggle="modal"><i class="fa fa-trophy"></i>  Games liked</a></li>
</ul>
</li>';
}
else {
echo '<li class="customBorder customNotActive suggestGames" style="display: none;"><a href="#">Games you might like <i class="fa fa-question"></i></a></li>';
echo ' <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-users users"></i>   <i class="fa fa-caret-down usersCaret"></i></a>
<ul class="dropdown-menu dropdownLog">
<li><a href="#login-modal" data-toggle="modal" class="loginTrigger"><i class="fa fa-sign-in"></i>   Log in</a></li>
<li class="divider"></li>
<li><a href="#signup-modal" data-toggle="modal"><i class="fa fa-rocket"></i>   Sign up</a></li>
</ul>
</li>';
}
?>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
<!-- Modal for Sign up-->
<div class="modal fade" id="signup-modal" tabindex="-1" role="dialog" aria-labelledby="signupLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header signupheader">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="signupLabel">Create a new account</h4>
</div>
<div class="modal-body">
<div class="progress progress-striped active PROGRESS">
<div id="progressIndicator" style="display: none">0</div>
<div class="progress-bar progress-bar-danger signUpprogress" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
</div>
</div>
<hr class="signupHR">
<div class="input-group NAME">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" class="form-control input-lg name" placeholder="Name">
</div>
<hr class="signupHR">
<div class="input-group EMAIL">
<span class="input-group-addon"><i class="fa fa-envelope-o"></i></span>
<input type="text" class="form-control input-lg email" placeholder="Email">
</div>
<hr class="signupHR">
<div class="input-group PASSWORD">
<span class="input-group-addon"><i class="fa fa-key"></i></span></span>
<input type="password" class="form-control input-lg password" placeholder="Password">
</div>
<hr class="signupHR">
<div class="input-group CONFIRM">
<span class="input-group-addon"><i class="fa fa-key"></i></span></span>
<input type="password" class="form-control input-lg confirm" placeholder="Confirm password">
</div>
<!--
<hr>
<div class="checkbox-inline">
<label id="agree" rel="popover" data-content="Show words and their frequencies with bars.">
<input type="checkbox" id="agreeTo">I agree to the term of use.
</label>
</div>-->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal" disabled id="signupButton">Sign Up</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.Modal for Sign up -->
<!-- Modal for Log in-->
<div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="loginLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header loginheader">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="loginLabel"><i class="fa fa-sign-in"></i>   Log in</h4>
</div>
<div class="modal-body">
<div class="input-group loginUSER">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" class="form-control input-lg name loginuser" placeholder="Enter your username or email address">
</div>
<hr>
<div class="input-group loginPASSWORD">
<span class="input-group-addon"><i class="fa fa-key"></i></span>
<input type="password" class="form-control input-lg name loginpassword" placeholder="Enter your password">
</div>
<div id="loginFeedback"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-warning" id="loginButton">Log in</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.Modal for Log in -->
<!--<div>
<form role="form">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
</div>
<div class="form-group">
<label for="exampleInputFile">File input</label>
<input type="file" id="exampleInputFile">
<p class="help-block">Example block-level help text here.</p>
</div>
<div class="checkbox">
<label>
<input type="checkbox"> Check me out
</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php