-
Notifications
You must be signed in to change notification settings - Fork 0
/
newreg.php
103 lines (101 loc) · 4.41 KB
/
newreg.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
<?php
session_start();
if(!isset($_SESSION['otpl'])) header('location:otp.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>New Registrations::Explora Academy of Design</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link href="css/newreg.css" type="text/css" rel="stylesheet" media="screen,projection"/>
<link rel="icon" href="media/logo.png">
</head>
<body>
<?php unset($_SESSION['otpl']);?>
<div class="container">
<div class="row main-thing">
<h2 class="center">New Registrations</h2>
<form name="login_form" id="login_form" method="POST" enctype="multipart/form-data" class="col s12 white-text" action="register.php">
<div class="row">
<p class="center">
<input name="group2" type="radio" id="nata" value="nata" checked/>
<label for="nata">Nata</label>
<input name="group2" type="radio" id="ID" value="ID"/>
<label for="ID">Interior Design</label>
</p>
</div>
<div class="row">
<div class="input-field col s12 l4 m4">
<input id="surname" type="text" class="validate" autocomplete="off" onKeyUp="capitalise()" name="surname" required>
<label for="surname">Surname</label>
</div>
<div class="input-field col s12 l4 m4">
<i class="material-icons prefix"></i>
<input id="fname" type="text" class="validate" autocomplete="off" onKeyUp="capitalise()" name="fname" required>
<label for="fname">First Name</label>
</div>
<div class="input-field col s12 l4 m4">
<i class="material-icons prefix"></i>
<input id="lname" type="text" class="validate" autocomplete="off" onKeyUp="capitalise()" name="lname" required>
<label for="lname">Middle Name</label>
</div>
</div>
<div class="row">
<div class="input-field col s12 l12 m12">
<textarea id="address" class="materialize-textarea" length="120" name="address"></textarea>
<label for="address">Address</label>
</div>
</div>
<div class="row">
<div class="input-field col s12 l12 m12">
<input id="dob" type="date" class="validate datepicker" autocomplete="off" name="dob" required>
<label for="dob">Date of Birth</label>
</div>
</div>
<div class="row">
<div class="input-field col s12 l6 m6">
<input id="mob" type="text" class="validate" autocomplete="off" length="13" name="mob" required>
<label for="mob">Contact</label>
</div>
<div class="input-field col s12 l6 m6">
<input id="mail" type="email" class="validate" autocomplete="off" name="email" required>
<label for="mail">Email</label>
</div>
</div>
<div class="row">
<div class="file-field input-field col s12 l12 m12">
<div class="btn">
<span>Upload Photo</span>
<input type="file" name="file" id="photo" accept="image/*" required="">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" placeholder="Upload your passport size image only" type="text">
</div>
</div>
</div>
<button class="btn waves-effect waves-light btn-large right" type="submit" name="action">Submit
<i class="material-icons">save</i>
</button>
</form>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
<script src="js/init.js"></script>
<script>
function capitalise() {
var inp=document.getElementById('lname').value;
document.getElementById('lname').value=inp.charAt(0).toUpperCase() + inp.slice(1).toLowerCase();
var inp1=document.getElementById('surname').value;
document.getElementById('surname').value=inp1.charAt(0).toUpperCase() + inp1.slice(1).toLowerCase();
var inp2=document.getElementById('fname').value;
document.getElementById('fname').value=inp2.charAt(0).toUpperCase() + inp2.slice(1).toLowerCase();
}
</script>
</body>
</html>