-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathview.php
156 lines (127 loc) · 4.52 KB
/
view.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Status</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="index.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="index.php">Home</a></li>
<li><a href="login.php">Admin Panel</a></li>
<li><a href="droidup.php">Workshop</a></li>
<li><a href="contactUs.php">ContactUs</a></li>
<li><a href="signup.php" class="button medium">Register for workshop</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<section id="one" class="wrapper style1 special">
<div class="container">
<header class="major">
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
include 'Config.php';
$id = $_POST['id'];
$email = $_POST['email'];
$result = mysql_query("SELECT id,name,email,android,web,windows,payment FROM registeration WHERE id = $id ");
$row = mysql_fetch_row($result);
if($row[3]=='on')
{
$row[3]='Android-<b>#DroidUp</b>';
}
if($row[4]=='on')
{
$row[4]='Web-<b>#NetRap</b>';
}
if($row[5]=='on')
{
$row[5]='Windows-<b>#MiDow</b>';
}
if($row[6]=='')
$row[6]="NOT PAID";
if($email == $row[2])
{
echo "<h3>Welcome,".$row[1]."</h3>";
echo "<table>
<tr>
<td><b>ID:</b></td>
<td>STARTRZ".$row[0]."</td><br>
</tr>
<tr>
<td><b>Email:</b></td><td>"
.$row[2]."</td><br>
</tr>
<tr>
<td><b>Registered for:</b></td><td>"
.$row[3].",<br>".$row[4].",<br>".$row[5]."</td><br>
</tr>
<tr>
<td><b>Status:</b></td>
<td>
<h1>
".$row[6]."
<h1>
</td>
<br>
</tr>
</table><br><p>
If any information is entered wrong , click the below button for a change request...</p>
<br>
";
echo "<a href='contactUs.php'><input type='submit' value='Send Request' class='special'/></a><br><br>";
}
else
{
$Message='y';
header("Location: status.php?Message=" . urlencode($Message));
}
}
else
{
header("Location: status.php");
}
?>
</header>
</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>