-
Notifications
You must be signed in to change notification settings - Fork 1
/
versi_event_page.php
264 lines (244 loc) · 8.44 KB
/
versi_event_page.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Versi</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link href="style.css" type="text/css" rel="stylesheet"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar navbar-default navbar-fixed-top" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="versi_event_page.php">Events</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown">Topic
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="versi_topic_page.php">Euthanasia</a></li>
<li><a href="versi_education_page.php">Education</a></li>
<li><a href="versi_abortion_page.php">Abortion</a></li>
<li><a href="versi_healthcare_page.php">Healthcare</a></li>
<li><a href="versi_refugee_page.php">Refugees</a></li>
<li><a href="versi_disability_page.php">Disability Care</a></li>
</ul>
</li>
<li><a href="versi_debate_landing_page.php">Debates</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php if(isset($_SESSION['username'])){ ?>
<li><a href="versi_event_page.php"> <?php echo $_SESSION["username"] ?></a> </li>
<li><a href="#" data-toggle="modal" data-target="#logoutModal">logout</a></li>
<?php }else{ ?>
<li><a href="#" data-toggle="modal" data-target="#basicModal"><span class="glyphicon glyphicon-log-in" ></span> Login</a></li>
<li><a href="#" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-log-in" ></span> Register</a></li>
<?php } ?>
</ul>
</div>
</div>
</nav>
<div id="events" class="container-fluid text-center">
<div class="row">
<div class="col-sm-3 well">
<div class="well">
<h3>My Profile</h3>
<img src="pfpic.jpg" class="img-circle" height="65" width="65" alt="Avatar">
<div>
<h4>Username:</h4>
<p>freespeaker101</p><br>
<hr>
<h4>My Events</h4>
<ul>
<li>US Leader effect</li>
<li>Refugee camps</li>
<li>Refugee security</li>
<li>Border security</li>
<li>Euthanasia laws country comparison</li>
<li>Are abortions murder?</li>
<li>Hygiene education</li>
</ul>
</div>
</div>
</div>
<div class="col-sm-7 text-center">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default text-left">
<div class="panel-body">
<h2>Current Events</h2>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="well">
<img src="yoga.jpeg" height="100" width="100" alt="Avatar">
</div>
</div>
<div class="col-sm-9">
<div class="well">
<p>Which potential US leader is going to do the most right by the country?</p>
<button>Join</button>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="well">
<img src="sewing.jpeg" height="100" width="100" alt="Avatar">
</div>
</div>
<div class="col-sm-9">
<div class="well">
<p>Do you know the conditions of refugees camps?</p>
<button>Join</button>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="well">
<img src="sailing.jpeg" height="100" width="100" alt="Avatar">
</div>
</div>
<div class="col-sm-9">
<div class="well">
<p>Is security more important than other things in refugee camps</p>
<button>Join</button>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<div class="well">
<img src="painting.jpeg" height="100" width="100" alt="Avatar">
</div>
</div>
<div class="col-sm-9">
<div class="well">
<p>Euthanasia laws country comparison</p>
<button>"Join"</button>
</div>
</div>
</div>
</div>
<div class="col-sm-2 well">
<div class="outcomes">
<h4>Past event outcomes</h4>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="basicModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header text-center">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Login</h4>
<img src="image.png" height="200" width="400" alt="Avatar">
</div>
<div class="modal-body">
<form class="form-horizontal" id="loginform" action="login.php" method="POST">
<table Class="form">
<tr>
<td Class="l">Username:</td>
<td Class="r"><input type="text" id="name" name="lusername"></td>
</tr>
<tr>
<td Class="l">Password:</td>
<td Class="r"><input type="text" id="pass" name="lpassword"></td>
</tr>
</table>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header text-center">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Register</h4>
<img src="image.png" height="200" width="400" alt="Avatar">
</div>
<div class="modal-body">
<form id="registerform" action="register.php" method="POST">
<table class="form">
<tr>
<td class="l">Username:</td>
<td class="r"><input type="text" id="username" name="username"></td>
<td>*</td>
</tr>
<tr>
<td class="l">Password:</td>
<td class="r"><input type="text" id="password" name="password"></td>
<td>*</td>
</tr>
<tr>
<td class="l">Email:</td>
<td class="r"><input type="text" id="email" name="email"></td>
<td>*</td>
</tr>
</table>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="logoutModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header text-center">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Logout</h4>
</div>
<div class="modal-body text-center">
<h4> Are you sure you want to Logout?</h4>
<form action="logout.php" method="get" float="left">
<input class="btn btn-default" type="submit" value="yes">
</form>
<button type=button class="btn btn-default" data-dismiss="modal">No</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<footer class="container-fluid text-center">
<p>Copyright Versi 2016</p>
</footer>
</body>
</html>