-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
432 lines (393 loc) · 16.7 KB
/
index.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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<!DOCTYPE html>
<?php
include('databases/connection.php');
session_start();
?>
<html lang="en">
<head>
<title>QandA</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<script>
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<!-- Style-CSS -->
<!-- font-awesome-icons -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- //font-awesome-icons -->
<!-- /Fonts -->
<link href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Playfair+Display:400,400i,700i" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,800" rel="stylesheet">
<!-- //Fonts -->
</head>
<body>
<div class="">
<?php if(!strlen(@$_GET['message'])=="")
{
?>
<ol class="breadcrumb">
<li class="breadcrumb-item"> Message</li>
<li class="breadcrumb-item active"><?php echo $_GET['message'] ;?></li>
</ol>
<?php
}
?>
</div>
<!-- mian-content -->
<div class="banner-content" id="home">
<!-- header -->
<header class="header">
<div class="container-fluid px-lg-5">
<!-- nav -->
<nav class="py-4">
<div id="logo">
<h1> <a href="index.php"><span>Q</span>&A</a></h1>
</div>
<label for="drop" class="toggle">Menu</label>
<input type="checkbox" id="drop" />
<ul class="menu mt-2">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="registerform.php">Register</a></li>
<li>
<!-- First Signin Drop Down -->
<label for="drop-2" class="toggle">Login<span class="fa fa-angle-down" aria-hidden="true"></span> </label>
<a href="#">Login <span class="fa fa-angle-down" aria-hidden="true"></span></a>
<input type="checkbox" id="drop-2" />
<ul>
<li><a href="#loginform" class="scroll">Student Login</a></li>
<li><a href="admin/admin_login_form.php">Admin Login</a></li>
<li><a href="teacher/teacher_login_form.php">Teacher Login</a></li>
</ul>
</li>
<li><a href="explore.php">Explore</a></li>
</ul>
</nav>
<!-- //nav -->
</div>
</header>
<!-- //header -->
<!--/banner-->
<div class="banner-info-w3pvt">
<h3>Are you ready to Register?</h3>
<p class="my-4">Post your question now and get your answer from institution's best professors. Registration is totally free.</p>
<div class="ban-buttons">
<a href="registerform.php" class="btn">Register Now</a>
<a href="about.php" class="btn active scroll">Read More</a>
</div>
</div>
<!--// banner-inner -->
</div>
<section class="hand-crafted bg-light py-5" id="about">
<div class="container py-xl-5 py-lg-3">
<div class="row banner-grids">
<div class="col-md-6 banner-image">
<div class="effect-w3">
<img src="images/img.jpg" alt="" class="img-fluid image1">
</div>
</div>
<div class="col-md-6 last-img pl-lg-5 p-3">
<h3 class="tittle my-lg-5 my-3"><span class="sub-tittle"> Now You can get </span>The Best Answers for Your Question</h3>
<p class="mb-4">University Question and Answer forum is a question-and-answer website where questions are asked, answered, edited, and organized by its community of lecturers in the form of opinions</p>
<p class="mb-4">University Question and Answer forum’s mission is to share and grow the Students's knowledge. A vast amount of the knowledge that would be valuable to many students is currently only available to a few.</p>
<div class="ban-buttons">
<a href="about.php" class="btn">Read More</a>
</div>
</div>
</div>
</div>
</section>
<!-- //hand-crafted -->
<!--/ab -->
<section class="about py-lg-5 py-md-5 py-3">
<div class="container">
<div class="inner-sec-w3ls py-lg-5 py-3">
<h3 class="tittle text-center mb-lg-5 mb-3"><span class="sub-tittle">About.</span> Our question categories</h3>
<div class="feature-grids row mb-lg-5 my-3">
<div class="col-md-4 p-0">
<div class="bottom-gd p-lg-5 p-4">
<span class="fa fa-laptop" aria-hidden="true"></span>
<h3 class="my-3"> Computer Applications</h3>
<p>Questions related to BCA and Computer Science Engineering.</p>
</div>
</div>
<div class="col-md-4 p-0">
<div class="bottom-gd2-active p-lg-5 p-4">
<span class="fa fa-clone" aria-hidden="true"></span>
<h3 class="my-3"> Business</h3>
<p>Commerce students are more likely to be curious about entrepreneur.</p>
</div>
</div>
<div class="col-md-4 p-0">
<div class="bottom-gd p-lg-5 p-4">
<span class="fa fa-flask" aria-hidden="true"></span>
<h3 class="my-3"> Science</h3>
<p>Physics, Math, Chemistry, Eletronics and the list goes on.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- //ab -->
<!--/counter-->
<section class="stats py-lg-5 py-4">
<div class="container">
<div class="row text-center">
<div class="col">
<div class="counter">
<h3 class="timer count-title count-number"> <?php
$sql="SELECT count(*) FROM student_table";
$result=mysqli_query($conn,$sql);
$result_check=mysqli_num_rows($result);
echo $result_check; ?> </h3>
<p class="count-text ">Students</p>
</div>
</div>
<div class="col">
<div class="counter">
<h3 class="timer count-title count-number"><?php $sql="SELECT * FROM questions";
$result=mysqli_query($conn,$sql);
$result_check=mysqli_num_rows($result);
echo $result_check; ?></h3>
<p class="count-text ">Questions</p>
</div>
</div>
<div class="col">
<div class="counter">
<h3 class="timer count-title count-number"><?php $sql="SELECT * FROM answers";
$result=mysqli_query($conn,$sql);
$result_check=mysqli_num_rows($result);
echo $result_check; ?></h3>
<p class="count-text ">Answers</p>
</div>
</div>
<div class="col">
<div class="counter">
<h3 class="timer count-title count-number"><?php $sql="SELECT * FROM professor";
$result=mysqli_query($conn,$sql);
$result_check=mysqli_num_rows($result);
echo $result_check; ?></h3>
<p class="count-text ">Professors</p>
</div>
</div>
</div>
</div>
</section>
<!--//counter-->
<!-- middle section -->
<section class="apply-main py-5" id="apply">
<div class="container">
<div class="row py-lg-5">
<div class="col-lg-7 apply-info px-lg-5">
<h3 class="tittle text-white mb-lg-5 mb-3"><span class="sub-tittle">Login to Ask Right Now!.</span> You need to login to ask questions. </h3>
</div>
<div class="login p-md-5 p-4 mx-auto bg-white mw-100 col-lg-5" id="loginform">
<h5 class="text-center mb-4">Login</h5>
<form action="login.php" method="post">
<div class="form-group">
<label>Student SRN</label>
<input type="text" class="form-control" id="validationDefault01" name="user_srn" required="">
</div>
<div class="form-group mb-4">
<label class="mb-2">Password</label>
<input type="password" class="form-control" id="password1" name="user_password" required="">
</div>
<button type="submit" name="login_button" class="btn btn-primary submit mb-4">Login</button>
</form>
</div>
</div>
</div>
</section>
<!-- //middle section -->
<!--//team -->
<section class="banner-bottom py-lg-5 py-4">
<div class="container">
<div class="inner-sec-w3ls py-lg-5 py-4">
<h3 class="tittle text-center my-lg-5 my-3"><span class="sub-tittle">Amazing</span> Project members</h3>
<div class="row mt-lg-5 mt-4">
<div class="col-md-4 team-gd text-center">
<div class="team-img mb-4">
<img src="images/team.jpg" class="img-fluid rounded-circle" alt="user-image">
</div>
<div class="team-info">
<h3 class="mt-md-4 mt-3"><span class="sub-tittle-team">Android Developer</span> Gagan Kumar R</h3>
<p>From BCA final Semester.</p>
<ul class="social_section_1info mt-md-4 mt-3">
</ul>
</div>
</div>
<div class="col-md-4 team-gd second text-center">
<div class="team-img mb-4">
<img src="images/team1.jpg" class="img-fluid rounded-circle" alt="user-image">
</div>
<div class="team-info">
<h3 class="mt-md-4 mt-3"><span class="sub-tittle-team">Designer</span> Balaji N</h3>
<p>From BCA final Semester.</p>
<ul class="social_section_1info mt-md-4 mt-3">
</ul>
</div>
</div>
<div class="col-md-4 team-gd text-center">
<div class="team-img mb-4">
<img src="images/team2.jpg" class="img-fluid rounded-circle" alt="user-image">
</div>
<div class="team-info">
<h3 class="mt-md-4 mt-3"><span class="sub-tittle-team">PHP developer</span> Dhanush BL</h3>
<p>From BCA final Semester.</p>
<ul class="social_section_1info mt-md-4 mt-3">
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- portfolio -->
<!-- /hand-crafted -->
<section class="hand-crafted py-lg-4 py-5">
<div class="container py-xl-5 py-lg-3">
<div class="row banner-grids">
<div class="col-md-6 banner-image">
<div class="effect-w3">
<img src="images/img2.jpg" alt="" class="img-fluid image1">
</div>
</div>
<div class="col-md-6 last-img pl-lg-5 p-3">
<h3 class="tittle text-white my-lg-5 my-3"><span class="sub-tittle">welcome to </span>Reva University</h3>
<p class="mb-4">REVA University has been established under the REVA University Act, 2012. The University is located in Bengaluru on a sprawling green campus, spread over 45 acres of land, built with state-of-the-art
infrastructure creating an environment conducive to higher learning and research.</p>
<p class="mb-4">REVA University is alive with the confluence of different minds and energies. The exchange and intermingling of these vivacities characterizes life at REVA.</p>
<div class="ban-buttons">
<a href="https://reva.edu.in/" class="btn">Read More</a>
</div>
</div>
</div>
</div>
</section>
<!-- //hand-crafted -->
<section class="py-lg-5 portfolio-flyer py-4" id="gallery">
<div class="container py-lg-5">
<h3 class="tittle text-center my-lg-5 my-3"><span class="sub-tittle"> Recent Pics </span>Our Gallery</h3>
<div class="row news-grids pb-lg-5 mt-3 text-center">
<div class="col-md-4 gal-img">
<a href="#gal1"><img src="images/n1.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img">
<a href="#gal2"><img src="images/g2.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img">
<a href="#gal3"><img src="images/g3.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal4"><img src="images/g4.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal5"><img src="images/n9.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal6"><img src="images/g5.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal7"><img src="images/n7.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal8"><img src="images/g1.jpg" alt="High Edu" class="img-fluid"></a>
</div>
<div class="col-md-4 gal-img mt-lg-4">
<a href="#gal9"><img src="images/n6.jpg" alt="High Edu" class="img-fluid"></a>
</div>
</div>
</div>
</section>
<!--footer -->
<footer>
<section class="footer footer_1its py-5">
<div class="container py-md-4">
<div class="row footer-top mb-md-5 mb-4">
<div class="col-lg-4 col-md-6 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Address</h3>
</div>
<div class="footer-text">
<p>Address : Rukmini Knowledge Park, Kattigenahalli,Yelahanka, Bangalore - 560064</p>
<p>Phone : +91- 95388 74444</p>
<p>Email : <a href="mailto:info@reva.edu.in">info@reva.edu.in</a></p>
</div>
</div>
<div class="col-lg-4 col-md-6 mt-md-0 mt-4 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Quick Links</h3>
</div>
<div class="row">
<ul class="col-6 links">
<li><a href="index.php">Home </a></li>
<li><a href="#about">About </a></li>
<li><a href="explore.php">Explore</a></li>
<li><a href="registerform.php">Register</a></li>
<li><a href="#loginform">Sign in </a></li>
</ul>
<ul class="col-6 links">
<li><a href="about.php">About Us </a></li>
<li><a href="Synopsis.pdf">Synopsis </a></li>
<li><a href="https://reva.edu.in/faq">Faq's </a></li>
</ul>
</div>
</div>
<div class="col-lg-4 col-md-12 mt-lg-0 mt-4 col-sm-12 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Newsletter</h3>
</div>
<div class="footer-text">
<p>By subscribing to our mailing list you will always get latest news and updates from us.</p>
<form action="subscribe.php" method="post">
<input type="email" name="subscriber" placeholder="Enter your email..." required="">
<button type="submit" class="btn1 btn"><span class="fa fa-paper-plane-o" aria-hidden="true"></span></button>
<div class="clearfix"> </div>
</form>
</div>
</div>
</div>
<div class="footer-grid_section text-center">
<div class="footer-title-w3ls mb-3">
<a href="index.php"><span>Q</span>&A</a>
</div>
<div class="footer-text">
<p>University Question and Answer forum is a web
application project developed for university students to share
their questions, learn and gain knowledge regarding a particular
subject.
University professors and lecturers visit the web application
each day to solve problems related to a subject, share ideas
and resources to the students.</p>
</div>
<ul class="social_section_1info">
<li class="mb-2 facebook"><a href="#"><span class="fa fa-facebook mr-1"></span>facebook</a></li>
<li class="mb-2 twitter"><a href="#"><span class="fa fa-twitter mr-1"></span>twitter</a></li>
<li class="google"><a href="#"><span class="fa fa-google-plus mr-1"></span>google</a></li>
<li class="linkedin"><a href="#"><span class="fa fa-linkedin mr-1"></span>linkedin</a></li>
</ul>
</div>
<div class="move-top-w3layouts text-center mt-3">
<a href="#home" class="move-top"> <span class="fa fa-angle-up mb-3" aria-hidden="true"></span></a>
</div>
</div>
</section>
</footer>
<!-- //footer -->
<!-- copyright -->
<div class="cpy-right text-center py-3">
<p class="">© 2019 Q&A. All rights reserved | Design by Gagan and Team.
</p>
</div>
<!-- //copyright -->
</body>
</html>