-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathviewStudent.php
120 lines (96 loc) · 3.28 KB
/
viewStudent.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>View students</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script src="js/jquery.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<noscript>
<link rel="stylesheet" href="css/skel.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/style-xlarge.css" />
</noscript>
</head>
<body>
<!-- Header -->
<header id="header">
<h1><a href="adminpanel.php"><img style="padding-top:20px" height="60px" width="30px" src="images/logo.png"/>STAR-2012</a></h1>
<nav id="nav">
<ul>
<li><a href="adminpanel.php">Home</a></li>
<li><a href="viewAdmin.php">View Admins</a></li>
<li><a href="payment.php">Make payment status</a></li>
<?php
session_start();
if(!$_SESSION['username'])
header("Location:login.php");
if($_SESSION['username']=='logaprakash')
echo "<li><a href='addDelete.php'>Add/delete admin</a></li>";
?>
<li><a href="logout.php" class="button medium">Log out</a></li>
</ul>
</nav>
</header>
<section id="one" class="wrapper style1 special">
<div class="container">
<header class="major">
<h3>Registered students details</h3>
<table>
<td><b>Name</b></td>
<td><b>Email</b></td>
<td><b>Conformation id</b></td>
<td><b>Payment status</b></td>
<?php
include 'Config.php';
$lastRow=mysql_query("SELECT id FROM registeration ORDER BY ID DESC LIMIT 1");
$lId=mysql_fetch_array($lastRow);
$id=$lId[0];
while($id>100){
$fullrow=mysql_query("SELECT id,name,email,payment FROM registeration WHERE id='$id'");
$row=mysql_fetch_array($fullrow);
if($row[3]=='')
$row[3]='NOT PAID';
echo "
<tr>
<td>".$row[1]."</td>
<td>".$row[2]."</td>
<td>".$row[0]."</td>
<td>".$row[3]."</td>
</tr>";
$id--;
}
?>
</table>
</header>
</div>
</section>
<footer id="footer">
<div class="container">
<div class="row">
<div class="8u 12u$(medium)">
<ul class="copyright">
<li>© Star-2012. All rights reserved.</li>
</ul>
</div>
<div class="4u$ 12u$(medium)">
<ul class="icons">
<li>
<a class="icon rounded fa-facebook" href="https://www.facebook.com/apptholan"><span class="label">Facebook</span></a>
</li>
<li>
<a class="icon rounded fa-twitter" href="https://twitter.com/logaprakash03"><span class="label">Twitter</span></a>
</li>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>