基于javaweb+jsp的会议室管理系统

基于javaweb+jsp的会议室管理系统

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …

部分代码实现JSP

        }
        if (document.getElementById("huiyiEnddate").value.trim().length == 0) {
            alert("结束时间不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

<%@ 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" %>
            <tr>
                <td>开始时间:<b>${vo.huiyiStartdate}</b></td>
            </tr>
            <tr>
                <td>结束时间:<b>${vo.huiyiEnddate}</b></td>
            </tr>
            <tr>
                <td>备注:<b>${vo.huiyiText}</b></td>
            </tr>
        </table>
        <br>
        <button type="button" class="btn btn-line btn-rect btn-default btn-sm" onclick="javascript:history.back(-1);">返回</button>
    </form>
</div>
</body>
</html>

<%@ 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" %>
        <div class="index-content-operation-search"><input id="search_keyword" placeholder="会议名" type="text" name="search_keyword"/><input type="hidden" id="searchColumn" name="searchColumn" value="huiyi_name"/><button class="btn btn-line btn-rect btn-warning btn-sm" onclick="searchList()">搜索</button></div>
    </div>
    <br>
    <table class="table table-striped table-hover table-bordered">
        <thead>
        <tr class="index-content-table-th">
            <th>会议名</th>
            <th>预定人</th>
            <th>联系方式</th>
            <th>会议室</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>操作</th>
        </tr>
        <input type="hidden" id="id" name="id" value="${vo.id}"/>
        
        <table class="index-content-table-add">
            <tr>
                <td width="12%">会议名:</td><td><input class="index-content-table-td-add" type="text" id="huiyiName" name="huiyiName" value="${vo.huiyiName}"/></td>
            </tr>
            <tr>
                <td width="12%">预定人:</td><td><input class="index-content-table-td-add" type="text" id="huiyiRen" name="huiyiRen" value="${vo.huiyiRen}"/></td>
            </tr>
            <tr>
                <td width="12%">联系方式:</td><td><input class="index-content-table-td-add" type="text" id="huiyiPhone" name="huiyiPhone" value="${vo.huiyiPhone}"/></td>
            </tr>
            <tr>
                <td width="12%">会议室:</td><td><input class="index-content-table-td-add" type="text" id="huiyiHys" name="huiyiHys" value="${vo.huiyiHys}"/></td>
            </tr>
            <tr>
                <td width="12%">开始时间:</td><td><input class="index-content-table-td-add" type="text" id="huiyiStartdate" name="huiyiStartdate" value="${vo.huiyiStartdate}"/></td>
            </tr>
            <tr>
<%@ 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" type="text/css" href="css/index.css"/>
</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">修改会议</a>
        <br>
        <br>
    </div>
    <br>
        }
        if (document.getElementById("huiyiHys").value.trim().length == 0) {
            alert("会议室不能为空!");
            return false;
        }
        if (document.getElementById("huiyiStartdate").value.trim().length == 0) {
            alert("开始时间不能为空!");
            return false;
        }
        if (document.getElementById("huiyiEnddate").value.trim().length == 0) {
            alert("结束时间不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

            <tr>
                <td width="12%">开始时间:</td><td><input class="index-content-table-td-add" type="text" id="huiyiStartdate" name="huiyiStartdate" value=""/></td>
            </tr>
            <tr>
                <td width="12%">结束时间:</td><td><input class="index-content-table-td-add" type="text" id="huiyiEnddate" name="huiyiEnddate" value=""/></td>
            </tr>
            <tr>
                    <td width="12%">备注:</td><td><textarea id="huiyiText" name="huiyiText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......"></textarea></td>
            </tr>
        </table>
        <br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-line btn-rect btn-info btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-line btn-rect btn-default btn-sm" onclick="javascript:history.back(-1);">取消</button>
    </form>
</div>

    </table>
    <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div>
</div>
</body>
<script>
    function searchList() {
      
      
        window.location.href = "huiyiList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
    }
</script>
<html>
<head>
    <meta charset="utf-8"/>
    <title>会议管理</title>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">会议管理</a>
        <br>
        <br>
    </div>
    <br>
    <div class="index-content-operation">
        <table class="index-content-table-add">
            <tr>
                <td width="12%">会议名:</td><td><input class="index-content-table-td-add" type="text" id="huiyiName" name="huiyiName" value=""/></td>
            </tr>
            <tr>
                <td width="12%">预定人:</td><td><input class="index-content-table-td-add" type="text" id="huiyiRen" name="huiyiRen" value=""/></td>
            </tr>
            <tr>
                <td width="12%">联系方式:</td><td><input class="index-content-table-td-add" type="text" id="huiyiPhone" name="huiyiPhone" value=""/></td>
            </tr>
            <tr>
                <td width="12%">会议室:</td><td><input class="index-content-table-td-add" type="text" id="huiyiHys" name="huiyiHys" value=""/></td>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() {
        //根据ID获取值
        if (document.getElementById("huiyiName").value.trim().length == 0) {
            alert("会议名不能为空!");
            return false;
        }
        if (document.getElementById("huiyiRen").value.trim().length == 0) {
            alert("预定人不能为空!");
            return false;
        }
        if (document.getElementById("huiyiPhone").value.trim().length == 0) {
            alert("联系方式不能为空!");
<html>
<head>
    <meta charset="utf-8"/>
    <title>会议详情</title>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">会议详情</a>
        <br>
        <br>
    </div>
<%@ 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" type="text/css" href="css/index.css"/>
</head>
<body>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">添加会议</a>
        <br>
        <br>
    </div>
    <br>
    <form>
        <table class="index-content-table-add" style="font-size: 18px;">
            <tr>
                <td>会议名:<b>${vo.huiyiName}</b></td>
            </tr>
            <tr>
                <td>预定人:<b>${vo.huiyiRen}</b></td>
            </tr>
            <tr>
                <td>联系方式:<b>${vo.huiyiPhone}</b></td>
            </tr>
            <tr>
                <td>会议室:<b>${vo.huiyiHys}</b></td>
        if (document.getElementById("huiyiName").value.trim().length == 0) {
            alert("会议名不能为空!");
            return false;
        }
        if (document.getElementById("huiyiRen").value.trim().length == 0) {
            alert("预定人不能为空!");
            return false;
        }
        if (document.getElementById("huiyiPhone").value.trim().length == 0) {
            alert("联系方式不能为空!");
            return false;
        }
        if (document.getElementById("huiyiHys").value.trim().length == 0) {
            alert("会议室不能为空!");
            return false;
        }
        if (document.getElementById("huiyiStartdate").value.trim().length == 0) {
            alert("开始时间不能为空!");
            </tr>
            <tr>
                <td width="12%">备注:</td><td><textarea id="huiyiText" name="huiyiText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">${vo.huiyiText}</textarea></td>
            </tr>
        </table>
        <br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-line btn-rect btn-info btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-line btn-rect btn-default btn-sm" onclick="javascript:history.back(-1);">取消</button>
    </form>
</div>

</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() {
        <tbody>
        <c:forEach items="${list}" var="vo">
            <tr class="index-content-table-td">
                <td>${vo.huiyiName}</td>
                <td>${vo.huiyiRen}</td>
                <td>${vo.huiyiPhone}</td>
                <td>${vo.huiyiHys}</td>
                <td>${vo.huiyiStartdate}</td>
                <td>${vo.huiyiEnddate}</td>
                <td>
                    <button class="btn btn-line btn-rect btn-default btn-sm" style="padding: 0px 1px;" onclick="window.location.href='huiyiGet?id=${vo.id}'">详情</button>&nbsp;
                    <button class="btn btn-line btn-rect btn-success btn-sm" style="padding: 0px 1px;"
                            <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
                    οnclick="window.location.href='huiyiEditPre?id=${vo.id}'">编辑</button>&nbsp;
                    <button class="btn btn-line btn-rect btn-danger btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:${vo.huiyiName}?'))window.location.href='huiyiDelete?id=${vo.id}'">删除</button>
                </td>
            </tr>
        </c:forEach>

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

idea/eclipse/MyEclipse

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

登录、注册、退出、用户模块、公告模块、会议室模块、会议模块的增删改查管理

v.mp4_20211009_183956.071

v.mp4_20211009_184004.230

v.mp4_20211009_184023.902

v.mp4_20211009_184026.630

v.mp4_20211009_184031.805

document

猜你喜欢

转载自blog.csdn.net/javayms/article/details/121505585