<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
基於javaweb+jsp的游泳館會員管理系統
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax
基礎JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
開發工具:eclipse/idea/myeclipse/sts等均可設定執行
課程設計,大作業,畢業設計,專案練習,學習演示等
<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="AuthServlet?action=logout">退出</a></li> </ul> </div> </div> </nav> <div class="container-fluid"> <div class="row"> <div class="col-sm-3 col-md-2 sidebar"> <!-- 側邊欄 --> <jsp:include page="menu.jsp"> <jsp:param value="active" name="User_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="real_name"/>
public Member get(Serializable id) { Member vo = null; try { Connection c = Util.getConnection(); Statement s = c.createStatement(); String sql = "select * from `t_member` where id = " + id; ResultSet rs = s.executeQuery(sql); if (rs.next()) { vo = new Member(); vo.setId(rs.getLong("id")); vo.setMemberName(rs.getString("member_name")); vo.setMemberAddress(rs.getString("member_address")); vo.setMemberSex(rs.getString("member_sex")); vo.setMemberPhone(rs.getString("member_phone")); vo.setMemberEmail(rs.getString("member_email")); vo.setMemberText(rs.getString("member_text")); } c.close();
</div> <!-- info --> <div class="modal fade" id="modal-info" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span>
import com.demo.util.Util; import com.demo.service.CoachService; import com.demo.service.impl.CoachServiceImpl; import com.demo.vo.Coach; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.Serializable; import java.util.HashMap;
<div class="form-group hidden"> <label for="edit-createTime" class="control-label">建立時間:</label> <input type="text" class="form-control" name="createTime" id="edit-createTime"> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-line btn-rect btn-success" data-dismiss="modal">取消</button> <button type="submit" class="btn btn-line btn-rect btn-primary">提交</button> </div> </form>
return false; } } //@Override public Equipment get(Serializable id) { Equipment vo = null; try { Connection c = Util.getConnection(); Statement s = c.createStatement(); String sql = "select * from `t_equipment` where id = " + id;
<label for="edit-createDate" class="control-label">建立時間:</label> <input type="text" class="form-control" name="createDate" id="edit-createDate"> </div> <div class="form-group hidden"> <label for="edit-createTime" class="control-label">建立時間:</label> <input type="text" class="form-control" name="createTime" id="edit-createTime"> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-line btn-rect btn-success" data-dismiss="modal">取消</button> <button type="submit" class="btn btn-line btn-rect btn-primary">提交</button> </div> </form> </div> </div> </div> <!-- delete --> <div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="NoticeServlet">
</div> <!-- add --> <div class="modal fade" id="modal-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="CoachServlet" onsubmit="return addCheck()"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <h4 class="modal-title" id="myModalLabel">增加教練</h4> </div> <div class="modal-body"> <div class="form-group hidden"> <label class="control-label">(hidden)</label> <input type="text" class="form-control" name="action" value="add"> </div> <div class="form-group">
alert("姓名不能為空"); return false; } if (document.getElementById("add-coachAge").value.trim().length == 0) { alert("年齡不能為空"); return false; } if (document.getElementById("add-coachPhone").value.trim().length == 0) { alert("聯絡方式不能為空"); return false; } return true; } //編輯表單提交之前進行檢查,如果return false,則不允許提交 function editCheck() { //根據ID獲取值 if (document.getElementById("edit-coachName").value.trim().length == 0) { alert("姓名不能為空"); return false; }
Random random = new Random(); g.setColor(getRandomColor(180, 250));// 隨機設定要填充的顏色 g.fillRect(0, 0, width, height);// 填充圖形背景 // 設定初始字型 g.setFont(new Font("Times New Roman", Font.ITALIC, height)); g.setColor(getRandomColor(120, 180));// 隨機設定字型顏色 // 用於儲存最後隨機生成的驗證碼 StringBuilder validationCode = new StringBuilder(); // 驗證碼的隨機字型 String[] fontNames = {"Times New Roman", "Book antiqua", "Arial"}; for (int i = 0; i < 4; i++) { // 隨機設定當前驗證碼的字元的字型 g.setFont(new Font(fontNames[random.nextInt(3)], Font.ITALIC, height)); // 隨機獲得當前驗證碼的字元 char codeChar = codeChars.charAt(random.nextInt(charsLength)); validationCode.append(codeChar); // 隨機設定當前驗證碼字元的顏色
vo = new Coach(); vo.setId(rs.getLong("id")); vo.setCoachName(rs.getString("coach_name")); vo.setCoachSex(rs.getString("coach_sex")); vo.setCoachAge(rs.getString("coach_age")); vo.setCoachPhone(rs.getString("coach_phone")); vo.setCoachText(rs.getString("coach_text")); } c.close(); } catch (Exception e) { e.printStackTrace(); } return vo; } //@Override public Map<String, Object> list(Map<String, Object> params) { List<Coach> list = new ArrayList(); int totalCount = 0;
<div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <h4 class="modal-title">使用者</h4> </div> <div class="modal-body"> <table class="table table-striped table-hover" style="font-size: 15px;"> <tr> <td style="width: 15%;">使用者名稱:</td> <td><b id="info-username"></b></td> </tr> <tr> <td style="width: 15%;">姓名:</td>
public void update(Member vo) { String sql = "update `t_member` set `member_name` = ? ,`member_address` = ? ,`member_sex` = ? ,`member_phone` = ? ,`member_email` = ? ,`member_text` = ? where `id` = ?"; try { Connection c = Util.getConnection(); PreparedStatement ps = c.prepareStatement(sql); ps.setString(1, vo.getMemberName()); ps.setString(2, vo.getMemberAddress()); ps.setString(3, vo.getMemberSex()); ps.setString(4, vo.getMemberPhone()); ps.setString(5, vo.getMemberEmail()); ps.setString(6, vo.getMemberText()); ps.setLong(7, vo.getId());
</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-line btn-rect btn-success" data-dismiss="modal">取消</button> <button type="submit" class="btn btn-line btn-rect btn-success">刪除</button> </div> </form> </div> </div> </div> </body> <script> $('#modal-delete').on('show.bs.modal', function (event) { let button = $(event.relatedTarget); let id = button.data('id');
vo.setId(rs.getLong("id")); vo.setEquipmentName(rs.getString("equipment_name")); vo.setEquipmentBuytime(rs.getString("equipment_buytime")); vo.setEquipmentCount(rs.getString("equipment_count")); vo.setEquipmentText(rs.getString("equipment_text")); list.add(vo); } String sqlCount = "select count(*) from `t_equipment` where 1=1 " + condition; ps = c.prepareStatement(sqlCount); rs = ps.executeQuery(); if (rs.next()) { totalCount = rs.getInt(1);
vo.setCoachName(rs.getString("coach_name")); vo.setCoachSex(rs.getString("coach_sex")); vo.setCoachAge(rs.getString("coach_age")); vo.setCoachPhone(rs.getString("coach_phone")); vo.setCoachText(rs.getString("coach_text")); list.add(vo); } String sqlCount = "select count(*) from `t_coach` where 1=1 " + condition; ps = c.prepareStatement(sqlCount); rs = ps.executeQuery(); if (rs.next()) { totalCount = rs.getInt(1); } rs.close(); ps.close(); c.close(); } catch (Exception e) { e.printStackTrace();
<!-- delete --> <div class="modal fade" id="modal-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="NoticeServlet"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </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">
params.put("startIndex", pb.getStartIndex()); params.put("pageSize", pb.getPageSize()); List list = (List) memberService.list(params).get("list");//根據分頁引數startIndex、pageSize查詢出來的最終結果list pb.setServlet("MemberServlet"); pb.setSearchColumn(searchColumn); pb.setKeyword(keyword); pb.setList(list); request.getSession().setAttribute("pageBean", pb); request.getSession().setAttribute("list", pb.getList()); response.sendRedirect("member_list.jsp"); } } package com.demo.servlet; import com.demo.util.Util; import com.demo.service.UserService; import com.demo.service.impl.UserServiceImpl; import com.demo.vo.User; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;
<button type="button" class="btn btn-line btn-rect btn-success" data-dismiss="modal">取消</button> <button type="submit" class="btn btn-line btn-rect btn-primary">提交</button> </div> </form> </div> </div> </div> <!-- info --> <div class="modal fade" id="modal-info" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <h4 class="modal-title">裝置</h4> </div> <div class="modal-body"> <table class="table table-striped table-hover" style="font-size: 15px;"> <tr> <td style="width: 15%;">名字:</td>
<td style="width: 15%;">手機:</td> <td><b id="info-memberPhone"></b></td> </tr> <tr> <td style="width: 15%;">郵箱:</td> <td><b id="info-memberEmail"></b></td> </tr> <tr> <td style="width: 15%;">備註:</td> <td><b id="info-memberText"></b></td> </tr>
let vo = eval('(' + voString + ')'); modal.find('#edit-id').val(vo.id); modal.find('#edit-noticeName').val(vo.noticeName); modal.find('#edit-noticeText').val(vo.noticeText); modal.find('#edit-noticeType').val(vo.noticeType); modal.find('#edit-createDate').val(vo.createDate); } }) }) $('#modal-info').on('show.bs.modal', function (event) { let button = $(event.relatedTarget); let id = button.data('id'); let modal = $(this); $.ajax({ url: 'NoticeServlet?action=get&id=' + id, type: "get", success: function (voString) { let vo = eval('(' + voString + ')'); modal.find('#info-noticeName').text(vo.noticeName); modal.find('#info-noticeText').text(vo.noticeText); modal.find('#info-noticeType').text(vo.noticeType);
if (document.getElementById("edit-equipmentCount").value.trim().length == 0) { alert("數量不能為空"); return false; } return true; } </script> </html> <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>公告管理</title> <link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/main.css"> <script src="js/jquery-3.5.1.js"></script> <script src="js/bootstrap.js"></script> </head> <body>
Map<String, Object> map = noticeService.list(params); request.getSession().setAttribute("list", map.get("list")); Integer totalRecord = (Integer) map.get("totalCount");//根據查詢條件取出對應的總記錄數,用於分頁 String pageNum = Util.decode(request, "pageNum");//封裝分頁引數 com.demo.util.PageBean<Object> pb = new com.demo.util.PageBean(Integer.valueOf(pageNum != null ? pageNum : "1"), totalRecord); params.put("startIndex", pb.getStartIndex()); params.put("pageSize", pb.getPageSize()); List list = (List) noticeService.list(params).get("list");//根據分頁引數startIndex、pageSize查詢出來的最終結果list pb.setServlet("NoticeServlet"); pb.setSearchColumn(searchColumn); pb.setKeyword(keyword); pb.setList(list); request.getSession().setAttribute("pageBean", pb); request.getSession().setAttribute("list", pb.getList()); response.sendRedirect("notice_list.jsp"); } } package com.demo.dao.impl;
$('#modal-info').on('show.bs.modal', function (event) { let button = $(event.relatedTarget); let id = button.data('id'); let modal = $(this); $.ajax({ url: 'NoticeServlet?action=get&id=' + id, type: "get", success: function (voString) { let vo = eval('(' + voString + ')'); modal.find('#info-noticeName').text(vo.noticeName); modal.find('#info-noticeText').text(vo.noticeText); modal.find('#info-noticeType').text(vo.noticeType); modal.find('#info-createDate').text(vo.createDate); } }) }) function searchList() { window.location.href = "NoticeServlet?action=list&searchColumn="+document.getElementById("searchColumn").value+"&keyword=" + document.getElementById("search_keyword").value; } //增加表單提交之前進行檢查,如果return false,則不允許提交 function addCheck() {
</div> <div class="modal-footer"> <button type="button" class="btn btn-line btn-rect btn-success" data-dismiss="modal">關閉</button> </div> </form> </div> </div> </div> <!-- edit --> <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="NoticeServlet" onsubmit="return editCheck()"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> <h4 class="modal-title">更新公告</h4> </div> <div class="modal-body"> <div class="form-group hidden"> <label class="control-label">(hidden)</label>
Java≥6、Tomcat≥7.0、MySQL≥5.5
eclipse/idea/myeclipse/sts等均可設定執行
JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax
基礎JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可
課程設計,大作業,畢業設計,專案練習,學習演示等
登入、註冊、退出、使用者模組、公告模組、教練模組、裝置模組、會員模組的增刪改查管理
游泳館會員管理系統(課程設計)
http://xiazai.jb51.net/202204/yuanma/swim_jb51.rar
到此這篇關於基於javaweb+jsp的游泳館會員管理系統的文章就介紹到這了,更多相關javaweb游泳館會員管理系統內容請搜尋it145.com以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援it145.com!
相關文章
<em>Mac</em>Book项目 2009年学校开始实施<em>Mac</em>Book项目,所有师生配备一本<em>Mac</em>Book,并同步更新了校园无线网络。学校每周进行电脑技术更新,每月发送技术支持资料,极大改变了教学及学习方式。因此2011
2021-06-01 09:32:01
综合看Anker超能充系列的性价比很高,并且与不仅和iPhone12/苹果<em>Mac</em>Book很配,而且适合多设备充电需求的日常使用或差旅场景,不管是安卓还是Switch同样也能用得上它,希望这次分享能给准备购入充电器的小伙伴们有所
2021-06-01 09:31:42
除了L4WUDU与吴亦凡已经多次共事,成为了明面上的厂牌成员,吴亦凡还曾带领20XXCLUB全队参加2020年的一场音乐节,这也是20XXCLUB首次全员合照,王嗣尧Turbo、陈彦希Regi、<em>Mac</em> Ova Seas、林渝植等人全部出场。然而让
2021-06-01 09:31:34
目前应用IPFS的机构:1 谷歌<em>浏览器</em>支持IPFS分布式协议 2 万维网 (历史档案博物馆)数据库 3 火狐<em>浏览器</em>支持 IPFS分布式协议 4 EOS 等数字货币数据存储 5 美国国会图书馆,历史资料永久保存在 IPFS 6 加
2021-06-01 09:31:24
开拓者的车机是兼容苹果和<em>安卓</em>,虽然我不怎么用,但确实兼顾了我家人的很多需求:副驾的门板还配有解锁开关,有的时候老婆开车,下车的时候偶尔会忘记解锁,我在副驾驶可以自己开门:第二排设计很好,不仅配置了一个很大的
2021-06-01 09:30:48
不仅是<em>安卓</em>手机,苹果手机的降价力度也是前所未有了,iPhone12也“跳水价”了,发布价是6799元,如今已经跌至5308元,降价幅度超过1400元,最新定价确认了。iPhone12是苹果首款5G手机,同时也是全球首款5nm芯片的智能机,它
2021-06-01 09:30:45