-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaircraft.php
executable file
·128 lines (111 loc) · 3.78 KB
/
aircraft.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
<? /* Copyright (C) 1995-2020 John Murtari
This file is part of FLY flight management software
FLY is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FLY is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FLY. If not, see <https://www.gnu.org/licenses/>. */ ?>
<?
require("./php_includes.inc");
require("./lib/header.inc");
// Show info on Gliders, limit some into to members
?>
<div id="divContent">
<h3><span style="font-size: 24px;">Club Aircraft</span></h3>
We're proud of our Club owned fleet of tow planes, trainers and solo aircraft.
We try to give our members every opportunity to fly!
<? if ($super) { ?>
<p><b><a href="edit_glider.php?action=new">Insert new aircraft.</a></b>
<b><a href="glider_status.php">Aircraft Status Report</a></b></p>
<? } else if ($MemberID) { ?>
<p><b><a href="glider_status.php">Aircraft Status Report</a></b></p>
<? } else { ?>
<p>Login required to see more detailed info on each aircraft.</p>
<?} ?>
<table cellpadding="5">
<tbody>
<?
$sql = "SELECT * FROM Glider ORDER BY type, model";
if ($msg = DB_Query($Conn, $sql, $results)) {
DisplayMessage("Display aircraft", "query failed ($msg)");
}
foreach ($results as $row) {
$pohURL = $row['pohURL'];
if (strlen($pohURL) > 10) {
$handbook="<a href='$pohURL'>Click here</a>";
} else {
$handbook="not available";
}
?>
<tr>
<td colspan="2">
<a border="2" href="photos/<?=$row['photo']?>">
<img border="2" width="350" src="photos/<?=$row['photo']?>">
</a>
</td>
<td colspan="2">
<p style="font-size:16px;">
<b><?=$row['mfg']?><br /><?=$row['model']?></b>
</p>
<p>
Description: <i><?=nl2br($row['descrip'])?></i>
</p>
<p>
Operating Handbook: <?=$handbook?>
</p>
<? if ($super) {
echo "<p><b><a href='edit_glider_status.php?action=new&GliderID=".$row['GliderID']."'>Insert new tail # for this model.</a></b> </p>";
echo "<p><b><a href='edit_glider.php?action=edit&GliderID=".$row['GliderID']."'>Edit information for this model.</a></b> </p>";
}
?>
</td>
</tr>
<? if ($row['type'] != 'Tow') { ?>
<tr>
<td>
Never exceed: <?=$row['vne']?>
</td>
<td>
Rough air: <?=$row['vrough']?>
</td>
<td>
Final: <?=$row['vfinal']?>
</td>
<td>
Best glide: <?=$row['vglide']?>
</td>
</tr>
<tr>
<td>
Min sink: <?=$row['vsink']?>
</td>
<td>
Stall: <?=$row['vstall']?>
</td>
<td>
Glide ratio: <?=$row['glideRatio']?>
</td>
<td>
Max G: <?=$row['maxG']?>
</td>
</tr>
<? } # end if not Tow plane ?>
<tr>
<td colspan="2"><hr/>
</td>
</tr>
<?
}
?>
</tbody>
</table>
</div>
<!-- ------------------ Content ends here ---------------------------------- -->
<?php
require 'footer.inc';
?>