-
Notifications
You must be signed in to change notification settings - Fork 1
/
council_client.php
executable file
·331 lines (256 loc) · 12.5 KB
/
council_client.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<?php require_once("includes/session.php");?>
<?php require_once("includes/db_connection.php");?>
<?php require_once("includes/functions.php");?>
<?php
$cid = $_GET['cid'];
$query = "SELECT * FROM councils WHERE id = {$cid} LIMIT 1";
$result = mysqli_query($conn, $query);
confirm_query($result);
$list = mysqli_fetch_assoc($result);
?>
<?php
if ($cid == 1) {
$council = "United Nations Security Council";
} elseif ($cid == 2) {
$council = "United Nations General Assembly Disarmament and International Security Council";
} elseif ($cid == 3) {
$council = "United Nations Human Rights Council";
} elseif ($cid == 4) {
$council = "International Atomic Energy Agency";
} elseif ($cid == 5) {
$council = "Organisation for Security and Cooperation in Europe";
} elseif ($cid == 6) {
$council = "The Trilateral Commission";
}
$query_eb = "SELECT * FROM eb_apps WHERE allot = 1 AND allot_council = '{$council}' ";
$result_eb = mysqli_query($conn, $query_eb);
confirm_query($result_eb);
if ($cid==6) {
$bttn_text = "character";
} else {
$bttn_text = "country";
}
?>
<!DOCTYPE html>
<html>
<head>
<title>VITCMUN 2017 | Councils</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="VIT chennai MUN applications" />
<meta name="keywords" content="VIT chennai, MUN, VIT chennai MUN" />
<meta name="author" content="Prashant Bhardwaj" />
<link rel="shortcut icon" href="img/favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<script src="inc/js/jquery-1.11.0.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="inc/bootstrap/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="inc/bootstrap/css/bootstrap-theme.min.css">
<!-- Bootstrap reset -->
<link rel="stylesheet" href="inc/bootstrap/css/bootstrap-reset.css">
<!-- flexslider load -->
<link rel="stylesheet" href="inc/flexslider/flexslider.css" type="text/css">
<!-- easy pie chart -->
<link rel="stylesheet" type="text/css" href="inc/easy-pie-chart/demo/style.css">
<!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="inc/magnific/dist/magnific-popup.css">
<!-- YTP -->
<link href="inc/YTPlayer/css/YTPlayer.css" media="all" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="inc/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/colors.css">
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50161037-1', 'wpidiots.com');
ga('send', 'pageview');
</script>
<style type="text/css">
body {
margin-top: -10px;
}
</style>
<div class="page-loader"></div>
<div class="l-wrapper">
<!-- HEADER -->
<div class="menu-wrap">
<!-- NAVIGATION -->
<div class="l-navigation-wrap menu-padd" id="l-navigation">
<div class="m-navbar container">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="l-logo">
<a href="index.php">
<img height="35%" width="35%" src="img/small_logo.png"> <span style="color:white;"><b>VITCMUN 2017</b></span>
</a>
</div><!-- l-logo -->
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav navbar-right">
<li >
<a href="index.php">Home</a>
</li>
<li><a href="index.php#intro">VITCMUN</a></li>
<li><a href="index.php#council">Committees</a></li>
<li><a href="team.html">Team</a></li>
<li><a href="index.php#contact">Contact Us </a></li>
</ul>
</div>
</div><!-- /.container-fluid -->
</nav>
</div><!-- m-navbar -->
</div><!-- l-navigation -->
</div><!-- content -->
<div class="l-content-wrap" id="standard-content">
<section>
<div class="l-page-section l-section" id="page-section">
<div class="container">
<div class="row">
<div class="col-lg-12"><br>
<h2 class="text-center"><?php echo $list['name']; ?></h2>
<div class="row">
<div class="col-lg-12">
<center><img src="img/c<?php echo $cid; ?>.jpg" height="50%" width="50%"></center>
</div>
</div><br><br>
<div class="row">
<div class="col-lg-12 text-center">
<h4>Agenda: <?php echo $list['agenda']; ?></h4>
</div>
</div><hr>
<div class="row">
<div class="col-lg-12">
<p style="text-align:justify;">
<?php echo $list['write_up']; ?>
</p>
</div>
</div><hr>
<div class="row">
<div class="col-lg-6 text-center">
<a href="media/<?php echo $cid; ?>.pdf">
<button class="btn btn-primary">Download the <?php echo $bttn_text; ?> list for this council</button>
</a>
</div>
<div class="col-lg-6 text-center">
<a href="media/<?php echo $cid."bg"; ?>.pdf">
<button class="btn btn-primary">Download the background guide for this council</button>
</a>
</div>
</div>
<div class="row"><hr><br>
<div class="col-lg-12 text-center">
<h3>Executive Board</h3>
</div>
</div>
<div class="row">
<?php
while ($eb_list = mysqli_fetch_assoc($result_eb)) { ?>
<div class="col-lg-4 text-center">
<img src="img/eb_pics/<?php echo $eb_list['phno']; ?>.jpg" class="team-member-image">
<h5><?php echo $eb_list['name']; ?></h5>
<h6><?php echo $eb_list['allot_post']; ?></h6>
</div>
<?php
}
?>
</div>
</div><!-- col-lg-12 -->
</div><!-- row -->
<div class="separator"></div><!-- separator -->
</div><!-- container -->
</div><!-- l-page-section -->
</section>
</div><!-- l-paralax-section -->
</section>
<section>
<div class="l-contactus-section l-section">
<div class="container">
<div id="contact" class="row">
<div class="col-lg-5 col-md-5 col-sm-5 col-xs-12">
<h6>Contact Us</h6>
<ul>
<li class="opacity">
<span style="display:block;">The Debate Society VIT UNIVERSITY , Chennai Campus, Vandalur-Kelambakkam Road, Chennai, Tamil Nadu 600127</span>
</li>
<li class="opacity"><img src="img/phone.png" alt="phone image" />+91 9176472987, +91 9962416408</li>
<li class="opacity"><img src="img/mail.png" alt="mail image"/> [email protected]</li>
<li class="opacity"><img src="img/magnifier.png" alt="magnifier image"/> facebook.com/vitcmun</li>
</ul>
</div><!-- col-lg-5 -->
<div class="col-lg-7 col-md-7 col-sm-7 col-xs-12 form-wrapper opacity">
<center><br>
<img style="height:100%; width:40%;" src="img/VITCMUN2017.png">
</center>
</div><!-- col-lg-7 -->
</div><!-- row -->
</div><!-- container -->
<div class="l-copyright text-center">
<div class="container">
<div class="m-social-icons">
<a href="https://www.facebook.com/groups/1495550694059659/?ref=br_tf"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
</div><!--m-social-icons-->
</div><!-- container -->
</div><!-- l-copyright -->
</div><!-- l-contactus-section -->
</section>
</div><!-- l-content-wrap -->
</div><!-- l-wrapper -->
<!-- LOAD SCRIPTS -->
<!-- Latest compiled and minified JavaScript -->
<script src="inc/bootstrap/js/bootstrap.min.js"></script>
<!-- flexslider -->
<script src="inc/flexslider/jquery.flexslider.js"></script>
<!-- skrollr -->
<script type="text/javascript" src="inc/skrollr/dist/skrollr.min.js"></script>
<!-- easy pie chart -->
<script src="inc/easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
<!-- isotope -->
<script src="inc/isotope/jquery.isotope.min.js" ></script>
<script src="inc/isotope/jquery.isotope.sloppy-masonry.js" ></script>
<!-- nice scroll -->
<script src="inc/nice-scroll/jquery.nicescroll.min.js" ></script>
<!-- Magnific Popup core JS file -->
<script src="inc/magnific/dist/jquery.magnific-popup.js"></script>
<!-- Waypoints -->
<script src="inc/waypoints/waypoints.min.js"></script>
<!-- YTP -->
<script type="text/javascript" src="inc/YTPlayer/inc/jquery.mb.YTPlayer.js"></script>
<!-- TWITTER SCRIPT -->
<script type="text/javascript" charset="utf-8" src="inc/tweet/twitter/jquery.tweet.js"></script>
<!-- contact form checker -->
<script src="inc/form-validator/dist/jquery.validate.js"></script>
<!-- script calling -->
<script src="inc/js/common.js"></script>
<script type="text/javascript">
$('#myFile').bind('change', function() {
//this.files[0].size gets the size of your file.
var sz = (this.files[0].size);
if (sz>300000) {
alert('File size too large, please upload an image of size less than or equal to 300 Kilobytes.');
document.getElementById("btt").disabled = true;
} else {
document.getElementById("btt").disabled = false;
}
});
</script>
</body>
</html>
<?php
if (isset ($conn)){
mysqli_close($conn);
}
?>