@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | WHERE |
36 | 36 | fk_type IN (1,2) |
37 | 37 | AND YEAR(NOW())-1 <= YEAR(llx_bbc_vols.date) |
38 | - AND llx_bbc_vols.fk_pilot = '.$pilot.' |
|
38 | + AND llx_bbc_vols.fk_pilot = '.$pilot . ' |
|
39 | 39 | |
40 | 40 | GROUP BY |
41 | 41 | llx_bbc_vols.lieuD |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | $places = []; |
59 | 59 | |
60 | - for($i = 0; $i < $num ; $i++) { |
|
60 | + for ($i = 0; $i < $num; $i++) { |
|
61 | 61 | $properties = $this->db->fetch_array($resql); |
62 | 62 | $stat = new TakeOffPlace($properties['place']); |
63 | 63 | $places[] = $stat; |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | ->setDate(new DateTimeImmutable($_POST['flight_date'])) |
44 | 44 | ->setLieuD($_POST['lieuD']) |
45 | 45 | ->setLieuA($_POST['lieuA']) |
46 | - ->setHeureD(new DateTimeImmutable($_POST['flight_date'].' '.$_POST['heureD'])) |
|
47 | - ->setHeureA(new DateTimeImmutable($_POST['flight_date'].' '.$_POST['heureA'])) |
|
46 | + ->setHeureD(new DateTimeImmutable($_POST['flight_date'] . ' ' . $_POST['heureD'])) |
|
47 | + ->setHeureA(new DateTimeImmutable($_POST['flight_date'] . ' ' . $_POST['heureA'])) |
|
48 | 48 | ->setBBCBallonsIdBBCBallons($_POST['ballon']) |
49 | 49 | ->setNbrPax($_POST['nbrPax']) |
50 | 50 | ->setRemarque($_POST['comm']) |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | $msg = '<div class="ok">L\'ajout du vol du : ' . $_POST["reday"] . '/' . $_POST["remonth"] . '/' . $_POST["reyear"] . ' s\'est correctement effectue ! </div>'; |
70 | 70 | Header("Location: card.php?id=" . $vol->id); |
71 | - }catch (\Exception $e){ |
|
72 | - $msg = '<div class="error">Erreur lors de l\'ajout du vol : ' . ($vol->error?:$e->getMessage()) . '! </div>'; |
|
71 | + } catch (\Exception $e) { |
|
72 | + $msg = '<div class="error">Erreur lors de l\'ajout du vol : ' . ($vol->error ?: $e->getMessage()) . '! </div>'; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | <section class="bbc-style"> |
101 | 101 | |
102 | - <?php if(!empty($takeOffPlaces)): ?> |
|
102 | + <?php if (!empty($takeOffPlaces)): ?> |
|
103 | 103 | <datalist id="take_off_places_id"> |
104 | 104 | <?php foreach ($takeOffPlaces as $takeOffPlace): ?> |
105 | 105 | <option value="<?php echo $takeOffPlace->getPlace(); ?>"></option> |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | </div> |
117 | 117 | <form class="flight-form js-form" name='add' action="addFlight.php" method="post"> |
118 | 118 | <input type="hidden" name="action" value="add"/> |
119 | - <input type="hidden" name="token" value="<?php echo newToken();?>"/> |
|
119 | + <input type="hidden" name="token" value="<?php echo newToken(); ?>"/> |
|
120 | 120 | |
121 | 121 | <!-- Date et heures --> |
122 | 122 | <section class="form-section"> |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | <div > |
178 | 178 | <div class="form-group"> |
179 | 179 | <label class="fieldrequired"> Pilote</label> |
180 | - <?php print $html->select_dolusers($_POST["pilot"] ? $_POST["pilot"] : $user->id, 'pilot', 0, null, 0, '', '', 0,0,0,'',0,'','', true); ?> |
|
180 | + <?php print $html->select_dolusers($_POST["pilot"] ? $_POST["pilot"] : $user->id, 'pilot', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', true); ?> |
|
181 | 181 | </div> |
182 | 182 | |
183 | 183 | <div class="form-group "> |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | </label> |
188 | 188 | <?php |
189 | 189 | //organisateur |
190 | - print $html->select_dolusers($_POST["orga"] ? $_POST["orga"] : $user->id, 'orga', 0, null, 0, '', '', 0,0,0,'',0,'','', true); |
|
190 | + print $html->select_dolusers($_POST["orga"] ? $_POST["orga"] : $user->id, 'orga', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', true); |
|
191 | 191 | ?> |
192 | 192 | </div> |
193 | 193 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | min="0" |
244 | 244 | max="5" |
245 | 245 | class="flat <?php echo $validator->hasError('nbrPax') ? 'error' : '' ?>" |
246 | - value="<?php echo $_POST['nbrPax']?: 0 ?>"/> |
|
246 | + value="<?php echo $_POST['nbrPax'] ?: 0 ?>"/> |
|
247 | 247 | </div> |
248 | 248 | |
249 | 249 | <!-- passenger names --> |
@@ -280,16 +280,16 @@ discard block |
||
280 | 280 | </tr> |
281 | 281 | |
282 | 282 | <tr> |
283 | - <td class="js-receiver" data-user-id="<?php echo $user->id;?>"> |
|
283 | + <td class="js-receiver" data-user-id="<?php echo $user->id; ?>"> |
|
284 | 284 | <label class=""><?php echo $langs->trans('Membre ayant perçu l\'argent')?>?</label> |
285 | 285 | <?php print $html->select_dolusers( |
286 | 286 | $_POST["fk_receiver"] ? $_POST["fk_receiver"] : -1, |
287 | - 'fk_receiver', true, null, 0, '', '', 0,0,0,'',0,'','', true); ?> |
|
287 | + 'fk_receiver', true, null, 0, '', '', 0, 0, 0, '', 0, '', '', true); ?> |
|
288 | 288 | </td> |
289 | 289 | <td> |
290 | 290 | <label> </label> |
291 | 291 | <div class="input-group"> |
292 | - <input type="number" name="cost" step="1" min="0" class="flat js-cost" disabled value="<?php echo $_POST['cost']?:0 ?>"/> |
|
292 | + <input type="number" name="cost" step="1" min="0" class="flat js-cost" disabled value="<?php echo $_POST['cost'] ?: 0 ?>"/> |
|
293 | 293 | <span class="input-symbol">€</span> |
294 | 294 | </div> |
295 | 295 | </td> |
@@ -300,8 +300,8 @@ discard block |
||
300 | 300 | <th>B. Commande(s)</th> |
301 | 301 | <th>Nombre de passagers.</th> |
302 | 302 | </tr> |
303 | - <?php if(is_array($_POST['order_passengers_count']) && !empty($_POST['order_passengers_count'])): ?> |
|
304 | - <?php foreach($_POST['order_passengers_count'] as $order => $orderQuantity): ?> |
|
303 | + <?php if (is_array($_POST['order_passengers_count']) && !empty($_POST['order_passengers_count'])): ?> |
|
304 | + <?php foreach ($_POST['order_passengers_count'] as $order => $orderQuantity): ?> |
|
305 | 305 | <tr class="order-row"> |
306 | 306 | <td> |
307 | 307 | <span class="fa fa-trash remove js-remove" data-order-id="<?php echo $order; ?>"></span> |