-
Notifications
You must be signed in to change notification settings - Fork 1
/
addevent.php
executable file
·208 lines (193 loc) · 9.18 KB
/
addevent.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
<?php
require_once("db/addfile.php");
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/favicon.ico" type="image/ico" />
<title>Add Question</title>
<!-- Bootstrap -->
<link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="build/css/custom.min.css" rel="stylesheet">
<script src="js/admin.js"></script>
</head>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="admin.php" class="site_title">
<i class="fa fa-paw"></i>
<span>Ecell Kiet</span>
</a>
</div>
<div class="clearfix"></div>
<br />
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li>
<a>
<i class="fa fa-home"></i> Quiz Section
<span class="fa fa-chevron-down"></span>
</a>
<ul class="nav child_menu">
<li>
<a href="addquestion.php">Add Question</a>
</li>
<li>
<a href="addevent.php">Event Addition</a>
</li>
</ul>
</li>
<li>
<a>
<i class="fa fa-home"></i> Result Section
<span class="fa fa-chevron-down"></span>
</a>
<ul class="nav child_menu">
<li>
<!-- <a href="addquestion.php">Search Participant</a> -->
</li>
<li>
<a href="resultSheet.php">Result Sheet</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- /sidebar menu -->
<!-- /menu footer buttons -->
<div class="sidebar-footer hidden-small">
<a data-toggle="tooltip" data-placement="top" title="Logout" href="logout.php">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
<!-- /menu footer buttons -->
</div>
</div>
<!-- top navigation -->
<div class="top_nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
<a id="menu_toggle">
<i class="fa fa-bars"></i>
</a>
</div>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="x_panel">
<div class="x_title">
<h2>Result Sheet</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<br />
<form action="db/addeventdetails.php" target="_self" method="post" data-parsley-validate class="form-horizontal form-label-left">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">Select Event</label>
<div class="col-md-3 col-sm-3 col-xs-12">
<select class="form-control Resultevents" name="event">
<option selected>Select Event</option>
<?php while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
echo "<option value='".$row['id']."'>".$row['name']."</option>";
}
?>
</select>
</div>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="write-question">Event Round</label>
<div class="col-md-3 col-sm-3 col-xs-12">
<input id="round" name="round" required="required" class="form-control col-md-7 col-xs-12">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="write-question">Score</label>
<div class="col-md-3 col-sm-3 col-xs-12">
<input id="score" name="score" required="required" class="form-control col-md-7 col-xs-12">
</div>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="write-question">Time</label>
<div class="col-md-3 col-sm-3 col-xs-12">
<input id="time" name="time" required="required" placeholder="In Minutes" class="form-control col-md-7 col-xs-12">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12">Hint</label>
<div class="col-md-3 col-sm-3 col-xs-12">
<div id="gender" class="btn-group" data-toggle="buttons">
<label class="btn btn-default" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default">
<input type="radio" name="hint" value="1"> YES
</label>
<label class="btn btn-primary" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default">
<input type="radio" name="hint" value="0"> NO
</label>
</div>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-5">
<!-- <button class="btn btn-primary" type="reset">Reset</button> -->
<button type="submit" class="btn btn-success Resultbutton">Submit</button>
</div>
</div>
</form>
</div>
</div>
<br />
<?php
if(isset($_SESSION['timing'])){
if($_SESSION['timing'] == 1){
echo "<div class='alert alert-success alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span>
</button>
Add Success Fully
</div>";
}
else{
echo "<div class='alert alert-danger alert-dismissible fade in' role='alert'>
<button type='button' class='close' data-dismiss='alert' aria-label='Close'><span aria-hidden='true'>×</span>
</button>
Some Error occurred !
</div>";
}
}
?>
</div>
<!-- /page content -->
<!-- footer content -->
<footer>
<div class="pull-right">
<a href="https://ecell.com">Ecell KIET</a>
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
</div>
</div>
<script src="js/admin.js"></script>
<!-- jQuery -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="build/js/custom.min.js"></script>
</body>
</html>