基于javaweb+jsp的机场飞机航班指挥管理系统

Posted qq_1742826239

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于javaweb+jsp的机场飞机航班指挥管理系统相关的知识,希望对你有一定的参考价值。

基于javaweb+jsp的机场飞机航班指挥管理系统

JavaWeb JavaBean JSP MVC mysql Tomcat javascript idea eclipse MyEclipse Servlet SSM Maven …

部分代码实现JSP

    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <!-- 侧边栏 -->
            <jsp:include page="menu.jsp">
                <jsp:param value="active" name="Hangban_active"/>
            </jsp:include>
        </div>
        <br>
                        <label class="control-label">(hidden)</label>
                        <input type="text" class="form-control" name="action" value="edit">
                        <input type="text" readonly class="form-control" name="id" id="edit-id">
                    </div>
                    <div class="form-group">
                        <label for="edit-hangbanName" class="control-label">航班号:</label>
                        <input type="text" class="form-control" name="hangbanName" id="edit-hangbanName">
                    </div>
                    <div class="form-group">
                        <label for="edit-hangbanStart" class="control-label">出发地:</label>
                        <input type="text" class="form-control" name="hangbanStart" id="edit-hangbanStart">
                    </div>
                    <div class="form-group">
                        <label for="edit-hangbanEnd" class="control-label">目的地:</label>
                        <input type="text" class="form-control" name="hangbanEnd" id="edit-hangbanEnd">
                    </div>
                    <div class="form-group">
                        <label for="edit-hangbanStarttime" class="control-label">出发时间:</label>
                        <input type="text" class="form-control" name="hangbanStarttime" id="edit-hangbanStarttime">
                    </div>
        if (document.getElementById("add-hangbanStart").value.trim().length == 0) 
            alert("出发地不能为空");
            return false;
        
        if (document.getElementById("add-hangbanEnd").value.trim().length == 0) 
            alert("目的地不能为空");
            return false;
        
        if (document.getElementById("add-hangbanStarttime").value.trim().length == 0) 
            alert("出发时间不能为空");
            return false;
        
        if (document.getElementById("add-hangbanEndtime").value.trim().length == 0) 
            <div class="row">
                <div class="col-sm-7">
                    <div class="input-group">
                        <input class="form-control" type="hidden" id="searchColumn" name="searchColumn" value="hangban_name"/>
                        <input class="form-control" type="text" id="search_keyword" name="search_keyword" placeholder="航班号"/> <span class="input-group-btn"><button class="btn btn-pill btn-danger" type="button" onclick="searchList()">搜索</button></span>
                    </div>
                </div>
                <div class="col-sm-5">
                    <button type="button" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> class="btn btn-pill btn-success" data-toggle="modal" data-target="#modal-add">添加航班
                    </button>
                </div>
            </div>
            <br>
            <br>
            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <thead>
                    <tr>
                            <th>航班号</th>
                            <th>出发地</th>
                            <th>目的地</th>
            return false;
        
        if (document.getElementById("add-hangbanZhang").value.trim().length == 0) 
            alert("机长不能为空");
            return false;
        
        if (document.getElementById("add-hangbanPhone").value.trim().length == 0) 
            alert("联系方式不能为空");
            return false;
        
        return true;
    
    //编辑表单提交之前进行检查,如果return false,则不允许提交
    function editCheck() 
        //根据ID获取值
</body>
<script>
    $('#modal-delete').on('show.bs.modal', function (event) 
        let button = $(event.relatedTarget);
        let id = button.data('id');
        let modal = $(this);
        modal.find('#delete-id').val(id);
    )

    $('#modal-edit').on('show.bs.modal', function (event) 
        let button = $(event.relatedTarget);
        let id = button.data('id');
        let modal = $(this);
        $.ajax(
            url: 'HangbanServlet?action=get&id=' + id,
            type: "get",
            success: function (voString) 
                let vo = eval('(' + voString + ')');
                        modal.find('#edit-id').val(vo.id);
                        modal.find('#edit-hangbanName').val(vo.hangbanName);
                        modal.find('#edit-hangbanEnd').val(vo.hangbanEnd);
                        modal.find('#edit-hangbanStarttime').val(vo.hangbanStarttime);
                        modal.find('#edit-hangbanEndtime').val(vo.hangbanEndtime);
                        modal.find('#edit-hangbanZhang').val(vo.hangbanZhang);
                        modal.find('#edit-hangbanPhone').val(vo.hangbanPhone);
                        modal.find('#edit-hangbanText').val(vo.hangbanText);
            
        )
    )
    $('#modal-info').on('show.bs.modal', function (event) 
        let button = $(event.relatedTarget);
        let id = button.data('id');
        let modal = $(this);
        $.ajax(
            url: 'HangbanServlet?action=get&id=' + id,
            type: "get",
            success: function (voString) 
                let vo = eval('(' + voString + ')');
                        <label class="control-label">(hidden)</label>
                        <input type="text" class="form-control" name="action" value="add">
                    </div>
                    <div class="form-group">
                        <label for="add-hangbanName" class="control-label">航班号:</label>
                        <input type="text" class="form-control" name="hangbanName" id="add-hangbanName">
                    </div>
                    <div class="form-group">
                        <label for="add-hangbanStart" class="control-label">出发地:</label>
                        <input type="text" class="form-control" name="hangbanStart" id="add-hangbanStart">
                    </div>
                    <div class="form-group">
                        <label for="add-hangbanEnd" class="control-label">目的地:</label>
                        <input type="text" class="form-control" name="hangbanEnd" id="add-hangbanEnd">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-pill btn-default" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-pill btn-success">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- delete -->
<div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form action="HangbanServlet">
            </form>
        </div>
    </div>
</div>

<!-- edit -->
<div class="modal fade" id="modal-edit" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form action="HangbanServlet" onsubmit="return editCheck()">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">更新航班</h4>
                </div>
                <div class="modal-body">
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>航班管理</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/main.css">
    <script src="js/jquery-3.5.1.js"></script>
    <script src="js/bootstrap.js"></script>
</head>

                <td>$vo.hangbanPhone</td>
                            <th style="text-align: center;">
                                <button class="btn btn-pill btn-info btn-sm" data-id="$vo.id"
                                        data-toggle="modal" data-target="#modal-info">详情
                                </button>
                                <button class="btn btn-pill btn-info btn-sm"
                                                <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if>
                                        data-id="$vo.id"
                                        data-toggle="modal" data-target="#modal-edit">编辑
                                </button>
                                <button class="btn btn-pill btn-info btn-sm" <c:if test="$loginUser.userType != '管理员'">disabled="disabled" title="没有权限!!!"</c:if> data-id="$vo.id"
                                        data-toggle="modal" data-target="#modal-delete">删除
                                </button>
                            </th>
                        </tr>
                    </c:forEach>
                    </tbody>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header"开发一个java web项目有个功能是 飞机航班 火车车次 ip 手机号查询===大家常用的功能 要怎么做

北京坐飞机怎么去黑龙江北安市?

I/O复用的理解

基于android的航班查询飞机票订购系统app

张天爱盖报纸睡机场 为新片连续工作3天无休

优化指派基于matlab粒子群算法求解指派优化问题(工作质量)含Matlab源码 2390期