基于javaweb+jsp实现企业车辆管理系统 如何构建企业车辆用户公告综合信息管理系统
Admin 2023-04-26 群英技术资讯 342 次浏览
今天我们来学习关于“基于javaweb+jsp实现企业车辆管理系统 如何构建企业车辆用户公告综合信息管理系统”的内容,下文有详解方法和实例,内容详细,逻辑清晰,有需要的朋友可以参考,希望大家阅读完这篇文章后能有所收获,那么下面就一起来了解一下吧。
Java≥6、Tomcat≥7.0、MySQL≥5.5
idea/eclipse/MyEclipse
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
课程设计,大作业,毕业设计,项目练习,学习演示等
登录、注册、退出、用户模块、公告模块、车辆模块的增删改查管理
<%@ 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"> <ul class="nav nav-tabs"> <li><a href="carList?" rel="external nofollow" >车辆列表</a></li> <li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" >添加</a></li> </ul> <br/> <form class="form-horizontal" role="form" action="carAdd" method="post" onsubmit="return check()"> <div class="form-group"> <label class="col-sm-3 control-label">车牌:</label> <div class="col-sm-5">
</tr> </c:forEach> </tbody> </table> <div style="float: right;padding-right: 10px;color: #515151;"><jsp:include page="split.jsp"/></div> </div> </body>
<div class="col-sm-5" style="padding-top: 7px;"> ${vo.carPhone} </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="carText" name="carText" disabled="disabled">${vo.carText}</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-pill btn-grad btn-success btn-sm" value="返回" onclick="javascript:history.back(-1);"> </div> </div> </form> </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="carIndate" name="carIndate"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">状态:</label> <div class="col-sm-5"> <input name="carStatus" type="radio" value="正常" checked="checked"/> 正常 <input name="carStatus" type="radio" value="故障"/> 故障 </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="carUser" name="carUser"> </div> </div> <div class="form-group">
</body> <script type="text/javascript"> //提交之前进行检查,如果return false,则不允许提交 function check() { //根据ID获取值 if (document.getElementById("carPai").value.trim().length == 0) { alert("车牌不能为空!"); return false; } if (document.getElementById("carName").value.trim().length == 0) { alert("品牌型号不能为空!"); return false;
<ul class="nav nav-tabs"> <li><a href="carList" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >车辆列表</a></li> <li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" >编辑</a></li> </ul> <br/> <form class="form-horizontal" role="form" action="carEdit" 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="carPai" name="carPai" value="${vo.carPai}"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">品牌型号:</label> <div class="col-sm-5">
<ul class="nav nav-tabs"> <li><a href="carList" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >车辆列表</a></li> <li class="active"><a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" >编辑</a></li> </ul> <br/> <form class="form-horizontal" role="form" action="carEdit" 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="carPai" name="carPai" value="${vo.carPai}"> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">品牌型号:</label> <div class="col-sm-5">
<th>里程</th> <th>购买日期</th> <th>状态</th> <th>驾驶员</th> <th>联系方式</th> <th>操作</th> </tr> </thead> <tbody> <c:forEach items="${list}" var="vo"> <tr> <td>${vo.carPai}</td> <td><a href="carGet?id=${vo.id}" rel="external nofollow" >${vo.carName}</a></td> <td>${vo.carChexing}</td> <td>${vo.carCheng}</td> <td>${vo.carIndate}</td>
<input type="submit" class="btn btn-pill btn-grad btn-warning btn-sm" value="保存"> <input type="button" class="btn btn-pill btn-grad btn-success btn-sm" value="返回" onclick="javascript:history.back(-1);"> </div> </div> </form> </div> </body> <script type="text/javascript"> //提交之前进行检查,如果return false,则不允许提交 function check() { //根据ID获取值 if (document.getElementById("carPai").value.trim().length == 0) { alert("车牌不能为空!"); return false; } if (document.getElementById("carName").value.trim().length == 0) {
</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"> <ul class="nav nav-tabs"> <li><a href="carList" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >用户列表</a></li>
${vo.carIndate} </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">状态:</label> <div class="col-sm-5" style="padding-top: 7px;"> ${vo.carStatus} </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">驾驶员:</label> <div class="col-sm-5" style="padding-top: 7px;"> ${vo.carUser} </div> </div> <div class="form-group">
<input type="text" class="form-control" name="keyword" id="keyword" placeholder="品牌型号"> <input type="hidden" id="searchColumn" name="searchColumn" value="car_name"/> </div> <button class="btn btn-pill btn-grad btn-info btn-sm"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询 </button> </form> <br/> <table class="table table-hover table-bordered"> <thead> <tr> <th>车牌</th> <th>品牌型号</th>
<div class="col-sm-5"> <input type="text" class="form-control" id="carPhone" name="carPhone" value="${vo.carPhone}"> </div> </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="carText" name="carText" placeholder="请输入内容......">${vo.carText}</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-pill btn-grad btn-warning btn-sm" value="保存"> <input type="button" class="btn btn-pill btn-grad btn-success btn-sm" value="返回" onclick="javascript:history.back(-1);"> </div> </div> </form>
</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"> <ul class="nav nav-tabs"> <li class="active"><a href="carList" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >车辆列表</a></li> <c:if test="${loginUser.userType == '管理员'}"><li><a href="car_add.jsp" rel="external nofollow" >添加</a></li></c:if> </ul> <br/> <form class="form-inline" id="searchForm" action="carList" method="post">
if (document.getElementById("carPhone").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>
<label class="col-sm-3 control-label">状态:</label> <div class="col-sm-5"> <input name="carStatus" type="radio" value="正常" ${vo.carStatus=='正常'?'checked':''}/> 正常 <input name="carStatus" type="radio" value="故障" ${vo.carStatus=='故障'?'checked':''}/> 故障 </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="carUser" name="carUser" value="${vo.carUser}"> </div> </div> <div class="form-group">
return false; } if (document.getElementById("carChexing").value.trim().length == 0) { alert("车型不能为空!"); return false; } if (document.getElementById("carCheng").value.trim().length == 0) { alert("里程不能为空!"); return false; } if (document.getElementById("carIndate").value.trim().length == 0) { alert("购买日期不能为空!"); return false; } if (document.getElementById("carUser").value.trim().length == 0) { alert("驾驶员不能为空!"); return false;
<div class="col-sm-5" style="padding-top: 7px;"> ${vo.carChexing} </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">里程:</label> <div class="col-sm-5" style="padding-top: 7px;"> ${vo.carCheng} </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">购买日期:</label>
<td>${vo.carUser}</td> <td>${vo.carPhone}</td> <td> <button onclick="window.location.href='carEditPre?id=${vo.id}'" class="btn btn-pill btn-grad btn-info btn-xs" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> > <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> 编辑 </button> <button onclick="if(window.confirm('将要删除:${vo.carName}?'))window.location.href='carDelete?id=${vo.id}'" class="btn btn-pill btn-grad btn-default btn-xs" <c:if test="${loginUser.userType != '管理员'}">disabled="disabled" title="没有权限!!!"</c:if> > <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> 删除 </button>
</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="carName" name="carName"> </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="carChexing" name="carChexing"> </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="carCheng" name="carCheng"> </div>
</ul> <br/> <form class="form-horizontal" role="form" action="#" method="post"> <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" style="padding-top: 7px;"> ${vo.carPai} </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">品牌型号:</label> <div class="col-sm-5" style="padding-top: 7px;"> ${vo.carName} </div> </div> <div class="form-group">
<div class="col-sm-5"> <input type="text" class="form-control" id="carPhone" name="carPhone"> </div> </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="carText" name="carText" placeholder="请输入内容......"></textarea> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"></label>
if (document.getElementById("carChexing").value.trim().length == 0) { alert("车型不能为空!"); return false; } if (document.getElementById("carCheng").value.trim().length == 0) { alert("里程不能为空!"); return false; } if (document.getElementById("carIndate").value.trim().length == 0) { alert("购买日期不能为空!"); return false; } if (document.getElementById("carUser").value.trim().length == 0) { alert("驾驶员不能为空!"); return false; } if (document.getElementById("carPhone").value.trim().length == 0) { alert("联系方式不能为空!"); return false; } return true;
</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="carChexing" name="carChexing" value="${vo.carChexing}"> </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="carCheng" name="carCheng" value="${vo.carCheng}"> </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="carIndate" name="carIndate" value="${vo.carIndate}"> </div> </div>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
今天小编就为大家分享一篇jsp实现局部刷新页面、异步加载页面的方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
这篇文章主要介绍了SSM框架JSP使用Layui实现layer弹出层效果,文章通过实例代码给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
今天小编就为大家分享一篇关于在JSP页面中动态生成图片验证码的方法实例,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
这篇文章主要为大家详细介绍了JSP实现分页效果,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
这篇文章主要为大家详细介绍了jsp+mysql实现网页的分页查询,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
成为群英会员,开启智能安全云计算之旅
立即注册Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008