摘要:基于的新生報(bào)道管理系統(tǒng)部分代碼實(shí)現(xiàn)新生報(bào)道管理系統(tǒng)新生報(bào)道管理系統(tǒng)
基于javaweb+jsp的新生報(bào)道管理系統(tǒng)
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript idea eclipse MyEclipse Servlet SSM Maven …
部分代碼實(shí)現(xiàn)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">新生報(bào)道管理系統(tǒng)span> <span class="icon-bar">span> <span class="icon-bar">span> <span class="icon-bar">span> button> <a class="navbar-brand" href="#">新生報(bào)道管理系統(tǒng)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; } //增加表單提交之前進(jìn)行檢查,如果return false,則不允許提交 function addCheck() { //根據(jù)ID獲取值 if (document.getElementById("add-baodaoNo").value.trim().length == 0) { alert("學(xué)號(hào)不能為空"); return false; } if (document.getElementById("add-baodaoName").value.trim().length == 0) {
button> <h4 class="modal-title">刪除報(bào)道h4> div> <div class="modal-body"> 確認(rèn)要?jiǎng)h除該報(bào)道記錄嗎? <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; } //編輯表單提交之前進(jìn)行檢查,如果return false,則不允許提交 function editCheck() { //根據(jù)ID獲取值 if (document.getElementById("edit-baodaoNo").value.trim().length == 0) { alert("學(xué)號(hào)不能為空"); return false; } if (document.getElementById("edit-baodaoName").value.trim().length == 0) { alert("姓名不能為空"); return false; } if (document.getElementById("edit-baodaoPhone").value.trim().length == 0) { alert("聯(lián)系方式不能為空"); return false; } if (document.getElementById("edit-baodaoZhuanye").value.trim().length == 0) { alert("專業(yè)不能為空"); 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="沒有權(quán)限!!!"c:if> class="btn btn-pill btn-success" data-toggle="modal" data-target="#modal-add">添加報(bào)道 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="沒有權(quán)限!!!"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="沒有權(quán)限!!!"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%;">聯(lián)系方式:td> <td><b id="info-baodaoPhone">b>td> tr> <tr>
<td><b id="info-baodaoZhuanye">b>td> tr> <tr> <td style="width: 15%;">班級(jí):td> <td><b id="info-baodaoClass">b>td> tr> <tr> <td style="width: 15%;">報(bào)道時(shí)間: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">關(guān)閉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
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/124707.html
摘要:基于的機(jī)房設(shè)備管理系統(tǒng)部分代碼實(shí)現(xiàn)機(jī)房號(hào)容納人數(shù)介紹狀態(tài) 基于javaweb+jsp的機(jī)房設(shè)備管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQL...
摘要:基于的高校科研項(xiàng)目管理系統(tǒng)部分代碼實(shí)現(xiàn)科研方向備注 基于javaweb+jsp的高校科研項(xiàng)目管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQL ...
摘要:基于的醫(yī)院信息管理系統(tǒng)部分代碼實(shí)現(xiàn)科室添加科室列表添加名稱科室列表編輯 基于javaweb+jsp的醫(yī)院信息管理系統(tǒng) JavaWeb JavaBean JSP MV...
摘要:基于的企業(yè)車輛管理系統(tǒng)部分代碼實(shí)現(xiàn)車輛添加車輛列表添加車牌 基于javaweb+jsp的企業(yè)車輛管理系統(tǒng) JavaWeb JavaBean JSP MVC MySQ...
摘要:基于的酒店管理系統(tǒng)部分代碼實(shí)現(xiàn)商品編輯商品列表編輯管理員沒有權(quán)限編輯將要?jiǎng)h除 基于javaweb+jsp的酒店管理系統(tǒng) JavaWeb JavaBean JSP M...
閱讀 2951·2021-11-25 09:43
閱讀 3327·2021-11-24 09:39
閱讀 2827·2021-09-22 15:59
閱讀 2173·2021-09-13 10:24
閱讀 509·2019-08-29 17:02
閱讀 2098·2019-08-29 13:23
閱讀 3057·2019-08-29 13:06
閱讀 3538·2019-08-29 13:04