forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
340 lines (306 loc) · 11.5 KB
/
signup.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<?php
session_start();
?>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="style.less" rel="stylesheet" type="text/less">
<link href="common/navbar.less" rel="stylesheet" type="text/less">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto" rel="stylesheet">
<link rel='stylesheet' type='text/css' href='//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.css' />
<link href="asset/AOS/aos.css" rel="stylesheet" type="text/css"/>
<script src='https://code.jquery.com/jquery-2.2.0.min.js'></script>
<script src='//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.js'></script>
<script src="asset/less js/less.min.js" type="text/javascript"></script>
<script src="asset/AOS/aos.js" type="text/javascript"></script>
<script>
function link_change(){
};
window.onscroll =colorChange;
function fun_dropdown(){
var dropdown =document.getElementById('dropdown');
dropdown.style.display="block";
}
function alertemail(){
alert("Email Address already registered.");
}
function alertboth(){
alert("Roll no. and Email already registered.");
}
function alertroll(){
alert("Roll no. already registered.")
}
function colorChange(){
if( window.pageYOffset >50){
document.getElementById('nav-bar').className="nav-scroll";
document.getElementById('dropdown').classList.add("nav-scroll");
}
else{
document.querySelector('#nav-bar').classList.remove("nav-scroll");
document.getElementById('dropdown').classList.remove("nav-scroll");
document.getElementById('dropdown').style.backgroundColor="#333";
document.getElementById('nav-bar').style.backgroundColor="#333";
}
}
$(window).bind("load", function() {
<?php
if(isset($_SESSION['rolldup']) && $_SESSION['rolldup'] == true && isset($_SESSION['emaildup']) && $_SESSION['emaildup'] == true)
{
echo 'setTimeout("alertboth()", 100); ';
$_SESSION['rolldup']=false;
$_SESSION['emaildup']=false;
}
else if(isset($_SESSION['emaildup']) && $_SESSION['emaildup'] == true)
{
echo 'setTimeout("alertemail()", 100); ';
$_SESSION['emaildup']=false;
}
else if(isset($_SESSION['rolldup']) && $_SESSION['rolldup'] == true)
{
echo 'setTimeout("alertroll()", 100); ';
$_SESSION['rolldup']=false;
}
?>
});
window.onload = function(){
$('.dropdown').dropdown();
colorChange();
// scrolling vertically
window.requestAnimationFrame = window.requestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.msRequestAnimationFrame
|| function(f){setTimeout(f, 1000/60)};
var sqr = document.getElementById('sqr');
var circle = document.querySelector('.circle');
var innerHeight= window.innerHeight;
var scrollHeight= document.querySelector('#container').clientHeight;
function scroll_hori(){
var pageYOffset = window.pageYOffset;
var scroll = pageYOffset/(scrollHeight-innerHeight);
// circle.style.bottom= scroll*100 + "%";
// sqr.style.bottom= scroll*100 + "%";
//sqr.style.transform = "rotate(" + -scroll*180 + "deg)";
}
window.addEventListener('scroll',function(){
requestAnimationFrame(scroll_hori)
},false);
window.onclick =function(event){
console.log(event.target);
var dropdown =document.getElementById('dropdown');
if(!event.target.matches('.dropdown_menu')){
if(dropdown.style.display == "block"){
dropdown.style.display ="none"
}
}
}
link_change();
var min = 2012;
var d = new Date();
max = d.getFullYear();
for (var i = min; i<=max; i++){
var opt = document.createElement('option');
opt.value = i;
opt.innerHTML = i;
console.log(document.getElementById('passYear'));
document.getElementById('passYear').appendChild(opt);
};
AOS.init();
}
</script>
<style>
.nav-navigation{
position: relative;
}
#container{
margin-top: 9vh;
background: url('Untitled-5.svg') no-repeat;
background-size: cover;
}
.form h1{
text-align: center;
}
@media only screen and (max-width:767px)
{
div #column1{
display: none;
}
div #column2{
width: 100%;
}
}
.dropdown1{
display: none;
position: absolute;
margin-top: 20.8px;
left: 0;
border-radius: 7px;
width: max-content;
padding: 7px 12px;
box-sizing: border-box;
}
.dropdown-list{
padding-top: 5px;
padding-bottom: 5px;
}
.dropdown_menu{
cursor: pointer;
}
.square{
display:block;
position:fixed;
bottom: 0;
left: 40%;
height: 100px;
width: 100px;
border: 2px solid #52d3aa;
border-radius: 5px;
background-color: transparent;
color:white;
margin-bottom: -50px;
}
.circle{
position: absolute;
bottom: 0;
left: 5%;
height: 134px;
width: 134px;
border-radius: 50%;
background-color: #52d;
margin-bottom: -134px;
}
.circle::before{
content: "";
height: 100%;
width: 22.38805%;
position: absolute;
background-color: white;
top: 0;
left: 0;
}
</style>
</head>
<body class="ui container">
<div id="nav-bar" >
<div class="nav-left" >
<div class="nav-logo"><a href="index.php"><img src="asset/img/saar_logo.jpg" alt="saar-logo" class="nav-logo"></a></div>
<div class="nav-title"><a href="index.php">STUDENT ASSOCIATION FOR ALUMNI RELATIONS</a></div>
</div>
<div class="nav-right">
<div class="nav-navigation"><a href="#" >HOME</a></div>
<div class="nav-navigation"><a href="index.php">LOG IN </a></div>
<div class="nav-navigation">
<a class="dropdown_menu" onclick="fun_dropdown()">OTHER LINKS<i class="dropdown icon"></i></a>
<div class="dropdown1" id="dropdown">
<div class="dropdown-list"><a href="index.php">SAAR HOMEPAGE</a></div>
<div class="dropdown-list"><a href="#">ALUMNI MEET</a></div>
<div class="dropdown-list"><a href="#">DONATE NOW</a></div>
</div>
</div>
</div>
</div>
<div class="ui grid three column" id="container">
<div class="column" id="column1"><p></p></div>
<div class="column" id="column1"><p></p></div>
<!-- <div class="square" id="sqr" data-aos="fade-up" data-aos-duration="1000" data-aos-once="true"></div>
<div class="circle" data-aos="fade-up" data-aos-duration="1000" data-aos-once="true"></div>
-->
<div class="column" id="column2">
<form action="register.php" method="post">
<div class="ui form">
<h1>SIGNUP FORM</h1>
<div class=" field">
<label for="college_id">College Roll Number:</label>
<input type="text" id="college_id" name="college_id" required >
</div>
<div class="field">
<label for="fName">First Name:</label>
<input type="text" id="fName" name="fname" required>
</div>
<div class="field">
<label for="lName">Last Name:</label>
<input type="text" id="lName" name="lname" required>
</div>
<div class="field">
<label for="email">Email:</label>
<input type="email" name="email" required id="email">
</div>
<div class="field">
<label for="pass">passwords:</label>
<input type="password" id="pass" required minlength="5" maxlength="20" name="password">
</div>
<div class="field">
<label for="dob">Date Of Birth:</label>
<div class="ui icon input">
<input type="date" id="dob" name="DOB">
<i class="ui calendar icon"></i>
</div>
</div>
<div class="field">
<select id="passYear" name="passingyear" class="ui search selection dropdown">
<option value="">Graduation Year</option>
</select>
</div>
<div class="field">
<select id="degree" name="degree" class="ui search selection dropdown">
<option value="">Degree</option>
<option value="B.Tech">B.Tech/B.E</option>
<option value="M.Tech">M.Tech/M.E</option>
<option value="M.Sc">M.Sc</option>
<option value="P.hd">P.hd</option>
</select>
</div>
<div class=" field">
<select id="branch" name="dept" class="ui search selection dropdown">
<option value="">Department</option>
<option value="CSE">Computer Science and Engineering</option>
<option value="EE">Electrical Engineering</option>
<option value="ME">Mechanical Engineering</option>
<option value="CE">Chemical Engineering</option>
<option value="CBE">Chemical and Biochemical Engineering</option>
</select>
</div>
<div class="field">
<select id="etype" name="etype" class="ui dropdown">
<option value="">Employment Type</option>
<option value="job">Salaried</option>
<option value="Entrepreneur">Entrepreneur</option>
<option value="higher stuies">Higher Studies</option>
<option value="Civil Services">Civil Services</option>
</select>
</div>
<div class="field">
<label for="presentEmp">Present Employer/Educational Institution:</label>
<input type="text" id="presentEmp" name="presentEmployer" required>
</div>
<div class="field">
<label for="designation">Designation:</label>
<input type="text" id="Designation" name="designation" required>
</div>
<div class="field">
<label for="address">Address:</label>
<textarea id="address" name="address" required></textarea>
</div>
<div class="field">
<label for="country">Country:</label>
<input type="text" id="country" name="country" required>
</div>
<div class="field">
<label for="state">State:</label>
<input type="text" id="state" name="state" required>
</div>
<div class="field">
<label for="city">City:</label>
<input type="text" id="city" name="city" required>
</div>
<div class="field">
<label for="achievements">Achievements after graduation:</label>
<textarea id="achievements" name="achievements" required></textarea>
</div>
<button tpye="submit" value="submit">Submit</button>
</div>
</form></div>
</div>
</body>
</html>