-
Notifications
You must be signed in to change notification settings - Fork 395
/
index.php
505 lines (468 loc) · 25.6 KB
/
index.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<?php
require_once "./php/locale.php";
require_once "./php/db_pdo.php";
require_once "./php/helper.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OpenFlights.org: <?php echo _("Flight logging, mapping, stats and sharing"); ?></title>
<meta name="description" content="Free open-source tool for logging, mapping, calculating and sharing your flights and trips.">
<meta name="keywords" content="flight,memory,logging,mapping,statistics,sharing">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content;">
<link rel="stylesheet" href="/css/style_reset.min.css" type="text/css">
<link rel="stylesheet" type="text/css" href="/css/autocomplete.min.css">
<link rel="stylesheet" href="<?php echo fileUrlWithDate("/openflights.css"); ?>" type="text/css">
<link rel="gettext" type="application/x-po" href="/locale/<?php echo $locale; ?>/LC_MESSAGES/messages.po?20090715" />
<link rel="icon" type="image/png" href="/img/icon_favicon.png"/>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="/js/OpenLayers.min.js"></script>
<script type="text/javascript" src="/js/greatcircle.js"></script>
<script type="text/javascript" src="/js/functions.js"></script>
<script type="text/javascript" src="/js/utilities.min.js"></script>
<script type="text/javascript" src="/js/md5.min.js"></script>
<script type="text/javascript" src="/js/Gettext.min.js"></script>
<script type="text/javascript" src="/js/scw.min.js"></script>
<script type="text/javascript" src="/js/autocomplete.min.js"></script>
<script type="text/javascript" src="<?php echo fileUrlWithDate("/openflights.js"); ?>"></script>
<?php include "./html/analytics.html"; ?>
</head>
<body>
<div id="mainContainer">
<div id="sideBarContentWrapper">
<div id="contentContainer">
<div id="map" class="smallmap"></div>
<div id="maptitle"><noscript><?php echo _("Sorry, OpenFlights requires JavaScript."); ?></noscript></div>
<div id="news" style="display: none">
<img src="/img/close.gif" height=17 width=17 onClick='JavaScript:closeNews()'>
<b><?php echo _("News")?> </b>: <?php include "./html/news.html"; ?>
</div>
<div id="ajaxloader">
<span id="ajaxstatus" style="display: none"><img src="/img/ajax-wait.gif" height=100 width=100/></span>
</div>
<div id="quicksearch" style="display: none">
<img src="/img/layer-switcher-minimize.png" height=18 width=18 title="<?php
echo _("Hide search bar"); ?>" onClick="$('quicksearch').style.display='none'">
<input type="text" name="qs" id="qs" size="60" tabindex="5" onKeyDown='keyPress(event, "qs")' class="hint2Textbox" placeholder="<?php
echo _("Enter city, airport, airline name or code"); ?>"/>
<input type="hidden" name="qsid" id="qsid"/>
<input type="button" id="qsgo" tabindex="6" value="<?php echo _("Search"); ?>" title="<?php
echo _("Map of routes from this airport"); ?>" align="middle" onclick='JavaScript:goQuickSearch()' DISABLED>
</div>
<div id="qsmini" style="display: block">
<img src="/img/icon-search.png" height=18 width=18 title="<?php echo _("Search");
?>" onClick="$('quicksearch').style.display='inline'">
</div>
<div id="newairport" style="display: none">
<?php echo _("Duration");
?> <input type="text" id="duration" size="5" style="text-align: right; background-color: transparent;" onChange="JavaScript:calcDuration('DURATION');" value=""/>
<?php echo _("Distance");
?> <input type="text" id="distance" size="5" style="text-align: right; background-color: transparent;" onChange="JavaScript:calcDuration('DISTANCE');" value=""/> mi
<input type="button" value="<?php echo _("Add new airport");
?>" align="middle" onclick='JavaScript:popNewAirport(null)'>
</div>
</div>
<div id="sideBar">
<?php include_once "./sidebar.php"; ?>
<div id="login">
<div id="langselect" style="display: block; text-align: right; margin-bottom: 10px">
<?php locale_pulldown($dbh, $locale); ?>
</div>
<div id="loginstatus" style="display: none"></div>
<div id="loginform" style="display: none">
<form name="login" onSubmit='JavaScript:return false;'>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td><?php echo _("Username"); ?> </td>
<td>
<input type="Text" name="name" align="top" size="10" tabindex="1" onKeyPress='keyPress("CHANGE", "login")'>
</td>
</tr>
<tr>
<td align=right><?php echo _("Password"); ?> </td>
<td>
<input type="password" name="pw" align="top" size="10" tabindex="2" onKeyPress='keyPress("CHANGE", "login")'>
<input type="hidden" name="challenge">
</td>
</tr>
<tr>
<td></td>
<td>
<input id="loginbutton" type="button" value="<?php echo _("Log in"); ?>"
align="middle" tabindex="3" onclick='JavaScript:xmlhttpPost("/php/login.php")'>
<?php
if (!isset($OF_ENABLE_SIGNUP) || $OF_ENABLE_SIGNUP) {
echo '<h7><a href="/html/settings?new=yes">', _("Sign up"), "</a></h7>";
}
?>
</td>
</tr>
</table>
</form>
</div>
</div> <!-- login -->
<div id="statsbox" style="visibility: hidden; clear: both">
<table style='width: 218px'>
<tr>
<td style='vertical-align: top'>
<span id="stats"></span>
<span id="stats_ajax" style="display: none"> <img src='/img/ajax-wait-small.gif' height=16 width=16/></span>
</td>
<td style='vertical-align: top; text-align: right; padding: 0px 5px'>
<input type="button" value="<?php echo _("Analyze");
?>" align="middle" onclick='JavaScript:xmlhttpPost("/php/stats.php")'><br>
<input type="button" value="<?php echo _("Top 10");
?>" align="middle" onclick='JavaScript:updateTop10()'>
</td>
</tr>
</table>
</div>
<div id="filter" style="visibility: hidden">
<form id='filterform'>
<b><?php echo _("Filter"); ?></b>
<table>
<tr>
<td><?php echo _("Carrier"); ?> </td>
<td>
<span id="filter_airlineselect">
<select class="filter" name="Airlines"><option value="">All carriers</option></select>
</span>
</td>
</tr><tr>
<td><?php echo _("Year"); ?></td>
<td>
<span id="filter_yearselect">
<select class="filter" name="Years"><option value="">All</option></select>
</span>
</td>
</tr><tr>
<td>
<?php echo _("Trip");
?><a href="#help" onclick='JavaScript:help("trip")'><img src="/img/icon_help.png" title="Help: What is a trip?" height=11 width=10></a>
</td>
<td><span id="filter_tripselect"></span>
</tr><tr>
<td colspan=2>
<select style="width: 100px" id="filter_extra_key" name="Extra" onChange="JavaScript:setExtraFilter()" style="visibility: hidden">
<option value="" SELECTED><?php echo _("More..."); ?></option>
<option value="class"><?php echo _("Class"); ?></option>
<option value="distlt"><?php echo _("Distance"); ?> <</option>
<option value="distgt"><?php echo _("Distance"); ?> ></option>
<option value="mode"><?php echo _("Mode"); ?></option>
<option value="note"><?php echo _("Note"); ?></option>
<option value="reason"><?php echo _("Reason"); ?></option>
<option value="reg"><?php echo _("Registration"); ?></option>
</select><span id="filter_extra_span"></span>
</td>
</tr>
</table>
</span>
</form>
<div id="controlpanel" style="display: none">
<br><b><?php echo _("Control panel"); ?></b><br>
<input type="button" value="<?php echo _("New flight");
?>" align="middle" onclick='JavaScript:newFlight()'>
<input type="button" value="<?php echo _("List flights");
?>" align="middle" onclick='JavaScript:startListFlights()'>
<input type="button" value="<?php echo _("Import");
?>" align="middle" onclick='JavaScript:openImport()'>
<input type="button" value="<?php echo _("Settings");
?>" align="middle" onclick='JavaScript:settings()'>
<input type="button" value="<?php echo _("Logout");
?>" align="middle" onclick='JavaScript:xmlhttpPost("/php/logout.php")'>
</div>
</div>
</div> <!-- end sidebar -->
</div> <!-- end sidebarwrapper -->
<div id="resultbox">
<div id="ad" style="display: inline;">
<?php include "./html/ad.html"; ?>
</div>
<div id="help" style="display: none;">
<h2>
<img src="/img/close.gif" height=17 width=17 onClick='JavaScript:closePane()'><?php
echo _("OpenFlights Map Help <small>— Didn't answer your question? Try the <a href=\"faq.php\" target=\"_blank\">FAQ</a>.</small>");
?></h2>
<?php echo _('<p><b>View airport</b>: Click on an airport <img src="/img/icon_plane-15x15.png" height=15 width=15> to view details. Click on <img src="/img/close.gif" height=17 width=17> or another airport to close the pop-up.');
?><br>
<?php echo _('<b>Move around</b>: Use <img src="/img/north-mini.png" height=18 width=18><img src="/img/west-mini.png" height=18 width=18><img src="/img/east-mini.png" height=18 width=18><img src="/img/south-mini.png" height=18 width=18> buttons (top left) or click and drag your mouse.');
?><br>
<?php echo _('<b>Zoom in/out</b>: Use <img src="/img/zoom-plus-mini.png" height=18 width=18><img src="/img/zoom-minus-mini.png" height=18 width=18>, roll your mouse wheel, or double-click on the point you want to zoom to. For the full world view, click <img src="/img/zoom-world-mini.png" height=18 width=18>.');
?><br>
<?php echo _('<b>Select region</b>: While holding down Shift key, click on the map and draw a rectangle with your mouse.');
?><br>
<?php echo _('<b>Map options</b>: To choose your map type and what to show on it, click on the top right <img src="/img/layer-switcher-maximize.png" height=18 width=18>.');
?><br>
<?php echo _('<b>Minimap</b>: To activate the mini-map control, click on bottom right <img src="/img/layer-switcher-maximize.png" height=18 width=18>.');
?></p>
</div> <!-- end help -->
<div id="input" style="display: none;">
<h2><img src="/img/close.gif" height=17 width=17 onClick='JavaScript:closeInput()'>
<span id="addflighttitle"><?php echo _("Add new flight"); ?></span>
<span id="editflighttitle" style="display: none"><?php echo _("Edit flight"); ?></span>
<small>— <?php
echo _("Fields in <font color='blue'>blue</font> are required. Click on airports in the map to select them or search by city name or airport code.");
?></small>
</h2>
<p></p>
<form id='inputform'>
<table>
<tr>
<td><font color="blue"><?php echo _("Date"); ?></font></td>
<td colspan=2>
<input type="text" name="src_date" id="src_date" size="11" class="date" tabindex="11" onChange="JavaScript:calcDuration('DEPARTURE');"/>
<img src="/img/scw.gif" height="15" width="16" onclick="scwShow(scwID('src_date'),event); calcDuration('DEPARTURE');" />
<input type="text" name="src_time" id="src_time" tabindex="12" size="5" class="hint2TextboxMini" placeholder="HH:MM" onChange="JavaScript:calcDuration('DEPARTURE')"/> →
<input type="text" name="dst_time" id="dst_time" size="5" class="hint2TextboxMini" placeholder="HH:MM" onChange="JavaScript:calcDuration('ARRIVAL')"/>
<input type="text" name="dst_days" id="dst_days" size="6" value="" style="border: 0px; display: none" onChange="JavaScript:markAsChanged()"/>
<img src="/img/icon_clock.png" id="icon_clock" title="<?php
echo _("Departure and arrival time"); ?>" height="16" width="16" onclick='JavaScript:help("time")'/>
</td>
<td>
<?php echo _("Trip"); ?><a href="#help" onclick='JavaScript:help("trip")'><img src="/img/icon_help.png" title="<?php
echo _('Help: What is a trip?'); ?>" height=11 width=10></a>
</td>
<td width=""><span id="input_trip_select"></span>
<img id="trip_add" src="/img/icon_add.png" title="<?php
echo _('Add new trip'); ?>" height=17 width=17 onclick='JavaScript:editTrip("ADD")'/>
<img id="trip_edit" src="/img/icon_edit.png" title="<?php
echo _('Edit this trip'); ?>" height=16 width=16 />
</td>
</tr>
<tr>
<td>
<label for="src_ap"><font color="blue"><?php echo _("From"); ?></font><a href="#help" onclick='JavaScript:help("airport")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter airports?'); ?>" height=11 width=10></a></label>
</td>
<td>
<input type="text" name="src_ap" id="src_ap" size="60" tabindex="14" onKeyDown='keyPress(event, "src_ap")' class="hint2Textbox" placeholder="<?php
echo _('Enter city name or airport code'); ?>"/>
<input type="hidden" name="src_apid" id="src_apid"/>
</td>
<td rowspan=2 valign=middle align=left>
<img src="/img/icon_plane-src.png" title="<?php echo _("Airport search");
?>" height=17 width=17 onclick='JavaScript:popNewAirport("src_ap")'/ style="margin-left: 5px"/>
<img src="/img/swap-icon.png" title="<?php echo _("Swap To and From airports")
?>" height=17 width=17 onclick='JavaScript:swapAirports(true)' style="margin-right: 10px"/><br>
<img src="/img/icon_plane-dst.png" title="<?php echo _("Airport search");
?>" height=17 width=17 onclick='JavaScript:popNewAirport("dst_ap")'/ style="margin-left: 5px"/>
</td>
<td><label for="plane"><?php echo _("Plane"); ?></label></td>
<td>
<input style="width: 180px" type="text" name="plane" id="plane" tabindex="111" onChange="JavaScript:markAsChanged();" onKeyDown='keyPress(event, "plane")' class="hint2Textbox" placeholder="<?php
echo _("Enter plane model"); ?>"><input type="hidden" id="planeid" name="planeid" />
<label for="registration"><?php echo _("Reg.");
?></label><input type="text" id="registration" name="registration" size="8" tabindex="112" onChange="JavaScript:markAsChanged();"/>
</td>
</tr>
<tr>
<td>
<label for="dst_ap"><font color="blue"><?php echo _("To"); ?></font><a href="#help" onclick='JavaScript:help("airport")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter airports?'); ?>" height=11 width=10></a></label>
</td>
<td>
<input type="text" name="dst_ap" id="dst_ap" size="60" tabindex="15" onKeyDown='keyPress(event, "dst_ap")' class="hint2Textbox" placeholder="<?php
echo _("Enter city name or airport code"); ?>"/>
<input type="hidden" name="dst_apid" id="dst_apid"/>
</td>
<td><?php echo _("Class"); ?></td>
<td>
<input type="radio" id="myClass_Y" name="myClass" value="Y" onChange="JavaScript:markAsChanged();" CHECKED>
<label for="myClass_Y"><?php echo _("Economy"); ?></label>
<input type="radio" id="myClass_P" name="myClass" value="P" onChange="JavaScript:markAsChanged();">
<label for="myClass_P"><?php echo _("Premium Eco."); ?></label>
<input type="radio" id="myClass_C" name="myClass" value="C" onChange="JavaScript:markAsChanged();">
<label for="myClass_C"><?php echo _("Business"); ?></label>
<input type="radio" id="myClass_F" name="myClass" value="F" onChange="JavaScript:markAsChanged();">
<label for="myClass_F"><?php echo _("First"); ?></label>
</td>
</tr>
<tr>
<td>
<select name="mode" tabindex="16" onChange="JavaScript:changeMode();">
<option value="F"><?php echo _("Flight"); ?></option>
<option value="R"><?php echo _("Road"); ?></option>
<option value="S"><?php echo _("Ship"); ?></option>
<option value="T"><?php echo _("Train"); ?></option>
</select>
</td>
<td colspan="2"><label for="number"><?php echo _("Nr."); ?></label> 
<input type="text" id="number" name="number" size="7" value="" tabindex="17" onChange='JavaScript:flightNumberToAirline("NUMBER")'/>
<label for="seat"><?php echo _("Seat"); ?></label>
<input type="text" id="seat" name="seat" size="4" tabindex="18" onChange="JavaScript:markAsChanged();"/>
<label for="seat_type"><?php echo _("Type"); ?></label>
<select id="seat_type" name="seat_type" tabindex="19" onChange="JavaScript:markAsChanged();">
<option value="-">-</option>
<option value="W"><?php echo _("Window"); ?></option>
<option value="A"><?php echo _("Aisle"); ?></option>
<option value="M"><?php echo _("Middle"); ?></option>
</select>
</td>
<td><?php echo _("Reason"); ?> </td>
<td>
<input type="radio" id="reason_B" name="reason" value="B" onChange="JavaScript:markAsChanged();" CHECKED>
<label for="reason_B"><?php echo _("Work"); ?></label>
<input type="radio" id="reason_L" name="reason" value="L" onChange="JavaScript:markAsChanged();">
<label for="reason_L"><?php echo _("Leisure"); ?></label>
<input type="radio" id="reason_C" name="reason" value="C" onChange="JavaScript:markAsChanged();">
<label for="reason_C"><?php echo _("Crew"); ?></label>
<input type="radio" id="reason_O" name="reason" value="O" onChange="JavaScript:markAsChanged();">
<label for="reason_O"><?php echo _("Other"); ?></label>
</td>
</tr>
<tr>
<td>
<label for="airline"><?php echo _("Carrier"); ?></label>
<a href="#help" onclick='JavaScript:help("airline")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter airlines?'); ?>" height=11 width=10></a>
</td>
<td>
<input type="text" name="airline" id="airline" size="60" tabindex="20" onKeyDown='keyPress(event, "airline")' class="hint2Textbox" placeholder="<?php
echo _("Enter airline name or code"); ?>"/>
<input type="hidden" name="airlineid" id="airlineid"/>
</td>
<td>
<img id="icon_airline" src="/img/icon_airline.png" title="<?php echo _("Airline search"); ?>"
height=17 width=17 onclick='JavaScript:popNewAirline("airline")' style="margin-left: 5px"/>
</td>
<td colspan=2><span id="input_status"></span></td>
</tr><tr>
<td><label for="note"<?php echo _("Note"); ?></label></td>
<td colspan=2>
<input type="text" name="note" id="note" size="60" tabindex="21" class="hint2Textbox" placeholder="" onChange="JavaScript:markAsChanged();">
</td>
<td colspan=2 align=right>
<span id="addflightbuttons">
<input id="b_add" value="<?php echo _("Add"); ?>" title="<?php
echo _("Save this flight"); ?>" type="button" tabindex="120" onclick='JavaScript:submitFlight();'>
<input id="b_clear" value="<?php echo _("Clear"); ?>" title="<?php
echo _("Reset this entry form"); ?>" type="button" tabindex="121" onclick='JavaScript:clearInput()'>
<input id="b_exit" value="<?php echo _("Exit"); ?>" title="<?php
echo _("Exit flight editor"); ?>" type="button" tabindex="122" onclick='JavaScript:closeInput()'>
</span>
<span id="editflightbuttons" style="display: none">
<input id="b_save" value="<?php echo _("Save changes"); ?>" title="<?php
echo _("Save changes made to this flight"); ?>" type="button" tabindex="120" onclick='JavaScript:saveFlight()'>
<input id="b_delete" value="<?php echo _("Delete"); ?>" title="<?php
echo _("Delete this flight"); ?>" type="button" tabindex="121" onclick='JavaScript:deleteFlight()'>
<input id="b_cancel" value="<?php echo _("Exit"); ?>" title="<?php
echo _("Exit flight editor"); ?>" type="button" tabindex="122" onclick='JavaScript:closeInput()'>
<input id="b_prev" title="<?php echo _("Previous flight");
?>" value=" < " type="button" tabindex="123" onclick='JavaScript:editPointer(-1)'>
<input id="b_next" title="<?php echo _("Next flight");
?>" value=" > " type="button" tabindex="124" onclick='JavaScript:editPointer(1)'>
</span>
<span style='position: absolute; right: 20px'><input id="b_basic" title="<?php echo _("Switch to basic editor");
?>" value="<?php echo _("Basic");
?>" type="button" tabindex="150" onclick='JavaScript:openBasicInput();'></span>
</td>
</tr>
</table>
</form>
</div>
<div id="multiinput" style="display: none;">
<h2><img src="/img/close.gif" height=17 width=17 onClick='JavaScript:closeInput()'> <?php
echo _("Add new flights") . "<small>— " .
_("Fields in <font color='blue'>blue</font> are required. Click on airports in the map to select them or search by city name or airport code.");
?></small></h2>
<p></p>
<form id='multiinputform'>
<table>
<tr>
<td><font color="blue"><?php echo _("From");
?></font><a href="#help" onclick='JavaScript:help("airport")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter where I flew from?'); ?>" height=11 width=10></a></td>
<td><font color="blue"><?php echo _("To");
?></font><a href="#help" onclick='JavaScript:help("airport")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter where I flew to?'); ?>" height=11 width=10></a></td>
<td><?php echo _("Airline");
?><a href="#help" onclick='JavaScript:help("airline")'><img src="/img/icon_help.png" title="<?php
echo _('Help: How do I enter the airline?'); ?>" height=11 width=10></a></td>
<td><?php echo _("Date"); ?></td>
</tr>
<?php
for ($row = 1; $row <= 4; $row++) {
echo "<tr id='row$row' " . ($row > 1 ? "style='display: none;'" : "") . "> <!-- Row $row -->\n";
printf(
"<td><input type='text' name='src_ap%s' id='src_ap%s' size='32' tabindex='1%s1' onKeyDown='keyPress(event, \"src_ap%s\")' class='hint2Textbox' placeholder=\"%s\"/>\n",
$row,
$row,
$row,
$row,
_("Enter city name or airport code")
);
printf(
"<input type='hidden' name='src_ap%sid' id='src_ap%sid'>\n",
$row,
$row
);
printf(
"<img src='/img/icon_plane-src.png' alt='aeroplane departing' title=\"%s\" height=17 width=17 onclick='JavaScript:popNewAirport(\"src_ap$row\")'/ style='margin-right: 5px'/></td>\n",
_("Airport search")
);
printf(
"<td><input type='text' name='dst_ap%s' id='dst_ap%s' size='32' tabindex='1%s2' onKeyDown='keyPress(event, \"dst_ap%s\")' class='hint2Textbox' placeholder=\"%s\"/>\n",
$row,
$row,
$row,
$row,
_("Enter city name or airport code")
);
printf(
"<input type='hidden' name='dst_ap1%s' id='dst_ap%sid'/>\n",
$row,
$row
);
printf(
"<img src='/img/icon_plane-dst.png' alt='aeroplane arriving' title='%s' height=17 width=17 onclick='JavaScript:popNewAirport(\"dst_ap$row\")' style='margin-right: 5px'/></td>\n",
_("Airport search")
);
printf(
"<td><input type='text' name='airline%s' id='airline%s' size='32' tabindex='1%s3' onKeyDown='keyPress(event, \"airline%s\")' class='hint2Textbox' placeholder=\"%s\"/>\n",
$row,
$row,
$row,
$row,
_("Enter airline name or code")
);
printf(
"<input type='hidden' name='airline%sid' id='airline%sid'/><img src='/img/icon_airline.png' title='%s' height=17 width=17 onclick='JavaScript:popNewAirline(\"airline1\")'/ style='margin-right: 5px'/></td>\n",
$row,
$row,
_("Airline search")
);
printf(
"<td><input type='text' name='src_date%s' id='src_date%s' size='11' class='date' tabindex='1%s4' onChange='JavaScript:markAsChanged()';/><img src='/img/scw.gif' height='15' width='16' onclick='scwShow(scwID(\"src_date%s\"),event); markAsChanged();' style='margin-left: 5px'/></td></tr>\n",
$row,
$row,
$row,
$row
);
}
?>
<tr>
<td colspan=4 style="padding-top: 0.5em">
<input id="b_multi_add" title="<?php echo _("Save these flights"); ?>" value="<?php
echo _("Add"); ?>" type="button" tabindex="140" onclick='JavaScript:submitFlight();'>
<input id="b_multi_clear" title="<?php echo _("Reset this entry form"); ?>" value="<?php
echo _("Clear"); ?>" type="button" tabindex="141" onclick='JavaScript:clearInput()'>
<input id="b_multi_exit" title="<?php echo _("Exit without saving"); ?>" value="<?php
echo _("Exit"); ?>" type="button" tabindex="142" onclick='JavaScript:closeInput()'>
<span id="multiinput_status"></span>
<span style='position: absolute; right: 20px'>
<input id="b_more" title="<?php echo _("Add new row for faster entry of multiple flights"); ?>" value="<?php
echo _("More"); ?>" type="button" tabindex="143" onclick='JavaScript:changeRows("More");'>
<input id="b_less" title="<?php echo _("Remove a row"); ?>" value="<?php
echo _("Less"); ?>" type="button" tabindex="144" onclick='JavaScript:changeRows("Less");' disabled>
<input id="b_detailed" title="<?php echo _("Switch to detailed editor"); ?>" value="<?php
echo _("Detailed"); ?>" type="button" tabindex="145" onclick='JavaScript:openDetailedInput("ADD");'>
</span>
</td>
</tr></table>
</form>
</div>
<div id="result" style="display: none;"></div>
</div> <!-- end resultbox -->
</div> <!-- end mainContainer -->
</body>
</html>