基于javaweb+jsp的访客管理系统

Posted javayms

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于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

        
        if (document.getElementById("laifangIdno").value.trim().length == 0) 
            alert("身份证不能为空!");
            return false;
        
        if (document.getElementById("laifangPhone").value.trim().length == 0) 
            alert("电话不能为空!");
            return false;
        
        if (document.getElementById("laifangIndate").value.trim().length == 0) 
            alert("来访时间不能为空!");
            return false;
        
        if (document.getElementById("laifangOutdate").value.trim().length == 0) 
            alert("离开时间不能为空!");
                <label class="col-sm-3 control-label">电话:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="laifangPhone" name="laifangPhone" value="$vo.laifangPhone">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">来访时间:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="laifangIndate" name="laifangIndate" value="$vo.laifangIndate">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">离开时间:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="laifangOutdate" name="laifangOutdate" value="$vo.laifangOutdate">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事由:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="laifangReason" name="laifangReason" value="$vo.laifangReason">
            <div class="col-sm-5">
                <input type="text" class="form-control" id="laifangIdno" name="laifangIdno">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">电话:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="laifangPhone" name="laifangPhone">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">来访时间:</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" id="laifangIndate" name="laifangIndate">
            </div>
        </div>
        <div class="form-group">
        <li><a href="LaifangServlet?action=list">来访列表</a></li>
        <li class="active"><a href="#">编辑</a></li>
    </ul>
    <br/>
    <form class="form-horizontal" role="form" action="LaifangServlet?action=edit" method="post" onsubmit="return check()">
        <input type="hidden" class="form-control" id="id" name="id" value="$vo.id"/>
        
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名:</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="laifangName" name="laifangName" value="$vo.laifangName">
                </div>
            </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">事由:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                $vo.laifangReason
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                <textarea rows="3" class="form-control" id="laifangText" name="laifangText" disabled="disabled">$vo.laifangText</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-5" style="padding-top: 7px;">
                <input type="button" class="btn btn-grad btn-default btn-sm" value="返回" onclick="javascript:history.back(-1);">
            </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注:</label>
            <div class="col-sm-5">
                <textarea rows="3" class="form-control" id="laifangText" name="laifangText" placeholder="请输入内容......">$vo.laifangText</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-5">
                <input type="submit" class="btn btn-grad btn-success btn-sm" value="保存">
                <input type="button" class="btn btn-grad btn-default btn-sm" value="返回" onclick="javascript:history.back(-1);">
            </div>
        </div>
    </form>
</div>
        
        if (document.getElementById("laifangIndate").value.trim().length == 0) 
            alert("来访时间不能为空!");
            return false;
        
        if (document.getElementById("laifangOutdate").value.trim().length == 0) 
            alert("离开时间不能为空!");
            return false;
        
        if (document.getElementById("laifangReason").value.trim().length == 0) 
            alert("事由不能为空!");
            return false;
                        <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
                        删除
                    </button>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div>
</div>
</body>
        
        if (document.getElementById("laifangReason").value.trim().length == 0) 
            alert("事由不能为空!");
            return false;
        
        return true;
    
</script>
</html>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>来访编辑</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
            <label class="col-sm-3 control-label">身份证:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                $vo.laifangIdno
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">电话:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                $vo.laifangPhone
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">来访时间:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
                $vo.laifangIndate
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">离开时间:</label>
            <div class="col-sm-5" style="padding-top: 7px;">
        return true;
    
</script>
</html>

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>来访详情</title>
    <%@ include file="include/head.jsp" %>
</head>
<body>
<div class="container-fluid">
        <li><a href="LaifangServlet?action=list">用户列表</a></li>
        <li class="active"><a href="#">详情</a></li>
    </ul>
    <br/>
    <form class以上是关于基于javaweb+jsp的访客管理系统的主要内容,如果未能解决你的问题,请参考以下文章

基于javaweb+jsp的超市管理系统

基于javaweb+jsp的企业车辆管理系统

基于javaweb+jsp的学籍管理系统

基于javaweb+jsp的酒店管理系统

基于javaweb+jsp的学生宿舍管理系统

基于javaweb+jsp的医院住院管理系统