基于javaweb+jsp的企业行政信息管理系统

基于javaweb+jsp的企业行政信息管理系统

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架…均可

开发工具:idea或eclipse或myeclipse

部分代码实现JSP

    function searchList() {
        window.location.href = "HuiServlet?action=list&searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
    }
</script>
    </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>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="vo">
            <tr class="index-content-table-td">
                <td>${vo.huiName}</td>
                <td>${vo.huiDate}</td>
                <td>${vo.huiShi}</td>
                <td>
                    <button class="btn btn-line btn-default btn-sm" style="padding: 0px 1px;" onclick="window.location.href='HuiServlet?action=get&id=${vo.id}'">详情</button>&nbsp;
                    <button class="btn btn-line btn-danger btn-sm" style="padding: 0px 1px;"
                            <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
                    οnclick="window.location.href='HuiServlet?action=editPre&id=${vo.id}'">编辑</button>&nbsp;
                    <button class="btn btn-line btn-info btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:${vo.huiName}?'))window.location.href='HuiServlet?action=delete&id=${vo.id}'">删除</button>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div>
</div>
</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" type="text/css" href="css/index.css"/>
</head>
            <tr>
                <td>备注:<b>${vo.huiText}</b></td>
            </tr>
        </table>
        <br>
        <button type="button" class="btn btn-line 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" %>
            <tr>
                <td width="12%">备注:</td><td><textarea id="huiText" name="huiText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">${vo.huiText}</textarea></td>
            </tr>
        </table>
        <br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-line btn-default btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-line btn-default btn-sm" onclick="javascript:history.back(-1);">取消</button>
    </form>
</div>

</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() {
        //根据ID获取值
        if (document.getElementById("huiName").value.trim().length == 0) {
            alert("主题不能为空!");
            return false;
        }
        if (document.getElementById("huiDate").value.trim().length == 0) {

<%@ 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">
            return false;
        }
        if (document.getElementById("huiDept").value.trim().length == 0) {
            alert("部门不能为空!");
            return false;
        }
        if (document.getElementById("huiShi").value.trim().length == 0) {
            alert("地点不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
            return false;
        }
        if (document.getElementById("huiDate").value.trim().length == 0) {
            alert("时间不能为空!");
            return false;
        }
        if (document.getElementById("huiDept").value.trim().length == 0) {
            alert("部门不能为空!");
            return false;
        }
        if (document.getElementById("huiShi").value.trim().length == 0) {
            alert("地点不能为空!");
            return false;
        }
        return true;
    }
</script>
<jsp:include page="menu.jsp"/>
<div class="index-content">
    <div class="index-content-operation">
        <a class="info-detail">添加会议</a>
        <br>
        <br>
    </div>
    <br>
    <form action="HuiServlet?action=add" method="post" onsubmit="return check()">
        <table class="index-content-table-add">
            <tr>
                <td width="12%">主题:</td><td><input class="index-content-table-td-add" type="text" id="huiName" name="huiName" value=""/></td>
            </tr>
            <tr>
                <td width="12%">时间:</td><td><input class="index-content-table-td-add" type="text" id="huiDate" name="huiDate" value=""/></td>
            </tr>
            <tr>
                <td width="12%">部门:</td><td><input class="index-content-table-td-add" type="text" id="huiDept" name="huiDept" value=""/></td>
            </tr>
            <tr>
                <td width="12%">地点:</td><td><input class="index-content-table-td-add" type="text" id="huiShi" name="huiShi" value=""/></td>
        <br>
        <br>
    </div>
    <br>
    <form action="HuiServlet?action=edit" method="post" onsubmit="return check()">
        <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="huiName" name="huiName" value="${vo.huiName}"/></td>
            </tr>
            <tr>
                <td width="12%">时间:</td><td><input class="index-content-table-td-add" type="text" id="huiDate" name="huiDate" value="${vo.huiDate}"/></td>
            </tr>
            <tr>
                <td width="12%">部门:</td><td><input class="index-content-table-td-add" type="text" id="huiDept" name="huiDept" value="${vo.huiDept}"/></td>
            </tr>
            <tr>
                <td width="12%">地点:</td><td><input class="index-content-table-td-add" type="text" id="huiShi" name="huiShi" value="${vo.huiShi}"/></td>
<%@ 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>
<%@ 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>
    <div class="index-content-operation">
        <button class="btn btn-line btn-default btn-sm" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='hui_add.jsp'">添加</button>
        <br>
    </div>
    <br>
    <form>
        <table class="index-content-table-add" style="font-size: 18px;">
            <tr>
                <td>主题:<b>${vo.huiName}</b></td>
            </tr>
            <tr>
                <td>时间:<b>${vo.huiDate}</b></td>
            </tr>
            <tr>
                <td>部门:<b>${vo.huiDept}</b></td>
            </tr>
            <tr>
                <td>地点:<b>${vo.huiShi}</b></td>
            <tr>
                    <td width="12%">备注:</td><td><textarea id="huiText" name="huiText" 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-default btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-line btn-default btn-sm" onclick="javascript:history.back(-1);">取消</button>
    </form>
</div>

</body>
<script type="text/javascript">
    //提交之前进行检查,如果return false,则不允许提交
    function check() {
        //根据ID获取值
        if (document.getElementById("huiName").value.trim().length == 0) {

Java代码:略

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

idea/eclipse/MyEclipse

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架…均可

开发工具:idea或eclipse或myeclipse

适用

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

功能说明

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

v.mp4_20211010_004558.317

v.mp4_20211010_004607.381

v.mp4_20211010_004613.478

v.mp4_20211010_004619.133

v.mp4_20211010_004626.174

v.mp4_20211010_004631.349

v.mp4_20211010_004636.717

v.mp4_20211010_004638.773

v.mp4_20211010_004642.862

v.mp4_20211010_004650.221

v.mp4_20211010_004656.373

v.mp4_20211010_004704.717

document

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>