-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.php
151 lines (129 loc) · 4.09 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
<?php
//require('dbconn.php');
require_once('Dao/connection.php');
/*session_start();
if(!$_SESSION['UserID']){
echo session_flash('errorMessage');
}*/
?>
<!DOCTYPE html>
<html>
<!-- Head -->
<head>
<title>BusKaro</title>
<!-- Meta-Tags -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="BusKaro, 24x7 Institute Bus Booking Portal" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //Meta-Tags -->
<!-- Style --> <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<!-- Fonts -->
<link href="//fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">
<!-- //Fonts -->
<!-- JQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<!-- //Head -->
<!-- Body -->
<body>
<?php
require 'dbconn.php';
?>
<h1>BusKaro</h1>
<h3>Book Bus Tickets On The Go</h3>
<br>
<div class="container">
<div class="login">
<h2>Sign In</h2>
<form action="Dao/userLogin.php" method="post">
<p> Sign In As </p>
<select name="Type" id="type">
<option value="Student">Student</option>
<option value="Faculty">Faculty</option>
<option value="Staff">Staff</option>
<!--<option value="Guest">Guest</option>-->
</select>
<br>
<br>
<input type="number" Name="UserID" placeholder="User ID" required="">
<input type="password" Name="Password" placeholder="Password" required="">
<div class="send-button">
<!--<form>-->
<input type="submit" name="signin" value="Sign In">
</div>
</form>
<div class="clear"></div>
</div>
<div class="register">
<h2>Sign Up</h2>
<form action="Dao/userLogin.php" method="post">
<p> Sign Up As </p>
<select name="Type" id="Type">
<option value="Student">Student</option>
<option value="Faculty">Faculty</option>
<option value="Staff">Staff</option>
<!--<option value="Guest">Guest</option>-->
</select>
<br> <br>
<script type="text/javascript">
$(document).ready(function(){
$('#Type').on('change', function(){
if(this.value == 'Faculty'){
$("#batch").hide();
$("#dept").show();
}
else if(this.value == 'Staff'){
$("#batch").hide();
$("#dept").hide();
}
else if(this.value == 'Student'){
$("#batch").show();
$("#dept").show();
}
});
});
</script>
<input type="number" Name="UserID" placeholder="User ID" required="">
<input type="text" Name="Name" placeholder="Name" required>
<input type="password" Name="Password" placeholder="Password" required>
<div id='batch'>
<input type="number" Name="Batch" placeholder="Batch">
</div>
<div id = 'dept'>
<p> Department </p>
<select name="Dept" id="Dept">
<option value="CSE">CSE</option>
<option value="ECE">ECE</option>
<option value="ME">ME</option>
<option value="NS">NS</option>
</select>
</div>
<br>
<p> Blood Group </p>
<select name="BloodG" id="BloodG">
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select>
<br><br>
<div class="send-button">
<input type="submit" name="signup" value="Sign Up">
</div>
</form>
<p>By creating an account, you agree to our <a class="underline" href="tandc.php">Terms</a></p>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="footer w3layouts agileits">
<p><span class="copyleft">©</span> 2018 BusKaro. </a></p>
<p><a class="underline" href="aboutus.php">About the Project</a></p>
</div>
</body>
<!-- //Body -->
</html>