-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
executable file
·229 lines (202 loc) · 9.28 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
<?php
session_start();
require_once("dbConnect.php");
if(isset($_SESSION['id'])){
header("Location: pairing.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pair Programming Bot</title>
<link href="https://fonts.googleapis.com/css?family=Darker+Grotesque&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<script src="https://kit.fontawesome.com/71daca51f7.js"></script>
</head>
<body>
<!--start enroll modal -->
<!--Sign Up Modal -->
<div class="modal fade" id="enrollModal" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Create an Account</h4>
<button class="close" type="button" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div class="form-group">
<input type="text" class="form-control" placeholder="Name" id="name" name="name" />
</div>
<div class="form-group">
<input type="email" class="form-control" placeholder="Email" id="email" name="email" />
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" id="password"
name="password" />
<p id="error"></p>
</div>
<div class="form-group">
<input type="text" class="form-control" placeholder="Your Passion" id="passion"
name="passion" />
</div>
<div class="form-group">
<select name="class" id="class" class="form-control">
<?php
require_once('dbConnect.php');
$class_result = $conn->query("SELECT * FROM classes");
while($rows = $class_result->fetch_assoc() ){
$classid = $rows['class_id'];
$classname = $rows['class_name'];
echo "<option value='$classid'>$classname</option>";
}
?>
</select>
</div>
<div class="form-group">
<label for="fileupload" id="img_status"> Select profile image </label>
<input type="file" name="image" id="image" />
</div>
<div class="form-group text-center">
<button id="ulogin" class="btn bg-orange">LOGIN INSTEAD</button>
<button class="btn btn-moringa text-white" type="submit" name="register"
id="create_account">CONTINUE</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="loginModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Login to your Account</h4>
<button class="close" type="button" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div class="form-group" id="modal_alert">
</div>
<div class="form-group">
<input type="email" class="form-control" placeholder="Email" id="login_email" name="login_email" />
<p id="error1"></p>
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" id="login_password"
name="login_password" />
<p id="error2"></p>
</div>
<a href="#">Forgot your password?</a>
<div class="form-group text-center">
<button id="usignup" class="btn bg-orange">CREATE ACCOUNT</button>
<button id="userlogin" class="btn btn-moringa text-white">CONTINUE</button>
</div>
</div>
</div>
</div>
</div>
<!-- end of enroll modal -->
<!-- start of landing page -->
<!-- Navigation -->
<nav class="navbar bg-light navbar-light fixed-top transparent">
<div class="container">
<a class="navbar-brand" href="#">
<img src="assets/logo.png">
</a>
<a class="navbar-brand" href="#"></a>
<a class="btn btn-primary enroll custom" href="#" id="change_me">Enroll</a>
</div>
</nav>
<!-- Masthead -->
<header class="masthead text-white">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="form-group" id="m_alert">
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6" id="banner">
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 pb-5 mb-5 pt-5 bg-transparent">
<h3 class="font-weight-bold text-dark pt-5">Pair Programming, the future to effective programming education.</h3>
<button type="submit" class="btn btn-lg btn-primary mt-4 mb-3 enroll custom">Enroll
Now</button>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Icons Grid -->
<section class="btn-moringa pb-5 text-center">
<div class="container">
<h2 class="pt-5 font-weight-bold">Pair Programming Automated</h2>
<div class="row mt-5">
<div class="col-lg-4">
<div class="mx-auto mb-5 mb-lg-0 mb-lg-3">
<i class="fa fa-sign-in fa-5x mb-3"></i>
<h3>Step 1</h3>
<p class="lead mb-0">Click on the enroll now button and sign up/ sign in.</p>
</div>
</div>
<div class="col-lg-4">
<div class="mx-auto mb-5 mb-lg-0 mb-lg-3">
<i class="fa fa-check fa-5x mb-3"></i>
<h3>Step 2</h3>
<p class="lead mb-0">Take the assessment to determine your skill level.</p>
</div>
</div>
<div class="col-lg-4">
<div class="mx-auto mb-5 mb-lg-0 mb-lg-3">
<i class="fa fa-clock fa-5x mb-3"></i>
<h3>Step 3</h3>
<p class="lead mb-0">Wait to be paired!</p>
</div>
</div>
</div>
</div>
</section>
<section class="text-left mt-5 mb-5">
<div class="container">
<div class="row d-flex h-100">
<div class="col-md-6 justify-content-center align-self-center">
<h2 class="mb-3 font-weight-bold">Efficient pair programming for every learning institution</h2>
<p class="lead">Two heads are better than one. If the driver encounters a hitch with the code, there
will be two of them who'll solve the problem.</p>
</div>
<div class="col-md-6">
<img src="assets/pair-programming-demo.png" class="img-fluid float-right">
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer bg-orange">
<div class="container">
<div class="row">
<div class="col-lg-12 h-100 text-center text-lg-center my-auto">
<p class="small pt-3">© Pair Programming Bot 2019. All Rights Reserved.</p>
</div>
</div>
</div>
</footer>
<!-- end of landing page -->
<!-- start of javascript files -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<!-- end of javascript files -->
</body>
</html>