@@ -46,8 +46,10 @@ discard block |
||
46 | 46 | $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".date("Y-m-d",strtotime($_GET['end_date']))." 00:00:00"; |
47 | 47 | $sql_date = $end_date; |
48 | 48 | } |
49 | - } else $sql_date = ''; |
|
50 | -} |
|
49 | + } else { |
|
50 | + $sql_date = ''; |
|
51 | + } |
|
52 | + } |
|
51 | 53 | |
52 | 54 | if (isset($_GET['highest_altitude'])) { |
53 | 55 | //for altitude manipulation |
@@ -61,8 +63,12 @@ discard block |
||
61 | 63 | } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){ |
62 | 64 | $start_altitude = filter_input(INPUT_GET,'lowest_altitude',FILTER_SANITIZE_NUMBER_INT).",60000"; |
63 | 65 | $sql_altitude = $start_altitude; |
64 | - } else $sql_altitude = ''; |
|
65 | -} else $sql_altitude = ''; |
|
66 | + } else { |
|
67 | + $sql_altitude = ''; |
|
68 | + } |
|
69 | + } else { |
|
70 | + $sql_altitude = ''; |
|
71 | +} |
|
66 | 72 | |
67 | 73 | //calculuation for the pagination |
68 | 74 | if(!isset($_GET['limit'])) |
@@ -80,7 +86,7 @@ discard block |
||
80 | 86 | $limit_end = filter_input(INPUT_GET,'number_results',FILTER_SANITIZE_NUMBER_INT); |
81 | 87 | $absolute_difference = filter_input(INPUT_GET,'number_results',FILTER_SANITIZE_NUMBER_INT); |
82 | 88 | } |
83 | -} else { |
|
89 | +} else { |
|
84 | 90 | $limit_explode = explode(",", $_GET['limit']); |
85 | 91 | $limit_start = filter_var($limit_explode[0],FILTER_SANITIZE_NUMBER_INT); |
86 | 92 | $limit_end = filter_var($limit_explode[1],FILTER_SANITIZE_NUMBER_INT); |
@@ -146,10 +152,15 @@ discard block |
||
146 | 152 | $dist = filter_input(INPUT_GET,'dist',FILTER_SANITIZE_NUMBER_INT); |
147 | 153 | $number_results = filter_input(INPUT_GET,'number_results',FILTER_SANITIZE_NUMBER_INT); |
148 | 154 | if ($dist != '') { |
149 | - if (isset($globalDistanceUnit) && $globalDistanceUnit == 'mi') $dist = $dist*1.60934; |
|
150 | - elseif (isset($globalDistanceUnit) && $globalDistanceUnit == 'nm') $dist = $dist*1.852; |
|
155 | + if (isset($globalDistanceUnit) && $globalDistanceUnit == 'mi') { |
|
156 | + $dist = $dist*1.60934; |
|
157 | + } elseif (isset($globalDistanceUnit) && $globalDistanceUnit == 'nm') { |
|
158 | + $dist = $dist*1.852; |
|
159 | + } |
|
160 | + } |
|
161 | + if (!isset($sql_date)) { |
|
162 | + $sql_date = ''; |
|
151 | 163 | } |
152 | - if (!isset($sql_date)) $sql_date = ''; |
|
153 | 164 | if ($archive == 1) { |
154 | 165 | if ($type == 'aircraft') { |
155 | 166 | $SpotterArchive = new SpotterArchive(); |
@@ -227,7 +238,10 @@ discard block |
||
227 | 238 | if (isset($_GET['aircraft']) && $_GET['aircraft'] != ""){ print _("Aircraft:").' <span>'.$aircraft.'</span> '; } |
228 | 239 | if (isset($_GET['manufacturer']) && $_GET['manufacturer'] != ""){ print _("Manufacturer:").' <span>'.$manufacturer.'</span> '; } |
229 | 240 | if (isset($_GET['registration']) && $_GET['registration'] != ""){ print _("Registration:").' <span>'.$registration.'</span> '; } |
230 | - if (isset($_GET['highlights'])) if ($_GET['highlights'] == "true"){ print _("Highlights:").' <span>'.$highlights.'</span> '; } |
|
241 | + if (isset($_GET['highlights'])) { |
|
242 | + if ($_GET['highlights'] == "true"){ print _("Highlights:").' <span>'.$highlights.'</span> '; |
|
243 | + } |
|
244 | + } |
|
231 | 245 | if (isset($_GET['airline']) && $_GET['airline'] != ""){ print _("Airline:").' <span>'.$airline.'</span> '; } |
232 | 246 | if (isset($_GET['airline_country']) && $_GET['airline_country'] != ""){ print _("Airline country:").' <span>'.$airline_country.'</span> '; } |
233 | 247 | if (isset($_GET['airline_type']) && $_GET['airline_type'] != ""){ print _("Airline type:").' <span>'.$airline_type.'</span> '; } |
@@ -371,7 +385,10 @@ discard block |
||
371 | 385 | <div class="form-group"> |
372 | 386 | <label class="control-label col-sm-2"><?php echo _("Keywords"); ?></label> |
373 | 387 | <div class="col-sm-10"> |
374 | - <input type="text" class="form-control" id="q" name="q" value="<?php if (isset($_GET['q'])) print $q; ?>" size="10" placeholder="<?php echo _("Keywords"); ?>" /> |
|
388 | + <input type="text" class="form-control" id="q" name="q" value="<?php if (isset($_GET['q'])) { |
|
389 | + print $q; |
|
390 | +} |
|
391 | +?>" size="10" placeholder="<?php echo _("Keywords"); ?>" /> |
|
375 | 392 | </div> |
376 | 393 | </div> |
377 | 394 | </fieldset> |
@@ -390,7 +407,10 @@ discard block |
||
390 | 407 | </select> |
391 | 408 | </div> |
392 | 409 | </div> |
393 | - <script type="text/javascript">getSelect('manufacturer','<?php if(isset($_GET['manufacturer'])) print $manufacturer; ?>')</script> |
|
410 | + <script type="text/javascript">getSelect('manufacturer','<?php if(isset($_GET['manufacturer'])) { |
|
411 | + print $manufacturer; |
|
412 | +} |
|
413 | +?>')</script> |
|
394 | 414 | <div class="form-group"> |
395 | 415 | <label class="control-label col-sm-2"><?php echo _("Type"); ?></label> |
396 | 416 | <div class="col-sm-10"> |
@@ -399,11 +419,17 @@ discard block |
||
399 | 419 | </select> |
400 | 420 | </div> |
401 | 421 | </div> |
402 | - <script type="text/javascript">getSelect('aircrafttypes','<?php if(isset($_GET['aircraft_icao'])) print $aircraft_icao; ?>');</script> |
|
422 | + <script type="text/javascript">getSelect('aircrafttypes','<?php if(isset($_GET['aircraft_icao'])) { |
|
423 | + print $aircraft_icao; |
|
424 | +} |
|
425 | +?>');</script> |
|
403 | 426 | <div class="form-group"> |
404 | 427 | <label class="control-label col-sm-2"><?php echo _("Registration"); ?></label> |
405 | 428 | <div class="col-sm-10"> |
406 | - <input type="text" class="form-control" name="registration" value="<?php if (isset($_GET['registration'])) print $registration; ?>" size="8" placeholder="<?php echo _("Registration"); ?>" /> |
|
429 | + <input type="text" class="form-control" name="registration" value="<?php if (isset($_GET['registration'])) { |
|
430 | + print $registration; |
|
431 | +} |
|
432 | +?>" size="8" placeholder="<?php echo _("Registration"); ?>" /> |
|
407 | 433 | </div> |
408 | 434 | </div> |
409 | 435 | <?php |
@@ -412,22 +438,31 @@ discard block |
||
412 | 438 | <div class="form-group"> |
413 | 439 | <label class="control-label col-sm-2"><?php echo _("Pilot id"); ?></label> |
414 | 440 | <div class="col-sm-10"> |
415 | - <input type="text" class="form-control" name="pilot_id" value="<?php if (isset($_GET['pilot_id'])) print $pilot_id; ?>" size="15" placeholder="<?php echo _("Pilot id"); ?>" /> |
|
441 | + <input type="text" class="form-control" name="pilot_id" value="<?php if (isset($_GET['pilot_id'])) { |
|
442 | + print $pilot_id; |
|
443 | +} |
|
444 | +?>" size="15" placeholder="<?php echo _("Pilot id"); ?>" /> |
|
416 | 445 | </div> |
417 | 446 | </div> |
418 | 447 | <div class="form-group"> |
419 | 448 | <label class="control-label col-sm-2"><?php echo _("Pilot name"); ?></label> |
420 | 449 | <div class="col-sm-10"> |
421 | - <input type="text" class="form-control" name="pilot_name" value="<?php if (isset($_GET['pilot_name'])) print $pilot_name; ?>" size="15" placeholder="<?php echo _("Pilot name"); ?>" /> |
|
450 | + <input type="text" class="form-control" name="pilot_name" value="<?php if (isset($_GET['pilot_name'])) { |
|
451 | + print $pilot_name; |
|
452 | +} |
|
453 | +?>" size="15" placeholder="<?php echo _("Pilot name"); ?>" /> |
|
422 | 454 | </div> |
423 | 455 | </div> |
424 | 456 | <?php |
425 | - }else { |
|
457 | + } else { |
|
426 | 458 | ?> |
427 | 459 | <div class="form-group"> |
428 | 460 | <label class="control-label col-sm-2"><?php echo _("Owner name"); ?></label> |
429 | 461 | <div class="col-sm-10"> |
430 | - <input type="text" class="form-control" name="owner" value="<?php if (isset($_GET['owner'])) print $owner; ?>" size="15" placeholder="<?php echo _("Owner name"); ?>" /> |
|
462 | + <input type="text" class="form-control" name="owner" value="<?php if (isset($_GET['owner'])) { |
|
463 | + print $owner; |
|
464 | +} |
|
465 | +?>" size="15" placeholder="<?php echo _("Owner name"); ?>" /> |
|
431 | 466 | </div> |
432 | 467 | </div> |
433 | 468 | <?php |
@@ -435,8 +470,14 @@ discard block |
||
435 | 470 | ?> |
436 | 471 | <div class="form-group"> |
437 | 472 | <div class="col-sm-offset-2 col-sm-10"> |
438 | - <!--<div><input type="checkbox" class="form-control" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) if ($_GET['highlights'] == "true"){ print 'checked="checked"'; } ?>> <label for="highlights"><?php echo _("Include only aircraft with special highlights (unique liveries, destinations etc.)"); ?></label></div>--> |
|
439 | - <label class="checkbox-inline"><input type="checkbox" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) if ($_GET['highlights'] == "true"){ print 'checked="checked"'; } ?>> <?php echo _("Include only aircraft with special highlights (unique liveries, destinations etc.)"); ?></label> |
|
473 | + <!--<div><input type="checkbox" class="form-control" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) { |
|
474 | + if ($_GET['highlights'] == "true"){ print 'checked="checked"'; |
|
475 | +} |
|
476 | +} ?>> <label for="highlights"><?php echo _("Include only aircraft with special highlights (unique liveries, destinations etc.)"); ?></label></div>--> |
|
477 | + <label class="checkbox-inline"><input type="checkbox" name="highlights" value="true" id="highlights" <?php if (isset($_GET['highlights'])) { |
|
478 | + if ($_GET['highlights'] == "true"){ print 'checked="checked"'; |
|
479 | +} |
|
480 | +} ?>> <?php echo _("Include only aircraft with special highlights (unique liveries, destinations etc.)"); ?></label> |
|
440 | 481 | </div> |
441 | 482 | </div> |
442 | 483 | </fieldset> |
@@ -450,7 +491,10 @@ discard block |
||
450 | 491 | </select> |
451 | 492 | </div> |
452 | 493 | </div> |
453 | - <script type="text/javascript">getSelect('airlinenames','<?php if(isset($_GET['airline'])) print $airline; ?>');</script> |
|
494 | + <script type="text/javascript">getSelect('airlinenames','<?php if(isset($_GET['airline'])) { |
|
495 | + print $airline; |
|
496 | +} |
|
497 | +?>');</script> |
|
454 | 498 | <div class="form-group"> |
455 | 499 | <label class="control-label col-sm-2"><?php echo _("Country"); ?></label> |
456 | 500 | <div class="col-sm-10"> |
@@ -459,19 +503,34 @@ discard block |
||
459 | 503 | </select> |
460 | 504 | </div> |
461 | 505 | </div> |
462 | - <script type="text/javascript">getSelect('airlinecountries','<?php if(isset($_GET['airline_country'])) print $airline_country; ?>');</script> |
|
506 | + <script type="text/javascript">getSelect('airlinecountries','<?php if(isset($_GET['airline_country'])) { |
|
507 | + print $airline_country; |
|
508 | +} |
|
509 | +?>');</script> |
|
463 | 510 | <div class="form-group"> |
464 | 511 | <label class="control-label col-sm-2"><?php echo _("Callsign"); ?></label> |
465 | 512 | <div class="col-sm-10"> |
466 | - <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) print $callsign; ?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
513 | + <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) { |
|
514 | + print $callsign; |
|
515 | +} |
|
516 | +?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
467 | 517 | </div> |
468 | 518 | </div> |
469 | 519 | <div class="form-group"> |
470 | 520 | <div class="col-sm-offset-2 col-sm-10"> |
471 | 521 | <label class="radio-inline"><input type="radio" name="airline_type" value="all" id="airline_type_all" <?php if (!isset($_GET['airline_type']) || $_GET['airline_type'] == "all"){ print 'checked="checked"'; } ?>> <?php echo _("All airlines types"); ?></label> |
472 | - <label class="radio-inline"><input type="radio" name="airline_type" value="passenger" id="airline_type_passenger" <?php if (isset($_GET['airline_type'])) if ($_GET['airline_type'] == "passenger"){ print 'checked="checked"'; } ?>> <?php echo _("Only Passenger airlines"); ?></label> |
|
473 | - <label class="radio-inline"><input type="radio" name="airline_type" value="cargo" id="airline_type_cargo" <?php if (isset($_GET['airline_type'])) if ( $_GET['airline_type'] == "cargo"){ print 'checked="checked"'; } ?>> <?php echo _("Only Cargo airlines"); ?></label> |
|
474 | - <label class="radio-inline"><input type="radio" name="airline_type" value="military" id="airline_type_military" <?php if (isset($_GET['airline_type'])) if ( $_GET['airline_type'] == "military"){ print 'checked="checked"'; } ?>> <?php echo _("Only Military airlines"); ?></label> |
|
522 | + <label class="radio-inline"><input type="radio" name="airline_type" value="passenger" id="airline_type_passenger" <?php if (isset($_GET['airline_type'])) { |
|
523 | + if ($_GET['airline_type'] == "passenger"){ print 'checked="checked"'; |
|
524 | +} |
|
525 | +} ?>> <?php echo _("Only Passenger airlines"); ?></label> |
|
526 | + <label class="radio-inline"><input type="radio" name="airline_type" value="cargo" id="airline_type_cargo" <?php if (isset($_GET['airline_type'])) { |
|
527 | + if ( $_GET['airline_type'] == "cargo"){ print 'checked="checked"'; |
|
528 | +} |
|
529 | +} ?>> <?php echo _("Only Cargo airlines"); ?></label> |
|
530 | + <label class="radio-inline"><input type="radio" name="airline_type" value="military" id="airline_type_military" <?php if (isset($_GET['airline_type'])) { |
|
531 | + if ( $_GET['airline_type'] == "military"){ print 'checked="checked"'; |
|
532 | +} |
|
533 | +} ?>> <?php echo _("Only Military airlines"); ?></label> |
|
475 | 534 | </div> |
476 | 535 | </div> |
477 | 536 | </fieldset> |
@@ -485,7 +544,10 @@ discard block |
||
485 | 544 | </select> |
486 | 545 | </div> |
487 | 546 | </div> |
488 | - <script type="text/javascript">getSelect('airportnames','<?php if(isset($_GET['airport_icao'])) print $airport_icao; ?>');</script> |
|
547 | + <script type="text/javascript">getSelect('airportnames','<?php if(isset($_GET['airport_icao'])) { |
|
548 | + print $airport_icao; |
|
549 | +} |
|
550 | +?>');</script> |
|
489 | 551 | <div class="form-group"> |
490 | 552 | <label class="control-label col-sm-2"><?php echo _("Country"); ?></label> |
491 | 553 | <div class="col-sm-10"> |
@@ -494,7 +556,10 @@ discard block |
||
494 | 556 | </select> |
495 | 557 | </div> |
496 | 558 | </div> |
497 | - <script type="text/javascript">getSelect('airportcountries','<?php if(isset($_GET['airport_country'])) print $airport_country; ?>');</script> |
|
559 | + <script type="text/javascript">getSelect('airportcountries','<?php if(isset($_GET['airport_country'])) { |
|
560 | + print $airport_country; |
|
561 | +} |
|
562 | +?>');</script> |
|
498 | 563 | </fieldset> |
499 | 564 | <fieldset> |
500 | 565 | <legend><?php echo _("Route"); ?></legend> |
@@ -506,7 +571,10 @@ discard block |
||
506 | 571 | </select> |
507 | 572 | </div> |
508 | 573 | </div> |
509 | - <script type="text/javascript">getSelect('departureairportnames','<?php if(isset($_GET['departure_airport_route'])) print $departure_airport_route; ?>');</script> |
|
574 | + <script type="text/javascript">getSelect('departureairportnames','<?php if(isset($_GET['departure_airport_route'])) { |
|
575 | + print $departure_airport_route; |
|
576 | +} |
|
577 | +?>');</script> |
|
510 | 578 | <div class="form-group"> |
511 | 579 | <label class="control-label col-sm-2"><?php echo _("Arrival Airport"); ?></label> |
512 | 580 | <div class="col-sm-10"> |
@@ -515,7 +583,10 @@ discard block |
||
515 | 583 | </select> |
516 | 584 | </div> |
517 | 585 | </div> |
518 | - <script type="text/javascript">getSelect('arrivalairportnames','<?php if(isset($_GET['arrival_airport_route'])) print $arrival_airport_route; ?>');</script> |
|
586 | + <script type="text/javascript">getSelect('arrivalairportnames','<?php if(isset($_GET['arrival_airport_route'])) { |
|
587 | + print $arrival_airport_route; |
|
588 | +} |
|
589 | +?>');</script> |
|
519 | 590 | </fieldset> |
520 | 591 | <fieldset> |
521 | 592 | <legend><?php echo _("Altitude"); ?></legend> |
@@ -565,19 +636,33 @@ discard block |
||
565 | 636 | <div class="form-group"> |
566 | 637 | <label class="control-label col-sm-2"><?php echo _("Latitude"); ?></label> |
567 | 638 | <div class="col-sm-10"> |
568 | - <input type="text" name="origlat" class="form-control" placeholder="<?php echo _("Center point latitude"); ?>" value="<?php if (isset($_GET['origlat'])) print $origlat; ?>" /> |
|
639 | + <input type="text" name="origlat" class="form-control" placeholder="<?php echo _("Center point latitude"); ?>" value="<?php if (isset($_GET['origlat'])) { |
|
640 | + print $origlat; |
|
641 | +} |
|
642 | +?>" /> |
|
569 | 643 | </div> |
570 | 644 | </div> |
571 | 645 | <div class="form-group"> |
572 | 646 | <label class="control-label col-sm-2"><?php echo _("Longitude"); ?></label> |
573 | 647 | <div class="col-sm-10"> |
574 | - <input type="text" name="origlon" class="form-control" placeholder="<?php echo _("Center point longitude"); ?>" value="<?php if (isset($_GET['origlon'])) print $origlon; ?>" /> |
|
648 | + <input type="text" name="origlon" class="form-control" placeholder="<?php echo _("Center point longitude"); ?>" value="<?php if (isset($_GET['origlon'])) { |
|
649 | + print $origlon; |
|
650 | +} |
|
651 | +?>" /> |
|
575 | 652 | </div> |
576 | 653 | </div> |
577 | 654 | <div class="form-group"> |
578 | - <label class="control-label col-sm-2"><?php echo _("Distance").' ('; if (isset($globalDistanceUnit)) print $globalDistanceUnit; else print 'km'; print ')'; ?></label> |
|
655 | + <label class="control-label col-sm-2"><?php echo _("Distance").' ('; if (isset($globalDistanceUnit)) { |
|
656 | + print $globalDistanceUnit; |
|
657 | +} else { |
|
658 | + print 'km'; |
|
659 | +} |
|
660 | +print ')'; ?></label> |
|
579 | 661 | <div class="col-sm-10"> |
580 | - <input type="text" name="dist" class="form-control" placeholder="<?php echo _("Distance from center point"); ?>" value="<?php if (isset($_GET['distance'])) print $distance; ?>" /> |
|
662 | + <input type="text" name="dist" class="form-control" placeholder="<?php echo _("Distance from center point"); ?>" value="<?php if (isset($_GET['distance'])) { |
|
663 | + print $distance; |
|
664 | +} |
|
665 | +?>" /> |
|
581 | 666 | </div> |
582 | 667 | </div> |
583 | 668 | </fieldset> |
@@ -588,7 +673,10 @@ discard block |
||
588 | 673 | <div class="form-group"> |
589 | 674 | <label class="control-label col-sm-2"><?php echo _("Callsign"); ?></label> |
590 | 675 | <div class="col-sm-10"> |
591 | - <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) print $callsign; ?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
676 | + <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) { |
|
677 | + print $callsign; |
|
678 | +} |
|
679 | +?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
592 | 680 | </div> |
593 | 681 | </div> |
594 | 682 | </fieldset> |
@@ -599,7 +687,10 @@ discard block |
||
599 | 687 | <div class="form-group"> |
600 | 688 | <label class="control-label col-sm-2"><?php echo _("Callsign"); ?></label> |
601 | 689 | <div class="col-sm-10"> |
602 | - <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) print $callsign; ?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
690 | + <input type="text" name="callsign" class="form-control" value="<?php if (isset($_GET['callsign'])) { |
|
691 | + print $callsign; |
|
692 | +} |
|
693 | +?>" size="8" placeholder="<?php echo _("Callsign"); ?>" /> |
|
603 | 694 | </div> |
604 | 695 | </div> |
605 | 696 | </fieldset> |
@@ -610,7 +701,10 @@ discard block |
||
610 | 701 | <div class="form-group"> |
611 | 702 | <label class="control-label col-sm-2"><?php echo _("Captain id"); ?></label> |
612 | 703 | <div class="col-sm-10"> |
613 | - <input type="text" name="captain_id" class="form-control" value="<?php if (isset($_GET['captain_id'])) print $captain_id; ?>" size="8" placeholder="<?php echo _("Captain id"); ?>" /> |
|
704 | + <input type="text" name="captain_id" class="form-control" value="<?php if (isset($_GET['captain_id'])) { |
|
705 | + print $captain_id; |
|
706 | +} |
|
707 | +?>" size="8" placeholder="<?php echo _("Captain id"); ?>" /> |
|
614 | 708 | </div> |
615 | 709 | </div> |
616 | 710 | </fieldset> |
@@ -618,7 +712,10 @@ discard block |
||
618 | 712 | <div class="form-group"> |
619 | 713 | <label class="control-label col-sm-2"><?php echo _("Captain name"); ?></label> |
620 | 714 | <div class="col-sm-10"> |
621 | - <input type="text" name="captain_name" class="form-control" value="<?php if (isset($_GET['captain_name'])) print $captain_name; ?>" size="8" placeholder="<?php echo _("Captain name"); ?>" /> |
|
715 | + <input type="text" name="captain_name" class="form-control" value="<?php if (isset($_GET['captain_name'])) { |
|
716 | + print $captain_name; |
|
717 | +} |
|
718 | +?>" size="8" placeholder="<?php echo _("Captain name"); ?>" /> |
|
622 | 719 | </div> |
623 | 720 | </div> |
624 | 721 | </fieldset> |
@@ -626,7 +723,10 @@ discard block |
||
626 | 723 | <div class="form-group"> |
627 | 724 | <label class="control-label col-sm-2"><?php echo _("Race id"); ?></label> |
628 | 725 | <div class="col-sm-10"> |
629 | - <input type="text" name="race_id" class="form-control" value="<?php if (isset($_GET['race_id'])) print $race_id; ?>" size="8" placeholder="<?php echo _("Race id"); ?>" /> |
|
726 | + <input type="text" name="race_id" class="form-control" value="<?php if (isset($_GET['race_id'])) { |
|
727 | + print $race_id; |
|
728 | +} |
|
729 | +?>" size="8" placeholder="<?php echo _("Race id"); ?>" /> |
|
630 | 730 | </div> |
631 | 731 | </div> |
632 | 732 | </fieldset> |
@@ -634,7 +734,10 @@ discard block |
||
634 | 734 | <div class="form-group"> |
635 | 735 | <label class="control-label col-sm-2"><?php echo _("Race name"); ?></label> |
636 | 736 | <div class="col-sm-10"> |
637 | - <input type="text" name="race_name" class="form-control" value="<?php if (isset($_GET['race_name'])) print $race_name; ?>" size="8" placeholder="<?php echo _("Race name"); ?>" /> |
|
737 | + <input type="text" name="race_name" class="form-control" value="<?php if (isset($_GET['race_name'])) { |
|
738 | + print $race_name; |
|
739 | +} |
|
740 | +?>" size="8" placeholder="<?php echo _("Race name"); ?>" /> |
|
638 | 741 | </div> |
639 | 742 | </div> |
640 | 743 | </fieldset> |
@@ -645,7 +748,10 @@ discard block |
||
645 | 748 | <div class="form-group"> |
646 | 749 | <label class="control-label col-sm-2"><?php echo _("MMSI"); ?></label> |
647 | 750 | <div class="col-sm-10"> |
648 | - <input type="text" name="mmsi" class="form-control" value="<?php if (isset($_GET['mmsi'])) print $mmsi; ?>" size="8" placeholder="<?php echo _("MMSI"); ?>" /> |
|
751 | + <input type="text" name="mmsi" class="form-control" value="<?php if (isset($_GET['mmsi'])) { |
|
752 | + print $mmsi; |
|
753 | +} |
|
754 | +?>" size="8" placeholder="<?php echo _("MMSI"); ?>" /> |
|
649 | 755 | </div> |
650 | 756 | </div> |
651 | 757 | </fieldset> |
@@ -653,7 +759,10 @@ discard block |
||
653 | 759 | <div class="form-group"> |
654 | 760 | <label class="control-label col-sm-2"><?php echo _("IMO"); ?></label> |
655 | 761 | <div class="col-sm-10"> |
656 | - <input type="text" name="imo" class="form-control" value="<?php if (isset($_GET['imo'])) print $imo; ?>" size="8" placeholder="<?php echo _("IMO"); ?>" /> |
|
762 | + <input type="text" name="imo" class="form-control" value="<?php if (isset($_GET['imo'])) { |
|
763 | + print $imo; |
|
764 | +} |
|
765 | +?>" size="8" placeholder="<?php echo _("IMO"); ?>" /> |
|
657 | 766 | </div> |
658 | 767 | </div> |
659 | 768 | </fieldset> |
@@ -667,7 +776,10 @@ discard block |
||
667 | 776 | <label class="control-label col-sm-2"><?php echo _("Start Date"); ?></label> |
668 | 777 | <div class="col-sm-10"> |
669 | 778 | <div class='input-group date' id='datetimepicker1'> |
670 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_GET['start_date']) && $_GET['start_date'] != '') print $start_date; ?>" placeholder="<?php echo _("Start Date/Time"); ?>" /> |
|
779 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_GET['start_date']) && $_GET['start_date'] != '') { |
|
780 | + print $start_date; |
|
781 | +} |
|
782 | +?>" placeholder="<?php echo _("Start Date/Time"); ?>" /> |
|
671 | 783 | <span class="input-group-addon"> |
672 | 784 | <span class="glyphicon glyphicon-calendar"></span> |
673 | 785 | </span> |
@@ -678,7 +790,10 @@ discard block |
||
678 | 790 | <label class="control-label col-sm-2"><?php echo _("End Date"); ?></label> |
679 | 791 | <div class="col-sm-10"> |
680 | 792 | <div class='input-group date' id='datetimepicker2'> |
681 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_GET['end_date']) && $_GET['end_date'] != '') print $end_date; ?>" placeholder="<?php echo _("End Date/Time"); ?>" /> |
|
793 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_GET['end_date']) && $_GET['end_date'] != '') { |
|
794 | + print $end_date; |
|
795 | +} |
|
796 | +?>" placeholder="<?php echo _("End Date/Time"); ?>" /> |
|
682 | 797 | <span class="input-group-addon"> |
683 | 798 | <span class="glyphicon glyphicon-calendar"></span> |
684 | 799 | </span> |