![java web網(wǎng)上書(shū)店系統(tǒng)課程設(shè)計(jì)_第1頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-2/17/54b8a0e2-cc1a-410d-901d-53f7d6fecf58/54b8a0e2-cc1a-410d-901d-53f7d6fecf581.gif)
![java web網(wǎng)上書(shū)店系統(tǒng)課程設(shè)計(jì)_第2頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-2/17/54b8a0e2-cc1a-410d-901d-53f7d6fecf58/54b8a0e2-cc1a-410d-901d-53f7d6fecf582.gif)
![java web網(wǎng)上書(shū)店系統(tǒng)課程設(shè)計(jì)_第3頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-2/17/54b8a0e2-cc1a-410d-901d-53f7d6fecf58/54b8a0e2-cc1a-410d-901d-53f7d6fecf583.gif)
![java web網(wǎng)上書(shū)店系統(tǒng)課程設(shè)計(jì)_第4頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-2/17/54b8a0e2-cc1a-410d-901d-53f7d6fecf58/54b8a0e2-cc1a-410d-901d-53f7d6fecf584.gif)
![java web網(wǎng)上書(shū)店系統(tǒng)課程設(shè)計(jì)_第5頁(yè)](http://file3.renrendoc.com/fileroot_temp3/2022-2/17/54b8a0e2-cc1a-410d-901d-53f7d6fecf58/54b8a0e2-cc1a-410d-901d-53f7d6fecf585.gif)
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 題 目:網(wǎng)上書(shū)店后臺(tái)管理系統(tǒng)姓 名:xxxxxxxxxxxxxxxxxxx姓 名:xxxxxxxxxxxxxxxxxxx姓 名:xxxxxxxxxxxxxxxxxxx 專業(yè)班級(jí):計(jì)算機(jī)科學(xué)與技術(shù)課 程: Java Web程序設(shè)計(jì) 指導(dǎo)教師:職稱:完成時(shí)間: 2016年 5 月-2016年 6月2016年6 月27日課程設(shè)計(jì)任務(wù)書(shū)及成績(jī)?cè)u(píng)定課程設(shè)計(jì)的任務(wù)和具體要求課程設(shè)計(jì)要求設(shè)計(jì)一個(gè)用Java Web開(kāi)發(fā)基于B/S架構(gòu)的管理系統(tǒng),頁(yè)面至少6個(gè)以上,應(yīng)能反應(yīng)出學(xué)生綜合利用Java Web知識(shí)和數(shù)據(jù)庫(kù)知識(shí)完成一定的設(shè)計(jì)任務(wù)的能力,反映出學(xué)生理論聯(lián)系實(shí)踐的動(dòng)手能力。具體要求如下:(1)明確所要開(kāi)發(fā)系
2、統(tǒng)的設(shè)計(jì)任務(wù);(2)做好需求分析,合理選擇設(shè)計(jì)方案;(3)頁(yè)面靜態(tài)部分可用Dreamweaver開(kāi)發(fā)實(shí)現(xiàn)(4)動(dòng)態(tài)頁(yè)面部分可用JSP、Servlet、JavaBean等實(shí)現(xiàn);(5)后臺(tái)數(shù)據(jù)庫(kù)可采用MySQL、Oracle、SQL Server等實(shí)現(xiàn);(6)在編寫(xiě)程序過(guò)程中應(yīng)注意相關(guān)文檔的編寫(xiě);(7)認(rèn)真撰寫(xiě)課程設(shè)計(jì)總結(jié)報(bào)告。指導(dǎo)教師簽字:_ 日期:指導(dǎo)教師評(píng)語(yǔ)成績(jī):_指導(dǎo)教師簽字: 日期:課程設(shè)計(jì)所需軟件、硬件等n 硬件環(huán)境: CPU,主頻1GHz以上;內(nèi)存512M以上;硬盤30G以上;1024×768顯示分辨率n 軟件環(huán)境: Microsoft windows XP或以上版本 ;
3、eclipse; JDK1.7; Tomcat7.0; MySQL課程設(shè)計(jì)進(jìn)度計(jì)劃起至日期工作內(nèi)容備注2016.5.30-2016.6.20課程設(shè)計(jì)要求設(shè)計(jì)一個(gè)用Java Web開(kāi)發(fā)基于B/S架構(gòu)的管理系統(tǒng),頁(yè)面至少6個(gè)以上,應(yīng)能反應(yīng)出學(xué)生綜合利用Java Web知識(shí)和數(shù)據(jù)庫(kù)知識(shí)完成一定的設(shè)計(jì)任務(wù)的能力,反映出學(xué)生理論聯(lián)系實(shí)踐的動(dòng)手能力。參考文獻(xiàn)、資料索引序號(hào)文獻(xiàn)、資料名稱編著者出版單位1劉宇君.SQL server數(shù)據(jù)庫(kù)應(yīng)用設(shè)計(jì)案例匯編.北京:中國(guó)鐵道出版社2童愛(ài)紅等.Delphi數(shù)據(jù)庫(kù)編程.北京:清華大學(xué)出版社3劉波.基于Delphi的學(xué)生成績(jī)管理系統(tǒng)J.四川大學(xué)學(xué)報(bào),2009,(10):
4、283目 錄1系統(tǒng)介紹42數(shù)據(jù)庫(kù)表的結(jié)構(gòu)描述及其關(guān)系43軟件的模塊結(jié)構(gòu)圖44主要功能模塊的流程圖55 主要功能5.1注冊(cè)登錄 55.2 購(gòu)物車 75.3 后臺(tái)登錄 9 5.4 用戶管理10圖書(shū)管理126心得體會(huì)14網(wǎng)上書(shū)店1系統(tǒng)介紹網(wǎng)上書(shū)店系統(tǒng)是電子商務(wù)的一類重要應(yīng)用領(lǐng)域,通過(guò)它可以進(jìn)行在線商品交易。隨著互聯(lián)網(wǎng)的普及以及電子商務(wù)的發(fā)展和人們購(gòu)物理念與購(gòu)物方式的改變,網(wǎng)上書(shū)店系統(tǒng)將有著巨大的市場(chǎng)潛力。本文在研究電子商務(wù),特別是網(wǎng)上書(shū)店系統(tǒng)的基本理論和關(guān)鍵技術(shù)的基礎(chǔ)上,對(duì)網(wǎng)上書(shū)店系統(tǒng)的發(fā)展背景,各種實(shí)現(xiàn) 技術(shù),以及各種實(shí)現(xiàn)技術(shù)的優(yōu)缺點(diǎn)和網(wǎng)上書(shū)店系統(tǒng)的安全策略進(jìn)行了分析。2數(shù)據(jù)庫(kù)表的結(jié)構(gòu)描述及其關(guān)系
5、在mysql中創(chuàng)建一個(gè)名為“test”的數(shù)據(jù)庫(kù)。在數(shù)據(jù)庫(kù)中建立一個(gè)名為“userdetail”的表。表中有五個(gè)字段:username(用戶名)、userpass(密碼)、role(權(quán)限)、retime(注冊(cè)時(shí)間)和logum(登錄次數(shù))。其中username為主鍵,userpass非空,role的默認(rèn)值為0(普通用戶級(jí)別),logum的默認(rèn)值為0。在建一個(gè)名為“books”的表。表中有六個(gè)字段:isbn(圖書(shū)編碼)、bookName(書(shū)名)、publisherId(出版社ID)、price(價(jià)格)、count(數(shù)量)、description(簡(jiǎn)介)。其中isbn為主鍵。count默認(rèn)為0。3軟
6、件的模塊結(jié)構(gòu)圖4主要功能模塊的流程圖5 主要功能5.1注冊(cè)登錄<HTML><HEAD><TITLE>網(wǎng)上購(gòu)物系統(tǒng)</TITLE><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="
7、;no-cache"><meta http-equiv="expires" content="0"><script language="javascript">/* 函數(shù)名稱:loginClick 功能:驗(yàn)證登錄 輸入?yún)?shù):無(wú) 輸出參數(shù):無(wú) */function loginClick() /登錄用戶信息判斷var user = document.getElementById("username").value;var pass = document.getElementByI
8、d("password").value;if (user = null | user = "") alert("請(qǐng)?zhí)顚?xiě)用戶名");document.getElementById("username").focus(); elseif (pass = null | pass = "") alert("請(qǐng)?zhí)顚?xiě)密碼");document.getElementById("password").focus(); elsedocument.Regsiter.submi
9、t();function res() document.getElementById("username").value = ""document.getElementById("password").value = ""</script>5.2 購(gòu)物車publicclassSeachBookServletextends HttpServlet protectedvoid doGet(HttpServletRequest request,HttpServletResponse response) thr
10、ows ServletException, IOException doPost(request, response);protectedvoid doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException request.setCharacterEncoding("GBK");response.setContentType("text/html;charset=GBK");String bookname = re
11、quest.getParameter("bookName");String pid = request.getParameter("publisher");ServletContext ctx = this.getServletContext();String server = ctx.getInitParameter("server");/ 獲取服務(wù)器地址String dbname = ctx.getInitParameter("dbname");/ 獲取數(shù)據(jù)庫(kù)名String user = ctx.getInit
12、Parameter("user");/ 獲取數(shù)據(jù)庫(kù)用戶名String pwd = ctx.getInitParameter("pwd");/ 獲取數(shù)據(jù)庫(kù)密碼BookDao dao = new BookDao();List<Book> booklist = null;try dao.getConn(server, dbname, user, pwd);if (bookname != null && bookname.length() > 0&& (pid = null | pid.equals("
13、") / 根據(jù)書(shū)名查找圖書(shū)列表booklist = dao.getBookByName(bookname); elseif (pid != null && pid.length() > 0&& (bookname = null | bookname.equals("") / 根據(jù)出版社ID查找圖書(shū)列表booklist = dao.getBookByPublisher(Integer.parseInt(pid); elseif (bookname != null() > 0 && pid != null&a
14、mp;& pid.length() > 0) / 根據(jù)書(shū)名和出版社查找圖書(shū)booklist = dao.getBookByNameAndPublish(bookname, Integer.parseInt(pid); else / 返回所有圖書(shū)列表booklist = dao.getAllBook(); catch (Exception e) StackTrace();if (booklist != null) request.setAttribute("bookList", booklist);request.getRequestDispatcher(&qu
15、ot;booklist.jsp").forward(request, response);5.3 后臺(tái)登錄<% page language="java" contentType="text/html; charset=GBK"%><HTML><HEAD><TITLE>網(wǎng)上購(gòu)物后臺(tái)管理系統(tǒng)</TITLE><meta http-equiv="pragma" content="no-cache"><meta http-equiv=&q
16、uot;cache-control" content="no-cache"><meta http-equiv="expires" content="0"><script language="javascript">/* 函數(shù)名稱:loginClick 功能:驗(yàn)證登錄 輸入?yún)?shù):無(wú) 輸出參數(shù):無(wú) */function loginClick() /登錄用戶信息判斷var user = document.getElementById("username").va
17、lue;varId("password").value;if (user = null | user = "") alert("請(qǐng)?zhí)顚?xiě)用戶名");document.getElementById("username").focus(); elseif (pass = null | pass = "") alert("請(qǐng)?zhí)顚?xiě)密碼");document.getElementById("password").focus(); elsedocument.Regsit
18、er.submit();function res() document.getElementById("username").value = ""document.getElementById("password").value = ""</script><style type="text/css"><!-.login_td font-family: 宋體;font-size: 12px;color: #000066;.login_button padding: 2
19、 4 0 4;font-size: 12px;height: 18;background: url(./images/button_bk.gif) border-width : 1px;cursor: hand;border: 1px solid #003c74;padding-left: 4px;padding-right: 4px;padding-top: 1px;padding-bottom: 1px;-></style>5.4 用戶管理<div class="list_div" style="height: 87%">
20、;<table border="0"align="left"cellspacing="0" class="list_table"id="senfe" style='width: 99%'><thead><tr><th width="2%"><input type="checkbox" name="checkAll"onClick="onclick= ckbS
21、elect(this.checked, 'userId')"></th><th width="5%"><span style="font-weight: 400">序號(hào)</span></th><th width="22%"><span style="font-weight: 400">用戶名</span></th><th width="21%">
22、<span style="font-weight: 400">密碼</span></th><th width="15%"><span style="font-weight: 400">用戶類別</span></th><th width="21%"><span style="font-weight: 400">注冊(cè)時(shí)間</span></th><th width=
23、"14%"><span style="font-weight: 400">登陸次數(shù)</span></th></tr></thead><tbody><%if (request.getAttribute("userList") = null) ServletContext ctx = this.getServletContext();String server = ctx.getInitParameter("server");/ 獲取服
24、務(wù)器地址String dbname = ctx.getInitParameter("dbname");/ 獲取數(shù)據(jù)庫(kù)名String dbuser = ctx.getInitParameter("user");/ 獲取數(shù)據(jù)庫(kù)用戶名String pwd = ctx.getInitParameter("pwd");/ 獲取數(shù)據(jù)庫(kù)密碼UserDao dao = new UserDao();try dao.getConn(server, dbname, dbuser, pwd);/獲取所用圖書(shū)并保存到pageContext中List<Us
25、er> list = dao.getAllUser();pageContext.setAttribute("userList", list); catch (ClassNotFoundException e) e.printStackTrace(); catch (Exception e) e.printStackTrace();%><c:forEach var="user" items="$userList" varStatus="status"><tr><td alig
26、n="center" width="2%"><input type="checkbox"name="userId" value="$user.username "class="input_radio"></td><td align="center">$status.count </td><td>$user.username</td><td align="cente
27、r">$user.userpass</td><td align="center">$(user.role = 0) ? "普通用戶" : "管理員"</td>圖書(shū)管理<form method="POST" name="search" action="SeachBookAdminServlet"><table width="70%"><tr><td width=&q
28、uot;10%" class="item_td"> 圖書(shū)名稱:</td><td class="input_td" style="width: 20%"><input type="text"name="bookName" value="" style="width: 100%" class="input_input"size="30"></td
29、><td style="width: 1%"> </td><td width="10%" class="item_td"> 出版社:</td><td width="15%" class="input_td"><select name="publisher"style="width: 100%" class="input_drop"
30、><option value=""></option><option value="1">人民郵電出版社</option><option value="2">清華大學(xué)出版社</option><option value="3">電子工業(yè)出版社</option></select></td><td style="width: 1%"> </t
31、d><td width="29%"><button onClick="select()" id="btnSearch" name="btnSearch"style="width: 15%">查詢</button></td></tr></table></form><table border="0"width="100%"align="center"><tr style="height: 1px" class=""><td class="title_td">圖書(shū)列表 </td></tr&g
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 單位聘用用工合同
- 廠房合同轉(zhuǎn)租協(xié)議模板范本
- 打印機(jī)買賣合同范本
- 個(gè)人二手房買賣合同范本
- 貨物運(yùn)輸服務(wù)框架合同范本
- 不銹鋼板材購(gòu)銷合同
- 設(shè)備安裝工程承包勞務(wù)合同
- 廈門分包合同范本
- 展覽場(chǎng)地租賃、服務(wù)合同
- 星載微波散射計(jì)遙感熱帶氣旋海面風(fēng)場(chǎng)的真實(shí)性檢驗(yàn)方法研究
- 最高法院示范文本發(fā)布版3.4民事起訴狀答辯狀示范文本
- 2024年英語(yǔ)高考全國(guó)各地完形填空試題及解析
- 2024至2030年中國(guó)餐飲管理及無(wú)線自助點(diǎn)單系統(tǒng)數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2024年服裝門店批發(fā)管理系統(tǒng)軟件項(xiàng)目可行性研究報(bào)告
- 體育概論(第二版)課件第三章體育目的
- 《氓》教學(xué)設(shè)計(jì) 2023-2024學(xué)年統(tǒng)編版高中語(yǔ)文選擇性必修下冊(cè)
- 化學(xué)元素周期表注音版
- T-GDASE 0042-2024 固定式液壓升降裝置安全技術(shù)規(guī)范
- 香港朗文4B單詞及句子
- 運(yùn)動(dòng)技能學(xué)習(xí)與控制課件第五章運(yùn)動(dòng)中的中樞控制
- 財(cái)務(wù)部規(guī)范化管理 流程圖
評(píng)論
0/150
提交評(píng)論