基于javaweb+jsp的户籍管理系统
基于javaweb+jsp的户籍管理系统
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代码实现JSP
<td>${vo.feedbackName}</td>
<td>${vo.feedbackPhone}</td>
<td>${vo.feedbackTitle}</td>
<td>
<button class="btn btn-pill btn-danger btn-sm" style="padding: 0px 1px;" onclick="window.location.href='feedbackGet?id=${vo.id}'">详情</button>
<button class="btn btn-pill btn-success btn-sm" style="padding: 0px 1px;"
<c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
οnclick="window.location.href='feedbackEditPre?id=${vo.id}'">编辑</button>
<button class="btn btn-pill btn-default btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:${vo.feedbackName}?'))window.location.href='feedbackDelete?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>
<script>
function searchList() {
window.location.href = "feedbackList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
}
</tr>
<tr>
<td>电话:<b>${vo.feedbackPhone}</b></td>
</tr>
<tr>
<td>标题:<b>${vo.feedbackTitle}</b></td>
</tr>
<tr>
<td>内容:<b>${vo.feedbackText}</b></td>
</tr>
</table>
<br>
<button type="button" class="btn btn-pill btn-danger btn-sm" onclick="javascript:history.back(-1);">返回</button>
<%@ 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>
<form action="feedbackAdd" 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="feedbackName" name="feedbackName" value=""/></td>
</tr>
<tr>
<td width="12%">电话:</td><td><input class="index-content-table-td-add" type="text" id="feedbackPhone" name="feedbackPhone" value=""/></td>
</tr>
<tr>
<td width="12%">标题:</td><td><input class="index-content-table-td-add" type="text" id="feedbackTitle" name="feedbackTitle" value=""/></td>
</tr>
<tr>
<td width="12%">内容:</td><td><textarea id="feedbackText" name="feedbackText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......"></textarea></td>
</tr>
</table>
<br>
<br>
<br>
<br>
</div>
<br>
<form action="feedbackEdit" 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="feedbackName" name="feedbackName" value="${vo.feedbackName}"/></td>
</tr>
<tr>
<td width="12%">电话:</td><td><input class="index-content-table-td-add" type="text" id="feedbackPhone" name="feedbackPhone" value="${vo.feedbackPhone}"/></td>
</tr>
<tr>
<td width="12%">标题:</td><td><input class="index-content-table-td-add" type="text" id="feedbackTitle" name="feedbackTitle" value="${vo.feedbackTitle}"/></td>
</tr>
<tr>
<td width="12%">内容:</td><td><textarea id="feedbackText" name="feedbackText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">${vo.feedbackText}</textarea></td>
</tr>
</table>
<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>
alert("电话不能为空!");
return false;
}
if (document.getElementById("feedbackTitle").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" %>
</form>
</div>
</body>
<script type="text/javascript">
//提交之前进行检查,如果return false,则不允许提交
function check() {
//根据ID获取值
if (document.getElementById("feedbackName").value.trim().length == 0) {
alert("反馈人不能为空!");
return false;
}
<a class="info-detail">反馈 管理</a>
<br>
<br>
</div>
<br>
<div class="index-content-operation">
<button class="btn btn-pill btn-info btn-sm" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='feedback_add.jsp'">添加</button>
<div class="index-content-operation-search"><input id="search_keyword" placeholder="反馈人" type="text" name="search_keyword"/><input type="hidden" id="searchColumn" name="searchColumn" value="feedback_name"/><button class="btn btn-pill btn-default 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>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="vo">
}
if (document.getElementById("feedbackTitle").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" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>反馈 详情</title>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
<%@ 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>
</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" %>
<!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">
<br>
<br>
<button type="submit" class="btn btn-pill btn-info btn-sm">提交</button> <button type="button" class="btn btn-pill btn-danger btn-sm" onclick="javascript:history.back(-1);">取消</button>
</form>
</div>
</body>
<script type="text/javascript">
//提交之前进行检查,如果return false,则不允许提交
function check() {
//根据ID获取值
if (document.getElementById("feedbackName").value.trim().length == 0) {
alert("反馈人不能为空!");
return false;
}
if (document.getElementById("feedbackPhone").value.trim().length == 0) {
alert("电话不能为空!");
运行环境
Java≥6、Tomcat≥7.0、MySQL≥5.5
开发工具
idea/eclipse/MyEclipse
技术框架
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
登录、注册、退出、用户模块、公告模块、户籍模块、反馈模块、迁入模块、迁出模块的增删改查管理
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
二维码