基于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>
<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>
<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>
<button type="submit" class="btn btn-line btn-default btn-sm">提交</button> <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>
<button type="submit" class="btn btn-line btn-default btn-sm">提交</button> <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
適用
課程設計,大作業,畢業設計,專案練習,學習演示等
功能說明
登錄、注冊、退出、用戶模塊、公告模塊、會議模塊、培訓模塊、節假模塊的增刪改查管理













轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/375849.html
標籤:其他
