-
Notifications
You must be signed in to change notification settings - Fork 0
/
showchoice5.php
229 lines (177 loc) · 8.57 KB
/
showchoice5.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
<?php include'database.php' ?>
<?php session_start();
if($_SESSION['logged_in'] == '1' )
{
?>
<?php
$query="select * from choices";
$res=mysql_query($query);
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin_panel_questions</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/css">
.navbar
{
margin-bottom:0;
border-radius:0;
background:#B9770E;
color: #fff;
padding: 1% 0;
font-size: 1.2em;
//border:1px solid white;
//transition: .5s;
}
.navbar-brand
{
float: left;
//border:1px solid white;
min-height: 55px;
padding:5px 10px 5px;
}
.navbar .navbar-header{//border:1px solid #D35400;margin-left: 3%;}
.navbar .navbar-nav li a{//border:1px solid white;margin-right:5%;font-size:21px;font-family:'Roboto', sans-serif;//font-weight: bold;}
.navbar .navbar-nav li a:hover{
color:#3498DB;background-color:white;border:1px solid white;
}
.navbar .navbar-nav .active a,.navbar-inverse .navbar-nav .active a:focus,
.navbar .navbar-nav .active a:hover {
color: #fff;
background: #B9770E;
border:1px solid white;
border-radius: 8px;
}
.navbar .navbar-nav li a
{
color: white;
transition: .5s;
}
#box1{width: 100%;height:87vh;border:1px solid black;border-top:none;font-family:'Roboto', sans-serif;}
#box11{width: 25%;height:100%;border:1px solid black;font-family:'Roboto', sans-serif;float: left;background: #151515;color: white;text-transform:uppercase;font-size: 17px;border-top:none;}
#box12{width: 74.99%;height:100%;border:1px solid black;font-family:'Roboto', sans-serif;float: right;background: #E5E7E9;border-top:none;
border-bottom: none;}
#box111{width:99.9%;height:15%;}
#box111 p{margin-left: 2%;margin-top: 5%;text-transform: capitalize;font-size:19px;}
#box112{width:99.9%;height:10%;border-top: 1px solid white;}
#box112 a p{margin-left: 5%;width: 100%;height: 100%;line-height: 3.4;}
#box112:hover{background:white;color:#B9770E;font-weight: bold;}
#box112 a p:hover{color: #B9770E;}
#box113{width:99.9%;height:10%;//border-bottom:1px solid white;border-top: 1px solid white;}
#box113 a p{margin-left: 5%;width: 100%;height: 100%;line-height: 3.4;}
#box113:hover{background:white;color:#B9770E;font-weight:bold;}
#box113 a p:hover{color: #B9770E;}
#box114{width:99.9%;height:10%;border-bottom:1px solid white;border-top: 1px solid white;}
#box114 a p{margin-left: 5%;width: 100%;height: 100%;//border:1px solid green;line-height: 3.4;}
#box114:hover{background:white;color:#B9770E;font-weight: bold;border:1px solid black;}
#box114 a p:hover{color: #B9770E;}
#box115{width:99.9%;height:10%;border-bottom:1px solid white;background: white;}
#box115 a p{margin-left: 5%;;width: 100%;height: 100%;//border:1px solid green;line-height: 3.4;font-weight: bold;color: #B9770E;}
#box116{width:99.9%;height:10%;border-bottom:1px solid white;}
#box116 a p{margin-left: 5%;width: 100%;height: 100%;//border:1px solid green;line-height: 3.4;}
#box116:hover{background:white;color:#B9770E;font-weight: bold;border:1px solid black;}
#box116 a p:hover{color: #B9770E;}
#box117{width:99.9%;height:10%;border-bottom: 1px solid white;}
#box117 a p{margin-left: 5%;;width: 100%;height: 100%;//border:1px solid green;line-height: 3.4;}
#box117:hover{background:white;color:#B9770E;font-weight: bold;}
#box117 a p:hover{color: #B9770E;}
#box118{width:99.9%;height:10%;border-bottom: 1px solid white;}
#box118 a p{margin-left: 5%;;width: 100%;height: 100%;//border:1px solid green;line-height: 3.4;}
#box118:hover{background:white;color:#B9770E;font-weight: bold;}
#box118 a p:hover{color: #B9770E;}
#box12 .container{width:96%;height:93%;//border:1px solid steelblue;font-family:'Roboto', sans-serif;
background: white;margin:2% auto;}
#box12 .container table, th, td {border:1px solid steelblue;border-collapse: collapse;}
#box12 .container table{width: 90%;}
#box12 .container th, td{height:30px;text-align: center;}
#box12 .container th{height:34px;font-size:20px;}
#box12 .container .nextpage .page{width: 34.39%;height: 99.8%;border:1px solid steelblue;float: left;padding: 1px;}
#box12 .container .nextpage .no{width: 13.13%;height: 99.8%;border:1px solid steelblue;float: left;padding: 1px;}
#box12 .container .nextpage .no:hover{background:steelblue;color: white;border:1px solid white;}
#box12 .container .nextpage .no a:hover{color: white;}
</style>
</head>
<body>
<nav class="navbar">
<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>
<p class="p1" style="font-size:31px; "><b>Admin Panel</b></p>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="a_dmin_logout.php">Logout</a></li>
</ul>
</div>
</nav>
<div id="box1">
<div id="box11">
<div id="box111"><p><img src="img1.png" width="30" height="30">   Sanjeev Yadav</p><p id="p1" style="color:#2ECC71;margin-top: -2%;">         Status:Online</p></div>
<div id="box112"><a href="admin.html" style="text-decoration: none;color: white;"><p>HOME</p></a></div>
<div id="box113"><a href="showrec2.php" style="text-decoration: none;color: white;"><p>SHOW CANDIDATES</p></a></div>
<div id="box114"><a href="showqns.php" style="text-decoration: none;color: white;"><p>Show Questions</p></a> </div>
<div id="box115"><a href="#" style="text-decoration: none;color: white;"><p>Show choices</p></a></div>
<div id="box116"><a href="addqn.php" style="text-decoration: none;color: white;"><p>Add Question</p></a></div>
<div id="box117"><a href="#" style="text-decoration: none;color: white;"><p>Update Question</p></a></div>
<div id="box118"><a href="deleteqn.php" style="text-decoration: none;color: white;"><p>Delete Question</p></a></div>
</div>
<div id="box12">
<div class="container">
<h1 style="color:black;margin-left: 1%;">Show Choices</h1>
<hr style = "border:1px solid steelblue;width: 98%;">
<table border="1" align="center">
<br>
<tr style="background-color:#E5E7E9;">
<th>S.No</th><th>Question No.</th><th>Choice Name</th>
</tr>
<?php
$a=1;
while($row=mysql_fetch_array($res,MYSQL_BOTH))
{
if($a>44 && $a<55)
{
?>
<tr>
<td><center><?php echo $a; ?></center></td> <!-- can also use index od id-->
<td><?php echo $row['question_number']; ?></td>
<td><?php echo $row['text']; ?></td>
</tr>
<?php
}
$a++;
}
?>
</table><br>
<center>
<div class="nextpage" style="width:200px;height: 30px;border:1px solid steelblue">
<div class="page" style="text-align: center;font-size: 15px;background:steelblue;
color: white;">Pages</div>
<div class="no"><a href="showchoice.php">1</a></div>
<div class="no"><a href="showchoice2.php" style="text-decoration: none;">2</a></div>
<div class="no"><a href="showchoice3.php" style="text-decoration: none;">3</a></div>
<div class="no"><a href="showchoice4.php" style="text-decoration: none;">4</a></div>
<div class="no" style="background: steelblue;"><a href="#" style="text-decoration: none;color: white;background: steelblue;">5</a></div>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
}
else{
include('adminlog.html');
}?>