摘要:基于的新生报道管理系统部分代码实现新生报道管理系统新生报道管理系统
基于javaweb+jsp的新生报道管理系统
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代码实现JSP
<body><nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">新生报道管理系统span> <span class="icon-bar">span> <span class="icon-bar">span> <span class="icon-bar">span> button> <a class="navbar-brand" href="#">新生报道管理系统a> div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">欢迎:<span style="color: yellow">${loginUser.username}span>a>li> <li><a href="AuthServlet?action=logout">退出a>li> ul> div> div>nav><div class="container-fluid">
} }) }) function searchList() { window.location.href = "BaodaoServlet?action=list&searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value; } //增加表单提交之前进行检查,如果return false,则不允许提交 function addCheck() { //根据ID获取值 if (document.getElementById("add-baodaoNo").value.trim().length == 0) { alert("学号不能为空"); return false; } if (document.getElementById("add-baodaoName").value.trim().length == 0) {
button> <h4 class="modal-title">删除报道h4> div> <div class="modal-body"> 确认要删除该报道记录吗? <div class="form-group hidden"> <label class="control-label">(hidden)label> <input type="hidden" class="form-control" name="action" value="delete"> <input type="text" class="form-control" name="id" id="delete-id"> div> div> <div class="modal-footer"> <button type="button" class="btn btn-pill btn-success" data-dismiss="modal">取消button> <button type="submit" class="btn btn-pill btn-success">删除button> div>
div> div>div>body><script> $("#modal-delete").on("show.bs.modal", function (event) { let button = $(event.relatedTarget); let id = button.data("id"); let modal = $(this); modal.find("#delete-id").val(id); }) $("#modal-edit").on("show.bs.modal", function (event) { let button = $(event.relatedTarget); let id = button.data("id"); let modal = $(this);
modal.find("#edit-baodaoText").val(vo.baodaoText); } }) }) $("#modal-info").on("show.bs.modal", function (event) { let button = $(event.relatedTarget); let id = button.data("id"); let modal = $(this); $.ajax({ url: "BaodaoServlet?action=get&id=" + id, type: "get", success: function (voString) { let vo = eval("(" + voString + ")"); modal.find("#info-baodaoNo").text(vo.baodaoNo); modal.find("#info-baodaoName").text(vo.baodaoName); modal.find("#info-baodaoSex").text(vo.baodaoSex); modal.find("#info-baodaoPhone").text(vo.baodaoPhone); modal.find("#info-baodaoZhuanye").text(vo.baodaoZhuanye); modal.find("#info-baodaoClass").text(vo.baodaoClass); modal.find("#info-baodaoDate").text(vo.baodaoDate);
return true; } //编辑表单提交之前进行检查,如果return false,则不允许提交 function editCheck() { //根据ID获取值 if (document.getElementById("edit-baodaoNo").value.trim().length == 0) { alert("学号不能为空"); return false; } if (document.getElementById("edit-baodaoName").value.trim().length == 0) { alert("姓名不能为空"); return false; } if (document.getElementById("edit-baodaoPhone").value.trim().length == 0) { alert("联系方式不能为空"); return false; } if (document.getElementById("edit-baodaoZhuanye").value.trim().length == 0) { alert("专业不能为空"); return false; }
div> <div class="form-group"> <label for="add-baodaoText" class="control-label">备注:label> <textarea style="height: 100px;" class="form-control" name="baodaoText" id="add-baodaoText">textarea> div> div> <div class="modal-footer"> <button type="button" class="btn btn-pill btn-success" data-dismiss="modal">取消button> <button type="submit" class="btn btn-pill btn-success">提交button> div> form> div> div>div>
<div class="col-sm-3 col-md-2 sidebar"> <jsp:include page="menu.jsp"> <jsp:param value="active" name="Baodao_active"/> jsp:include> div> <br> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div class="row"> <div class="col-sm-7"> <div class="input-group"> <input class="form-control" type="hidden" id="searchColumn" name="searchColumn" value="baodao_name"/> <input class="form-control" type="text" id="search_keyword" name="search_keyword" placeholder="姓名"/> <span class="input-group-btn"><button class="btn btn-pill btn-danger" type="button" onclick="searchList()">搜索button>span> div> div> <div class="col-sm-5"> <button type="button" if test="${loginUser.userType != "管理员"}">disabled="disabled" title="没有权限!!!"c:if> class="btn btn-pill btn-success" data-toggle="modal" data-target="#modal-add">添加报道 button> div> div>
<td>${vo.baodaoSex}td> <td>${vo.baodaoPhone}td> <td>${vo.baodaoZhuanye}td> <td>${vo.baodaoClass}td> <td>${vo.baodaoDate}td> <th style="text-align: center;"> <button class="btn btn-pill btn-danger btn-sm" data-id="${vo.id}" data-toggle="modal" data-target="#modal-info">详情 button> <button class="btn btn-pill btn-danger btn-sm" if test="${loginUser.userType != "管理员"}">disabled="disabled" title="没有权限!!!"c:if> data-id="${vo.id}" data-toggle="modal" data-target="#modal-edit">编辑 button> <button class="btn btn-pill btn-success btn-sm" if test="${loginUser.userType != "管理员"}">disabled="disabled" title="没有权限!!!"c:if> data-id="${vo.id}" data-toggle="modal" data-target="#modal-delete">删除 button>
tr> <tr> <td style="width: 15%;">姓名:td> <td><b id="info-baodaoName">b>td> tr> <tr> <td style="width: 15%;">性别:td> <td><b id="info-baodaoSex">b>td> tr> <tr> <td style="width: 15%;">联系方式:td> <td><b id="info-baodaoPhone">b>td> tr> <tr>
<td><b id="info-baodaoZhuanye">b>td> tr> <tr> <td style="width: 15%;">班级:td> <td><b id="info-baodaoClass">b>td> tr> <tr> <td style="width: 15%;">报道时间:td> <td><b id="info-baodaoDate">b>td> tr> <tr> <td style="width: 15%;">备注:td> <td><b id="info-baodaoText">b>td> tr> table>
div> <div class="modal-footer"> <button type="button" class="btn btn-pill btn-success" data-dismiss="modal">关闭button> div> form> div> div>div><div class="modal fade" id="modal-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/124707.html
摘要:基于的机房设备管理系统部分代码实现机房号容纳人数介绍状态 基于javaweb+jsp的机房设备管理系统 JavaWeb JavaBean JSP MVC MySQL...
摘要:基于的高校科研项目管理系统部分代码实现科研方向备注 基于javaweb+jsp的高校科研项目管理系统 JavaWeb JavaBean JSP MVC MySQL ...
摘要:基于的医院信息管理系统部分代码实现科室添加科室列表添加名称科室列表编辑 基于javaweb+jsp的医院信息管理系统 JavaWeb JavaBean JSP MV...
摘要:基于的企业车辆管理系统部分代码实现车辆添加车辆列表添加车牌 基于javaweb+jsp的企业车辆管理系统 JavaWeb JavaBean JSP MVC MySQ...
摘要:基于的酒店管理系统部分代码实现商品编辑商品列表编辑管理员没有权限编辑将要删除 基于javaweb+jsp的酒店管理系统 JavaWeb JavaBean JSP M...
阅读 2930·2021-11-25 09:43
阅读 3292·2021-11-24 09:39
阅读 2804·2021-09-22 15:59
阅读 1913·2021-09-13 10:24
阅读 492·2019-08-29 17:02
阅读 2079·2019-08-29 13:23
阅读 3042·2019-08-29 13:06
阅读 3505·2019-08-29 13:04