├── .DS_Store ├── README.md ├── WebContent ├── META-INF │ └── MANIFEST.MF ├── WEB-INF │ ├── lib │ │ ├── c3p0-0.9.1.2.jar │ │ ├── commons-beanutils-1.8.3.jar │ │ ├── commons-dbutils-1.4.jar │ │ ├── commons-fileupload-1.2.1.jar │ │ ├── commons-io-1.4.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── jstl.jar │ │ ├── mail.jar │ │ ├── mysql-connector-java-5.0.8-bin.jar │ │ └── standard.jar │ ├── new_words.txt │ ├── userPrivilegeTag.tld │ └── web.xml ├── admin │ ├── css │ │ ├── Style.css │ │ ├── dtree.css │ │ └── left.css │ ├── error │ │ └── privilege.jsp │ ├── images │ │ ├── 000.gif │ │ ├── 2spcr2x158.gif │ │ ├── aaa.gif │ │ ├── about.gif │ │ ├── ad_01.jpg │ │ ├── ad_02.jpg │ │ ├── ad_03.gif │ │ ├── add.gif │ │ ├── back1.jpg │ │ ├── bg.gif │ │ ├── bottom_01.jpg │ │ ├── bt_02.jpg │ │ ├── bt_03.jpg │ │ ├── bt_icon_export.gif │ │ ├── button_add.gif │ │ ├── button_alert.gif │ │ ├── button_bg.gif │ │ ├── button_cancel.gif │ │ ├── button_clock.gif │ │ ├── button_close01.gif │ │ ├── button_del.gif │ │ ├── button_exit.gif │ │ ├── button_help.gif │ │ ├── button_home.gif │ │ ├── button_modi.gif │ │ ├── button_ok.gif │ │ ├── button_phone.gif │ │ ├── button_phone01.gif │ │ ├── button_print.gif │ │ ├── button_save.gif │ │ ├── button_search.gif │ │ ├── button_search01.gif │ │ ├── button_view.gif │ │ ├── cart.gif │ │ ├── dot.gif │ │ ├── hot2.gif │ │ ├── hotel_dire_arrowc.jpg │ │ ├── i_del.gif │ │ ├── i_edit.gif │ │ ├── i_ok.gif │ │ ├── icon-calendar.gif │ │ ├── icon-delete.gif │ │ ├── icon-pencil-x.gif │ │ ├── icon-pencil.gif │ │ ├── icon_time.gif │ │ ├── icon_upfolder.gif │ │ ├── icon_zoom.gif │ │ ├── index_09.gif │ │ ├── loginbg.gif │ │ ├── logintitle.gif │ │ ├── mis_002.gif │ │ ├── mis_003.gif │ │ ├── mis_01.jpg │ │ ├── mis_03.gif │ │ ├── mis_05.jpg │ │ ├── mis_05a.jpg │ │ ├── mis_05b.jpg │ │ ├── mis_05c.jpg │ │ ├── mis_12.gif │ │ ├── mis_13.gif │ │ ├── mis_15.gif │ │ ├── modernliving.gif │ │ ├── modernliving.png │ │ ├── open.gif │ │ ├── optionbgOff.gif │ │ ├── optionbgOn.gif │ │ ├── prev.gif │ │ ├── shim.gif │ │ ├── tablehead.jpg │ │ ├── time.bmp │ │ ├── top.gif │ │ ├── top_01.jpg │ │ ├── top_03.jpg │ │ ├── top_04.jpg │ │ ├── top_05.png │ │ ├── top_10.png │ │ ├── top_100.jpg │ │ ├── top_11.png │ │ ├── tree │ │ │ ├── base.gif │ │ │ ├── cd.gif │ │ │ ├── empty.gif │ │ │ ├── folder.gif │ │ │ ├── folderopen.gif │ │ │ ├── globe.gif │ │ │ ├── imgfolder.gif │ │ │ ├── join.gif │ │ │ ├── joinbottom.gif │ │ │ ├── line.gif │ │ │ ├── minus.gif │ │ │ ├── minusbottom.gif │ │ │ ├── musicfolder.gif │ │ │ ├── nolines_minus.gif │ │ │ ├── nolines_plus.gif │ │ │ ├── page.gif │ │ │ ├── plus.gif │ │ │ ├── plusbottom.gif │ │ │ ├── question.gif │ │ │ └── trash.gif │ │ └── zoom.gif │ ├── jquery │ │ ├── calendar-green.gif │ │ ├── calendar.gif │ │ ├── calendar.js │ │ ├── jquery-1.4.2.js │ │ ├── jquery.datepick-zh-CN.js │ │ ├── jquery.datepick.css │ │ └── jquery.datepick.js │ ├── js │ │ ├── check.js │ │ ├── dtree.js │ │ └── public.js │ ├── login │ │ ├── bottom.jsp │ │ ├── home.jsp │ │ ├── left.jsp │ │ ├── login.jsp │ │ ├── top.jsp │ │ └── welcome.jsp │ ├── notices │ │ ├── add.jsp │ │ ├── edit.jsp │ │ ├── error.jsp │ │ └── list.jsp │ ├── orders │ │ ├── error.jsp │ │ ├── list.jsp │ │ └── view.jsp │ └── products │ │ ├── add.jsp │ │ ├── download.jsp │ │ ├── edit.jsp │ │ ├── error.jsp │ │ └── list.jsp ├── bookcover │ ├── 101.jpg │ ├── 102.jpg │ ├── 103.jpg │ ├── 104.jpg │ ├── 105.jpg │ ├── 106.jpg │ ├── 107.jpg │ ├── TS1.jpg │ ├── TS10.jpg │ ├── TS11.jpg │ ├── TS12.jpg │ ├── TS13.jpg │ ├── TS14.jpg │ ├── TS2.jpg │ ├── TS3.jpg │ ├── TS4.jpg │ ├── TS5.jpg │ ├── TS6.jpg │ ├── TS7.jpg │ ├── TS8.jpg │ ├── TS9.jpg │ ├── bookcover.jpg │ ├── code.jpg │ ├── dayongxiaohua.jpg │ ├── dulala.jpg │ ├── euro.jpg │ ├── fish.jpg │ ├── java2.jpg │ ├── ngcn.jpg │ ├── oneplant.jpg │ ├── photog.jpg │ ├── subwayinshanghai.jpg │ ├── think.jpg │ ├── travelbook.jpg │ └── tripcn.jpg ├── client │ ├── activesuccess.jsp │ ├── ad │ │ ├── index_ad.jpg │ │ ├── index_ad0.jpg │ │ ├── index_ad1.jpg │ │ ├── index_ad2.jpg │ │ ├── index_ad3.jpg │ │ ├── index_ad4.jpg │ │ ├── index_ad5.jpg │ │ ├── myad.jpg │ │ └── page_ad.jpg │ ├── bank_img │ │ ├── abc.bmp │ │ ├── bc.bmp │ │ ├── bcc.bmp │ │ ├── beijingnongshang.bmp │ │ ├── bh.bmp │ │ ├── bj.bmp │ │ ├── ccb.bmp │ │ ├── cib.bmp │ │ ├── cmb.bmp │ │ ├── cmbc.bmp │ │ ├── dy.bmp │ │ ├── gf.bmp │ │ ├── guangda.bmp │ │ ├── hx.bmp │ │ ├── icbc.bmp │ │ ├── nanjing.bmp │ │ ├── ningbo.bmp │ │ ├── pingan.bmp │ │ ├── post.bmp │ │ ├── sfz.bmp │ │ ├── sh.bmp │ │ ├── shpd.bmp │ │ ├── zheshang.bmp │ │ └── zx.bmp │ ├── cart.jsp │ ├── confirm.jsp │ ├── createOrderSuccess.jsp │ ├── css │ │ ├── autoplay.css │ │ └── main.css │ ├── delOrderSuccess.jsp │ ├── error │ │ └── privilege.jsp │ ├── foot.jsp │ ├── head.jsp │ ├── images │ │ ├── IconTexto_WebDev_009.jpg │ │ ├── billboard.gif │ │ ├── botton_gif_025.gif │ │ ├── buy.gif │ │ ├── buy1.gif │ │ ├── buy2.gif │ │ ├── buy3.gif │ │ ├── buybutton.gif │ │ ├── car_step8.gif │ │ ├── cart.gif │ │ ├── check_use.gif │ │ ├── error.jpg │ │ ├── finalbutton.gif │ │ ├── gif53_029.gif │ │ ├── gif53_030.gif │ │ ├── gwc_buy.gif │ │ ├── gwc_jx.gif │ │ ├── hottitle.gif │ │ ├── icon1.png │ │ ├── icon2.png │ │ ├── icon3.png │ │ ├── index.jpg │ │ ├── info.jpg │ │ ├── infobg.gif │ │ ├── loginbg.gif │ │ ├── loginbutton.gif │ │ ├── loginline.gif │ │ ├── logintitle.gif │ │ ├── logo.png │ │ ├── logo_1.gif │ │ ├── logo_2.jpg │ │ ├── menubg.gif │ │ ├── miniicon.gif │ │ ├── miniicon2.gif │ │ ├── miniicon3.gif │ │ ├── myad.jpg │ │ ├── next_page.png │ │ ├── next_page2.png │ │ ├── orderbutton.gif │ │ ├── page_ad.jpg │ │ ├── previous_page.png │ │ ├── previous_page2.png │ │ ├── productlist.gif │ │ ├── productlist.jpg │ │ ├── serchbutton.gif │ │ ├── signup.gif │ │ ├── signupbutton.gif │ │ └── success.gif │ ├── index.jsp │ ├── info.jsp │ ├── js │ │ ├── autoplay.js │ │ ├── form.js │ │ ├── my.js │ │ └── order.js │ ├── login.jsp │ ├── menu_search.jsp │ ├── modifyuserinfo.jsp │ ├── myAccount.jsp │ ├── order.jsp │ ├── orderInfo.jsp │ ├── orderlist.jsp │ ├── pay.jsp │ ├── paysuccess.jsp │ ├── product_list.jsp │ ├── product_search_list.jsp │ ├── register.jsp │ └── registersuccess.jsp ├── error │ └── privilege.jsp ├── index.jsp └── productImg │ ├── 1 │ ├── 2 │ │ └── 4258e40b-797f-4576-95d7-f4c19a279202.png │ ├── 12 │ │ └── b8a866f2-aac7-4f7b-bfab-ae0a8c0c764f │ └── 13 │ │ └── 14d67752-de79-4d55-8541-ff0431fcf910.png │ ├── 2 │ ├── 0 │ │ └── 2105fbe5-400f-4193-a7db-d7ebac389550.jpg │ ├── 1 │ │ └── 5d0bf45e-8372-4b20-8477-a802a68fd251.jpg │ ├── 2 │ │ └── f553d638-aca7-48df-9061-dad52d6d7ce2.png │ ├── 7 │ │ └── 7ede11f8-3ff9-4c12-ad58-b1d5e0e72032.jpg │ └── 8 │ │ └── acc9d557-f8c9-426b-9aec-50a5a7cf3960.jpg │ ├── 3 │ └── 0 │ │ └── 3253aeee-5462-47d0-991c-afb568ab3b03.jpg │ ├── 4 │ └── 3 │ │ └── 0270eba2-2b48-48df-956b-0341204384d9.jpg │ ├── 5 │ ├── 8 │ │ └── c4ab442f-95c7-4d6f-a57e-3eb7dc6b83c4.jpg │ └── 11 │ │ └── e4d290ce-3355-466f-a51e-13c62552d2cb.jpg │ ├── 6 │ ├── 5 │ │ └── a2da626c-c72d-4972-83de-cf48405c5563.jpg │ └── 12 │ │ └── bdaec3dc-fa39-48a6-b32f-6cde8c67bef4.jpg │ ├── 7 │ ├── 0 │ │ └── 14e9a557-da95-4023-9bd8-fff6ae594c1b.png │ ├── 3 │ │ └── f567c1a2-e13c-4a54-ae43-55756b6e1bf7 │ ├── 14 │ │ └── e48c5cc9-b209-412a-8ca5-5e413c17d55c.jpg │ └── 15 │ │ └── 0aafeea2-b2bf-49d8-8153-ff94efcc5ead.jpg │ ├── 9 │ ├── 0 │ │ └── 697a23d6-225a-41a3-8c20-7ab624265ecc.png │ ├── 3 │ │ └── eac105d4-4ab5-4af9-9061-e255016b79d9.png │ └── 15 │ │ └── 1c93d4be-9b23-41eb-b4ae-d54c799c67a4 │ ├── 10 │ └── 5 │ │ └── 36ee63bc-c251-49ce-9b9a-b5e1e2e75ec0.jpg │ ├── 11 │ ├── 4 │ │ └── d79dc124-de69-4b77-847e-bc461bfdb857.jpg │ └── 11 │ │ └── 6d3c7635-545a-46b3-bd3e-d2d74f11ed69.jpg │ ├── 12 │ ├── 1 │ │ └── 986b5e98-ee73-4717-89fd-b6ac26a8dc2c.jpg │ └── 14 │ │ └── a1ace169-b53a-41c6-bdea-000e5946b2a5.png │ ├── 13 │ ├── 2 │ │ └── 20788b05-d298-4a7c-91d9-370fb056f6a5.jpg │ ├── 5 │ │ └── 306c0388-fbaa-49e4-9566-d63699258147 │ └── 15 │ │ └── f5c353fd-fc04-4675-a883-324e895f2e00 │ ├── 14 │ ├── 1 │ │ └── 792116e7-6d83-4be4-b3e5-4dd11b0b4565.jpg │ ├── 5 │ │ └── 0dff62da-16ac-4129-a001-24490d7ec57e.png │ ├── 7 │ │ └── 4aaec571-d86f-4ab9-9232-d59745fd8b23 │ └── 10 │ │ └── b3a17a51-3467-42fb-b26d-17fe93ce417f │ └── 15 │ ├── 1 │ └── 5394df32-ed6e-4203-b9c0-fc175cfc187e.jpg │ ├── 7 │ └── 4cdb1ab7-cd15-4cbb-9237-d6ab23f309c9 │ └── 8 │ └── 23c6610b-1dc4-4a21-a128-164945d01974 └── src ├── c3p0-config.xml ├── cn └── itcast │ └── itcaststore │ ├── dao │ ├── NoticeDao.java │ ├── OrderDao.java │ ├── OrderItemDao.java │ ├── ProductDao.java │ └── UserDao.java │ ├── domain │ ├── Notice.java │ ├── Order.java │ ├── OrderItem.java │ ├── PageBean.java │ ├── Product.java │ └── User.java │ ├── exception │ ├── ActiveUserException.java │ ├── AddProductException.java │ ├── FindProductByIdException.java │ ├── ListProductException.java │ ├── LoginException.java │ └── RegisterException.java │ ├── service │ ├── NoticeService.java │ ├── OrderService.java │ ├── ProductService.java │ └── UserService.java │ ├── tag │ └── PrivilegeTag.java │ ├── utils │ ├── ActiveCodeUtils.java │ ├── CheckImageServlet.java │ ├── DataSourceUtils.java │ ├── FileUploadUtils.java │ ├── IdUtils.java │ ├── MailUtils.java │ └── PaymentUtil.java │ └── web │ ├── filter │ ├── AdminPrivilegeFilter.java │ └── EncodingFilter.java │ └── servlet │ ├── client │ ├── ActiveUserServlet.java │ ├── AddCartServlet.java │ ├── CallBackServlet.java │ ├── ChangeCartServlet.java │ ├── ChangeOrderStateServlet.java │ ├── CreateOrderServlet.java │ ├── DelOrderByIdServlet.java │ ├── FindOrderByIdServlet.java │ ├── FindOrderByUserServlet.java │ ├── FindProductByIdServlet.java │ ├── LoginServlet.java │ ├── LogoutServlet.java │ ├── MenuSearchServlet.java │ ├── MyAccountServlet.java │ ├── OnLinePayServlet.java │ ├── PayServlet.java │ ├── RegisterServlet.java │ ├── ShowIndexServlet.java │ └── ShowProductByPageServlet.java │ └── managar │ ├── AddNoticeServlet.java │ ├── AddProductServlet.java │ ├── DeleteNoticeServlet.java │ ├── DeleteProductServlet.java │ ├── DownloadServlet.java │ ├── EditNoticeServlet.java │ ├── EditProductServlet.java │ ├── FindByIdNoticeServlet.java │ ├── FindOrderByManyConditionServlet.java │ ├── FindOrdersServlet.java │ ├── FindProductByManyConditionServlet.java │ ├── ListNoticeServlet.java │ ├── ListProductServlet.java │ └── UpdateNoticeServlet.java └── merchantInfo.properties /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 全目录 2 | 3 | [更多系统、论文,供君选择 ~~>](https://www.yuque.com/wisebit/blog) 4 | 5 | # 106.ChuanzhiBookstoreManagementSystem 6 | 7 |

群: 983063232(大佬群 2TB学习资料,讲解)(入群获取sql文件)

8 | 9 |

106.传智书城管理系统

10 | 11 | 12 |

13 | 14 | 15 | 16 | 17 |

18 | 19 | # 简介 20 | 21 | 22 | > 本代码来源于网络,仅供学习参考使用,请入群(983063232)后联系群主索要sql文件! 23 | 24 | 25 | 26 | # 环境 27 | 28 | - IntelliJ IDEA 2009.3 29 | 30 | - Mysql 5.7.26 31 | 32 | - Tomcat 7.0.73 33 | 34 | - JDK 1.8 35 | 36 | 37 | 38 | 39 | ## 缩略图 40 | 41 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/2e668535-8759-4dd2-a967-3afa30a58295.png) 42 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/3466478c-7528-435e-a420-68c920a4ac80.png) 43 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/f2985b04-ab58-4e13-b99e-3a8563bd6471.png) 44 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/77fb0149-b8be-4ded-856b-b4fa021e00ee.png) 45 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/5aaa7609-a8ec-41cf-a73d-557defd5d1ec.png) 46 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/31c2b7de-c21c-40fb-bc06-dd73a75e65f0.png) 47 | ![](https://bitwise.oss-cn-heyuan.aliyuncs.com/2024/9/10/69ba5718-66f2-4d61-a149-9484f9369b10.png) 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/c3p0-0.9.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/c3p0-0.9.1.2.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-dbutils-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/commons-dbutils-1.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-io-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/commons-io-1.4.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/jstl.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mail.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/mail.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/mysql-connector-java-5.0.8-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/mysql-connector-java-5.0.8-bin.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/lib/standard.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/WEB-INF/lib/standard.jar -------------------------------------------------------------------------------- /WebContent/WEB-INF/userPrivilegeTag.tld: -------------------------------------------------------------------------------- 1 | 2 | 6 | 1.0 7 | p 8 | http://www.itcast.cn/tag 9 | 10 | 11 | user 12 | cn.itcast.itcaststore.tag.PrivilegeTag 13 | empty 14 | 15 | 16 | -------------------------------------------------------------------------------- /WebContent/admin/css/dtree.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/css/dtree.css -------------------------------------------------------------------------------- /WebContent/admin/css/left.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/css/left.css -------------------------------------------------------------------------------- /WebContent/admin/error/privilege.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 30 | 31 |
15 | 16 | 19 | 26 | 27 |
17 | 18 | 权限不足,请登录后操作
21 |
22 | 23 | 5秒后自动为您转跳回首页 24 | 25 |
28 |

 

29 |
32 |
33 | 34 | 35 | -------------------------------------------------------------------------------- /WebContent/admin/images/000.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/000.gif -------------------------------------------------------------------------------- /WebContent/admin/images/2spcr2x158.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/2spcr2x158.gif -------------------------------------------------------------------------------- /WebContent/admin/images/aaa.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/aaa.gif -------------------------------------------------------------------------------- /WebContent/admin/images/about.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/about.gif -------------------------------------------------------------------------------- /WebContent/admin/images/ad_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/ad_01.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/ad_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/ad_02.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/ad_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/ad_03.gif -------------------------------------------------------------------------------- /WebContent/admin/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/add.gif -------------------------------------------------------------------------------- /WebContent/admin/images/back1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/back1.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/bg.gif -------------------------------------------------------------------------------- /WebContent/admin/images/bottom_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/bottom_01.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/bt_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/bt_02.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/bt_03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/bt_03.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/bt_icon_export.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/bt_icon_export.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_add.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_alert.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_bg.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_cancel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_cancel.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_clock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_clock.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_close01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_close01.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_del.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_exit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_exit.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_help.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_home.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_home.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_modi.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_modi.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_ok.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_ok.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_phone.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_phone.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_phone01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_phone01.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_print.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_print.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_save.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_save.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_search.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_search01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_search01.gif -------------------------------------------------------------------------------- /WebContent/admin/images/button_view.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/button_view.gif -------------------------------------------------------------------------------- /WebContent/admin/images/cart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/cart.gif -------------------------------------------------------------------------------- /WebContent/admin/images/dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/dot.gif -------------------------------------------------------------------------------- /WebContent/admin/images/hot2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/hot2.gif -------------------------------------------------------------------------------- /WebContent/admin/images/hotel_dire_arrowc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/hotel_dire_arrowc.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/i_del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/i_del.gif -------------------------------------------------------------------------------- /WebContent/admin/images/i_edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/i_edit.gif -------------------------------------------------------------------------------- /WebContent/admin/images/i_ok.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/i_ok.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon-calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon-calendar.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon-delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon-delete.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon-pencil-x.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon-pencil-x.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon-pencil.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon-pencil.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon_time.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon_time.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon_upfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon_upfolder.gif -------------------------------------------------------------------------------- /WebContent/admin/images/icon_zoom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/icon_zoom.gif -------------------------------------------------------------------------------- /WebContent/admin/images/index_09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/index_09.gif -------------------------------------------------------------------------------- /WebContent/admin/images/loginbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/loginbg.gif -------------------------------------------------------------------------------- /WebContent/admin/images/logintitle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/logintitle.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_002.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_002.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_003.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_003.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_01.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/mis_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_03.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_05.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_05.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/mis_05a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_05a.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/mis_05b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_05b.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/mis_05c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_05c.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/mis_12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_12.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_13.gif -------------------------------------------------------------------------------- /WebContent/admin/images/mis_15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/mis_15.gif -------------------------------------------------------------------------------- /WebContent/admin/images/modernliving.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/modernliving.gif -------------------------------------------------------------------------------- /WebContent/admin/images/modernliving.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/modernliving.png -------------------------------------------------------------------------------- /WebContent/admin/images/open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/open.gif -------------------------------------------------------------------------------- /WebContent/admin/images/optionbgOff.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/optionbgOff.gif -------------------------------------------------------------------------------- /WebContent/admin/images/optionbgOn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/optionbgOn.gif -------------------------------------------------------------------------------- /WebContent/admin/images/prev.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/prev.gif -------------------------------------------------------------------------------- /WebContent/admin/images/shim.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/shim.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tablehead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tablehead.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/time.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/time.bmp -------------------------------------------------------------------------------- /WebContent/admin/images/top.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top.gif -------------------------------------------------------------------------------- /WebContent/admin/images/top_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_01.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/top_03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_03.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/top_04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_04.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/top_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_05.png -------------------------------------------------------------------------------- /WebContent/admin/images/top_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_10.png -------------------------------------------------------------------------------- /WebContent/admin/images/top_100.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_100.jpg -------------------------------------------------------------------------------- /WebContent/admin/images/top_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/top_11.png -------------------------------------------------------------------------------- /WebContent/admin/images/tree/base.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/base.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/cd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/cd.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/empty.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/empty.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/folder.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/folderopen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/folderopen.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/globe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/globe.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/imgfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/imgfolder.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/join.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/join.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/joinbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/joinbottom.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/line.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/minus.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/minusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/minusbottom.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/musicfolder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/musicfolder.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/nolines_minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/nolines_minus.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/nolines_plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/nolines_plus.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/page.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/page.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/plus.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/plusbottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/plusbottom.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/question.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/question.gif -------------------------------------------------------------------------------- /WebContent/admin/images/tree/trash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/tree/trash.gif -------------------------------------------------------------------------------- /WebContent/admin/images/zoom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/images/zoom.gif -------------------------------------------------------------------------------- /WebContent/admin/jquery/calendar-green.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/jquery/calendar-green.gif -------------------------------------------------------------------------------- /WebContent/admin/jquery/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/admin/jquery/calendar.gif -------------------------------------------------------------------------------- /WebContent/admin/jquery/calendar.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | $('.dateClassStyle').datepick({dateFormat: 'yy-mm-dd'}); 3 | }); -------------------------------------------------------------------------------- /WebContent/admin/jquery/jquery.datepick-zh-CN.js: -------------------------------------------------------------------------------- 1 | /* Chinese initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Cloudream (cloudream@gmail.com). */ 3 | (function($) { 4 | $.datepick.regional['zh-CN'] = { 5 | clearText: '清除', clearStatus: '清除已选日期', 6 | closeText: '关闭', closeStatus: '不改变当前选择', 7 | prevText: '<上月', prevStatus: '显示上月', 8 | prevBigText: '<<', prevBigStatus: '显示上一年', 9 | nextText: '下月>', nextStatus: '显示下月', 10 | nextBigText: '>>', nextBigStatus: '显示下一年', 11 | currentText: '今天', currentStatus: '显示本月', 12 | monthNames: ['一月','二月','三月','四月','五月','六月', 13 | '七月','八月','九月','十月','十一月','十二月'], 14 | monthNamesShort: ['一','二','三','四','五','六', 15 | '七','八','九','十','十一','十二'], 16 | monthStatus: '选择月份', yearStatus: '选择年份', 17 | weekHeader: '周', weekStatus: '年内周次', 18 | dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], 19 | dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], 20 | dayNamesMin: ['日','一','二','三','四','五','六'], 21 | dayStatus: '设置 DD 为一周起始', dateStatus: '选择 m月 d日, DD', 22 | dateFormat: 'yy-mm-dd', firstDay: 1, 23 | initStatus: '请选择日期', isRTL: false}; 24 | $.datepick.setDefaults($.datepick.regional['zh-CN']); 25 | })(jQuery); 26 | -------------------------------------------------------------------------------- /WebContent/admin/js/public.js: -------------------------------------------------------------------------------- 1 | //open sized window 2 | function openWindow(sHref,strWidth,strHeight) { 3 | var strLeft=(screen.availWidth-strWidth)/2; 4 | var strTop=(screen.availHeight-strHeight)/2; 5 | var strRef=""; 6 | strRef=strRef+"width="+strWidth+"px,height="+strHeight+"px,"; 7 | strRef=strRef+"left="+strLeft+"px,top="+strTop+"px,"; 8 | strRef=strRef+"resizable=yes,scrollbars=yes,status=yes,toolbar=no,systemmenu=no,location=no,borderSize=thin";//channelmode,fullscreen 9 | var openerobj= window.open(sHref,'newwin',strRef,false); 10 | openerobj.focus(); 11 | } -------------------------------------------------------------------------------- /WebContent/admin/login/bottom.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 11 | 12 | 13 | 14 | 15 | 19 | 20 |
16 |                         17 | 传智书城后台管理系统
18 |
21 | 22 | -------------------------------------------------------------------------------- /WebContent/admin/login/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /WebContent/admin/login/left.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 菜单 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
商品管理
销售榜单
订单管理
公告管理
28 | 29 | 30 | -------------------------------------------------------------------------------- /WebContent/admin/login/welcome.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 9 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 |
系统首页
21 |
22 | 登录成功! 23 |
27 |
28 | 29 | -------------------------------------------------------------------------------- /WebContent/admin/notices/add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 |   11 | 13 | 14 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 45 | 46 |
添加公告 16 |
公告标题: 21 | 22 |
公告内容: 27 | 28 |
32 | 33 |
38 | 39 |         40 | 41 |         42 | 43 | 44 |
47 |
48 | 49 | -------------------------------------------------------------------------------- /WebContent/admin/notices/edit.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 9 | 11 | 13 | 14 | 15 |
17 |   18 | 20 | 21 | 24 | 25 | 26 | 27 | 30 | 31 | 32 | 33 | 36 | 37 | 38 | 41 | 42 | 43 | 51 | 52 |
22 | 修改公告 23 |
公告标题: 28 | 29 |
公告内容: 34 | 35 |
40 |
44 | 45 |         46 | 47 |         48 | 49 | 50 |
53 |
54 | 55 | -------------------------------------------------------------------------------- /WebContent/admin/notices/error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

 

11 | 12 | 13 | 16 | 17 | 36 | 37 | 38 |
14 |   15 | 18 | 19 | 20 | 27 | 28 | 29 | 33 | 34 |
22 |

23 | 上传附件错误 24 |

25 |

26 |
30 |         31 | 32 |
35 |
 
39 |

 

40 | 41 | -------------------------------------------------------------------------------- /WebContent/admin/orders/error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

11 |   12 |

13 | 14 | 15 | 18 | 37 | 40 | 41 |
16 |   17 | 19 | 20 | 21 | 28 | 29 | 30 | 34 | 35 |
23 |

24 | 上传附件错误 25 |

26 |

27 |
31 |         32 | 33 |
36 |
38 |   39 |
42 |

43 |   44 |

45 | 46 | -------------------------------------------------------------------------------- /WebContent/admin/products/error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

11 |   12 |

13 | 14 | 15 | 18 | 40 | 43 | 44 |
16 |   17 | 19 | 21 | 22 | 23 | 31 | 32 | 33 | 37 | 38 |
25 |

26 | 上传附件错误 27 |

28 |

29 |

30 |
34 |         35 | 36 |
39 |
41 |   42 |
45 |

46 |   47 |

48 | 49 | -------------------------------------------------------------------------------- /WebContent/bookcover/101.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/101.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/102.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/102.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/103.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/103.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/104.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/104.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/105.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/105.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/106.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/106.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/107.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/107.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS1.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS10.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS11.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS12.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS13.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS14.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS2.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS3.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS4.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS5.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS6.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS7.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS8.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/TS9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/TS9.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/bookcover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/bookcover.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/code.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/dayongxiaohua.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/dayongxiaohua.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/dulala.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/dulala.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/euro.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/euro.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/fish.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/fish.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/java2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/java2.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/ngcn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/ngcn.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/oneplant.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/oneplant.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/photog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/photog.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/subwayinshanghai.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/subwayinshanghai.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/think.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/think.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/travelbook.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/travelbook.jpg -------------------------------------------------------------------------------- /WebContent/bookcover/tripcn.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/bookcover/tripcn.jpg -------------------------------------------------------------------------------- /WebContent/client/activesuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 31 | 32 |
16 | 17 | 18 | 21 | 27 | 28 |
19 | 20 | 22 | 帐户激活成功

23 | 24 | 5秒后自动为您转跳回首页 25 | 26 |
29 |

 

30 |
33 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad0.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad1.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad2.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad3.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad4.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/index_ad5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/index_ad5.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/myad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/myad.jpg -------------------------------------------------------------------------------- /WebContent/client/ad/page_ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/ad/page_ad.jpg -------------------------------------------------------------------------------- /WebContent/client/bank_img/abc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/abc.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/bc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/bc.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/bcc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/bcc.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/beijingnongshang.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/beijingnongshang.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/bh.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/bh.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/bj.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/bj.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/ccb.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/ccb.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/cib.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/cib.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/cmb.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/cmb.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/cmbc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/cmbc.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/dy.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/dy.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/gf.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/gf.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/guangda.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/guangda.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/hx.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/hx.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/icbc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/icbc.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/nanjing.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/nanjing.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/ningbo.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/ningbo.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/pingan.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/pingan.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/post.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/post.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/sfz.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/sfz.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/sh.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/sh.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/shpd.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/shpd.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/zheshang.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/zheshang.bmp -------------------------------------------------------------------------------- /WebContent/client/bank_img/zx.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/bank_img/zx.bmp -------------------------------------------------------------------------------- /WebContent/client/confirm.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 确认支付 8 | 9 | 10 | 11 |
12 |

订单号:${orderid},付款金额 :${money}

13 | 14 | 15 |
16 | 17 | -------------------------------------------------------------------------------- /WebContent/client/createOrderSuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 31 | 32 |
17 | 18 | 19 | 22 | 27 | 28 |
20 | 21 | 23 | 亲,订单生成成功,请到“我的账户”-“订单查询”中支付!

24 | 25 | 5秒后自动为您转跳回首页 26 |
29 |

 

30 |
33 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/client/css/autoplay.css: -------------------------------------------------------------------------------- 1 | 2 | body, div, ul, li { 3 | margin:0; 4 | padding:0; 5 | } 6 | ul { 7 | list-style-type:none; 8 | } 9 | body { 10 | background:#000; 11 | text-align:center; 12 | font:12px/20px Arial; 13 | } 14 | #box_autoplay { 15 | position:relative; 16 | width:900px; 17 | height:335px; 18 | background:#fff; 19 | border-radius:5px; 20 | border:8px solid #fff; 21 | margin:10px auto; 22 | cursor:pointer; 23 | } 24 | #box_autoplay .list { 25 | position:relative; 26 | width:900px; 27 | height:335px; 28 | overflow:hidden; 29 | } 30 | #box_autoplay .list ul { 31 | position:absolute; 32 | top:0; 33 | left:0; 34 | } 35 | #box_autoplay .list li { 36 | width:900px; 37 | height:335px; 38 | overflow:hidden; 39 | } 40 | #box_autoplay .count { 41 | position:absolute; 42 | right:0; 43 | bottom:5px; 44 | } 45 | #box_autoplay .count li { 46 | color:#fff; 47 | float:left; 48 | width:20px; 49 | height:20px; 50 | cursor:pointer; 51 | margin-right:5px; 52 | overflow:hidden; 53 | background:#F90; 54 | opacity:0.7; 55 | filter:alpha(opacity=70); 56 | border-radius:20px; 57 | } 58 | #box_autoplay .count li.current { 59 | color:#fff; 60 | opacity:1; 61 | filter:alpha(opacity=100); 62 | font-weight:700; 63 | background:#f60; 64 | } 65 | #tmp { 66 | width:100px; 67 | height:100px; 68 | background:red; 69 | position:absolute; 70 | } 71 | -------------------------------------------------------------------------------- /WebContent/client/delOrderSuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 30 | 31 |
18 | 19 | 22 | 26 | 27 |
21 | 删除订单成功

24 | 5秒后自动为您转跳回首页 25 |
28 |

 

29 |
32 |
33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /WebContent/client/error/privilege.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 电子书城 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 32 | 33 |
17 | 18 | 21 | 28 | 29 |
19 | 20 | 权限不足,请登录后操作
23 |
24 | 25 | 5秒后自动为您转跳回首页 26 | 27 |
30 |

 

31 |
34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/client/foot.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 |
3 | 4 | 5 | 9 | 14 | 15 | 16 | 21 | 22 |
6 | 8 | 10 | 11 | CONTACT US 12 | 13 |
17 | 18 | COPYRIGHT 2016 © ItcastStore All Rights RESERVED. 19 | 20 |
23 |
-------------------------------------------------------------------------------- /WebContent/client/head.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ page import="cn.itcast.itcaststore.domain.User"%> 3 | 14 |
15 | 16 | 17 | 22 | 42 | 43 |
18 | 19 | 20 | 21 | 23 | 24 |   25 | 购物车 26 | | 帮助中心 27 | | 我的帐户 28 | <% 29 | User user = (User) request.getSession().getAttribute("user"); 30 | if(null == user){ 31 | %> 32 | | 新用户注册 33 | <% 34 | }else{ 35 | %> 36 | | 用户退出 37 |


欢迎您: ${user.username} 38 | <% 39 | } 40 | %> 41 |
44 |
-------------------------------------------------------------------------------- /WebContent/client/images/IconTexto_WebDev_009.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/IconTexto_WebDev_009.jpg -------------------------------------------------------------------------------- /WebContent/client/images/billboard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/billboard.gif -------------------------------------------------------------------------------- /WebContent/client/images/botton_gif_025.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/botton_gif_025.gif -------------------------------------------------------------------------------- /WebContent/client/images/buy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/buy.gif -------------------------------------------------------------------------------- /WebContent/client/images/buy1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/buy1.gif -------------------------------------------------------------------------------- /WebContent/client/images/buy2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/buy2.gif -------------------------------------------------------------------------------- /WebContent/client/images/buy3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/buy3.gif -------------------------------------------------------------------------------- /WebContent/client/images/buybutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/buybutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/car_step8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/car_step8.gif -------------------------------------------------------------------------------- /WebContent/client/images/cart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/cart.gif -------------------------------------------------------------------------------- /WebContent/client/images/check_use.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/check_use.gif -------------------------------------------------------------------------------- /WebContent/client/images/error.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/error.jpg -------------------------------------------------------------------------------- /WebContent/client/images/finalbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/finalbutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/gif53_029.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/gif53_029.gif -------------------------------------------------------------------------------- /WebContent/client/images/gif53_030.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/gif53_030.gif -------------------------------------------------------------------------------- /WebContent/client/images/gwc_buy.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/gwc_buy.gif -------------------------------------------------------------------------------- /WebContent/client/images/gwc_jx.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/gwc_jx.gif -------------------------------------------------------------------------------- /WebContent/client/images/hottitle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/hottitle.gif -------------------------------------------------------------------------------- /WebContent/client/images/icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/icon1.png -------------------------------------------------------------------------------- /WebContent/client/images/icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/icon2.png -------------------------------------------------------------------------------- /WebContent/client/images/icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/icon3.png -------------------------------------------------------------------------------- /WebContent/client/images/index.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/index.jpg -------------------------------------------------------------------------------- /WebContent/client/images/info.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/info.jpg -------------------------------------------------------------------------------- /WebContent/client/images/infobg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/infobg.gif -------------------------------------------------------------------------------- /WebContent/client/images/loginbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/loginbg.gif -------------------------------------------------------------------------------- /WebContent/client/images/loginbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/loginbutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/loginline.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/loginline.gif -------------------------------------------------------------------------------- /WebContent/client/images/logintitle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/logintitle.gif -------------------------------------------------------------------------------- /WebContent/client/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/logo.png -------------------------------------------------------------------------------- /WebContent/client/images/logo_1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/logo_1.gif -------------------------------------------------------------------------------- /WebContent/client/images/logo_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/logo_2.jpg -------------------------------------------------------------------------------- /WebContent/client/images/menubg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/menubg.gif -------------------------------------------------------------------------------- /WebContent/client/images/miniicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/miniicon.gif -------------------------------------------------------------------------------- /WebContent/client/images/miniicon2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/miniicon2.gif -------------------------------------------------------------------------------- /WebContent/client/images/miniicon3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/miniicon3.gif -------------------------------------------------------------------------------- /WebContent/client/images/myad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/myad.jpg -------------------------------------------------------------------------------- /WebContent/client/images/next_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/next_page.png -------------------------------------------------------------------------------- /WebContent/client/images/next_page2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/next_page2.png -------------------------------------------------------------------------------- /WebContent/client/images/orderbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/orderbutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/page_ad.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/page_ad.jpg -------------------------------------------------------------------------------- /WebContent/client/images/previous_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/previous_page.png -------------------------------------------------------------------------------- /WebContent/client/images/previous_page2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/previous_page2.png -------------------------------------------------------------------------------- /WebContent/client/images/productlist.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/productlist.gif -------------------------------------------------------------------------------- /WebContent/client/images/productlist.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/productlist.jpg -------------------------------------------------------------------------------- /WebContent/client/images/serchbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/serchbutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/signup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/signup.gif -------------------------------------------------------------------------------- /WebContent/client/images/signupbutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/signupbutton.gif -------------------------------------------------------------------------------- /WebContent/client/images/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/client/images/success.gif -------------------------------------------------------------------------------- /WebContent/client/info.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 54 | 55 |
15 |
16 | 首页 17 |     >    18 |  ${p.category} 19 |     >    ${p.name} 20 |
21 | 22 | 23 | 51 | 52 |
24 | 25 | 26 | 38 | 48 | 49 |
27 |
28 |

29 | 30 |

31 |
32 |
33 | 34 | 35 | 36 |
37 |
39 | 40 |  ${p.name} 41 |
售价:¥${p.price} 42 |
类别:${p.category } 43 |
44 |

45 | 内容简介: 46 |

${p.description} 47 |
50 |
53 |
56 |
57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /WebContent/client/js/autoplay.js: -------------------------------------------------------------------------------- 1 | 2 | //获取ID 3 | var $ = function (id) {return typeof id === "string" ? document.getElementById(id) : id;}; 4 | //获取tagName 5 | var $$ = function (tagName, oParent) {return (oParent || document).getElementsByTagName(tagName);}; 6 | //自动播放对象 7 | var AutoPlay = function (id) {this.initialize(id);}; 8 | AutoPlay.prototype = { 9 | initialize: function (id) 10 | { 11 | var oThis = this; 12 | this.oBox = $(id); 13 | this.oUl = $$("ul", this.oBox)[0]; 14 | this.aImg = $$("img", this.oBox); 15 | this.timer = null; 16 | this.autoTimer = null; 17 | this.iNow = 0; 18 | this.creatBtn(); 19 | this.aBtn = $$("li", this.oCount); 20 | this.toggle(); 21 | this.autoTimer = setInterval(function () 22 | { 23 | oThis.next(); 24 | }, 3000); 25 | this.oBox.onmouseover = function () 26 | { 27 | clearInterval(oThis.autoTimer); 28 | }; 29 | this.oBox.onmouseout = function () 30 | { 31 | oThis.autoTimer = setInterval(function () 32 | { 33 | oThis.next(); 34 | }, 3000); 35 | }; 36 | for (var i = 0; i < this.aBtn.length; i++) 37 | { 38 | this.aBtn[i].index = i; 39 | this.aBtn[i].onmouseover = function () 40 | { 41 | oThis.iNow = this.index; 42 | oThis.toggle(); 43 | }; 44 | } 45 | }, 46 | creatBtn: function () 47 | { 48 | this.oCount = document.createElement("ul"); 49 | this.oFrag = document.createDocumentFragment(); 50 | this.oCount.className = "count"; 51 | for (var i = 0; i < this.aImg.length; i++) 52 | { 53 | var oLi = document.createElement("li"); 54 | oLi.innerHTML = i + 1; 55 | this.oFrag.appendChild(oLi); 56 | } 57 | this.oCount.appendChild(this.oFrag); 58 | this.oBox.appendChild(this.oCount); 59 | }, 60 | toggle: function () 61 | { 62 | for (var i = 0; i < this.aBtn.length; i++) this.aBtn[i].className = ""; 63 | this.aBtn[this.iNow].className = "current"; 64 | this.doMove(-(this.iNow * this.aImg[0].offsetHeight)); 65 | }, 66 | next: function () 67 | { 68 | this.iNow++; 69 | this.iNow == this.aBtn.length && (this.iNow = 0); 70 | this.toggle(); 71 | }, 72 | doMove: function (iTarget) 73 | { 74 | var oThis = this; 75 | clearInterval(oThis.timer); 76 | oThis.timer = setInterval(function () 77 | { 78 | var iSpeed = (iTarget - oThis.oUl.offsetTop) / 5; 79 | iSpeed = iSpeed > 0 ? Math.ceil(iSpeed) : Math.floor(iSpeed); 80 | oThis.oUl.offsetTop == iTarget ? clearInterval(oThis.timer) : (oThis.oUl.style.top = oThis.oUl.offsetTop + iSpeed + "px"); 81 | }, 30); 82 | } 83 | }; 84 | window.onload = function () 85 | { 86 | new AutoPlay("box_autoplay"); 87 | }; -------------------------------------------------------------------------------- /WebContent/client/js/form.js: -------------------------------------------------------------------------------- 1 | var emailObj; 2 | var usernameObj; 3 | var passwordObj; 4 | var confirmObj; 5 | 6 | var emailMsg; 7 | var usernameMsg; 8 | var passwordMsg; 9 | var confirmMsg; 10 | 11 | window.onload = function() { // 页面加载之后, 获取页面中的对象 12 | emailObj = document.getElementById("email"); 13 | usernameObj = document.getElementById("username"); 14 | passwordObj = document.getElementById("password"); 15 | confirmObj = document.getElementById("repassword"); 16 | 17 | emailMsg = document.getElementById("emailMsg"); 18 | usernameMsg = document.getElementById("usernameMsg"); 19 | passwordMsg = document.getElementById("passwordMsg"); 20 | confirmMsg = document.getElementById("confirmMsg"); 21 | }; 22 | 23 | function checkForm() { // 验证整个表单 24 | var bEmail = checkEmail(); 25 | var bUsername = checkUsername(); 26 | var bPassword = checkPassword(); 27 | var bConfirm = checkConfirm(); 28 | return bUsername && bPassword && bConfirm && bEmail ; // return false后, 事件将被取消 29 | } 30 | 31 | function checkEmail() { // 验证邮箱 32 | var regex = /^[\w-]+@([\w-]+\.)+[a-zA-Z]{2,4}$/; 33 | var value =emailObj.value; 34 | var msg = ""; 35 | if (!value) 36 | msg = "邮箱必须填写:"; 37 | else if (!regex.test(value)) 38 | msg = "邮箱格式不合法:"; 39 | emailMsg.innerHTML = msg; 40 | emailObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 41 | return msg == ""; 42 | } 43 | 44 | function checkUsername() { // 验证用户名 45 | var regex = /^[a-zA-Z_]\w{0,9}$/; // 字母数字下划线1到10位, 不能是数字开头 46 | var value = usernameObj.value;// 获取usernameObj中的文本 47 | var msg = ""; // 最后的提示消息, 默认为空 48 | if (!value) // 如果用户名没填, 填了就是一个字符串可以当作true, 没填的话不论null或者""都是false 49 | msg = "用户名必须填写:"; // 改变提示消息 50 | else if (!regex.test(value)) // 如果用户名不能匹配正则表达式规则 51 | msg = "用户名不合法:"; // 改变提示消息 52 | usernameMsg.innerHTML = msg; // 将提示消息放入SPAN 53 | usernameObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; // 根据消息结果改变tr的颜色 54 | return msg == ""; // 如果提示消息为空则代表没出错, 返回true 55 | } 56 | 57 | function checkPassword() { // 验证密码 58 | var regex = /^.{6,16}$/; // 任意字符, 6到16位 59 | var value = passwordObj.value; 60 | var msg = ""; 61 | if (!value) 62 | msg = "密码必须填写:"; 63 | else if (!regex.test(value)) 64 | msg = "密码不合法:"; 65 | passwordMsg.innerHTML = msg; 66 | passwordObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 67 | return msg == ""; 68 | } 69 | 70 | function checkConfirm() { // 验证确认密码 71 | var passwordValue = passwordObj.value; 72 | var confirmValue = confirmObj.value; 73 | var msg = ""; 74 | 75 | if(!confirmValue){ 76 | msg = "确认密码必须填写"; 77 | } 78 | else if (passwordValue != confirmValue){ 79 | msg = "密码必须保持一致"; 80 | } 81 | confirmMsg.innerHTML = msg; 82 | confirmObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 83 | return msg == ""; 84 | } 85 | -------------------------------------------------------------------------------- /WebContent/client/js/my.js: -------------------------------------------------------------------------------- 1 | var interval; 2 | window.onload = function() { 3 | interval = window.setInterval("changeSecond()", 1000); 4 | }; 5 | function changeSecond() { 6 | var second = document.getElementById("second"); 7 | var svalue = second.innerHTML; 8 | svalue = svalue - 1; 9 | if (svalue == 0) { 10 | window.clearInterval(interval); 11 | // 下列两行代码用于获取项目名,例如:bookstore 12 | var pathName = window.location.pathname.substring(1); 13 | var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/')); 14 | // 拼接访问路径名,例如:http://localhost:8080/bookstore/index.jsp 15 | location.href = window.location.protocol + '//' + window.location.host + '/'+ webName + '/index.jsp'; 16 | return; 17 | } 18 | second.innerHTML = svalue; 19 | } 20 | -------------------------------------------------------------------------------- /WebContent/client/js/order.js: -------------------------------------------------------------------------------- 1 | var receiverAddressObj; 2 | var receiverNameObj; 3 | var receiverPhoneObj; 4 | 5 | window.onload = function() { // 页面加载之后, 获取页面中的对象 6 | receiverAddressObj = document.getElementById("receiverAddress"); 7 | receiverNameObj = document.getElementById("receiverName"); 8 | receiverPhoneObj = document.getElementById("receiverPhone"); 9 | }; 10 | 11 | function checkOnSubmit() { // 验证整个表单 12 | var receiverAddress = checkReceiverAddress(); 13 | var receiverName = checkReceiverName(); 14 | var receiverPhone = checkReceiverPhone(); 15 | if(receiverAddress && receiverName && receiverPhone){ 16 | document.getElementById("orderForm").submit(); 17 | }else{ 18 | return ""; 19 | } 20 | } 21 | 22 | function checkReceiverAddress() { // 验证收获地址 23 | var value =receiverAddressObj.value; 24 | var msg = ""; 25 | if (!value) 26 | msg = "收获地址必须填写"; 27 | receiverAddressMsg.innerHTML = msg; 28 | receiverAddressObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 29 | return msg == ""; 30 | } 31 | 32 | function checkReceiverName() { // 验证收货人 33 | var value =receiverNameObj.value; 34 | var msg = ""; 35 | if (!value) 36 | msg = "收获人必须填写"; 37 | receiverNameMsg.innerHTML = msg; 38 | receiverNameObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 39 | return msg == ""; 40 | } 41 | 42 | function checkReceiverPhone() { // 验证联系方式 43 | var regex =/^1[3,5,8]\d{9}$/; //以13、15、18开头的手机号 44 | var value =receiverPhoneObj.value; 45 | var msg = ""; 46 | if (!value) 47 | msg = "联系方式必须填写"; 48 | else if (!regex.test(value)) 49 | msg = "手机号码不合法:"; 50 | receiverPhoneMsg.innerHTML = msg; 51 | receiverPhoneObj.parentNode.parentNode.style.color = msg == "" ? "black" : "red"; 52 | return msg == ""; 53 | } 54 | -------------------------------------------------------------------------------- /WebContent/client/myAccount.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 53 | 68 | 69 |
26 | 27 | 28 | 29 | 30 | 31 | 36 | 37 | 38 | 43 | 44 | 45 | 50 | 51 |
我的帐户
32 | 33 |      34 | 用户信息修改 35 |
39 | 40 |      41 | 订单查询 42 |
46 | 47 |      48 | 用户退出 49 |
52 |
54 |
55 | 首页 56 |     >     57 | 我的帐户    >    欢迎 58 |
59 | 60 | 61 | 65 | 66 |

62 | 63 |

64 |
67 |
70 |
71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /WebContent/client/paysuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 31 | 32 |
17 | 18 | 21 | 27 | 28 |
19 | 20 | 22 | 支付成功

23 | 24 | 5秒后自动为您转跳回首页 25 | 26 |
29 |

 

30 |
33 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/client/registersuccess.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 电子书城 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 33 | 34 |
18 | 19 | 20 | 23 | 30 | 31 |
21 | 22 | 24 | 注册成功,别忘记激活帐户啊!
25 |
26 | 27 | 5秒后自动为您转跳回首页 28 | 29 |
32 |

 

35 |
36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /WebContent/error/privilege.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 电子书城 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 32 | 33 |
17 | 18 | 21 | 28 | 29 |
19 | 20 | 权限不足,请登录后操作
23 |
24 | 25 | 5秒后自动为您转跳回首页 26 | 27 |
30 |

 

31 |
34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /WebContent/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | itcastStore首页 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /WebContent/productImg/1/12/b8a866f2-aac7-4f7b-bfab-ae0a8c0c764f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/1/12/b8a866f2-aac7-4f7b-bfab-ae0a8c0c764f -------------------------------------------------------------------------------- /WebContent/productImg/1/13/14d67752-de79-4d55-8541-ff0431fcf910.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/1/13/14d67752-de79-4d55-8541-ff0431fcf910.png -------------------------------------------------------------------------------- /WebContent/productImg/1/2/4258e40b-797f-4576-95d7-f4c19a279202.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/1/2/4258e40b-797f-4576-95d7-f4c19a279202.png -------------------------------------------------------------------------------- /WebContent/productImg/10/5/36ee63bc-c251-49ce-9b9a-b5e1e2e75ec0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/10/5/36ee63bc-c251-49ce-9b9a-b5e1e2e75ec0.jpg -------------------------------------------------------------------------------- /WebContent/productImg/11/11/6d3c7635-545a-46b3-bd3e-d2d74f11ed69.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/11/11/6d3c7635-545a-46b3-bd3e-d2d74f11ed69.jpg -------------------------------------------------------------------------------- /WebContent/productImg/11/4/d79dc124-de69-4b77-847e-bc461bfdb857.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/11/4/d79dc124-de69-4b77-847e-bc461bfdb857.jpg -------------------------------------------------------------------------------- /WebContent/productImg/12/1/986b5e98-ee73-4717-89fd-b6ac26a8dc2c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/12/1/986b5e98-ee73-4717-89fd-b6ac26a8dc2c.jpg -------------------------------------------------------------------------------- /WebContent/productImg/12/14/a1ace169-b53a-41c6-bdea-000e5946b2a5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/12/14/a1ace169-b53a-41c6-bdea-000e5946b2a5.png -------------------------------------------------------------------------------- /WebContent/productImg/13/15/f5c353fd-fc04-4675-a883-324e895f2e00: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/13/15/f5c353fd-fc04-4675-a883-324e895f2e00 -------------------------------------------------------------------------------- /WebContent/productImg/13/2/20788b05-d298-4a7c-91d9-370fb056f6a5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/13/2/20788b05-d298-4a7c-91d9-370fb056f6a5.jpg -------------------------------------------------------------------------------- /WebContent/productImg/13/5/306c0388-fbaa-49e4-9566-d63699258147: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/13/5/306c0388-fbaa-49e4-9566-d63699258147 -------------------------------------------------------------------------------- /WebContent/productImg/14/1/792116e7-6d83-4be4-b3e5-4dd11b0b4565.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/14/1/792116e7-6d83-4be4-b3e5-4dd11b0b4565.jpg -------------------------------------------------------------------------------- /WebContent/productImg/14/10/b3a17a51-3467-42fb-b26d-17fe93ce417f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/14/10/b3a17a51-3467-42fb-b26d-17fe93ce417f -------------------------------------------------------------------------------- /WebContent/productImg/14/5/0dff62da-16ac-4129-a001-24490d7ec57e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/14/5/0dff62da-16ac-4129-a001-24490d7ec57e.png -------------------------------------------------------------------------------- /WebContent/productImg/14/7/4aaec571-d86f-4ab9-9232-d59745fd8b23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/14/7/4aaec571-d86f-4ab9-9232-d59745fd8b23 -------------------------------------------------------------------------------- /WebContent/productImg/15/1/5394df32-ed6e-4203-b9c0-fc175cfc187e.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/15/1/5394df32-ed6e-4203-b9c0-fc175cfc187e.jpg -------------------------------------------------------------------------------- /WebContent/productImg/15/7/4cdb1ab7-cd15-4cbb-9237-d6ab23f309c9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/15/7/4cdb1ab7-cd15-4cbb-9237-d6ab23f309c9 -------------------------------------------------------------------------------- /WebContent/productImg/15/8/23c6610b-1dc4-4a21-a128-164945d01974: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/15/8/23c6610b-1dc4-4a21-a128-164945d01974 -------------------------------------------------------------------------------- /WebContent/productImg/2/0/2105fbe5-400f-4193-a7db-d7ebac389550.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/2/0/2105fbe5-400f-4193-a7db-d7ebac389550.jpg -------------------------------------------------------------------------------- /WebContent/productImg/2/1/5d0bf45e-8372-4b20-8477-a802a68fd251.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/2/1/5d0bf45e-8372-4b20-8477-a802a68fd251.jpg -------------------------------------------------------------------------------- /WebContent/productImg/2/2/f553d638-aca7-48df-9061-dad52d6d7ce2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/2/2/f553d638-aca7-48df-9061-dad52d6d7ce2.png -------------------------------------------------------------------------------- /WebContent/productImg/2/7/7ede11f8-3ff9-4c12-ad58-b1d5e0e72032.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/2/7/7ede11f8-3ff9-4c12-ad58-b1d5e0e72032.jpg -------------------------------------------------------------------------------- /WebContent/productImg/2/8/acc9d557-f8c9-426b-9aec-50a5a7cf3960.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/2/8/acc9d557-f8c9-426b-9aec-50a5a7cf3960.jpg -------------------------------------------------------------------------------- /WebContent/productImg/3/0/3253aeee-5462-47d0-991c-afb568ab3b03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/3/0/3253aeee-5462-47d0-991c-afb568ab3b03.jpg -------------------------------------------------------------------------------- /WebContent/productImg/4/3/0270eba2-2b48-48df-956b-0341204384d9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/4/3/0270eba2-2b48-48df-956b-0341204384d9.jpg -------------------------------------------------------------------------------- /WebContent/productImg/5/11/e4d290ce-3355-466f-a51e-13c62552d2cb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/5/11/e4d290ce-3355-466f-a51e-13c62552d2cb.jpg -------------------------------------------------------------------------------- /WebContent/productImg/5/8/c4ab442f-95c7-4d6f-a57e-3eb7dc6b83c4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/5/8/c4ab442f-95c7-4d6f-a57e-3eb7dc6b83c4.jpg -------------------------------------------------------------------------------- /WebContent/productImg/6/12/bdaec3dc-fa39-48a6-b32f-6cde8c67bef4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/6/12/bdaec3dc-fa39-48a6-b32f-6cde8c67bef4.jpg -------------------------------------------------------------------------------- /WebContent/productImg/6/5/a2da626c-c72d-4972-83de-cf48405c5563.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/6/5/a2da626c-c72d-4972-83de-cf48405c5563.jpg -------------------------------------------------------------------------------- /WebContent/productImg/7/0/14e9a557-da95-4023-9bd8-fff6ae594c1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/7/0/14e9a557-da95-4023-9bd8-fff6ae594c1b.png -------------------------------------------------------------------------------- /WebContent/productImg/7/14/e48c5cc9-b209-412a-8ca5-5e413c17d55c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/7/14/e48c5cc9-b209-412a-8ca5-5e413c17d55c.jpg -------------------------------------------------------------------------------- /WebContent/productImg/7/15/0aafeea2-b2bf-49d8-8153-ff94efcc5ead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/7/15/0aafeea2-b2bf-49d8-8153-ff94efcc5ead.jpg -------------------------------------------------------------------------------- /WebContent/productImg/7/3/f567c1a2-e13c-4a54-ae43-55756b6e1bf7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/7/3/f567c1a2-e13c-4a54-ae43-55756b6e1bf7 -------------------------------------------------------------------------------- /WebContent/productImg/9/0/697a23d6-225a-41a3-8c20-7ab624265ecc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/9/0/697a23d6-225a-41a3-8c20-7ab624265ecc.png -------------------------------------------------------------------------------- /WebContent/productImg/9/15/1c93d4be-9b23-41eb-b4ae-d54c799c67a4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/9/15/1c93d4be-9b23-41eb-b4ae-d54c799c67a4 -------------------------------------------------------------------------------- /WebContent/productImg/9/3/eac105d4-4ab5-4af9-9061-e255016b79d9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JavaGraduationProject/ChuanzhiBookstoreManagementSystem/c24ce623814adccd9ba05e1e0df1af597631e50f/WebContent/productImg/9/3/eac105d4-4ab5-4af9-9061-e255016b79d9.png -------------------------------------------------------------------------------- /src/c3p0-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.mysql.jdbc.Driver 5 | jdbc:mysql:///graduation_itcaststore 6 | root 7 | 123456 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/dao/NoticeDao.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.dao; 2 | 3 | import java.sql.SQLException; 4 | import java.util.List; 5 | 6 | import org.apache.commons.dbutils.QueryRunner; 7 | import org.apache.commons.dbutils.handlers.BeanHandler; 8 | import org.apache.commons.dbutils.handlers.BeanListHandler; 9 | 10 | import cn.itcast.itcaststore.domain.Notice; 11 | import cn.itcast.itcaststore.utils.DataSourceUtils; 12 | 13 | public class NoticeDao { 14 | //后台系统,查询所有的公告 15 | public List getAllNotices() throws SQLException { 16 | String sql = "select * from notice order by n_time desc limit 0,10"; 17 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 18 | return runner.query(sql, new BeanListHandler(Notice.class)); 19 | } 20 | 21 | //后台系统,添加公告 22 | public void addNotice(Notice n) throws SQLException { 23 | String sql = "insert into notice(title,details,n_time) values(?,?,?)"; 24 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 25 | runner.update(sql, n.getTitle(),n.getDetails(),n.getN_time()); 26 | } 27 | 28 | //后台系统,根据id查找公告 29 | public Notice findNoticeById(String n_id) throws SQLException { 30 | String sql = "select * from notice where n_id = ?"; 31 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 32 | return runner.query(sql, new BeanHandler(Notice.class),n_id); 33 | } 34 | 35 | //后台系统,根据id修改单个公告 36 | public void updateNotice(Notice n) throws SQLException { 37 | String sql = "update notice set title=?,details=?,n_time=? where n_id=?"; 38 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 39 | runner.update(sql, n.getTitle(),n.getDetails(),n.getN_time(),n.getN_id()); 40 | } 41 | 42 | //后台系统,根据id删除公告 43 | public void deleteNotice(String n_id) throws SQLException { 44 | String sql = "delete from notice where n_id = ?"; 45 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 46 | runner.update(sql, n_id); 47 | } 48 | 49 | //前台系统,查询最新添加或修改的一条公告 50 | public Notice getRecentNotice() throws SQLException { 51 | String sql = "select * from notice order by n_time desc limit 0,1"; 52 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 53 | return runner.query(sql, new BeanHandler(Notice.class)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/dao/OrderItemDao.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.dao; 2 | 3 | import java.sql.ResultSet; 4 | import java.sql.SQLException; 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | import org.apache.commons.dbutils.QueryRunner; 9 | import org.apache.commons.dbutils.ResultSetHandler; 10 | 11 | import cn.itcast.itcaststore.domain.Order; 12 | import cn.itcast.itcaststore.domain.OrderItem; 13 | import cn.itcast.itcaststore.domain.Product; 14 | import cn.itcast.itcaststore.utils.DataSourceUtils; 15 | 16 | public class OrderItemDao { 17 | 18 | // 添加订单项 19 | public void addOrderItem(Order order) throws SQLException { 20 | // 1.生成sql语句 21 | String sql = "insert into orderItem values(?,?,?)"; 22 | 23 | QueryRunner runner = new QueryRunner(); 24 | 25 | List items = order.getOrderItems(); 26 | 27 | Object[][] params = new Object[items.size()][3]; 28 | 29 | for (int i = 0; i < params.length; i++) { 30 | params[i][0] = items.get(i).getOrder().getId(); 31 | params[i][1] = items.get(i).getP().getId(); 32 | params[i][2] = items.get(i).getBuynum(); 33 | } 34 | 35 | runner.batch(DataSourceUtils.getConnection(), sql, params); 36 | } 37 | 38 | // 根据订单查找订单项.并将订单项中商品查找到。 39 | public List findOrderItemByOrder(final Order order) 40 | throws SQLException { 41 | String sql = "select * from orderItem,Products where products.id=orderItem.product_id and order_id=?"; 42 | 43 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 44 | 45 | return runner.query(sql, new ResultSetHandler>() { 46 | public List handle(ResultSet rs) throws SQLException { 47 | 48 | List items = new ArrayList(); 49 | while (rs.next()) { 50 | OrderItem item = new OrderItem(); 51 | 52 | item.setOrder(order); 53 | item.setBuynum(rs.getInt("buynum")); 54 | 55 | Product p = new Product(); 56 | p.setCategory(rs.getString("category")); 57 | p.setId(rs.getString("id")); 58 | p.setDescription(rs.getString("description")); 59 | p.setImgurl(rs.getString("imgurl")); 60 | p.setName(rs.getString("name")); 61 | p.setPnum(rs.getInt("pnum")); 62 | p.setPrice(rs.getDouble("price")); 63 | item.setP(p); 64 | 65 | items.add(item); 66 | } 67 | 68 | return items; 69 | } 70 | }, order.getId()); 71 | } 72 | //根据订单id删除订单项 73 | public void delOrderItems(String id) throws SQLException { 74 | String sql="delete from orderItem where order_id=?"; 75 | 76 | QueryRunner runner=new QueryRunner(); 77 | 78 | runner.update(DataSourceUtils.getConnection(),sql,id); 79 | } 80 | 81 | } 82 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.dao; 2 | import java.sql.SQLException; 3 | import org.apache.commons.dbutils.QueryRunner; 4 | import org.apache.commons.dbutils.handlers.BeanHandler; 5 | import cn.itcast.itcaststore.domain.User; 6 | import cn.itcast.itcaststore.utils.DataSourceUtils; 7 | 8 | public class UserDao { 9 | // 添加用户 10 | public void addUser(User user) throws SQLException { 11 | String sql = "insert into user(username,password,gender,email,telephone,introduce,activecode) values(?,?,?,?,?,?,?)"; 12 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 13 | int row = runner.update(sql, user.getUsername(), user.getPassword(), 14 | user.getGender(), user.getEmail(), user.getTelephone(), 15 | user.getIntroduce(), user.getActiveCode()); 16 | if (row == 0) { 17 | throw new RuntimeException(); 18 | } 19 | } 20 | 21 | // 根据激活码查找用户 22 | public User findUserByActiveCode(String activeCode) throws SQLException { 23 | String sql = "select * from user where activecode=?"; 24 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 25 | return runner.query(sql, new BeanHandler(User.class), activeCode); 26 | 27 | } 28 | 29 | // 激活用戶 30 | public void activeUser(String activeCode) throws SQLException { 31 | String sql = "update user set state=? where activecode=?"; 32 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 33 | runner.update(sql, 1, activeCode); 34 | } 35 | 36 | //根据用户名与密码查找用户 37 | public User findUserByUsernameAndPassword(String username, String password) throws SQLException { 38 | String sql="select * from user where username=? and password=?"; 39 | QueryRunner runner = new QueryRunner(DataSourceUtils.getDataSource()); 40 | return runner.query(sql, new BeanHandler(User.class),username,password); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/domain/Notice.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.domain; 2 | 3 | public class Notice { 4 | private int n_id; 5 | private String title; 6 | private String details; 7 | private String n_time; 8 | 9 | public String getN_time() { 10 | return n_time; 11 | } 12 | public void setN_time(String n_time) { 13 | this.n_time = n_time; 14 | } 15 | public int getN_id() { 16 | return n_id; 17 | } 18 | public String getTitle() { 19 | return title; 20 | } 21 | public void setTitle(String title) { 22 | this.title = title; 23 | } 24 | public void setN_id(int n_id) { 25 | this.n_id = n_id; 26 | } 27 | public String getDetails() { 28 | return details; 29 | } 30 | public void setDetails(String details) { 31 | this.details = details; 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/domain/Order.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.domain; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.List; 6 | 7 | public class Order { 8 | 9 | private String id; // 订单编号 10 | private double money; // 订单总价 11 | private String receiverAddress; // 送货地址 12 | private String receiverName; // 收货人姓名 13 | private String receiverPhone; // 收货人电话 14 | private int paystate; // 订单状态 15 | private Date ordertime; // 下单时间 16 | 17 | private User user; // 订单所属用户 18 | 19 | private List orderItems = new ArrayList(); 20 | 21 | public String getReceiverAddress() { 22 | return receiverAddress; 23 | } 24 | 25 | public void setReceiverAddress(String receiverAddress) { 26 | this.receiverAddress = receiverAddress; 27 | } 28 | 29 | public String getReceiverName() { 30 | return receiverName; 31 | } 32 | 33 | public void setReceiverName(String receiverName) { 34 | this.receiverName = receiverName; 35 | } 36 | 37 | public String getReceiverPhone() { 38 | return receiverPhone; 39 | } 40 | 41 | public void setReceiverPhone(String receiverPhone) { 42 | this.receiverPhone = receiverPhone; 43 | } 44 | 45 | public List getOrderItems() { 46 | return orderItems; 47 | } 48 | 49 | public void setOrderItems(List orderItems) { 50 | this.orderItems = orderItems; 51 | } 52 | 53 | public String getId() { 54 | return id; 55 | } 56 | 57 | public void setId(String id) { 58 | this.id = id; 59 | } 60 | 61 | public double getMoney() { 62 | return money; 63 | } 64 | 65 | public void setMoney(double money) { 66 | this.money = money; 67 | } 68 | 69 | public int getPaystate() { 70 | return paystate; 71 | } 72 | 73 | public void setPaystate(int paystate) { 74 | this.paystate = paystate; 75 | } 76 | 77 | public Date getOrdertime() { 78 | return ordertime; 79 | } 80 | 81 | public void setOrdertime(Date ordertime) { 82 | this.ordertime = ordertime; 83 | } 84 | 85 | public User getUser() { 86 | return user; 87 | } 88 | 89 | public void setUser(User user) { 90 | this.user = user; 91 | } 92 | 93 | @Override 94 | public String toString() { 95 | return "Order [id=" + id + ", money=" + money + ", receiverAddress=" 96 | + receiverAddress + ", receiverName=" + receiverName 97 | + ", receiverPhone=" + receiverPhone + ", paystate=" + paystate 98 | + ", ordertime=" + ordertime + ", user=" + user 99 | + ", orderItems=" + orderItems + "]"; 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/domain/OrderItem.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.domain; 2 | 3 | public class OrderItem { 4 | 5 | private Order order; 6 | private Product p; 7 | private int buynum; 8 | 9 | public Order getOrder() { 10 | return order; 11 | } 12 | 13 | public void setOrder(Order order) { 14 | this.order = order; 15 | } 16 | 17 | public Product getP() { 18 | return p; 19 | } 20 | 21 | public void setP(Product p) { 22 | this.p = p; 23 | } 24 | 25 | public int getBuynum() { 26 | return buynum; 27 | } 28 | 29 | public void setBuynum(int buynum) { 30 | this.buynum = buynum; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/domain/PageBean.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.domain; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public class PageBean implements Serializable{ 7 | 8 | private static final long serialVersionUID = 1L; 9 | private int currentPage;// 当前页码 10 | private int totalCount;// 总条数 11 | private int totalPage;// 总页数 12 | private int currentCount;// 每页条数 13 | private List ps;// 每页显示的数据 14 | private String category;//类别 15 | private String searchfield;//模糊搜索的图书名 16 | 17 | public String getCategory() { 18 | return category; 19 | } 20 | 21 | public String getSearchfield() { 22 | return searchfield; 23 | } 24 | 25 | public void setSearchfield(String searchfield) { 26 | this.searchfield = searchfield; 27 | } 28 | 29 | public void setCategory(String category) { 30 | this.category = category; 31 | } 32 | 33 | public int getCurrentPage() { 34 | return currentPage; 35 | } 36 | 37 | public void setCurrentPage(int currentPage) { 38 | this.currentPage = currentPage; 39 | } 40 | 41 | public int getTotalCount() { 42 | return totalCount; 43 | } 44 | 45 | public void setTotalCount(int totalCount) { 46 | this.totalCount = totalCount; 47 | } 48 | 49 | public int getTotalPage() { 50 | return totalPage; 51 | } 52 | 53 | public void setTotalPage(int totalPage) { 54 | this.totalPage = totalPage; 55 | } 56 | 57 | public int getCurrentCount() { 58 | return currentCount; 59 | } 60 | 61 | public void setCurrentCount(int currentCount) { 62 | this.currentCount = currentCount; 63 | } 64 | 65 | public List getPs() { 66 | return ps; 67 | } 68 | 69 | public void setPs(List ps) { 70 | this.ps = ps; 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/domain/User.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.domain; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | public class User implements Serializable { 7 | 8 | private static final long serialVersionUID = 1L; 9 | private int id; // 用户编号 10 | private String username; // 用户姓名 11 | private String password; // 用户密码 12 | private String gender; // 用户性别 13 | private String email; // 用户邮箱 14 | private String telephone; // 用户联系电话 15 | private String introduce; // 用户介绍 16 | private String activeCode; // 激活码 17 | private String role; // 用户角色 18 | private int state; // 用户状态 19 | private Date registTime;// 注册时间 20 | 21 | public Date getRegistTime() { 22 | return registTime; 23 | } 24 | 25 | public void setRegistTime(Date registTime) { 26 | this.registTime = registTime; 27 | } 28 | 29 | public int getState() { 30 | return state; 31 | } 32 | 33 | public void setState(int state) { 34 | this.state = state; 35 | } 36 | 37 | public String getActiveCode() { 38 | return activeCode; 39 | } 40 | 41 | public void setActiveCode(String activeCode) { 42 | this.activeCode = activeCode; 43 | } 44 | 45 | public int getId() { 46 | return id; 47 | } 48 | 49 | public void setId(int id) { 50 | this.id = id; 51 | } 52 | 53 | public String getUsername() { 54 | return username; 55 | } 56 | 57 | public void setUsername(String username) { 58 | this.username = username; 59 | } 60 | 61 | public String getPassword() { 62 | return password; 63 | } 64 | 65 | public void setPassword(String password) { 66 | this.password = password; 67 | } 68 | 69 | public String getGender() { 70 | return gender; 71 | } 72 | 73 | public void setGender(String gender) { 74 | this.gender = gender; 75 | } 76 | 77 | public String getEmail() { 78 | return email; 79 | } 80 | 81 | public void setEmail(String email) { 82 | this.email = email; 83 | } 84 | 85 | public String getTelephone() { 86 | return telephone; 87 | } 88 | 89 | public void setTelephone(String telephone) { 90 | this.telephone = telephone; 91 | } 92 | 93 | public String getIntroduce() { 94 | return introduce; 95 | } 96 | 97 | public void setIntroduce(String introduce) { 98 | this.introduce = introduce; 99 | } 100 | 101 | public String getRole() { 102 | return role; 103 | } 104 | 105 | public void setRole(String role) { 106 | this.role = role; 107 | } 108 | 109 | @Override 110 | public String toString() { 111 | return "User [id=" + id + ", username=" + username + ", password=" 112 | + password + ", gender=" + gender + ", email=" + email 113 | + ", telephone=" + telephone + ", introduce=" + introduce 114 | + ", role=" + role + "]"; 115 | } 116 | 117 | } 118 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/ActiveUserException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | //激活用户 3 | public class ActiveUserException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public ActiveUserException() { 8 | super(); 9 | } 10 | 11 | public ActiveUserException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | 15 | public ActiveUserException(String message) { 16 | super(message); 17 | } 18 | 19 | public ActiveUserException(Throwable cause) { 20 | super(cause); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/AddProductException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | 3 | public class AddProductException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public AddProductException() { 8 | super(); 9 | } 10 | 11 | public AddProductException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | 15 | public AddProductException(String message) { 16 | super(message); 17 | } 18 | 19 | public AddProductException(Throwable cause) { 20 | super(cause); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/FindProductByIdException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | 3 | public class FindProductByIdException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public FindProductByIdException() { 8 | super(); 9 | } 10 | 11 | public FindProductByIdException(String message, Throwable cause) { 12 | super(message, cause); 13 | } 14 | 15 | public FindProductByIdException(String message) { 16 | super(message); 17 | } 18 | 19 | public FindProductByIdException(Throwable cause) { 20 | super(cause); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/ListProductException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | 3 | public class ListProductException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public ListProductException() { 8 | super(); 9 | // TODO Auto-generated constructor stub 10 | } 11 | 12 | public ListProductException(String message, Throwable cause) { 13 | super(message, cause); 14 | // TODO Auto-generated constructor stub 15 | } 16 | 17 | public ListProductException(String message) { 18 | super(message); 19 | // TODO Auto-generated constructor stub 20 | } 21 | 22 | public ListProductException(Throwable cause) { 23 | super(cause); 24 | // TODO Auto-generated constructor stub 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/LoginException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | 3 | public class LoginException extends Exception { 4 | 5 | /** 6 | * 7 | */ 8 | private static final long serialVersionUID = 1L; 9 | 10 | public LoginException() { 11 | super(); 12 | // TODO Auto-generated constructor stub 13 | } 14 | 15 | public LoginException(String message, Throwable cause) { 16 | super(message, cause); 17 | // TODO Auto-generated constructor stub 18 | } 19 | 20 | public LoginException(String message) { 21 | super(message); 22 | // TODO Auto-generated constructor stub 23 | } 24 | 25 | public LoginException(Throwable cause) { 26 | super(cause); 27 | // TODO Auto-generated constructor stub 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/exception/RegisterException.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.exception; 2 | //注册用户 3 | public class RegisterException extends Exception { 4 | 5 | private static final long serialVersionUID = 1L; 6 | 7 | public RegisterException() { 8 | super(); 9 | // TODO Auto-generated constructor stub 10 | } 11 | 12 | public RegisterException(String message, Throwable cause) { 13 | super(message, cause); 14 | // TODO Auto-generated constructor stub 15 | } 16 | 17 | public RegisterException(String message) { 18 | super(message); 19 | // TODO Auto-generated constructor stub 20 | } 21 | 22 | public RegisterException(Throwable cause) { 23 | super(cause); 24 | // TODO Auto-generated constructor stub 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/service/NoticeService.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.service; 2 | 3 | import java.sql.SQLException; 4 | import java.util.List; 5 | 6 | import cn.itcast.itcaststore.dao.NoticeDao; 7 | import cn.itcast.itcaststore.domain.Notice; 8 | 9 | public class NoticeService { 10 | private NoticeDao dao = new NoticeDao(); 11 | //后台系统,查询所有公告 12 | public List getAllNotices() { 13 | try { 14 | return dao.getAllNotices(); 15 | } catch (SQLException e) { 16 | throw new RuntimeException("查询所有的公告失败!"); 17 | } 18 | } 19 | //后台系统,添加公告 20 | public void addNotice(Notice notice) { 21 | try { 22 | dao.addNotice(notice); 23 | } catch (SQLException e) { 24 | e.printStackTrace(); 25 | throw new RuntimeException("添加公告失败!"); 26 | } 27 | } 28 | //后台系统,根据id查找公告 29 | public Notice findNoticeById(String n_id) { 30 | try { 31 | return dao.findNoticeById(n_id); 32 | } catch (SQLException e) { 33 | throw new RuntimeException("根据id查找公告失败!"); 34 | } 35 | } 36 | 37 | //后台系统,根据id修改公告 38 | public void updateNotice(Notice bean) { 39 | try { 40 | dao.updateNotice(bean); 41 | } catch (SQLException e) { 42 | // throw new RuntimeException("根据id修改公告失败!"); 43 | e.printStackTrace(); 44 | } 45 | } 46 | 47 | //后台系统,根据id删除公告 48 | public void deleteNotice(String n_id) { 49 | try { 50 | dao.deleteNotice(n_id); 51 | } catch (SQLException e) { 52 | throw new RuntimeException("根据id删除公告失败!"); 53 | } 54 | } 55 | 56 | //前台系统,查询最新添加或修改的一条公告 57 | public Notice getRecentNotice() { 58 | try { 59 | return dao.getRecentNotice(); 60 | } catch (SQLException e) { 61 | throw new RuntimeException("查询最新添加或修改的一条公告失败!"); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/service/UserService.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.service; 2 | import java.sql.SQLException; 3 | import java.util.Date; 4 | import javax.security.auth.login.LoginException; 5 | import cn.itcast.itcaststore.dao.UserDao; 6 | import cn.itcast.itcaststore.domain.User; 7 | import cn.itcast.itcaststore.exception.ActiveUserException; 8 | import cn.itcast.itcaststore.exception.RegisterException; 9 | import cn.itcast.itcaststore.utils.MailUtils; 10 | 11 | public class UserService { 12 | private UserDao dao = new UserDao(); 13 | // 注册操作 14 | public void register(User user) throws RegisterException { 15 | // 调用dao完成注册操作 16 | try { 17 | dao.addUser(user); 18 | // 发送激活邮件 19 | String emailMsg = "感谢您注册网上书城,点击" 20 | + " 激活 后使用。" 22 | + "
为保障您的账户安全,请在24小时内完成激活操作"; 23 | MailUtils.sendMail(user.getEmail(), emailMsg); 24 | } catch (Exception e) { 25 | e.printStackTrace(); 26 | throw new RegisterException("注冊失败"); 27 | } 28 | } 29 | // 激活用户 30 | public void activeUser(String activeCode) throws ActiveUserException { 31 | try { 32 | // 根据激活码查找用户 33 | User user = dao.findUserByActiveCode(activeCode); 34 | if (user == null) { 35 | throw new ActiveUserException("激活用户失败"); 36 | } 37 | // 判断激活码是否过期 24小时内激活有效. 38 | // 1.得到注册时间 39 | Date registTime = user.getRegistTime(); 40 | // 2.判断是否超时 41 | long time = System.currentTimeMillis() - registTime.getTime(); 42 | if (time / 1000 / 60 / 60 > 24) { 43 | throw new ActiveUserException("激活码过期"); 44 | } 45 | // 激活用户,就是修改用户的state状态 46 | dao.activeUser(activeCode); 47 | } catch (SQLException e) { 48 | e.printStackTrace(); 49 | throw new ActiveUserException("激活用户失败"); 50 | } 51 | } 52 | // 登录操作 53 | public User login(String username, String password) throws LoginException { 54 | try { 55 | //根据登录时表单输入的用户名和密码,查找用户 56 | User user = dao.findUserByUsernameAndPassword(username, password); 57 | //如果找到,还需要确定用户是否为激活用户 58 | if (user != null) { 59 | // 只有是激活才能登录成功,否则提示“用户未激活” 60 | if (user.getState() == 1) { 61 | return user; 62 | } 63 | throw new LoginException("用户未激活"); 64 | } 65 | throw new LoginException("用户名或密码错误"); 66 | } catch (SQLException e) { 67 | e.printStackTrace(); 68 | throw new LoginException("登录失败"); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/tag/PrivilegeTag.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.tag; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.http.HttpServletRequest; 5 | import javax.servlet.http.HttpServletResponse; 6 | import javax.servlet.jsp.JspException; 7 | import javax.servlet.jsp.PageContext; 8 | import javax.servlet.jsp.tagext.SimpleTagSupport; 9 | 10 | import cn.itcast.itcaststore.domain.User; 11 | 12 | public class PrivilegeTag extends SimpleTagSupport { 13 | @Override 14 | public void doTag() throws JspException, IOException { 15 | PageContext context = (PageContext) this.getJspContext(); 16 | HttpServletRequest request = (HttpServletRequest) context.getRequest(); 17 | HttpServletResponse response = (HttpServletResponse) context.getResponse(); 18 | 19 | User user = (User) context.getSession().getAttribute("user"); 20 | if (user == null) { 21 | response.sendRedirect(request.getContextPath() + "/client/error/privilege.jsp"); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/utils/ActiveCodeUtils.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.utils; 2 | 3 | import java.util.UUID; 4 | /** 5 | * 生成注册激活码的工具类 6 | */ 7 | public class ActiveCodeUtils { 8 | public static String createActiveCode() { 9 | return UUID.randomUUID().toString(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/utils/DataSourceUtils.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.utils; 2 | import java.sql.Connection; 3 | import java.sql.SQLException; 4 | import javax.sql.DataSource; 5 | import com.mchange.v2.c3p0.ComboPooledDataSource; 6 | /** 7 | * 数据源工具 8 | */ 9 | public class DataSourceUtils { 10 | private static DataSource dataSource = new ComboPooledDataSource(); 11 | private static ThreadLocal tl = new ThreadLocal(); 12 | 13 | public static DataSource getDataSource() { 14 | return dataSource; 15 | } 16 | /** 17 | * 当DBUtils需要手动控制事务时,调用该方法获得一个连接 18 | * @return 19 | * @throws SQLException 20 | */ 21 | public static Connection getConnection() throws SQLException { 22 | Connection con = tl.get(); 23 | if (con == null) { 24 | con = dataSource.getConnection(); 25 | tl.set(con); 26 | } 27 | return con; 28 | } 29 | /** 30 | * 开启事务 31 | * @throws SQLException 32 | */ 33 | public static void startTransaction() throws SQLException { 34 | Connection con = getConnection(); 35 | if (con != null) 36 | con.setAutoCommit(false); 37 | } 38 | /** 39 | * 从ThreadLocal中释放并且关闭Connection,并结束事务 40 | * @throws SQLException 41 | */ 42 | public static void releaseAndCloseConnection() throws SQLException { 43 | Connection con = getConnection(); 44 | if (con != null) { 45 | con.commit(); 46 | tl.remove(); 47 | con.close(); 48 | } 49 | } 50 | /** 51 | * 事务回滚 52 | * @throws SQLException 53 | */ 54 | public static void rollback() throws SQLException { 55 | Connection con = getConnection(); 56 | if (con != null) { 57 | con.rollback(); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/utils/FileUploadUtils.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.utils; 2 | 3 | import java.util.UUID; 4 | 5 | public class FileUploadUtils { 6 | /** 7 | * 截取真实文件名 8 | * 9 | * @param fileName 10 | * @return 11 | */ 12 | public static String subFileName(String fileName) { 13 | // 查找最后一个 \出现位置 14 | int index = fileName.lastIndexOf("\\"); 15 | if (index == -1) { 16 | return fileName; 17 | } 18 | return fileName.substring(index + 1); 19 | } 20 | 21 | // 获得随机UUID文件名 22 | public static String generateRandonFileName(String fileName) { 23 | // 获得扩展名 24 | int index = fileName.lastIndexOf("."); 25 | if (index != -1) { 26 | String ext = fileName.substring(index); 27 | return UUID.randomUUID().toString() + ext; 28 | } 29 | return UUID.randomUUID().toString(); 30 | } 31 | 32 | // 获得hashcode生成二级目录 33 | public static String generateRandomDir(String uuidFileName) { 34 | int hashCode = uuidFileName.hashCode(); 35 | // 一级目录 36 | int d1 = hashCode & 0xf; 37 | // 二级目录 38 | int d2 = (hashCode >> 4) & 0xf; 39 | return "/" + d1 + "/" + d2; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/utils/IdUtils.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.utils; 2 | 3 | import java.util.UUID; 4 | 5 | //获取uuid 6 | public class IdUtils { 7 | 8 | public static String getUUID() { 9 | 10 | return UUID.randomUUID().toString(); 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/utils/MailUtils.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.utils; 2 | import java.util.Properties; 3 | import javax.mail.Authenticator; 4 | import javax.mail.Message; 5 | import javax.mail.MessagingException; 6 | import javax.mail.PasswordAuthentication; 7 | import javax.mail.Session; 8 | import javax.mail.Transport; 9 | import javax.mail.internet.AddressException; 10 | import javax.mail.internet.InternetAddress; 11 | import javax.mail.internet.MimeMessage; 12 | import javax.mail.internet.MimeMessage.RecipientType; 13 | /** 14 | * 发送邮件的工具类 15 | */ 16 | public class MailUtils { 17 | public static void sendMail(String email, String emailMsg) 18 | throws AddressException, MessagingException { 19 | // 1.创建一个程序与邮件服务器会话对象 Session 20 | Properties props = new Properties(); 21 | // 设置邮件传输协议为SMTP 22 | props.setProperty("mail.transport.protocol", "SMTP"); 23 | // 设置SMTP服务器地址 24 | props.setProperty("mail.host", "smtp.sohu.com"); 25 | // 设置SMTP服务器是否需要用户验证,需要验证设置为true 26 | props.setProperty("mail.smtp.auth", "true"); 27 | // 创建验证器 28 | Authenticator auth = new Authenticator() { 29 | public PasswordAuthentication getPasswordAuthentication() { 30 | return new PasswordAuthentication("itcast_duhong", "1234567890"); 31 | } 32 | }; 33 | Session session = Session.getInstance(props, auth); 34 | // 2.创建一个Message,它相当于是邮件内容 35 | Message message = new MimeMessage(session); 36 | message.setFrom(new InternetAddress("itcast_duhong@sohu.com")); // 设置发送者 37 | message.setRecipient(RecipientType.TO, new InternetAddress(email)); // 设置发送方式与接收者 38 | message.setSubject("用户激活"); 39 | // message.setText("这是一封激活邮件,请点击"); 40 | message.setContent(emailMsg, "text/html;charset=utf-8"); 41 | // 3.创建 Transport用于将邮件发送 42 | Transport.send(message); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/filter/AdminPrivilegeFilter.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.filter; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.Filter; 6 | import javax.servlet.FilterChain; 7 | import javax.servlet.FilterConfig; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.ServletRequest; 10 | import javax.servlet.ServletResponse; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | 14 | import cn.itcast.itcaststore.domain.User; 15 | 16 | public class AdminPrivilegeFilter implements Filter { 17 | 18 | public void init(FilterConfig filterConfig) throws ServletException { 19 | 20 | } 21 | 22 | public void doFilter(ServletRequest req, ServletResponse resp, 23 | FilterChain chain) throws IOException, ServletException { 24 | // 1 强制转换 25 | HttpServletRequest request = (HttpServletRequest) req; 26 | HttpServletResponse response = (HttpServletResponse) resp; 27 | 28 | // 2判断是否具有权限 29 | User user = (User) request.getSession().getAttribute("user"); 30 | 31 | if (user != null && "超级用户".equals(user.getRole())) { 32 | // 3.放行 33 | chain.doFilter(request, response); 34 | return; 35 | } 36 | 37 | response.sendRedirect(request.getContextPath() + "/error/privilege.jsp"); 38 | 39 | } 40 | 41 | public void destroy() { 42 | 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/ActiveUserServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import cn.itcast.itcaststore.exception.ActiveUserException; 8 | import cn.itcast.itcaststore.service.UserService; 9 | @SuppressWarnings("serial") 10 | public class ActiveUserServlet extends HttpServlet { 11 | public void doGet(HttpServletRequest request, HttpServletResponse response) 12 | throws ServletException, IOException { 13 | doPost(request, response); 14 | } 15 | public void doPost(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | // 1.获取激活码 18 | String activeCode = request.getParameter("activeCode"); 19 | // 2.调用service中激活用户操作 20 | UserService service = new UserService(); 21 | try { 22 | service.activeUser(activeCode); 23 | response.sendRedirect(request.getContextPath() + "/client/activesuccess.jsp"); 24 | return; 25 | } catch (ActiveUserException e) { 26 | e.printStackTrace(); 27 | response.getWriter().write(e.getMessage()); 28 | return; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/AddCartServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import javax.servlet.http.HttpSession; 10 | import cn.itcast.itcaststore.domain.Product; 11 | import cn.itcast.itcaststore.exception.FindProductByIdException; 12 | import cn.itcast.itcaststore.service.ProductService; 13 | 14 | public class AddCartServlet extends HttpServlet { 15 | public void doGet(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | doPost(request, response); 18 | } 19 | @SuppressWarnings("unchecked") 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | // 1.得到商品id 23 | String id = request.getParameter("id"); 24 | // 2.调用service层方法,根据id查找商品 25 | ProductService service = new ProductService(); 26 | try { 27 | Product p = service.findProductById(id); 28 | //3.将商品添加到购物车 29 | //3.1获得session对象 30 | HttpSession session = request.getSession(); 31 | //3.2从session中获取购物车对象 32 | Map cart = (Map)session.getAttribute("cart"); 33 | //3.3如果购物车为null,说明没有商品存储在购物车中,创建出购物车 34 | if (cart == null) { 35 | cart = new HashMap(); 36 | } 37 | //3.4向购物车中添加商品 38 | Integer count = cart.put(p, 1); 39 | //3.5如果商品数量不为空,则商品数量+1,否则添加新的商品信息 40 | if (count != null) { 41 | cart.put(p, count + 1); 42 | } 43 | session.setAttribute("cart", cart); 44 | response.sendRedirect(request.getContextPath() + "/client/cart.jsp"); 45 | return; 46 | } catch (FindProductByIdException e) { 47 | e.printStackTrace(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/CallBackServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.util.ResourceBundle; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.service.OrderService; 9 | import cn.itcast.itcaststore.utils.PaymentUtil; 10 | 11 | public class CallBackServlet extends HttpServlet { 12 | 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | // 获得回调所有数据 20 | String p1_MerId = request.getParameter("p1_MerId"); 21 | String r0_Cmd = request.getParameter("r0_Cmd"); 22 | String r1_Code = request.getParameter("r1_Code"); 23 | String r2_TrxId = request.getParameter("r2_TrxId"); 24 | String r3_Amt = request.getParameter("r3_Amt"); 25 | String r4_Cur = request.getParameter("r4_Cur"); 26 | String r5_Pid = request.getParameter("r5_Pid"); 27 | String r6_Order = request.getParameter("r6_Order"); 28 | String r7_Uid = request.getParameter("r7_Uid"); 29 | String r8_MP = request.getParameter("r8_MP"); 30 | String r9_BType = request.getParameter("r9_BType"); 31 | String rb_BankId = request.getParameter("rb_BankId"); 32 | String ro_BankOrderId = request.getParameter("ro_BankOrderId"); 33 | String rp_PayDate = request.getParameter("rp_PayDate"); 34 | String rq_CardNo = request.getParameter("rq_CardNo"); 35 | String ru_Trxtime = request.getParameter("ru_Trxtime"); 36 | // 身份校验 --- 判断是不是支付公司通知你 37 | String hmac = request.getParameter("hmac"); 38 | String keyValue = ResourceBundle.getBundle("merchantInfo").getString( 39 | "keyValue"); 40 | 41 | // 自己对上面数据进行加密 --- 比较支付公司发过来hamc 42 | boolean isValid = PaymentUtil.verifyCallback(hmac, p1_MerId, r0_Cmd, 43 | r1_Code, r2_TrxId, r3_Amt, r4_Cur, r5_Pid, r6_Order, r7_Uid, 44 | r8_MP, r9_BType, keyValue); 45 | if (isValid) { 46 | 47 | if ("1".equals(r9_BType) || "2".equals(r9_BType)) { // 判断正确支付. 48 | // 响应数据有效--完成修改订单状态操作 49 | response.getWriter().print("success"); 50 | 51 | OrderService service = new OrderService(); 52 | // 根据订单号修改订单状态 53 | try { 54 | service.updateState(r6_Order); 55 | } catch (Exception e) { 56 | e.printStackTrace(); 57 | response.getWriter().write("修改订单状态失败"); 58 | } 59 | } 60 | 61 | } else { 62 | // 数据无效 63 | response.getWriter().write("数据被篡改!"); 64 | } 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/ChangeCartServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.util.Map; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import javax.servlet.http.HttpSession; 9 | import cn.itcast.itcaststore.domain.Product; 10 | /** 11 | * 购物车内容变更 12 | * @author admin 13 | * 14 | */ 15 | public class ChangeCartServlet extends HttpServlet { 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | doPost(request, response); 19 | } 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | // 1.得到商品id 23 | String id = request.getParameter("id"); 24 | // 2.得到要修改的数量 25 | int count = Integer.parseInt(request.getParameter("count")); 26 | // 3.从session中获取购物车. 27 | HttpSession session = request.getSession(); 28 | Map cart = (Map) session.getAttribute("cart"); 29 | Product p = new Product(); 30 | p.setId(id); 31 | if (count != 0) { 32 | cart.put(p, count); 33 | } else { 34 | cart.remove(p); 35 | } 36 | response.sendRedirect(request.getContextPath() + "/client/cart.jsp"); 37 | return; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/ChangeOrderStateServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | 8 | import cn.itcast.itcaststore.service.OrderService; 9 | 10 | public class ChangeOrderStateServlet extends HttpServlet { 11 | private static final long serialVersionUID = 1L; 12 | public void doGet(HttpServletRequest request, HttpServletResponse response) 13 | throws ServletException, IOException { 14 | doPost(request, response); 15 | } 16 | public void doPost(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | // 获得订单号数据 19 | String orderid = request.getParameter("orderid"); 20 | String paySuccess = "恭喜您支付成功!"; 21 | if (null != orderid) { 22 | OrderService service = new OrderService(); 23 | // 根据订单号修改订单状态 24 | try { 25 | service.updateState(orderid); 26 | request.setAttribute("paySuccess", paySuccess); 27 | request.getRequestDispatcher("/findOrderByUser").forward(request, response); 28 | } catch (Exception e) { 29 | e.printStackTrace(); 30 | response.getWriter().write("修改订单状态失败"); 31 | } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/CreateOrderServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.lang.reflect.InvocationTargetException; 4 | import java.util.Map; 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import javax.servlet.http.HttpSession; 10 | import org.apache.commons.beanutils.BeanUtils; 11 | import cn.itcast.itcaststore.domain.Order; 12 | import cn.itcast.itcaststore.domain.OrderItem; 13 | import cn.itcast.itcaststore.domain.Product; 14 | import cn.itcast.itcaststore.domain.User; 15 | import cn.itcast.itcaststore.service.OrderService; 16 | import cn.itcast.itcaststore.utils.IdUtils; 17 | //生成订单 18 | public class CreateOrderServlet extends HttpServlet { 19 | public void doGet(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | doPost(request, response); 22 | } 23 | public void doPost(HttpServletRequest request, HttpServletResponse response) 24 | throws ServletException, IOException { 25 | // 1.得到当前用户 26 | HttpSession session = request.getSession(); 27 | User user = (User) session.getAttribute("user"); 28 | // 2.从购物车中获取商品信息 29 | Map cart = (Map)session.getAttribute("cart"); 30 | // 3.将数据封装到订单对象中 31 | Order order = new Order(); 32 | try { 33 | BeanUtils.populate(order, request.getParameterMap()); 34 | } catch (IllegalAccessException e) { 35 | e.printStackTrace(); 36 | } catch (InvocationTargetException e) { 37 | e.printStackTrace(); 38 | } 39 | order.setId(IdUtils.getUUID());// 封装订单id 40 | order.setUser(user);// 封装用户信息到订单. 41 | for (Product p : cart.keySet()) { 42 | OrderItem item = new OrderItem(); 43 | item.setOrder(order); 44 | item.setBuynum(cart.get(p)); 45 | item.setP(p); 46 | order.getOrderItems().add(item); 47 | } 48 | System.out.println(order); 49 | // 4.调用service中添加订单操作. 50 | OrderService service = new OrderService(); 51 | service.addOrder(order); 52 | // request.getRequestDispatcher("/client/orderlist.jsp").forward(request, response); 53 | response.sendRedirect(request.getContextPath() + "/client/createOrderSuccess.jsp"); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/DelOrderByIdServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | 8 | import cn.itcast.itcaststore.service.OrderService; 9 | /** 10 | * 删除订单 11 | * @author admin 12 | * 13 | */ 14 | public class DelOrderByIdServlet extends HttpServlet { 15 | private static final long serialVersionUID = -742965707205621644L; 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | doPost(request, response); 19 | } 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | // 订单id 23 | String id = request.getParameter("id"); 24 | // 已支付的订单带有type值为client的参数 25 | String type = request.getParameter("type"); 26 | OrderService service = new OrderService(); 27 | if (type != null && type.trim().length() > 0) { 28 | service.delOrderById(id); 29 | if ("admin".equals(type)) { 30 | request.getRequestDispatcher("/findOrders").forward(request, response); 31 | return; 32 | } 33 | } else { 34 | // 调用service层方法删除相应订单 35 | service.delOrderByIdWithClient(id); 36 | } 37 | //response.sendRedirect(request.getContextPath() + "/client/delOrderSuccess.jsp"); 38 | request.getRequestDispatcher("/findOrderByUser").forward(request, response); 39 | return; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/FindOrderByIdServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import cn.itcast.itcaststore.domain.Order; 8 | import cn.itcast.itcaststore.service.OrderService; 9 | /** 10 | * 通过id查询订单 11 | * @author admin 12 | * 13 | */ 14 | public class FindOrderByIdServlet extends HttpServlet { 15 | public void doGet(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | doPost(request, response); 18 | } 19 | public void doPost(HttpServletRequest request, HttpServletResponse response) 20 | throws ServletException, IOException { 21 | //1.获取用户类型 22 | String type=request.getParameter("type"); 23 | //2.得到要查询的订单的id 24 | String id = request.getParameter("id"); 25 | //3.根据id查找订单 26 | OrderService service = new OrderService(); 27 | Order order = service.findOrderById(id); 28 | //4.将查询出的订单信息添加到request作用域中 29 | request.setAttribute("order", order); 30 | //5.如果用户类型不为null,则请求转发到view.jsp页面,否则转发到orderInfo.jsp页面 31 | if(type!=null){ 32 | request.getRequestDispatcher("/admin/orders/view.jsp").forward(request, response); 33 | return; 34 | } 35 | request.getRequestDispatcher("/client/orderInfo.jsp").forward(request, response); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/FindOrderByUserServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.util.List; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Order; 9 | import cn.itcast.itcaststore.domain.User; 10 | import cn.itcast.itcaststore.service.OrderService; 11 | public class FindOrderByUserServlet extends HttpServlet { 12 | private static final long serialVersionUID = 1L; 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | // 获取名为“user”的session 20 | User user = (User) request.getSession().getAttribute("user"); 21 | // 调用service中的方法,根据用户信息查找订单 22 | OrderService service = new OrderService(); 23 | List orders = service.findOrderByUser(user); 24 | request.setAttribute("orders", orders); 25 | request.getRequestDispatcher("/client/orderlist.jsp").forward(request, response); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/FindProductByIdServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Product; 9 | import cn.itcast.itcaststore.exception.FindProductByIdException; 10 | import cn.itcast.itcaststore.service.ProductService; 11 | /** 12 | * 根据商品id查找指定商品信息的servlet 13 | */ 14 | public class FindProductByIdServlet extends HttpServlet { 15 | private static final long serialVersionUID = 1L; 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | doPost(request, response); 19 | } 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | // 得到商品的id 23 | String id = request.getParameter("id"); 24 | // 获取type参数值,此处的type用于区别普通用户和超级用户 25 | String type = request.getParameter("type"); 26 | ProductService service = new ProductService(); 27 | try { 28 | // 调用service层方法,通过id查找商品 29 | Product p = service.findProductById(id); 30 | request.setAttribute("p", p); 31 | // 普通用户默认不传递type值,会跳转到info.jsp页面 32 | if (type == null) { 33 | request.getRequestDispatcher("/client/info.jsp").forward(request,response); 34 | return; 35 | } 36 | request.getRequestDispatcher("/admin/products/edit.jsp").forward(request, response); 37 | return; 38 | } catch (FindProductByIdException e) { 39 | e.printStackTrace(); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/LoginServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.security.auth.login.LoginException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.User; 9 | import cn.itcast.itcaststore.service.UserService; 10 | 11 | public class LoginServlet extends HttpServlet { 12 | private static final long serialVersionUID = 1L; 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | // 1.获取登录页面输入的用户名与密码 20 | String username = request.getParameter("username"); 21 | String password = request.getParameter("password"); 22 | // 2.调用service完成登录操作。 23 | UserService service = new UserService(); 24 | try { 25 | User user = service.login(username, password); 26 | 27 | // 3.登录成功,将用户存储到session中. 28 | request.getSession().setAttribute("user", user); 29 | // 获取用户的角色,其中用户的角色分普通用户和超级用户两种 30 | String role = user.getRole(); 31 | // 如果是超级用户,就进入到网上书城的后台管理系统;否则进入我的账户页面 32 | if ("超级用户".equals(role)) { 33 | response.sendRedirect(request.getContextPath() + "/admin/login/home.jsp"); 34 | return; 35 | } else { 36 | response.sendRedirect(request.getContextPath() + "/client/myAccount.jsp"); 37 | return; 38 | } 39 | } catch (LoginException e) { 40 | // 如果出现问题,将错误信息存储到request范围,并跳转回登录页面显示错误信息 41 | e.printStackTrace(); 42 | request.setAttribute("register_message", e.getMessage()); 43 | request.getRequestDispatcher("/client/login.jsp").forward(request, response); 44 | return; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/LogoutServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import javax.servlet.http.HttpSession; 8 | 9 | public class LogoutServlet extends HttpServlet { 10 | 11 | private static final long serialVersionUID = 1L; 12 | public void doGet(HttpServletRequest request, HttpServletResponse response) 13 | throws ServletException, IOException { 14 | doPost(request, response); 15 | } 16 | public void doPost(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | // 获取session对象. 19 | HttpSession session = request.getSession(); 20 | // 销毁session 21 | session.invalidate(); 22 | // flag标识 23 | String flag = request.getParameter("flag"); 24 | if (flag == null || flag.trim().isEmpty()) { 25 | // 重定向到首页 26 | response.sendRedirect(request.getContextPath() + "/index.jsp"); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/MenuSearchServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | import cn.itcast.itcaststore.domain.PageBean; 8 | import cn.itcast.itcaststore.service.ProductService; 9 | /** 10 | * 前台页面,用于菜单栏下面搜索功能的servlet 11 | */ 12 | public class MenuSearchServlet extends HttpServlet { 13 | private static final long serialVersionUID = 1L; 14 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 15 | throws ServletException, IOException { 16 | this.doPost(req, resp); 17 | } 18 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 19 | throws ServletException, IOException { 20 | // 1.定义当前页码,默认为1 21 | int currentPage = 1; 22 | String _currentPage = req.getParameter("currentPage"); 23 | if (_currentPage != null) { 24 | currentPage = Integer.parseInt(_currentPage); 25 | } 26 | // 2.定义每页显示条数,默认为4 27 | int currentCount = 4; 28 | //获取前台页面搜索框输入的值 29 | String searchfield = req.getParameter("textfield"); 30 | //如果搜索框中没有输入值,则表单传递的为默认值,此时默认查询全部商品目录 31 | if("请输入书名".equals(searchfield)){ 32 | req.getRequestDispatcher("/showProductByPage").forward(req, resp); 33 | return; 34 | } 35 | //调用service层的方法,通过书名模糊查询,查找相应的图书 36 | ProductService service = new ProductService(); 37 | PageBean bean = service.findBookByName(currentPage,currentCount,searchfield); 38 | // 将数据存储到request范围,跳转到product_search_list.jsp页面展示 39 | req.setAttribute("bean", bean); 40 | req.getRequestDispatcher("/client/product_search_list.jsp").forward(req, resp); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/MyAccountServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import javax.servlet.ServletException; 4 | import javax.servlet.http.HttpServlet; 5 | import javax.servlet.http.HttpServletRequest; 6 | import javax.servlet.http.HttpServletResponse; 7 | 8 | import cn.itcast.itcaststore.domain.User; 9 | 10 | public class MyAccountServlet extends HttpServlet { 11 | private static final long serialVersionUID = 1L; 12 | public void doGet(HttpServletRequest request, HttpServletResponse response) 13 | throws ServletException, IOException { 14 | doPost(request, response); 15 | } 16 | public void doPost(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | /** 19 | * 点击前台系统中的【我的账户】,分以下两种情况: 20 | * 1、用户未登录,进入登录页面 21 | * 2、用户已登录 22 | * a、超级用户,进入到后台系统 23 | * b、普通用户,登录到我的账户 24 | */ 25 | //在session中查找名为“user”的会话 26 | User user = (User) request.getSession().getAttribute("user"); 27 | //如果找到没有名为“user”的会话,说明用户没有登录,此时跳转到登录页面 28 | if (user == null) { 29 | response.sendRedirect(request.getContextPath() + "/client/login.jsp"); 30 | return; 31 | } 32 | //如果是超级用户,进入到网上书城后台管理系统;否则进入到普通用户的账户信息页面 33 | if ("超级用户".equals(user.getRole())) { 34 | response.sendRedirect(request.getContextPath() + "/admin/login/home.jsp"); 35 | // return; 36 | }else{ 37 | response.sendRedirect(request.getContextPath() + "/client/myAccount.jsp"); 38 | // return; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/OnLinePayServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | 3 | import java.io.IOException; 4 | import java.util.ResourceBundle; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import cn.itcast.itcaststore.utils.PaymentUtil; 12 | 13 | public class OnLinePayServlet extends HttpServlet { 14 | 15 | private static final long serialVersionUID = 1L; 16 | 17 | public void doGet(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | 20 | doPost(request, response); 21 | } 22 | 23 | public void doPost(HttpServletRequest request, HttpServletResponse response) 24 | throws ServletException, IOException { 25 | // 1.将要提交的数据得到 26 | // 获得 支付必须基本数据 27 | String orderid = request.getParameter("orderid"); 28 | String money = request.getParameter("money"); 29 | // 银行 30 | String pd_FrpId = request.getParameter("yh"); 31 | 32 | // 发给支付公司需要哪些数据 33 | String p0_Cmd = "Buy"; 34 | String p1_MerId = ResourceBundle.getBundle("merchantInfo").getString( 35 | "p1_MerId"); 36 | String p2_Order = orderid; 37 | String p3_Amt = money; 38 | String p4_Cur = "CNY"; 39 | String p5_Pid = ""; 40 | String p6_Pcat = ""; 41 | String p7_Pdesc = ""; 42 | // 支付成功回调地址 ---- 第三方支付公司会访问、用户访问 43 | // 第三方支付可以访问网址 44 | String p8_Url = ResourceBundle.getBundle("merchantInfo").getString( 45 | "responseURL"); 46 | String p9_SAF = ""; 47 | String pa_MP = ""; 48 | String pr_NeedResponse = "1"; 49 | 50 | // 加密hmac 需要密钥 51 | String keyValue = ResourceBundle.getBundle("merchantInfo").getString( 52 | "keyValue"); 53 | String hmac = PaymentUtil.buildHmac(p0_Cmd, p1_MerId, p2_Order, p3_Amt, 54 | p4_Cur, p5_Pid, p6_Pcat, p7_Pdesc, p8_Url, p9_SAF, pa_MP, 55 | pd_FrpId, pr_NeedResponse, keyValue); 56 | 57 | // 2.将数据提交到指定的路径 58 | 59 | // response.sendRedirect("https://www.yeepay.com/app-merchant-proxy/node?p0_Cmd="+p0_Cmd+"&p1_MerId="+p1_MerId); 60 | 61 | request.setAttribute("pd_FrpId", pd_FrpId); 62 | request.setAttribute("p0_Cmd", p0_Cmd); 63 | request.setAttribute("p1_MerId", p1_MerId); 64 | request.setAttribute("p2_Order", p2_Order); 65 | request.setAttribute("p3_Amt", p3_Amt); 66 | request.setAttribute("p4_Cur", p4_Cur); 67 | request.setAttribute("p5_Pid", p5_Pid); 68 | request.setAttribute("p6_Pcat", p6_Pcat); 69 | request.setAttribute("p7_Pdesc", p7_Pdesc); 70 | request.setAttribute("p8_Url", p8_Url); 71 | request.setAttribute("p9_SAF", p9_SAF); 72 | request.setAttribute("pa_MP", pa_MP); 73 | request.setAttribute("pr_NeedResponse", pr_NeedResponse); 74 | request.setAttribute("hmac", hmac); 75 | 76 | request.getRequestDispatcher("/client/confirm.jsp").forward(request, response); 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/PayServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | /** 9 | * 付款(模拟支付) 10 | */ 11 | public class PayServlet extends HttpServlet { 12 | private static final long serialVersionUID = 1L; 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | // 1.将要提交的数据得到 20 | // 获得 支付必须基本数据 21 | String orderid = request.getParameter("orderid"); 22 | String money = request.getParameter("money"); 23 | // 银行 24 | String bank = request.getParameter("yh"); 25 | request.setAttribute("bank", bank); 26 | request.setAttribute("orderid", orderid); 27 | request.setAttribute("money", money); 28 | request.getRequestDispatcher("/client/confirm.jsp").forward(request, response); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/RegisterServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | import java.io.IOException; 3 | import java.lang.reflect.InvocationTargetException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import org.apache.commons.beanutils.BeanUtils; 9 | import cn.itcast.itcaststore.domain.User; 10 | import cn.itcast.itcaststore.exception.RegisterException; 11 | import cn.itcast.itcaststore.service.UserService; 12 | import cn.itcast.itcaststore.utils.ActiveCodeUtils; 13 | 14 | public class RegisterServlet extends HttpServlet { 15 | private static final long serialVersionUID = 1L; 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | doPost(request, response); 19 | } 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | // 将表单提交的数据封装到javaBean 23 | User user = new User(); 24 | try { 25 | BeanUtils.populate(user, request.getParameterMap()); 26 | // 封裝激活码 27 | user.setActiveCode(ActiveCodeUtils.createActiveCode()); 28 | } catch (IllegalAccessException e) { 29 | e.printStackTrace(); 30 | } catch (InvocationTargetException e) { 31 | e.printStackTrace(); 32 | } 33 | // 调用service完成注册操作。 34 | UserService service = new UserService(); 35 | try { 36 | service.register(user); 37 | } catch (RegisterException e) { 38 | e.printStackTrace(); 39 | response.getWriter().write(e.getMessage()); 40 | return; 41 | } 42 | // 注册成功,跳转到registersuccess.jsp 43 | response.sendRedirect(request.getContextPath() + "/client/registersuccess.jsp"); 44 | return; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/ShowIndexServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | 3 | import java.io.IOException; 4 | import java.util.List; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import cn.itcast.itcaststore.domain.Notice; 11 | import cn.itcast.itcaststore.service.NoticeService; 12 | import cn.itcast.itcaststore.service.ProductService; 13 | /** 14 | * 前台页面展示的servlet 15 | * 1、展示最新添加或修改的一条公告 16 | * 2、展示本周热销商品 17 | */ 18 | public class ShowIndexServlet extends HttpServlet{ 19 | private static final long serialVersionUID = 1L; 20 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 21 | throws ServletException, IOException { 22 | this.doPost(req, resp); 23 | } 24 | 25 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 26 | throws ServletException, IOException { 27 | //查询最近一条公告,传递到index.jsp页面进行展示 28 | NoticeService nService = new NoticeService(); 29 | Notice notice = nService.getRecentNotice(); 30 | req.setAttribute("n", notice); 31 | 32 | //查询本周热销的两条商品,传递到index.jsp页面进行展示 33 | ProductService pService = new ProductService(); 34 | List pList = pService.getWeekHotProduct(); 35 | /*for(Object[] os:pList){ 36 | for(Object o:os){ 37 | System.out.println(o); 38 | } 39 | System.out.println("---------------------"); 40 | }*/ 41 | req.setAttribute("pList", pList); 42 | 43 | //请求转发 44 | req.getRequestDispatcher("/client/index.jsp").forward(req, resp); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/client/ShowProductByPageServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.client; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.PageBean; 9 | import cn.itcast.itcaststore.service.ProductService; 10 | //分页显示数据 11 | public class ShowProductByPageServlet extends HttpServlet { 12 | private static final long serialVersionUID = 1L; 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | request.setCharacterEncoding("utf-8"); 20 | response.setCharacterEncoding("utf-8"); 21 | response.setContentType("text/html;charset=utf-8"); 22 | 23 | // 1.定义当前页码,默认为1 24 | int currentPage = 1; 25 | String _currentPage = request.getParameter("currentPage"); 26 | if (_currentPage != null) { 27 | currentPage = Integer.parseInt(_currentPage); 28 | } 29 | // 2.定义每页显示条数,默认为4 30 | int currentCount = 4; 31 | String _currentCount = request.getParameter("currentCount"); 32 | if (_currentCount != null) { 33 | currentCount = Integer.parseInt(_currentCount); 34 | } 35 | // 3.获取查找的分类 36 | String category = "全部商品"; 37 | //如果是乱码, 请在EncodingFilter的65行设置为ISO-8859-1 ,浏览器默认是ISO-8859-1, 如果改为了utf-8 ,就设置为utf-8 38 | // String _category = new String (request.getParameter("category").getBytes("utf-8"),"utf-8"); 39 | String _category = request.getParameter("category"); 40 | if (_category != null) { 41 | category = _category; 42 | } 43 | // 4.调用service,完成获取当前页分页Bean数据. 44 | ProductService service = new ProductService(); 45 | PageBean bean = service.findProductByPage(currentPage, currentCount, 46 | category); 47 | // 将数据存储到request范围,跳转到product_list.jsp页面展示 48 | request.setAttribute("bean", bean); 49 | request.getRequestDispatcher("/client/product_list.jsp").forward(request, response); 50 | return; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/AddNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import cn.itcast.itcaststore.domain.Notice; 11 | import cn.itcast.itcaststore.service.NoticeService; 12 | 13 | /** 14 | * 后台添加公告的servlet 15 | */ 16 | public class AddNoticeServlet extends HttpServlet{ 17 | 18 | private static final long serialVersionUID = 1L; 19 | 20 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 21 | throws ServletException, IOException { 22 | this.doPost(req, resp); 23 | } 24 | 25 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 26 | throws ServletException, IOException { 27 | NoticeService nService = new NoticeService(); 28 | Notice bean = new Notice(); 29 | //获取表单参数 30 | String title = req.getParameter("title"); 31 | String details = req.getParameter("details"); 32 | 33 | //将当前时间设为添加公告的时间 34 | String t = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); 35 | bean.setTitle(title); 36 | bean.setDetails(details); 37 | bean.setN_time(t); 38 | //调用addNotice方法 39 | nService.addNotice(bean); 40 | 41 | req.getRequestDispatcher("/managar/ListNoticeServlet").forward(req, resp); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/DeleteNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import cn.itcast.itcaststore.service.NoticeService; 11 | 12 | /** 13 | * 14 | * 后台删除公告的servlet 15 | */ 16 | public class DeleteNoticeServlet extends HttpServlet{ 17 | 18 | /** 19 | * 20 | */ 21 | private static final long serialVersionUID = 1L; 22 | 23 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 24 | throws ServletException, IOException { 25 | this.doPost(req, resp); 26 | } 27 | 28 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 29 | throws ServletException, IOException { 30 | NoticeService nService = new NoticeService(); 31 | //获取请求参数,公告id 32 | String n_id = req.getParameter("id"); 33 | 34 | //调用dao层方法 35 | nService.deleteNotice(n_id); 36 | 37 | req.getRequestDispatcher("/managar/ListNoticeServlet").forward(req, resp); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/DeleteProductServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.File; 4 | import java.io.FileOutputStream; 5 | import java.io.IOException; 6 | import java.lang.reflect.InvocationTargetException; 7 | import java.util.HashMap; 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | import javax.servlet.ServletException; 12 | import javax.servlet.http.HttpServlet; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpServletResponse; 15 | 16 | import org.apache.commons.beanutils.BeanUtils; 17 | import org.apache.commons.fileupload.FileItem; 18 | import org.apache.commons.fileupload.FileUploadException; 19 | import org.apache.commons.fileupload.disk.DiskFileItemFactory; 20 | import org.apache.commons.fileupload.servlet.ServletFileUpload; 21 | import org.apache.commons.io.IOUtils; 22 | 23 | import cn.itcast.itcaststore.domain.Product; 24 | import cn.itcast.itcaststore.exception.AddProductException; 25 | import cn.itcast.itcaststore.service.ProductService; 26 | import cn.itcast.itcaststore.utils.FileUploadUtils; 27 | import cn.itcast.itcaststore.utils.IdUtils; 28 | 29 | /** 30 | * 后台系统 31 | * 删除商品信息的servlet 32 | */ 33 | public class DeleteProductServlet extends HttpServlet { 34 | 35 | public void doGet(HttpServletRequest request, HttpServletResponse response) 36 | throws ServletException, IOException { 37 | 38 | doPost(request, response); 39 | } 40 | 41 | public void doPost(HttpServletRequest request, HttpServletResponse response) 42 | throws ServletException, IOException { 43 | 44 | // 获取请求参数,产品id 45 | String id = request.getParameter("id"); 46 | ProductService service = new ProductService(); 47 | // 调用service完成添加商品操作 48 | service.deleteProduct(id); 49 | response.sendRedirect(request.getContextPath() + "/listProduct"); 50 | return; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/DownloadServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | import java.io.IOException; 3 | import java.io.PrintWriter; 4 | import java.util.List; 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import cn.itcast.itcaststore.service.ProductService; 11 | 12 | public class DownloadServlet extends HttpServlet { 13 | public void doGet(HttpServletRequest request, HttpServletResponse response) 14 | throws ServletException, IOException { 15 | doPost(request, response); 16 | } 17 | public void doPost(HttpServletRequest request, HttpServletResponse response) 18 | throws ServletException, IOException { 19 | String year = request.getParameter("year"); 20 | String month = request.getParameter("month"); 21 | ProductService service = new ProductService(); 22 | List ps = service.download(year,month); 23 | String fileName=year+"年"+month+"月销售榜单.csv"; 24 | response.setContentType(this.getServletContext().getMimeType(fileName)); 25 | response.setHeader("Content-Disposition", "attachement;filename="+new String(fileName.getBytes("GBK"),"iso8859-1")); 26 | response.setCharacterEncoding("gbk"); 27 | PrintWriter out = response.getWriter(); 28 | out.println("商品名称,销售数量"); 29 | for (int i = 0; i < ps.size(); i++) { 30 | Object[] arr=ps.get(i); 31 | out.println(arr[0]+","+arr[1]); 32 | } 33 | out.flush(); 34 | out.close(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/EditNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import cn.itcast.itcaststore.domain.Notice; 13 | import cn.itcast.itcaststore.service.NoticeService; 14 | 15 | /** 16 | * 17 | * 后台修改公告的servlet 18 | */ 19 | public class EditNoticeServlet extends HttpServlet{ 20 | 21 | /** 22 | * 23 | */ 24 | private static final long serialVersionUID = 1L; 25 | 26 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 27 | throws ServletException, IOException { 28 | this.doPost(req, resp); 29 | } 30 | 31 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 32 | throws ServletException, IOException { 33 | NoticeService nService = new NoticeService(); 34 | Notice bean = new Notice(); 35 | //获取表单参数 36 | int n_id = Integer.parseInt(req.getParameter("id")); 37 | String title = req.getParameter("title"); 38 | String details = req.getParameter("details"); 39 | 40 | //将当前时间设为添加公告的时间 41 | String t = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); 42 | 43 | bean.setN_id(n_id); 44 | bean.setTitle(title); 45 | bean.setDetails(details); 46 | bean.setN_time(t); 47 | 48 | //调用dao层方法 49 | nService.updateNotice(bean); 50 | 51 | req.getRequestDispatcher("/managar/ListNoticeServlet").forward(req, resp); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/FindByIdNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.ServletException; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import cn.itcast.itcaststore.domain.Notice; 11 | import cn.itcast.itcaststore.service.NoticeService; 12 | 13 | /** 14 | * 15 | * 后台根据id查询公告的servlet 16 | */ 17 | public class FindByIdNoticeServlet extends HttpServlet{ 18 | 19 | /** 20 | * 21 | */ 22 | private static final long serialVersionUID = 1L; 23 | 24 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 25 | throws ServletException, IOException { 26 | this.doPost(req, resp); 27 | } 28 | 29 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 30 | throws ServletException, IOException { 31 | NoticeService nService = new NoticeService(); 32 | //获取公告id 33 | String n_id = req.getParameter("id"); 34 | Notice notice = nService.findNoticeById(n_id); 35 | 36 | req.setAttribute("n", notice); 37 | 38 | req.getRequestDispatcher("/admin/notices/edit.jsp").forward(req, resp); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/FindOrderByManyConditionServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | import java.io.IOException; 3 | import java.util.List; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Order; 9 | import cn.itcast.itcaststore.service.OrderService; 10 | /** 11 | * 按条件查询订单 12 | * @author admin 13 | * 14 | */ 15 | public class FindOrderByManyConditionServlet extends HttpServlet { 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | doPost(request, response); 19 | } 20 | public void doPost(HttpServletRequest request, HttpServletResponse response) 21 | throws ServletException, IOException { 22 | //获取订单编号和收件人名称 23 | String id = request.getParameter("id"); 24 | String receiverName = request.getParameter("receiverName"); 25 | //创建Service层对象 26 | OrderService service = new OrderService(); 27 | //调用Service层OrderService类的findOrderByManyCondition()方法查询数据 28 | List orders = service.findOrderByManyCondition(id, receiverName); 29 | //将查询结果添加到request作用域中 30 | request.setAttribute("orders", orders); 31 | //请求转发到list.jsp页面,并将request请求和response响应也转发到该页面中 32 | request.getRequestDispatcher("/admin/orders/list.jsp").forward(request, 33 | response); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/FindOrdersServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | import java.io.IOException; 3 | import java.util.List; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Order; 9 | import cn.itcast.itcaststore.service.OrderService; 10 | //查找所有订单 11 | public class FindOrdersServlet extends HttpServlet { 12 | public void doGet(HttpServletRequest request, HttpServletResponse response) 13 | throws ServletException, IOException { 14 | doPost(request, response); 15 | } 16 | public void doPost(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | // 创建Service层对象 19 | OrderService service = new OrderService(); 20 | // 调用Service层对象的findAllOrder()方法查询订单列表 21 | List orders = service.findAllOrder(); 22 | //将查询到的订单信息添加到request作用域 23 | request.setAttribute("orders", orders); 24 | // 将请求转发到list.jsp页面 25 | request.getRequestDispatcher("/admin/orders/list.jsp").forward(request,response); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/FindProductByManyConditionServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | import java.io.IOException; 3 | import java.util.List; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Product; 9 | import cn.itcast.itcaststore.service.ProductService; 10 | public class FindProductByManyConditionServlet extends HttpServlet { 11 | public void doGet(HttpServletRequest request, HttpServletResponse response) 12 | throws ServletException, IOException { 13 | doPost(request, response); 14 | } 15 | public void doPost(HttpServletRequest request, HttpServletResponse response) 16 | throws ServletException, IOException { 17 | //1.获取表单数据 18 | String id = request.getParameter("id"); // 商品id 19 | String name = request.getParameter("name"); // 商品名称 20 | String category = request.getParameter("category"); // 商品类别 21 | String minprice = request.getParameter("minprice"); // 最小价格 22 | String maxprice = request.getParameter("maxprice"); // 最大价格 23 | // 2.创建ProductService对象 24 | ProductService service = new ProductService(); 25 | // 3.调用service层用于条件查询的方法 26 | List ps = service.findProductByManyCondition(id, name, 27 | category, minprice, maxprice); 28 | // 4.将条件查询的结果放进request域中 29 | request.setAttribute("ps", ps); 30 | // 5.请求重定向到商品管理首页list.jsp页面 31 | request.getRequestDispatcher("/admin/products/list.jsp").forward( 32 | request, response); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/ListNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | import java.util.List; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | import cn.itcast.itcaststore.domain.Notice; 12 | import cn.itcast.itcaststore.service.NoticeService; 13 | 14 | /** 15 | * 后台查询所有公告的servlet 16 | */ 17 | public class ListNoticeServlet extends HttpServlet{ 18 | 19 | /** 20 | * 21 | */ 22 | private static final long serialVersionUID = 1L; 23 | 24 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 25 | throws ServletException, IOException { 26 | this.doPost(req, resp); 27 | } 28 | 29 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 30 | throws ServletException, IOException { 31 | NoticeService nService = new NoticeService(); 32 | List notices = nService.getAllNotices(); 33 | req.setAttribute("notices", notices); 34 | req.getRequestDispatcher("/admin/notices/list.jsp").forward(req, resp); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/ListProductServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | import java.io.IOException; 3 | import java.util.List; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import cn.itcast.itcaststore.domain.Product; 9 | import cn.itcast.itcaststore.exception.ListProductException; 10 | import cn.itcast.itcaststore.service.ProductService; 11 | /** 12 | * 后台系统 13 | * 查询所有商品信息的servlet 14 | */ 15 | public class ListProductServlet extends HttpServlet { 16 | public void doGet(HttpServletRequest request, HttpServletResponse response) 17 | throws ServletException, IOException { 18 | 19 | doPost(request, response); 20 | } 21 | public void doPost(HttpServletRequest request, HttpServletResponse response) 22 | throws ServletException, IOException { 23 | // 1.创建service层的对象 24 | ProductService service = new ProductService(); 25 | try { 26 | // 2.调用service层用于查询所有商品的方法 27 | List ps = service.listAll(); 28 | // 3.将查询出的所有商品放进request域中 29 | request.setAttribute("ps", ps); 30 | // 4.重定向到list.jsp页面 31 | request.getRequestDispatcher("/admin/products/list.jsp").forward( 32 | request, response); 33 | return; 34 | } catch (ListProductException e) { 35 | e.printStackTrace(); 36 | response.getWriter().write(e.getMessage()); 37 | return; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/cn/itcast/itcaststore/web/servlet/managar/UpdateNoticeServlet.java: -------------------------------------------------------------------------------- 1 | package cn.itcast.itcaststore.web.servlet.managar; 2 | 3 | import java.io.IOException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | 12 | import cn.itcast.itcaststore.domain.Notice; 13 | import cn.itcast.itcaststore.service.NoticeService; 14 | 15 | /** 16 | * 17 | * 后台修改公告的servlet 18 | */ 19 | public class UpdateNoticeServlet extends HttpServlet{ 20 | 21 | private static final long serialVersionUID = 1L; 22 | 23 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 24 | throws ServletException, IOException { 25 | this.doPost(req, resp); 26 | } 27 | 28 | public void doPost(HttpServletRequest req, HttpServletResponse resp) 29 | throws ServletException, IOException { 30 | NoticeService nService = new NoticeService(); 31 | Notice bean = new Notice(); 32 | //获取表单参数 33 | String title = req.getParameter("title"); 34 | String details = req.getParameter("details"); 35 | 36 | //将当前时间设为添加公告的时间 37 | String t = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); 38 | bean.setTitle(title); 39 | bean.setDetails(details); 40 | bean.setN_time(t); 41 | //调用dao层方法 42 | nService.addNotice(bean); 43 | 44 | req.getRequestDispatcher("/managar/ListNoticeServlet").forward(req, resp); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/merchantInfo.properties: -------------------------------------------------------------------------------- 1 | p1_MerId=10001126856 2 | keyValue=69cl522AV6q613Ii4W6u8K6XuW8vM1N6bFgyv769220IuYe9u37N4y7rI4Pl 3 | responseURL=http://localhost:8080/itcaststore/callback 4 | --------------------------------------------------------------------------------