@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | $date = filter_input(INPUT_POST,'date',FILTER_SANITIZE_STRING); |
3 | -if ($date == '') $date = date('Y-m-d'); |
|
3 | +if ($date == '') { |
|
4 | + $date = date('Y-m-d'); |
|
5 | +} |
|
4 | 6 | header('Location: '.$globalURL.'/accident/'.$date); |
5 | 7 | ?> |
6 | 8 | \ No newline at end of file |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | $date = filter_input(INPUT_POST,'date',FILTER_SANITIZE_STRING); |
3 | -if ($date == '') $date = date('Y-m-d'); |
|
3 | +if ($date == '') { |
|
4 | + $date = date('Y-m-d'); |
|
5 | +} |
|
4 | 6 | header('Location: '.$globalURL.'/date/'.$date); |
5 | 7 | ?> |
6 | 8 | \ No newline at end of file |
@@ -38,8 +38,12 @@ |
||
38 | 38 | if (!empty($spotter_array) && $spotter_array[0]['query_number_rows'] != 0) { |
39 | 39 | include('table-output.php'); |
40 | 40 | print '<div class="pagination">'; |
41 | - if ($limit_previous_1 >= 0) print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'">«'._("Previous Page").'</a>'; |
|
42 | - if ($spotter_array[0]['query_number_rows'] == $absolute_difference) print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'">'._("Next Page").'»</a>'; |
|
41 | + if ($limit_previous_1 >= 0) { |
|
42 | + print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'">«'._("Previous Page").'</a>'; |
|
43 | + } |
|
44 | + if ($spotter_array[0]['query_number_rows'] == $absolute_difference) { |
|
45 | + print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'">'._("Next Page").'»</a>'; |
|
46 | + } |
|
43 | 47 | print '</div>'; |
44 | 48 | } |
45 | 49 | print '</div>'; |
@@ -1,5 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | $date = filter_input(INPUT_POST,'date',FILTER_SANITIZE_STRING); |
3 | -if ($date == '') $date = date('Y-m-d'); |
|
3 | +if ($date == '') { |
|
4 | + $date = date('Y-m-d'); |
|
5 | +} |
|
4 | 6 | header('Location: '.$globalURL.'/incident/'.$date); |
5 | 7 | ?> |
6 | 8 | \ No newline at end of file |
@@ -38,8 +38,12 @@ |
||
38 | 38 | if (!empty($spotter_array) && $spotter_array[0]['query_number_rows'] != 0) { |
39 | 39 | include('table-output.php'); |
40 | 40 | print '<div class="pagination">'; |
41 | - if ($limit_previous_1 >= 0) print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'">«'._("Previous Page").'</a>'; |
|
42 | - if ($spotter_array[0]['query_number_rows'] == $absolute_difference) print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'">'._("Next Page").'»</a>'; |
|
41 | + if ($limit_previous_1 >= 0) { |
|
42 | + print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'">«'._("Previous Page").'</a>'; |
|
43 | + } |
|
44 | + if ($spotter_array[0]['query_number_rows'] == $absolute_difference) { |
|
45 | + print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'">'._("Next Page").'»</a>'; |
|
46 | + } |
|
43 | 47 | print '</div>'; |
44 | 48 | } |
45 | 49 | print '</div>'; |