-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathnotam-data.php
68 lines (64 loc) · 1.7 KB
/
notam-data.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
<?php
require_once('require/class.Connection.php');
require_once('require/class.Language.php');
require_once('require/class.NOTAM.php');
?>
<div class="alldetails">
<button type="button" class="close">×</button>
<?php
$notamref = filter_input(INPUT_GET,'notam',FILTER_SANITIZE_STRING);
$notamref = urldecode($notamref);
$NOTAM = new NOTAM();
$notam = $NOTAM->getNOTAMbyRef($notamref);
//print_r($notam);
date_default_timezone_set('UTC');
print '<div class="top">';
print '<div class="right"><div class="callsign-details"><div class="callsign">'.$notamref.'</a></div>';
print '</div>';
if ($notam['permanent'] == 0 && $notam['date_begin'] != '') {
print '<div class="date">';
print '<span>'._("Begin/End").'</span>';
print $notam['date_begin'];
print ' <i class="fa fa-long-arrow-right"></i> ';
print $notam['date_end'];
print '</div>';
}
print '<div class="details">';
if ($notam['fir'] != '') {
print '<div>';
print '<span>'._("FIR").'</span>';
print $notam['fir'];
print '</div>';
}
if ($notam['code'] != '') {
print '<div>';
print '<span>'._("Code").'</span>';
print $notam['code'];
print '</div>';
}
if ($notam['title'] != '') {
print '<div>';
print '<span>'._("Subject").'</span>';
print $notam['title'];
print '</div>';
}
if ($notam['scope'] != '') {
print '<div>';
print '<span>'._("Scope").'</span>';
print $notam['scope'];
print '</div>';
}
//if ($notam['lower_limit'] != '') {
print '<div>';
print '<span>'._("Limits").'</span>';
print 'FL'.$notam['lower_limit'].'/FL'.$notam['upper_limit'].' ('.$notam['radius'].'Nm)';
print '</div>';
//}
print '</div>';
print '<div class="notamtext">';
print '<span>'._("Text").'</span>';
print $notam['notam_text'];
print '</div>';
print '</div>';
?>
</div>