├── .classpath ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.jdt.ui.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container └── org.eclipse.wst.jsdt.ui.superType.name ├── .tern-project ├── WebRoot ├── .project ├── Dashboard Template for Bootstrap.html ├── Dashboard Template for Bootstrap_files │ ├── bootstrap.min.css │ ├── bootstrap.min.js │ ├── dashboard.css │ ├── holder.min.js │ ├── ie-emulation-modes-warning.js │ ├── ie10-viewport-bug-workaround.js │ └── jquery.min.js ├── META-INF │ └── MANIFEST.MF ├── MyJsp.jsp ├── WEB-INF │ ├── classes │ │ ├── c3p0-config.xml │ │ └── pers │ │ │ └── gulo │ │ │ └── fm │ │ │ ├── dao │ │ │ ├── AdminDao.class │ │ │ ├── PassengerDao.class │ │ │ ├── UserDao.class │ │ │ ├── impl │ │ │ │ ├── AdminDaoImpl.class │ │ │ │ ├── PassengerDaoImpl.class │ │ │ │ └── UserDaoImpl.class │ │ │ └── resultSetHandler │ │ │ │ ├── AirPlaneResultSetHandler.class │ │ │ │ ├── CountResultSetHandler.class │ │ │ │ ├── FlightResultSetHandler.class │ │ │ │ ├── FloatResultSetHandler.class │ │ │ │ ├── OrderResultSetHandler.class │ │ │ │ └── UserResultSetHandler.class │ │ │ ├── domain │ │ │ ├── AirPlane.class │ │ │ ├── Flight.class │ │ │ ├── Order.class │ │ │ ├── Statistic.class │ │ │ └── User.class │ │ │ ├── exception │ │ │ └── FMException.class │ │ │ ├── service │ │ │ ├── AdminService.class │ │ │ ├── PassengerService.class │ │ │ ├── UserService.class │ │ │ └── impl │ │ │ │ ├── AdminServiceImpl.class │ │ │ │ ├── PassengerServiceImpl.class │ │ │ │ └── UserServiceImpl.class │ │ │ ├── test │ │ │ └── Main.class │ │ │ ├── utils │ │ │ ├── DaoUtils.class │ │ │ └── JDBCUtils.class │ │ │ └── web │ │ │ ├── AddAirPlaneServlet.class │ │ │ ├── AddFlightServlet.class │ │ │ ├── AddUserServlet.class │ │ │ ├── BookServlet.class │ │ │ ├── CancelServlet.class │ │ │ ├── DeleteAirPlaneServlet.class │ │ │ ├── DeleteFlightServlet.class │ │ │ ├── LoginServlet.class │ │ │ ├── LogoutServlet.class │ │ │ ├── PayServlet.class │ │ │ ├── RechargeServlet.class │ │ │ ├── UpdateFlightServlet.class │ │ │ └── UpdateUserServlet.class │ ├── lib │ │ ├── activation.jar │ │ ├── c3p0-0.9.1.2.jar │ │ ├── commons-beanutils-1.8.3.jar │ │ ├── commons-dbutils-1.4.jar │ │ ├── commons-fileupload-1.2.1.jar │ │ ├── commons-io-1.4.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── mail.jar │ │ ├── mysql-connector-java-5.1.39-bin.jar │ │ └── standard.jar │ └── web.xml ├── addAirPlane.jsp ├── addFlight.jsp ├── airPlaneManage.jsp ├── bookFlight.jsp ├── css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ └── signin.css ├── flightManage.jsp ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.svg │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 ├── index.jsp ├── js │ ├── bootstrap.js │ ├── bootstrap.min.js │ ├── ie-emulation-modes-warning.js │ ├── ie10-viewport-bug-workaround.js │ ├── jquery-3.0.0.min.js │ └── npm.js ├── login.jsp ├── manage.html ├── manage.jsp ├── myOrder.jsp ├── myWallet.jsp ├── orderManage.jsp ├── queryFlight.jsp ├── recharge.jsp ├── register.jsp ├── statisticManage.jsp ├── updateFlightInfo.jsp ├── updateUserInfo.jsp ├── user.jsp ├── userInfo.html └── userManage.jsp ├── flight_management.sql └── src ├── c3p0-config.xml └── pers └── gulo └── fm ├── dao ├── AdminDao.java ├── PassengerDao.java ├── UserDao.java ├── impl │ ├── AdminDaoImpl.java │ ├── PassengerDaoImpl.java │ └── UserDaoImpl.java └── resultSetHandler │ ├── AirPlaneResultSetHandler.java │ ├── CountResultSetHandler.java │ ├── FlightResultSetHandler.java │ ├── FloatResultSetHandler.java │ ├── OrderResultSetHandler.java │ └── UserResultSetHandler.java ├── domain ├── AirPlane.java ├── Flight.java ├── Order.java ├── Statistic.java └── User.java ├── exception └── FMException.java ├── service ├── AdminService.java ├── PassengerService.java ├── UserService.java └── impl │ ├── AdminServiceImpl.java │ ├── PassengerServiceImpl.java │ └── UserServiceImpl.java ├── test └── Main.java ├── utils ├── DaoUtils.java └── JDBCUtils.java └── web ├── AddAirPlaneServlet.java ├── AddFlightServlet.java ├── AddUserServlet.java ├── BookServlet.java ├── CancelServlet.java ├── DeleteAirPlaneServlet.java ├── DeleteFlightServlet.java ├── LoginServlet.java ├── LogoutServlet.java ├── PayServlet.java ├── RechargeServlet.java ├── UpdateFlightServlet.java └── UpdateUserServlet.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | flight_management 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.wst.validation.validationbuilder 25 | 26 | 27 | 28 | 29 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.wst.common.project.facet.core.nature 38 | org.eclipse.jdt.core.javanature 39 | org.eclipse.wst.jsdt.core.jsNature 40 | 41 | 42 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.8 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=false 3 | sp_cleanup.add_default_serial_version_id=true 4 | sp_cleanup.add_generated_serial_version_id=false 5 | sp_cleanup.add_missing_annotations=true 6 | sp_cleanup.add_missing_deprecated_annotations=true 7 | sp_cleanup.add_missing_methods=false 8 | sp_cleanup.add_missing_nls_tags=false 9 | sp_cleanup.add_missing_override_annotations=true 10 | sp_cleanup.add_missing_override_annotations_interface_methods=true 11 | sp_cleanup.add_serial_version_id=false 12 | sp_cleanup.always_use_blocks=true 13 | sp_cleanup.always_use_parentheses_in_expressions=false 14 | sp_cleanup.always_use_this_for_non_static_field_access=false 15 | sp_cleanup.always_use_this_for_non_static_method_access=false 16 | sp_cleanup.convert_functional_interfaces=false 17 | sp_cleanup.convert_to_enhanced_for_loop=false 18 | sp_cleanup.correct_indentation=false 19 | sp_cleanup.format_source_code=false 20 | sp_cleanup.format_source_code_changes_only=false 21 | sp_cleanup.insert_inferred_type_arguments=false 22 | sp_cleanup.make_local_variable_final=true 23 | sp_cleanup.make_parameters_final=false 24 | sp_cleanup.make_private_fields_final=true 25 | sp_cleanup.make_type_abstract_if_missing_method=false 26 | sp_cleanup.make_variable_declarations_final=false 27 | sp_cleanup.never_use_blocks=false 28 | sp_cleanup.never_use_parentheses_in_expressions=true 29 | sp_cleanup.on_save_use_additional_actions=false 30 | sp_cleanup.organize_imports=true 31 | sp_cleanup.qualify_static_field_accesses_with_declaring_class=false 32 | sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true 33 | sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true 34 | sp_cleanup.qualify_static_member_accesses_with_declaring_class=false 35 | sp_cleanup.qualify_static_method_accesses_with_declaring_class=false 36 | sp_cleanup.remove_private_constructors=true 37 | sp_cleanup.remove_redundant_type_arguments=true 38 | sp_cleanup.remove_trailing_whitespaces=false 39 | sp_cleanup.remove_trailing_whitespaces_all=true 40 | sp_cleanup.remove_trailing_whitespaces_ignore_empty=false 41 | sp_cleanup.remove_unnecessary_casts=true 42 | sp_cleanup.remove_unnecessary_nls_tags=false 43 | sp_cleanup.remove_unused_imports=false 44 | sp_cleanup.remove_unused_local_variables=false 45 | sp_cleanup.remove_unused_private_fields=true 46 | sp_cleanup.remove_unused_private_members=false 47 | sp_cleanup.remove_unused_private_methods=true 48 | sp_cleanup.remove_unused_private_types=true 49 | sp_cleanup.sort_members=false 50 | sp_cleanup.sort_members_all=false 51 | sp_cleanup.use_anonymous_class_creation=false 52 | sp_cleanup.use_blocks=false 53 | sp_cleanup.use_blocks_only_for_return_and_throw=false 54 | sp_cleanup.use_lambda=true 55 | sp_cleanup.use_parentheses_in_expressions=false 56 | sp_cleanup.use_this_for_non_static_field_access=false 57 | sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true 58 | sp_cleanup.use_this_for_non_static_method_access=false 59 | sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true 60 | sp_cleanup.use_type_arguments=false 61 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /.tern-project: -------------------------------------------------------------------------------- 1 | {"ide":{},"libs":["ecma5","browser"],"plugins":{"guess-types":{}}} -------------------------------------------------------------------------------- /WebRoot/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | WebRoot 4 | 5 | 6 | 7 | 8 | 9 | com.aptana.ide.core.unifiedBuilder 10 | 11 | 12 | 13 | 14 | 15 | com.aptana.projects.webnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /WebRoot/Dashboard Template for Bootstrap_files/dashboard.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Base structure 3 | */ 4 | 5 | /* Move down content because we have a fixed navbar that is 50px tall */ 6 | body { 7 | padding-top: 50px; 8 | } 9 | 10 | 11 | /* 12 | * Global add-ons 13 | */ 14 | 15 | .sub-header { 16 | padding-bottom: 10px; 17 | border-bottom: 1px solid #eee; 18 | } 19 | 20 | /* 21 | * Top navigation 22 | * Hide default border to remove 1px line. 23 | */ 24 | .navbar-fixed-top { 25 | border: 0; 26 | } 27 | 28 | /* 29 | * Sidebar 30 | */ 31 | 32 | /* Hide for mobile, show later */ 33 | .sidebar { 34 | display: none; 35 | } 36 | @media (min-width: 768px) { 37 | .sidebar { 38 | position: fixed; 39 | top: 51px; 40 | bottom: 0; 41 | left: 0; 42 | z-index: 1000; 43 | display: block; 44 | padding: 20px; 45 | overflow-x: hidden; 46 | overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ 47 | background-color: #f5f5f5; 48 | border-right: 1px solid #eee; 49 | } 50 | } 51 | 52 | /* Sidebar navigation */ 53 | .nav-sidebar { 54 | margin-right: -21px; /* 20px padding + 1px border */ 55 | margin-bottom: 20px; 56 | margin-left: -20px; 57 | } 58 | .nav-sidebar > li > a { 59 | padding-right: 20px; 60 | padding-left: 20px; 61 | } 62 | .nav-sidebar > .active > a, 63 | .nav-sidebar > .active > a:hover, 64 | .nav-sidebar > .active > a:focus { 65 | color: #fff; 66 | background-color: #428bca; 67 | } 68 | 69 | 70 | /* 71 | * Main content 72 | */ 73 | 74 | .main { 75 | padding: 20px; 76 | } 77 | @media (min-width: 768px) { 78 | .main { 79 | padding-right: 40px; 80 | padding-left: 40px; 81 | } 82 | } 83 | .main .page-header { 84 | margin-top: 0; 85 | } 86 | 87 | 88 | /* 89 | * Placeholder dashboard ideas 90 | */ 91 | 92 | .placeholders { 93 | margin-bottom: 30px; 94 | text-align: center; 95 | } 96 | .placeholders h4 { 97 | margin-bottom: 0; 98 | } 99 | .placeholder { 100 | margin-bottom: 20px; 101 | } 102 | .placeholder img { 103 | display: inline-block; 104 | border-radius: 50%; 105 | } 106 | -------------------------------------------------------------------------------- /WebRoot/Dashboard Template for Bootstrap_files/holder.min.js: -------------------------------------------------------------------------------- 1 | 2 | 404 Not Found 3 | 4 | 404 Not Found 5 | nginx 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WebRoot/Dashboard Template for Bootstrap_files/ie-emulation-modes-warning.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | /*! 5 | * Copyright 2014-2015 Twitter, Inc. 6 | * 7 | * Licensed under the Creative Commons Attribution 3.0 Unported License. For 8 | * details, see https://creativecommons.org/licenses/by/3.0/. 9 | */ 10 | // Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes. 11 | (function () { 12 | 'use strict'; 13 | 14 | function emulatedIEMajorVersion() { 15 | var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent) 16 | if (groups === null) { 17 | return null 18 | } 19 | var ieVersionNum = parseInt(groups[1], 10) 20 | var ieMajorVersion = Math.floor(ieVersionNum) 21 | return ieMajorVersion 22 | } 23 | 24 | function actualNonEmulatedIEMajorVersion() { 25 | // Detects the actual version of IE in use, even if it's in an older-IE emulation mode. 26 | // IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx 27 | // @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx 28 | var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // jshint ignore:line 29 | if (jscriptVersion === undefined) { 30 | return 11 // IE11+ not in emulation mode 31 | } 32 | if (jscriptVersion < 9) { 33 | return 8 // IE8 (or lower; haven't tested on IE<8) 34 | } 35 | return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode 36 | } 37 | 38 | var ua = window.navigator.userAgent 39 | if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) { 40 | return // Opera, which might pretend to be IE 41 | } 42 | var emulated = emulatedIEMajorVersion() 43 | if (emulated === null) { 44 | return // Not IE 45 | } 46 | var nonEmulated = actualNonEmulatedIEMajorVersion() 47 | 48 | if (emulated !== nonEmulated) { 49 | window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!') 50 | } 51 | })(); 52 | -------------------------------------------------------------------------------- /WebRoot/Dashboard Template for Bootstrap_files/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // See the Getting Started docs for more information: 8 | // http://getbootstrap.com/getting-started/#support-ie10-width 9 | 10 | (function () { 11 | 'use strict'; 12 | 13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 | var msViewportStyle = document.createElement('style') 15 | msViewportStyle.appendChild( 16 | document.createTextNode( 17 | '@-ms-viewport{width:auto!important}' 18 | ) 19 | ) 20 | document.querySelector('head').appendChild(msViewportStyle) 21 | } 22 | 23 | })(); 24 | -------------------------------------------------------------------------------- /WebRoot/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebRoot/MyJsp.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/c3p0-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.mysql.jdbc.Driver 5 | jdbc:mysql:///flight_management?useSSL=true 6 | root 7 | root 8 | 9 | 10 | -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/AdminDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/AdminDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/PassengerDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/PassengerDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/UserDao.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/AdminDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/AdminDaoImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/PassengerDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/PassengerDaoImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/UserDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/impl/UserDaoImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/AirPlaneResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/AirPlaneResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/CountResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/CountResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/FlightResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/FlightResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/FloatResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/FloatResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/OrderResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/OrderResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/UserResultSetHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/dao/resultSetHandler/UserResultSetHandler.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/domain/AirPlane.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/domain/AirPlane.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Flight.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Flight.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Order.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Order.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Statistic.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/domain/Statistic.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/domain/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/domain/User.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/exception/FMException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/exception/FMException.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/AdminService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/AdminService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/PassengerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/PassengerService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/UserService.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/AdminServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/AdminServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/PassengerServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/PassengerServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/UserServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/service/impl/UserServiceImpl.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/test/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/test/Main.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/utils/DaoUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/utils/DaoUtils.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/utils/JDBCUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/utils/JDBCUtils.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddAirPlaneServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddAirPlaneServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddFlightServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddFlightServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddUserServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/AddUserServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/BookServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/BookServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/CancelServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/CancelServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/DeleteAirPlaneServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/DeleteAirPlaneServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/DeleteFlightServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/DeleteFlightServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/LoginServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/LoginServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/LogoutServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/LogoutServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/PayServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/PayServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/RechargeServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/RechargeServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/UpdateFlightServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/UpdateFlightServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/classes/pers/gulo/fm/web/UpdateUserServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/classes/pers/gulo/fm/web/UpdateUserServlet.class -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/activation.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/activation.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/c3p0-0.9.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/c3p0-0.9.1.2.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-beanutils-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/commons-beanutils-1.8.3.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-dbutils-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/commons-dbutils-1.4.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-fileupload-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/commons-fileupload-1.2.1.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-io-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/commons-io-1.4.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/mail.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/mysql-connector-java-5.1.39-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.39-bin.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /WebRoot/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | flight_management 4 | 5 | This is the description of my J2EE component 6 | This is the display name of my J2EE component 7 | LoginServlet 8 | pers.gulo.fm.web.LoginServlet 9 | 10 | 11 | This is the description of my J2EE component 12 | This is the display name of my J2EE component 13 | LogoutServlet 14 | pers.gulo.fm.web.LogoutServlet 15 | 16 | 17 | This is the description of my J2EE component 18 | This is the display name of my J2EE component 19 | DeleteUserSerlvet 20 | pers.gulo.fm.web.DeleteUserSerlvet 21 | 22 | 23 | This is the description of my J2EE component 24 | This is the display name of my J2EE component 25 | UpdateUserServlet 26 | pers.gulo.fm.web.UpdateUserServlet 27 | 28 | 29 | This is the description of my J2EE component 30 | This is the display name of my J2EE component 31 | UpdateFlightServlet 32 | pers.gulo.fm.web.UpdateFlightServlet 33 | 34 | 35 | This is the description of my J2EE component 36 | This is the display name of my J2EE component 37 | AddFlightServlet 38 | pers.gulo.fm.web.AddFlightServlet 39 | 40 | 41 | This is the description of my J2EE component 42 | This is the display name of my J2EE component 43 | DeleteFlightServlet 44 | pers.gulo.fm.web.DeleteFlightServlet 45 | 46 | 47 | This is the description of my J2EE component 48 | This is the display name of my J2EE component 49 | AddAirPlaneServlet 50 | pers.gulo.fm.web.AddAirPlaneServlet 51 | 52 | 53 | This is the description of my J2EE component 54 | This is the display name of my J2EE component 55 | DeleteAirPlaneServlet 56 | pers.gulo.fm.web.DeleteAirPlaneServlet 57 | 58 | 59 | This is the description of my J2EE component 60 | This is the display name of my J2EE component 61 | AddUserServlet 62 | pers.gulo.fm.web.AddUserServlet 63 | 64 | 65 | This is the description of my J2EE component 66 | This is the display name of my J2EE component 67 | RechargeServlet 68 | pers.gulo.fm.web.RechargeServlet 69 | 70 | 71 | This is the description of my J2EE component 72 | This is the display name of my J2EE component 73 | BookServlet 74 | pers.gulo.fm.web.BookServlet 75 | 76 | 77 | This is the description of my J2EE component 78 | This is the display name of my J2EE component 79 | CancelServlet 80 | pers.gulo.fm.web.CancelServlet 81 | 82 | 83 | This is the description of my J2EE component 84 | This is the display name of my J2EE component 85 | PayServlet 86 | pers.gulo.fm.web.PayServlet 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | LoginServlet 104 | /servlet/LoginServlet 105 | 106 | 107 | LogoutServlet 108 | /servlet/LogoutServlet 109 | 110 | 111 | DeleteUserSerlvet 112 | /servlet/DeleteUserSerlvet 113 | 114 | 115 | UpdateUserServlet 116 | /servlet/UpdateUserServlet 117 | 118 | 119 | UpdateFlightServlet 120 | /servlet/UpdateFlightServlet 121 | 122 | 123 | AddFlightServlet 124 | /servlet/AddFlightServlet 125 | 126 | 127 | DeleteFlightServlet 128 | /servlet/DeleteFlightServlet 129 | 130 | 131 | AddAirPlaneServlet 132 | /servlet/AddAirPlaneServlet 133 | 134 | 135 | DeleteAirPlaneServlet 136 | /servlet/DeleteAirPlaneServlet 137 | 138 | 139 | AddUserServlet 140 | /servlet/AddUserServlet 141 | 142 | 143 | RechargeServlet 144 | /servlet/RechargeServlet 145 | 146 | 147 | BookServlet 148 | /servlet/BookServlet 149 | 150 | 151 | CancelServlet 152 | /servlet/CancelServlet 153 | 154 | 155 | PayServlet 156 | /servlet/PayServlet 157 | 158 | 159 | index.html 160 | index.htm 161 | index.jsp 162 | default.html 163 | default.htm 164 | default.jsp 165 | 166 | -------------------------------------------------------------------------------- /WebRoot/addAirPlane.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="pers.gulo.fm.domain.User"%> 2 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 3 | <% 4 | User user =(User)session.getAttribute("user"); 5 | if(user==null){ 6 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 7 | }else{ 8 | if(user.getType()!=1){ 9 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 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 | -------------------------------------------------------------------------------- /WebRoot/addFlight.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="pers.gulo.fm.domain.Flight"%> 2 | <%@page import="pers.gulo.fm.service.impl.AdminServiceImpl"%> 3 | <%@page import="pers.gulo.fm.service.AdminService"%> 4 | <%@page import="pers.gulo.fm.domain.User"%> 5 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 6 | <% 7 | User user =(User)session.getAttribute("user"); 8 | if(user==null){ 9 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 10 | }else{ 11 | if(user.getType()!=1){ 12 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 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 | -------------------------------------------------------------------------------- /WebRoot/airPlaneManage.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="pers.gulo.fm.domain.AirPlane"%> 2 | <%@page import="pers.gulo.fm.service.impl.AdminServiceImpl"%> 3 | <%@page import="pers.gulo.fm.service.AdminService"%> 4 | <%@page import="pers.gulo.fm.domain.User"%> 5 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <% 8 | User user =(User)session.getAttribute("user"); 9 | if(user==null){ 10 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 11 | }else{ 12 | if(user.getType()!=1){ 13 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 14 | } 15 | } 16 | AdminService aService=new AdminServiceImpl(); 17 | List airPlanesList=aService.listAllAirPlane(); 18 | request.setAttribute("airPlanesList", airPlanesList); 19 | request.setAttribute("airPlanesListLength", airPlanesList.size()); 20 | %> 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 机票预订系统控制台 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Toggle navigation 56 | 57 | 58 | 59 | 60 | 机票预订系统控制台 61 | 62 | 63 | 64 | 退出 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 概况 75 | 用户管理 76 | 航班管理 77 | 班机管理(current) 78 | 79 | 80 | 订单管理 81 | 数据统计 82 | 83 | 84 | 85 | 86 | 87 | ${airPlaneManageMsg} 88 | ${sessionScope.airPlaneManageMsg=null} 89 | 90 | 91 | 当前共有${airPlanesListLength}班机 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 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /WebRoot/bookFlight.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="pers.gulo.fm.service.impl.PassengerServiceImpl"%> 2 | <%@page import="pers.gulo.fm.service.PassengerService"%> 3 | <%@page import="pers.gulo.fm.domain.Flight"%> 4 | <%@page import="pers.gulo.fm.dao.impl.PassengerDaoImpl"%> 5 | <%@page import="pers.gulo.fm.dao.PassengerDao"%> 6 | <%@page import="pers.gulo.fm.domain.User"%> 7 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 8 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 9 | <% 10 | User user =(User)session.getAttribute("user"); 11 | if(user==null){ 12 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 13 | } 14 | 15 | PassengerDao pDao=new PassengerDaoImpl(); 16 | List flightList=pDao.getUnBookedFlight(user); 17 | request.setAttribute("flightList", flightList); 18 | request.setAttribute("flightListLength", flightList.size()); 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 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Toggle navigation 56 | 57 | 58 | 59 | 60 | 机票预订系统 61 | 62 | 63 | 64 | 退出 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 主页 75 | 机票预订(current) 76 | 航班查询 77 | 我的订单 78 | 我的钱包 79 | 80 | 81 | 82 | 83 | 84 | 85 | ${bookFlightMsg} 86 | ${sessionScope.bookFlightMsg=null} 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 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /WebRoot/css/signin.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 40px; 3 | padding-bottom: 40px; 4 | background-color: #eee; 5 | } 6 | 7 | .form-signin { 8 | max-width: 330px; 9 | padding: 15px; 10 | margin: 0 auto; 11 | } 12 | .form-signin .form-signin-heading, 13 | .form-signin .checkbox { 14 | margin-bottom: 10px; 15 | } 16 | .form-signin .checkbox { 17 | font-weight: normal; 18 | } 19 | .form-signin .form-control { 20 | position: relative; 21 | height: auto; 22 | -webkit-box-sizing: border-box; 23 | -moz-box-sizing: border-box; 24 | box-sizing: border-box; 25 | padding: 10px; 26 | font-size: 16px; 27 | } 28 | .form-signin .form-control:focus { 29 | z-index: 2; 30 | } 31 | .form-signin input[type="email"] { 32 | margin-bottom: -1px; 33 | border-bottom-right-radius: 0; 34 | border-bottom-left-radius: 0; 35 | } 36 | .form-signin input[type="password"] { 37 | margin-bottom: 10px; 38 | border-top-left-radius: 0; 39 | border-top-right-radius: 0; 40 | } 41 | -------------------------------------------------------------------------------- /WebRoot/flightManage.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="pers.gulo.fm.domain.Flight"%> 2 | <%@page import="pers.gulo.fm.service.impl.AdminServiceImpl"%> 3 | <%@page import="pers.gulo.fm.service.AdminService"%> 4 | <%@page import="pers.gulo.fm.domain.User"%> 5 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 6 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 7 | <% 8 | User user =(User)session.getAttribute("user"); 9 | if(user==null){ 10 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 11 | }else{ 12 | if(user.getType()!=1){ 13 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 14 | } 15 | } 16 | AdminService aService=new AdminServiceImpl(); 17 | List flightList=aService.listAllFlight(); 18 | request.setAttribute("flightList", flightList); 19 | request.setAttribute("flightListLength", flightList.size()); 20 | %> 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 机票预订系统控制台 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | Toggle navigation 55 | 56 | 57 | 58 | 59 | 机票预订系统控制台 60 | 61 | 62 | 63 | 退出 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 概况 74 | 用户管理 75 | 航班管理(current) 76 | 班机管理 77 | 78 | 79 | 订单管理 80 | 数据统计 81 | 82 | 83 | 84 | 85 | 86 | ${flightManageMsg} 87 | ${sessionScope.flightManageMsg=null} 88 | 89 | 90 | 当前共有${flightListLength}航班 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 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /WebRoot/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebRoot/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebRoot/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WebRoot/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/csugulo/flight_management/68f2575442f795b57af73c7180f05e5294e6e90a/WebRoot/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WebRoot/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <% 3 | response.sendRedirect(request.getContextPath()+"/login.jsp"); 4 | %> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WebRoot/js/ie-emulation-modes-warning.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | /*! 5 | * Copyright 2014-2015 Twitter, Inc. 6 | * 7 | * Licensed under the Creative Commons Attribution 3.0 Unported License. For 8 | * details, see https://creativecommons.org/licenses/by/3.0/. 9 | */ 10 | // Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes. 11 | (function () { 12 | 'use strict'; 13 | 14 | function emulatedIEMajorVersion() { 15 | var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent) 16 | if (groups === null) { 17 | return null 18 | } 19 | var ieVersionNum = parseInt(groups[1], 10) 20 | var ieMajorVersion = Math.floor(ieVersionNum) 21 | return ieMajorVersion 22 | } 23 | 24 | function actualNonEmulatedIEMajorVersion() { 25 | // Detects the actual version of IE in use, even if it's in an older-IE emulation mode. 26 | // IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx 27 | // @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx 28 | var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // jshint ignore:line 29 | if (jscriptVersion === undefined) { 30 | return 11 // IE11+ not in emulation mode 31 | } 32 | if (jscriptVersion < 9) { 33 | return 8 // IE8 (or lower; haven't tested on IE<8) 34 | } 35 | return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode 36 | } 37 | 38 | var ua = window.navigator.userAgent 39 | if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) { 40 | return // Opera, which might pretend to be IE 41 | } 42 | var emulated = emulatedIEMajorVersion() 43 | if (emulated === null) { 44 | return // Not IE 45 | } 46 | var nonEmulated = actualNonEmulatedIEMajorVersion() 47 | 48 | if (emulated !== nonEmulated) { 49 | window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!') 50 | } 51 | })(); 52 | -------------------------------------------------------------------------------- /WebRoot/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // See the Getting Started docs for more information: 8 | // http://getbootstrap.com/getting-started/#support-ie10-width 9 | 10 | (function () { 11 | 'use strict'; 12 | 13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 | var msViewportStyle = document.createElement('style') 15 | msViewportStyle.appendChild( 16 | document.createTextNode( 17 | '@-ms-viewport{width:auto!important}' 18 | ) 19 | ) 20 | document.querySelector('head').appendChild(msViewportStyle) 21 | } 22 | 23 | })(); 24 | -------------------------------------------------------------------------------- /WebRoot/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /WebRoot/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 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 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | ${loginMsg} 43 | ${sessionScope.loginMsg=null} 44 | 45 | 46 | 请登录 47 | 48 | 用户名 49 | 50 | 密码 51 | 52 | 登录 53 | 注册 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 |