基于新报表管理系统的部分代码,实现了新报表管理系统。
基于javaweb+jsp的新生报到管理系统
Java web JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven…
部分代码实现了JSP
新生报到管理系统欢迎使用新生报到管理系统:${loginUser.username} Exit}}})函数搜索列表(){ window . location . href = " baodaoservlet?action = list & search column = "+document . getelementbyid(" search column ")。value+" & keyword = "+document . getelementbyid(" search _ keyword ")。价值;}//提交前检查表单。如果返回false,则不允许提交函数addCheck() {//获取值if(document . getelementbyid(" add -baodaono ")。value.trim()。length = = 0) {alert("学号不能为空")根据ID;返回false} if(document . getelementbyid(" add -包道名字")。value.trim()。length = = 0){删除报告。您确定要删除此报告记录吗?(隐藏)取消删除$("#modal-delete ")。on("show.bs.modal ",function(event){ let button = $(event . related target);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);modal.find("#edit-baodaoText ")。val(VO . baodaotext);} }) }) $("#modal-info ")。on("show.bs.modal ",function(event){ let button = $(event . related target);let id = button . data(" id ");设modal = $(this);$.Ajax({ URL:“BaodaoServlet?action=get&id=" + id,type: "get ",success:function(voString){ let VO = eval("+voString+");modal.find("#info-baodaoNo ")。正文(VO . baodaono);modal.find("#info-baodaoName ")。text(VO . baodaoname);modal.find("#info-baodaoSex ")。正文(VO . baodaosex);modal.find("#info-baodaoPhone ")。正文(VO . baodaophone);modal . find(" # info -baodao zhuan ye ")。正文(VO . baodao zhuan ye);modal.find("#info-baodaoClass ")。text(VO . baodaoclass);modal.find("#info-baodaoDate ")。text(VO . baodaodate);返回true}//提交前检查编辑表单。如果返回false,则不允许提交函数editCheck() {//获取值if(document . getelementbyid(" edit -baodaono ")。value.trim()。length = = 0) {alert("学号不能为空")根据ID;返回false} if(document . getelementbyid(" edit -包道名称")。value.trim()。length = = 0) {alert("名称不能为空");返回false} if(document . getelementbyid(" edit -baodaophone ")。value.trim()。length = = 0) {alert("联系方式不能为空");返回false} if(document . getelementbyid(" edit -baodaozhanye ")。value.trim()。length = = 0) {alert("专业不能为空");返回false}备注:取消提交搜索Disabled="disabled" title= "无权限!!!"class = " BTN BTN -pill BTN -success " data -toggle = " modal " data -target = " # modal -add " >添加报表$ { VO . baodaosex } $ { VO . baodaophone } $ { VO . baodaozhuan ye } $ { VO . baodaoclass } $ { VO . baodaodate } Details disabled = " disabled " title = "无权限!!!"data -id = " $ { VO . id } " data -toggle = " modal " data -target = " # modal -edit " > edit disabled = " disabled " title = "无权限!!!"data -id = " $ { VO . id } " data -toggle = " modal " data -target = " # modal -delete " >删除姓名:性别:联系方式:班级:时间:备注:关闭
评论前必须登录!
注册