-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
207 lines (199 loc) · 9.08 KB
/
main.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
<?php include("server.php");?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="theme.css" type="text/css">
</head>
<body>
<div class="pt-5 text-white bg-primary">
<div class="container">
<div class="row">
<div class="col-md-6 text-md-left text-center align-self-center my-5">
<h1 class="display-1">HelpMe</h1>
<p class="lead">A background with color. One is enough.</p>
</div>
<div class="col-md-6">
<img class="img-fluid d-block mx-auto" src="1395826613845.jpg">
</div>
</div>
</div>
</div>
<div class="py-5 bg-primary">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="card text-white p-5 bg-primary">
<div class="card-body">
<h1 class="mb-4">Login</h1>
<form method="post" action="main.php">
<?php include ("errors_login.php"); ?>
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" placeholder="Enter Username" name="username" required="">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" placeholder="Enter Password" name="password" required="">
</div>
<button type="submit" name= "login" class="btn btn-secondary">Login</button>
</form>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card text-white p-5 bg-primary">
<div class="card-body">
<h1 class="mb-4">Sign Up</h1>
<form action="main.php" method="post">
<?php include ("errors_register.php"); ?>
<div class="form-group">
<label>Email address</label>
<input type="email" class="form-control" placeholder="Enter email" name="email" required="">
</div>
<div class="form-group">
<label>Username</label>
<input type="text" class="form-control" placeholder="Enter Username" name="username" required="">
</div>
<div class="form-group" >
<label>Password</label>
<input type="password" class="form-control" placeholder="Enter Password" name="password_1" required="">
</div>
<div class="form-group" >
<label>Password - Again</label>
<input type="password" class="form-control" placeholder="Confirm Password" name="password_2" required="">
</div>
<div class="form-group" >
<label >Phone Number</label>
<input type="tel" class="form-control" placeholder="Phone Number" name="phone" required="">
</div>
<div class="form-group" >
<label >City</label>
<select name="city" required class="custom-control custom-select">
<option value="0">Select City</option>
<option value="1">Adana</option>
<option value="2">Adıyaman</option>
<option value="3">Afyonkarahisar</option>
<option value="4">Ağrı</option>
<option value="5">Amasya</option>
<option value="6">Ankara</option>
<option value="7">Antalya</option>
<option value="8">Artvin</option>
<option value="9">Aydın</option>
<option value="10">Balıkesir</option>
<option value="11">Bilecik</option>
<option value="12">Bingöl</option>
<option value="13">Bitlis</option>
<option value="14">Bolu</option>
<option value="15">Burdur</option>
<option value="16">Bursa</option>
<option value="17">Çanakkale</option>
<option value="18">Çankırı</option>
<option value="19">Çorum</option>
<option value="20">Denizli</option>
<option value="21">Diyarbakır</option>
<option value="22">Edirne</option>
<option value="23">Elazığ</option>
<option value="24">Erzincan</option>
<option value="25">Erzurum</option>
<option value="26">Eskişehir</option>
<option value="27">Gaziantep</option>
<option value="28">Giresun</option>
<option value="29">Gümüşhane</option>
<option value="30">Hakkâri</option>
<option value="31">Hatay</option>
<option value="32">Isparta</option>
<option value="33">Mersin</option>
<option value="34">İstanbul</option>
<option value="35">İzmir</option>
<option value="36">Kars</option>
<option value="37">Kastamonu</option>
<option value="38">Kayseri</option>
<option value="39">Kırklareli</option>
<option value="40">Kırşehir</option>
<option value="41">Kocaeli</option>
<option value="42">Konya</option>
<option value="43">Kütahya</option>
<option value="44">Malatya</option>
<option value="45">Manisa</option>
<option value="46">Kahramanmaraş</option>
<option value="47">Mardin</option>
<option value="48">Muğla</option>
<option value="49">Muş</option>
<option value="50">Nevşehir</option>
<option value="51">Niğde</option>
<option value="52">Ordu</option>
<option value="53">Rize</option>
<option value="54">Sakarya</option>
<option value="55">Samsun</option>
<option value="56">Siirt</option>
<option value="57">Sinop</option>
<option value="58">Sivas</option>
<option value="59">Tekirdağ</option>
<option value="60">Tokat</option>
<option value="61">Trabzon</option>
<option value="62">Tunceli</option>
<option value="63">Şanlıurfa</option>
<option value="64">Uşak</option>
<option value="65">Van</option>
<option value="66">Yozgat</option>
<option value="67">Zonguldak</option>
<option value="68">Aksaray</option>
<option value="69">Bayburt</option>
<option value="70">Karaman</option>
<option value="71">Kırıkkale</option>
<option value="72">Batman</option>
<option value="73">Şırnak</option>
<option value="74">Bartın</option>
<option value="75">Ardahan</option>
<option value="76">Iğdır</option>
<option value="77">Yalova</option>
<option value="78">Karabük</option>
<option value="79">Kilis</option>
<option value="80">Osmaniye</option>
<option value="81">Düzce</option>
</select>
</div>
<div>
<input type="hidden" name="signUpDate" id="todayDate"/>
<script type="text/javascript">
function getDate()
{
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm}
today = yyyy+""+mm+""+dd;
document.getElementById("todayDate").value = today;
}
//call getDate() when loading the page
getDate();
</script>
</div>
<div class="form-group">
<label>I am a...</label>
<div class="custom-control custom-radio">
<input type="radio" id="radio_costumer" name="customRadio" class="custom-control-input" required="required" value="1">
<label class="custom-control-label" for="radio_costumer">... costumer</label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="radio_professional" name="customRadio" class="custom-control-input" required="required" value="2">
<label class="custom-control-label" for="radio_professional">... professional</label>
</div>
</div>
<button type="submit" name="register" class="btn btn-secondary">SignUp</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>