forked from DPSN/dpsnmunc-checkin-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
83 lines (83 loc) · 4.3 KB
/
index.php
File metadata and controls
83 lines (83 loc) · 4.3 KB
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
<?php
include_once('db.php');
$sql = "SELECT `name` FROM `schools` ORDER by `name`;";
$res = mysqli_query($db, $sql);
$schools = array();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Infinnovation e-Check-In</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css" type="text/css" />
<meta name="theme-color" content="#336">
<meta name="author" content="SwG Ghosh">
<meta name="description" content="Infinnovation e Check In application. Generate your Infinnovation entry pass from here.">
<meta name="og:image" content="https://www.infinnovation.co/echeckinlandscape.png">
<meta name="og:url" content="https://echeckin.infinnovation.co/">
</head>
<body>
<header>
<div class="wrapper">
<div class="header">
<br/>
<div id="imageatr"><img src="images/logo.png"></div>
<h1>Infinnovation<br>e-Check-In<br/><span id="tagline">"Welcome, participants!"</span></h1>
<br/>
</div>
</div>
<div class="navbar">
<ul>
<li id="togglemenu"><a href="#menu" id="menubutton">≡</a></li>
<li id="flogo"><a class="flogolink">infinnovation<br><small>e-check-in</small></a></li>
<li><a href="/">application home<br><small>checkin</small></a></li>
<li><a href="uidrequest.html">unique id<br><small>procedure</small></a></li>
<li><a href="rules.html">general rules<br><small>and regulations</small></a></li>
</ul>
</div>
</header>
<div class="content1">
<br>
<script src="formvalidate.js"></script>
<form id="application" method="POST" action="schooldel/index.php" onsubmit="return formValidateSchool()">
<label for="school">Your school's name</label><br>
<select name="school">
<?php
while($row = mysqli_fetch_array($res)) {
$school = htmlspecialchars($row['name']);
$str = "<option value=\"".$school."\">".$school."</option>";
echo $str."\n";
}
?>
</select><br><br>
<label for="number">Number of participants</label><br>
<input type="number" name="number" placeholder="size"><br><br>
<span><sup>*</sup><small>Participation size is inclusive of faculty advisors.</small></span>
<br><br>
<label for="uid">Provided Unique ID</label><br>
<input type="password" name="uid" placeholder="unique id"><br><br>
<label for="cnumber">Your contact number</label><br>
+91<input type="number" name="cnumber" placeholder="contact number"><br><br>
<span><sup>*</sup><small>Faculty advisor's contact number should be used.</small></span>
<br><br>
<button class="button" type="submit"> proceed </button>
</form>
<br>
</div>
<footer>
<div class="foot">
<br>© Infinnovation.<br>Made with <span class="heart">♥</span> by <a href="https://facebook.com/swghosh" target="_blank" onclick="window.open('https://www.github.com/swghosh');">Swarup Ghosh</a>.<br>
<a href="https://twitter.com/SwG_Ghosh" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @SwG_Ghosh</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script><br><br>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"></script>
<script async src="base.js"></script>
<?php
if(isset($_GET['uidmismatch'])) {
echo "<script>uidMismatch();</script>\n";
}
?>
</body>
</html>