关注分享主机优惠活动
国内外VPS云服务器

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

基于学生宿舍管理系统的一些规范,楼是不能空的。如果是,则不允许提交。根据得到的值,姓名不能为空,电话不能为空。侧栏。

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

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

部分代码实现了JSP

返回false} if(document . getelementbyid(" add -管理员楼")。value.trim()。length = = 0) {alert("建筑不能为空");返回false}返回true}//提交前检查编辑表单。如果返回false,则不允许提交函数editCheck() {//来获取值if(document . getelementbyid(" edit -administrator name ")。value.trim()。length = = 0) {alert("名称不能为空")根据ID;返回false} if(document . getelementbyid(" edit -管理员电话")。value.trim()。length = = 0) {alert("电话不能为空");返回false}搜索禁用= "禁用" title= "无权限!!!"class = " BTN BTN -line BTN -primary " data -toggle = " modal " data -target = " # modal -add " >添加寄宿生性别电话楼操作$ { VO . administrator name } $ { VO . administrator sex } $ { VO . administrator phone } $ { VO . administrator building }学生宿舍管理系统欢迎:${log InUser.username}退出DOCTYPE html >宿舍管理员管理let id = button . data(" id ");设modal = $(this);modal.find("#delete-id ")。val(id);}) $("#modal-edit ")。on("show.bs.modal ",function(event){ let button = $(event . related target);let id = button . data(" id ");设modal = $(this);$.ajax({ url: "administratorGet?id=" + id,type: "get ",success:function(voString){ let VO = eval("+voString+");modal.find("#edit-id ")。val(VO . id);modal . find(" # edit -administrator name ")。val(VO . administrator name);For(让“男/女”的val。split("/"){ if(val = = VO . administrator sex){ modal . find(" # edit -administrator sex _ "+VO . administrator sex)。prop("checked ",真);} else { modal . find(" # edit -administrator sex _ "+VO . administrator sex)。remove attr(" checked ");& times经理姓名:性别:电话:备注:取消提交modal . find(" # info -administrator building ")。text(VO . administrator building);modal . find(" # info -administrator text ")。text(VO . administrator text);} }) })函数search list(){ window . location . href = " administrator list?search column = "+document . getelementbyid(" search column ")。value+" & keyword = "+document . getelementbyid(" search _ keyword ")。价值;}//添加提交前要检查的表单。如果返回false,则不允许提交函数addCheck() {//来获取值if(document . getelementbyid(" add -administrator name ")。value.trim()。length = = 0) {alert("名称不能为空")根据ID;返回false} if(document . getelementbyid(" add -administrator phone ")value . trim()。length = = 0){ Undelete $(" # modal -delete ")。on("show.bs.modal ",function (event) {Building:备注:关闭详情Disabled="disabled" title= "无权限!!!"data-id="${vo.id} "

未经允许不得转载:主机频道 » 基于javaweb+jsp的学生宿舍管理系统

评论 抢沙发

评论前必须登录!