-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign.php
152 lines (125 loc) · 4.74 KB
/
sign.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
<?php
session_start();
if (! isset($_SESSION['logged_in'])) {
$nav = 'includes/nav.php';
}
elseif ($_SESSION['logged_in'] == 'True') {
header('Location: index');
}
else {
$nav = 'includes/navconnected.php';
$idsess = $_SESSION['id'];
}
error_reporting(0);
require 'includes/header.php';
require $nav;
?>
<div class="container-fluid center-align sign">
<div class="container">
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab col s3"><a class="active" href="#test1">Log In</a></li>
<li class="tab col s3"><a href="#test2">Sign Up</a></li>
</ul>
</div>
<div class="container forms">
<div class="row">
<div id="test2" class="col s12 left-align">
<div class="card">
<div class="row">
<form class="col s12" method="POST"
enctype="multipart/form-data">
<div class="row">
<div class="input-field col s6">
<i class="material-icons prefix">email</i> <input
id="icon_prefix" type="text" name="email" class="validate"
required> <label for="icon_prefix">Email</label>
</div>
<div class="input-field col s6">
<select class="icons" name="country">
<option value="" disabled selected>Choose your country</option>
<option value="Morocco">Morocco</option>
<option value="Egypt">Egypt</option>
<option value="Algeria">Algeria</option>
</select> <label>Country</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix">account_circle</i> <input
id="icon_prefix" type="text" name="firstname"
class="validate" required> <label for="icon_prefix">First
Name</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix">perm_identity</i> <input
id="icon_prefix" type="text" name="lastname"
class="validate" required> <label for="icon_prefix">Last
Name</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix">lock</i> <input
id="icon_prefix" type="password" name="password"
class="validate value1" required> <label for="icon_prefix">Password</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix">lock</i> <input
id="icon_prefix" type="password" name="confirmation"
class="validate value2" required> <label for="icon_prefix">Confirm
Password</label>
</div>
<div class="input-field col s6">
<i class="material-icons prefix">business</i> <input
id="icon_prefix" type="text" name="city" class="validate"
required> <label for="icon_prefix">City</label>
</div>
<div class="input-field col s6 meh">
<i class="material-icons prefix">location_on</i> <input
id="icon_prefix" type="text" name="address" class="validate"
required> <label for="icon_prefix">Address</label>
</div>
<?php require 'includes/signupconfirmation.php'; ?>
<div class="center-align">
<button type="submit" id="confirmed" name="signup"
class="btn meh button-rounded waves-effect waves-light ">Sign
up</button>
</div>
<p>
By Registering, you agree that you've read and accepted our <a
href="">User Agreement</a>, you're at least 18 years old,
and you consent to our <a href="">Privacy Notice and
receiving</a> marketing communications from us.
</p>
</div>
</form>
</div>
</div>
</div>
<div id="test1" class="col s12 left-align">
<div class="card">
<div class="row">
<form class="col s12" method="POST">
<div class="input-field col s12">
<i class="material-icons prefix">email</i> <input
id="icon_prefix" type="text" name="emaillog" class="validate">
<label for="icon_prefix">Email</label>
</div>
<div class="input-field col s12 meh">
<i class="material-icons prefix">lock</i> <input
id="icon_prefix" type="password" name="passworddb"
class="validate"> <label for="icon_prefix">Password</label>
</div>
<?php require 'includes/loginconfirmation.php';?>
<div class="center-align">
<button type="submit" name="login"
class="btn button-rounded waves-effect waves-light ">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require 'includes/footer.php'; ?>