|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8"> |
5 | | - <title>航班监控</title> |
| 5 | + <title data-i18n="resources.title_planesMonitor">航班监控</title> |
6 | 6 | <script type="text/javascript" |
7 | 7 | include="jquery,bootstrap,moment,bootstrap-datetimepicker,bootstrap-select,geohash,randomcolor,widgets.alert" |
8 | 8 | src="../js/include-web.js"></script> |
|
12 | 12 | } |
13 | 13 |
|
14 | 14 | .form-group label { |
15 | | - width: 90px; |
| 15 | + width: 100px; |
16 | 16 | } |
17 | 17 |
|
18 | 18 | .tips { |
|
239 | 239 |
|
240 | 240 | if (!content) return; |
241 | 241 | var latlng = L.latLng(content.y, content.x); |
242 | | - var labelContent = "航班: " + content.ident + "<br>" + |
243 | | - "始发地: " + content.origin + "/" + content.originLabel + "<br>" + |
244 | | - "目的地: " + content.destination + "/" + content.destinationLabel + "<br>" + |
245 | | - "时间: " + content.datetime; |
| 242 | + var labelContent = resources.text_flight + ": " + content.ident + "<br>" + |
| 243 | + resources.text_startPoint + content.origin + "/" + content.originLabel + "<br>" + |
| 244 | + resources.text_endPoint + content.destination + "/" + content.destinationLabel + "<br>" + |
| 245 | + resources.text_time + ": " + content.datetime; |
246 | 246 | if (planeLabels[content.ident]) { |
247 | 247 | planeLabels[content.ident].remove(); |
248 | 248 | } |
|
357 | 357 | me._div = L.DomUtil.create('div', 'panel panel-primary controlPane'); |
358 | 358 | me._div.style.width = "300px"; |
359 | 359 | var titleDiv = $("<div class='panel-heading text-center' id='toggle' style='cursor: pointer'>" + |
360 | | - "<span class='panel-title text-center'>控制台</span> " + |
| 360 | + "<span class='panel-title text-center'>" + resources.text_console + "</span> " + |
361 | 361 | "<span class='glyphicon glyphicon-triangle-top' id='toggleIcon' ></span></div>").appendTo(me._div); |
362 | 362 |
|
363 | 363 | var contentDiv = $("<div class='panel-body content center-block' style='font-size: 14px'></div>").appendTo(me._div); |
364 | 364 |
|
365 | 365 | var optionsDiv = $("<div class='' id='options'></div>").appendTo(contentDiv); |
366 | 366 |
|
367 | 367 | $("<div class='form-group'><label class='text-right' for='flightIds' >" + |
368 | | - "航班号<span style='color:red'>*</span></label>" + |
| 368 | + resources.text_flightNumber + "<span style='color:red'>*</span></label>" + |
369 | 369 | "<select class='selectpicker ' id='flightIds' multiple " + |
370 | 370 | "data-actions-box='true' " + |
371 | | - "data-select-all-Text='全选' " + |
372 | | - "data-deselect-all-Text='反选' " + |
373 | | - "title='请选择'>" + |
| 371 | + "data-select-all-Text='" + resources.text_allSelect + "' " + |
| 372 | + "data-deselect-all-Text='" + resources.text_deSelectAll + "' " + |
| 373 | + "title='" + resources.text_select + "'>" + |
374 | 374 | initSelectOpitons() + |
375 | 375 | "</select></div><hr/>").appendTo(optionsDiv); |
376 | 376 |
|
|
385 | 385 |
|
386 | 386 | var defaultOption = getDefaultControlOptions(); |
387 | 387 |
|
388 | | - $("<div class='form-group form-inline'><label class='text-right' for='startTime' >起始时间<span style='color:red'>*</span></label>" + |
| 388 | + $("<div class='form-group form-inline'><label class='text-right' for='startTime' >" + resources.text_startTime + "<span style='color:red'>*</span></label>" + |
389 | 389 | "<input id='startTime' type='text' class='form-control input-sm' placeholder='" + defaultOption.startTime + |
390 | 390 | "' value='" + defaultOption.startTime + "'/></div></div>").appendTo(optionsDiv); |
391 | 391 |
|
392 | | - $("<div class='form-group form-inline'><label class='text-right' for='endTime' >终止时间<span style='color:red'>*</span></label>" + |
| 392 | + $("<div class='form-group form-inline'><label class='text-right' for='endTime' >" + resources.text_finishTime + "<span style='color:red'>*</span></label>" + |
393 | 393 | "<input id='endTime' type='text' class='form-control input-sm' placeholder='" + defaultOption.endTime + |
394 | 394 | "' value='" + defaultOption.endTime + "'/></div></div>").appendTo(optionsDiv); |
395 | 395 |
|
396 | | - $("<div class='form-group form-inline'><label class='text-right' for='speed' >刷新步长(ms)</label>" + |
| 396 | + $("<div class='form-group form-inline'><label class='text-right' for='speed' >" + resources.text_refreshStepSize + "(ms)</label>" + |
397 | 397 | "<input id='speed' type='number' min='1' class='form-control input-sm' placeholder='" + defaultOption.speed + |
398 | 398 | "' value='" + defaultOption.speed + "'/></div></div>").appendTo(optionsDiv); |
399 | 399 |
|
400 | | - $("<div class='form-group form-inline'><label class='text-right' for='frequency' >刷新频率(ms)</label>" + |
| 400 | + $("<div class='form-group form-inline'><label class='text-right' for='frequency' >" + resources.text_refreshFrequency + "(ms)</label>" + |
401 | 401 | "<input id='frequency' type='number' min='1' class='form-control input-sm' placeholder='" + defaultOption.frequency + |
402 | 402 | "' value='" + defaultOption.frequency + "'/></div></div>").appendTo(optionsDiv); |
403 | 403 |
|
404 | 404 | var progressDiv = $("<div class='form-group'><div class='form-horizontal text-center'><div class='form-group'>" + |
405 | | - "<label for='progress'>当前时间:</label><span class='form-control-static' id='progress'>未开始</span>" + |
| 405 | + "<label for='progress'>" + resources.text_currentTime + "</label><span class='form-control-static' id='progress'>" + resources.text_noStart + "</span>" + |
406 | 406 | "</div></div></div>").appendTo(contentDiv); |
407 | 407 |
|
408 | 408 | var controlDiv = $("<section><div class='form-inline text-center'>" + |
409 | | - "<input id='start' type='button' class='btn btn-default text-center' value='开始'/> " + |
410 | | - "<input id='pause' type='button' class='btn btn-default text-center' value='暂停'/> " + |
411 | | - "<input id='stop' type='button' class='btn btn-default text-center' value='停止'/>" + |
| 409 | + "<input id='start' type='button' class='btn btn-default text-center' value='" + resources.btn_start + "'/> " + |
| 410 | + "<input id='pause' type='button' class='btn btn-default text-center' value='" + resources.btn_pause + "'/> " + |
| 411 | + "<input id='stop' type='button' class='btn btn-default text-center' value='" + resources.btn_stop + "'/>" + |
412 | 412 | "</div></section>").appendTo(contentDiv); |
413 | 413 |
|
414 | 414 |
|
|
0 commit comments