编程语言
首页 > 编程语言> > 基于javaweb+jsp的小区物业管理系统

基于javaweb+jsp的小区物业管理系统

作者:互联网

基于javaweb+jsp的小区物业管理系统

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

部分代码实现JSP

        window.location.href = "complaintList?searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value;
    }
</script>
        <br>
        <br>
    </div>
    <br>
    <form action="complaintEdit" 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="complaintName" name="complaintName" value="${vo.complaintName}"/></td>
            </tr>
            <tr>
                <td width="12%">详细情况:</td><td><textarea id="complaintText" name="complaintText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......">${vo.complaintText}</textarea></td>
            </tr>
            <tr>
                <td width="12%">投诉人:</td><td><input class="index-content-table-td-add" type="text" id="complaintOwner" name="complaintOwner" value="${vo.complaintOwner}"/></td>
            </tr>
            <tr>
                <td width="12%">投诉时间:</td><td><input class="index-content-table-td-add" type="text" id="complaintTime" name="complaintTime" value="${vo.complaintTime}"/></td>
            </tr>
            <tr>
<!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>
        <table class="index-content-table-add" style="font-size: 18px;">
            <tr>
                <td>主题:<b>${vo.complaintName}</b></td>
            </tr>
            <tr>
                <td>详细情况:<b>${vo.complaintText}</b></td>
            </tr>
            <tr>
                <td>投诉人:<b>${vo.complaintOwner}</b></td>
            </tr>
            <tr>
                <td>投诉时间:<b>${vo.complaintTime}</b></td>
            </tr>
            <tr>
                <td>处理状态:
                    <b>${vo.complaintStatus}</b>
<!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>
    <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 action="complaintAdd" 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="complaintName" name="complaintName" value=""/></td>
            <tr>
                    <td width="12%">详细情况:</td><td><textarea id="complaintText" name="complaintText" style="width: 60%; height: 100px;padding: 0px 17px;" placeholder="请输入内容......"></textarea></td>
            </tr>
            <tr>
                <td width="12%">投诉人:</td><td><input class="index-content-table-td-add" type="text" id="complaintOwner" name="complaintOwner" value=""/></td>
            </tr>
            <tr>
                <td width="12%">投诉时间:</td><td><input class="index-content-table-td-add" type="text" id="complaintTime" name="complaintTime" value=""/></td>
            </tr>
            <tr>
                <td width="12%">处理状态:</td>
                <td>
                        <input name="complaintStatus" type="radio" value="已处理" checked="checked"/>&nbsp;&nbsp;&nbsp;已处理&nbsp;&nbsp;&nbsp;&nbsp;
            </tr>
        </table>
        <br>
        <button type="button" class="btn btn-pill 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" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ 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"/>
<%@ 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">
                </td>
            </tr>
        </table>
        <br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-pill btn-line btn-success btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-pill btn-line btn-default btn-sm" onclick="javascript:history.back(-1);">取消</button>
    </form>
</div>

</body>
<script type="text/javascript">
    function check() {
        //根据ID获取值
        if (document.getElementById("complaintName").value.trim().length == 0) {
            alert("主题不能为空!");
            return false;
        }
        if (document.getElementById("complaintOwner").value.trim().length == 0) {
            alert("投诉人不能为空!");
            return false;
        }
        if (document.getElementById("complaintTime").value.trim().length == 0) {
            alert("投诉时间不能为空!");
            return false;
        }
        return true;
    }
</script>
</html>

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
                <td>${vo.complaintTime}</td>
                <td>${vo.complaintStatus}</td>
                <td>
                    <button class="btn btn-pill btn-line btn-default btn-sm" style="padding: 0px 1px;" onclick="window.location.href='complaintGet?id=${vo.id}'">详情</button>&nbsp;
                    <button class="btn btn-pill btn-line btn-primary btn-sm" style="padding: 0px 1px;"
                            <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if>
                    οnclick="window.location.href='complaintEditPre?id=${vo.id}'">编辑</button>&nbsp;
                    <button class="btn btn-pill btn-line btn-success btn-sm" style="padding: 0px 1px;" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="if(window.confirm('将要删除:${vo.complaintName}?'))window.location.href='complaintDelete?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>
        <button class="btn btn-pill btn-line btn-success btn-sm" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> οnclick="window.location.href='complaint_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="complaint_name"/><button class="btn btn-pill btn-line 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>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="vo">
            <tr class="index-content-table-td">
                <td>${vo.complaintName}</td>
                <td>
                   <input name="complaintStatus" type="radio" value="已处理" ${vo.complaintStatus=='已处理'?'checked':''}/>&nbsp;&nbsp;&nbsp;已处理&nbsp;&nbsp;&nbsp;&nbsp;
                   <input name="complaintStatus" type="radio" value="待处理" ${vo.complaintStatus=='待处理'?'checked':''}/>&nbsp;&nbsp;&nbsp;待处理&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </table>
        <br>
        <br>
        <br>
        &nbsp;&nbsp;&nbsp;<button type="submit" class="btn btn-pill btn-line btn-success btn-sm">提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="button" class="btn btn-pill 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("complaintName").value.trim().length == 0) {
            return false;
        }
        if (document.getElementById("complaintOwner").value.trim().length == 0) {
            alert("投诉人不能为空!");
            return false;
        }
        if (document.getElementById("complaintTime").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" %>

运行环境

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_20210507_112618.861

v.mp4_20210507_112626.521

v.mp4_20210507_112658.051

v.mp4_20210507_112713.461

v.mp4_20210507_112726.510

document

标签:物业管理,javaweb,value,vo,return,getElementById,投诉,nbsp,jsp
来源: https://blog.csdn.net/javayms/article/details/120773215