-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd.php
246 lines (244 loc) · 20 KB
/
add.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
<?php include('includes/header.php');?>
<?php
if(!isset($_SESSION['user_id'])){
header("location:login.php");
}
?>
<div class="container">
<div id="result"></div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<form method="post" id="addTrip">
<h3 class="text-info">Ajouter un trajet</h3>
<hr>
<!--<div class="row">
<div class="col-md-10 col-md-offset-1">
<div id="map">
</div>
</div>
</div>
<hr> -->
<div class="form-group">
<label for="from">Départ:</label>
<select class="form-control" name="from" id="from" required>
<option value="" disabled selected>--- Ville du départ ---</option>
<option value="Agadir">Agadir</option>
<option value="Agdez">Agdez</option>
<option value="Ahfir">Ahfir</option>
<option value="Ain Dfali">Ain Dfali</option>
<option value="Ait Melloul">Ait Melloul</option>
<option value="Al Hoceima">Al Hoceima</option>
<option value="Azrou">Azrou</option>
<option value="Bejaad">Bejaad</option>
<option value="Beni Ensar">Beni Ensar</option>
<option value="Beni Mathar">Beni Mathar</option>
<option value="Beni Mellal">Beni Mellal</option>
<option value="Fkih Ben Salah">Fkih Ben Salah</option>
<option value="Berkane">Berkane</option>
<option value="Bouarfa">Bouarfa</option>
<option value="Boujdour">Boujdour</option>
<option value="Boumalne">Boumalne</option>
<option value="Casablanca">Casablanca</option>
<option value="Chefchaouen">Chefchaouen</option>
<option value="Dakhla">Dakhla</option>
<option value="Dardara">Dardara</option>
<option value="Driouch">Driouch</option>
<option value="El hajeb">El Hajeb</option>
<option value="Eljadida">Eljadida</option>
<option value="Errachidia">Errachidia</option>
<option value="Essaouira">Essaouira</option>
<option value="Fes">Fes</option>
<option value="Figuig">Figuig</option>
<option value="Fnidek">Fnidek</option>
<option value="Goulmima">Goulmima</option>
<option value="Guelmim">Guelmim</option>
<option value="Ifrane">Ifrane</option>
<option value="Imzouren">Imzouren</option>
<option value="Inzegane">Inzegane</option>
<option value="Jbel Al-Aroui">Jbel Al-Aroui</option>
<option value="Jorf el malha">Jorf El Malha</option>
<option value="Kasbat Tadla">Kasbat Tadla</option>
<option value="Kassita">Kassita</option>
<option value="Kelaa Magouna">Kelaat Magouna</option>
<option value="Kelaa Sraghna">Kelaa Sraghna</option>
<option value="Khemisset">Khemisset</option>
<option value="Khenifra">Khenifra</option>
<option value="Khouribga">Khouribga</option>
<option value="Ksar El Kébir">Ksar El Kébir</option>
<option value="Ktama Issaguen">Ktama Issaguen</option>
<option value="Laayoune">Laayoune</option>
<option value="Larache">Larache</option>
<option value="Marrakech">Marrakech</option>
<option value="Mechra Bel Ksiri">Mechra Bel Ksiri</option>
<option value="Meknes">Meknes</option>
<option value="Midar">Midar</option>
<option value="Midelt">Midelt</option>
<option value="Mirleft">Mirleft</option>
<option value="Mrirt">Mrirt</option>
<option value="Nador">Nador</option>
<option value="Oualidia">Oualidia</option>
<option value="Ouarzazate">Ouarzazate</option>
<option value="Ouazzane">Ouazzane</option>
<option value="Oued Zem">Oued Zem</option>
<option value="Oujda">Oujda</option>
<option value="Ouled Teima">Ouled Teima</option>
<option value="Rabat">Rabat</option>
<option value="Rich">Rich</option>
<option value="Rissani">Rissani</option>
<option value="Safi">Safi</option>
<option value="Saidia">Saidia</option>
<option value="Sidi Allal Tazi">Sidi Allal Tazi</option>
<option value="Sidi Bennour">Sidi Bennour</option>
<option value="Sidi Ifni">Sidi Ifni</option>
<option value="Sidi Kacem">Sidi Kacem</option>
<option value="Smara">Smara</option>
<option value="Souk Larbaa">Souk Larbaa</option>
<option value="Tafraout">Tafraout</option>
<option value="Taliouine">Taliouine</option>
<option value="Tamegroute">Tamegroute</option>
<option value="Tamelelt">Tamelelt</option>
<option value="Tan Tan">Tan Tan</option>
<option value="Tanger">Tanger</option>
<option value="Taounate">Taounate</option>
<option value="Targuist">Targuist</option>
<option value="Taroudant">Taroudant</option>
<option value="Taza">Taza</option>
<option value="Tata">Tata</option>
<option value="Tetouan">Tetouan</option>
<option value="Tiflet">Tiflet</option>
<option value="Tighssaline">Tighssaline</option>
<option value="Tinghir">Tinghir</option>
<option value="Tinjdad">Tinjdad</option>
<option value="Tinzouline">Tinzouline</option>
<option value="Tiznit">Tiznit</option>
<option value="Zagora">Zagora</option>
<option value="Zaouit Echeikh">Zaouit Echeikh</option>
</select>
</div>
<div class="form-group">
<label for="to" class="">Destination:</label>
<select class="form-control" name="to" id="to" required>
<option value="" disabled selected>--- Ville d'arrivée ---</option>
<option value="Agadir">Agadir</option>
<option value="Agdez">Agdez</option>
<option value="Ahfir">Ahfir</option>
<option value="Ain Dfali">Ain Dfali</option>
<option value="Ait Melloul">Ait Melloul</option>
<option value="Al Hoceima">Al Hoceima</option>
<option value="Azrou">Azrou</option>
<option value="Bejaad">Bejaad</option>
<option value="Beni Ensar">Beni Ensar</option>
<option value="Beni Mathar">Beni Mathar</option>
<option value="Beni Mellal">Beni Mellal</option>
<option value="Fkih Ben Salah">Fkih Ben Salah</option>
<option value="Berkane">Berkane</option>
<option value="Bouarfa">Bouarfa</option>
<option value="Boujdour">Boujdour</option>
<option value="Boumalne">Boumalne</option>
<option value="Casablanca">Casablanca</option>
<option value="Chefchaouen">Chefchaouen</option>
<option value="Dakhla">Dakhla</option>
<option value="Dardara">Dardara</option>
<option value="Driouch">Driouch</option>
<option value="El hajeb">El Hajeb</option>
<option value="Eljadida">Eljadida</option>
<option value="Errachidia">Errachidia</option>
<option value="Essaouira">Essaouira</option>
<option value="Fes">Fes</option>
<option value="Figuig">Figuig</option>
<option value="Fnidek">Fnidek</option>
<option value="Goulmima">Goulmima</option>
<option value="Guelmim">Guelmim</option>
<option value="Ifrane">Ifrane</option>
<option value="Imzouren">Imzouren</option>
<option value="Inzegane">Inzegane</option>
<option value="Jbel Al-Aroui">Jbel Al-Aroui</option>
<option value="Jorf el malha">Jorf El Malha</option>
<option value="Kasbat Tadla">Kasbat Tadla</option>
<option value="Kassita">Kassita</option>
<option value="Kelaa Magouna">Kelaat Magouna</option>
<option value="Kelaa Sraghna">Kelaa Sraghna</option>
<option value="Khemisset">Khemisset</option>
<option value="Khenifra">Khenifra</option>
<option value="Khouribga">Khouribga</option>
<option value="Ksar El Kébir">Ksar El Kébir</option>
<option value="Ktama Issaguen">Ktama Issaguen</option>
<option value="Laayoune">Laayoune</option>
<option value="Larache">Larache</option>
<option value="Marrakech">Marrakech</option>
<option value="Mechra Bel Ksiri">Mechra Bel Ksiri</option>
<option value="Meknes">Meknes</option>
<option value="Midar">Midar</option>
<option value="Midelt">Midelt</option>
<option value="Mirleft">Mirleft</option>
<option value="Mrirt">Mrirt</option>
<option value="Nador">Nador</option>
<option value="Oualidia">Oualidia</option>
<option value="Ouarzazate">Ouarzazate</option>
<option value="Ouazzane">Ouazzane</option>
<option value="Oued Zem">Oued Zem</option>
<option value="Oujda">Oujda</option>
<option value="Ouled Teima">Ouled Teima</option>
<option value="Rabat">Rabat</option>
<option value="Rich">Rich</option>
<option value="Rissani">Rissani</option>
<option value="Safi">Safi</option>
<option value="Saidia">Saidia</option>
<option value="Sidi Allal Tazi">Sidi Allal Tazi</option>
<option value="Sidi Bennour">Sidi Bennour</option>
<option value="Sidi Ifni">Sidi Ifni</option>
<option value="Sidi Kacem">Sidi Kacem</option>
<option value="Smara">Smara</option>
<option value="Souk Larbaa">Souk Larbaa</option>
<option value="Tafraout">Tafraout</option>
<option value="Taliouine">Taliouine</option>
<option value="Tamegroute">Tamegroute</option>
<option value="Tamelelt">Tamelelt</option>
<option value="Tan Tan">Tan Tan</option>
<option value="Tanger">Tanger</option>
<option value="Taounate">Taounate</option>
<option value="Targuist">Targuist</option>
<option value="Taroudant">Taroudant</option>
<option value="Taza">Taza</option>
<option value="Tata">Tata</option>
<option value="Tetouan">Tetouan</option>
<option value="Tiflet">Tiflet</option>
<option value="Tighssaline">Tighssaline</option>
<option value="Tinghir">Tinghir</option>
<option value="Tinjdad">Tinjdad</option>
<option value="Tinzouline">Tinzouline</option>
<option value="Tiznit">Tiznit</option>
<option value="Zagora">Zagora</option>
<option value="Zaouit Echeikh">Zaouit Echeikh</option>
</select>
</div>
<div class="form-group">
<label for="price" class="">Prix par passager:</label>
<input class="form-control" type="number" name="price" id="price" placeholder="Prix" maxlength="30" required>
</div>
<div class="form-group">
<label for="places" class="">Nombre de place:</label>
<input class="form-control" type="number" name="places" id="places" placeholder="Places" maxlength="50" required>
</div>
<div align="center"><img src="photos/ajax-loader.gif" id="loader"/></div>
<div class="form-group">
<label for="dateD" class="">Date de départ:</label>
<input class="form-control" type="date" name="dateD" id="dateD" placeholder="Date" maxlength="30" required></div>
<div class="form-group">
<label for="time" class="">Heure:</label>
<input class="form-control" type="time" name="time" id="time" placeholder="Heure" maxlength="30" required>
</div>
<div class="form-group">
<label for="desc">Plus d'infos: </label>
<textarea name="desc" class="form-control" rows="5" maxlength="300"></textarea>
</div>
<div class="form-group">
<input class="btn btn-success" name="signup" type="submit" value="Valider">
</div>
</form>
</div>
</div>
</div>
</div>
<?php include('includes/footer.php');?>