├── .classpath ├── .idea ├── .name ├── artifacts │ ├── x_test_war.xml │ └── x_test_war_exploded.xml ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── dataSources.ids ├── dataSources.local.xml ├── dataSources.xml ├── dataSources │ ├── 8a4a51d6-eaef-4b4c-a746-f6810bc0e707.xml │ └── 8a4a51d6-eaef-4b4c-a746-f6810bc0e707 │ │ └── storage.xml ├── dictionaries │ └── xi.xml ├── encodings.xml ├── libraries │ ├── Maven__javax_servlet_javax_servlet_api_3_0_1.xml │ ├── Maven__javax_servlet_jsp_jsp_api_2_2.xml │ ├── Maven__junit_junit_3_8_1.xml │ └── Maven__mysql_mysql_connector_java_5_1_9.xml ├── misc.xml ├── modules.xml ├── uiDesigner.xml ├── vcs.xml └── workspace.xml ├── .project ├── .settings ├── .jsdtscope ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs ├── org.eclipse.m2e.core.prefs ├── org.eclipse.wst.common.component ├── org.eclipse.wst.common.project.facet.core.xml ├── org.eclipse.wst.jsdt.ui.superType.container ├── org.eclipse.wst.jsdt.ui.superType.name └── org.eclipse.wst.validation.prefs ├── README.md ├── fruitday.sql ├── pom.xml ├── readmeImg ├── addfruits.png ├── adduser.png ├── cart.png ├── index.png ├── more.png ├── search.jpg ├── showfruits.png └── showuser.png ├── src └── main │ ├── java │ └── com │ │ └── fruitDayDB │ │ ├── dao │ │ ├── FruitDao.java │ │ ├── FruitDaoImpl.java │ │ ├── ShopDao.java │ │ ├── ShopDaoImpl.java │ │ ├── UserDao.java │ │ └── UserDaoImpl.java │ │ ├── db │ │ └── DBUtils.java │ │ ├── service │ │ ├── FruitService.java │ │ ├── ShopService.java │ │ └── UserService.java │ │ ├── servlet │ │ ├── BSServlet.java │ │ ├── FruitServlet.java │ │ ├── ShopServlet.java │ │ ├── UserServlet.java │ │ └── selServlet.java │ │ └── vo │ │ ├── Cart.java │ │ ├── Fruit.java │ │ └── User.java │ └── webapp │ ├── BSindex.jsp │ ├── BSindex1.jsp │ ├── BSindex2.jsp │ ├── BSindex3.jsp │ ├── BSindex4.jsp │ ├── BSindex5.jsp │ ├── BSindex6.jsp │ ├── WEB-INF │ └── web.xml │ ├── css │ ├── BSindex.css │ ├── imgs.css │ ├── index.css │ ├── main.css │ ├── rl.css │ ├── sel.css │ └── showcart.css │ ├── footer │ ├── css │ │ └── footer.css │ ├── footer.jsp │ └── imgs │ │ └── foot_img │ │ ├── foot_a1.jpg │ │ ├── foot_a2.jpg │ │ ├── foot_a3.jpg │ │ ├── foot_a4.jpg │ │ └── foot_a5.jpg │ ├── fruit_info.jsp │ ├── head │ ├── css │ │ ├── head.css │ │ └── main.css │ ├── head.jsp │ └── imgs │ │ ├── ISstar.svg │ │ ├── UNstar.svg │ │ ├── cart_img.svg │ │ └── fdaylogo.png │ ├── img │ ├── alogo.png │ ├── flogo.png │ ├── fruits │ │ ├── 1 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 2 │ │ │ └── (1).jpg │ │ ├── 3 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 4 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 5 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 6 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 7 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 8 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 9 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 10 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 11 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 12 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 13 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 14 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 15 │ │ │ └── (1).jpg │ │ ├── 16 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 17 │ │ │ └── (1).jpg │ │ ├── 18 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 19 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 20 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── f1.jpg │ │ ├── i1.jpg │ │ ├── i2.jpg │ │ └── i3.jpg │ ├── index │ │ ├── h0.jpg │ │ ├── h1.jpg │ │ ├── h2.jpg │ │ ├── h3.jpg │ │ └── h4.jpg │ └── logo_login.png │ ├── index.jsp │ ├── js │ ├── BSindex.js │ ├── imgs.js │ ├── reg.js │ └── sel.js │ ├── login.jsp │ ├── reg.jsp │ ├── sel.jsp │ ├── showcart.jsp │ └── showstar.jsp ├── target ├── classes │ └── com │ │ └── fruitDayDB │ │ ├── dao │ │ ├── FruitDao.class │ │ ├── FruitDaoImpl.class │ │ ├── ShopDao.class │ │ ├── ShopDaoImpl.class │ │ ├── UserDao.class │ │ └── UserDaoImpl.class │ │ ├── db │ │ └── DBUtils.class │ │ ├── service │ │ ├── FruitService.class │ │ ├── ShopService.class │ │ └── UserService.class │ │ ├── servlet │ │ ├── BSServlet.class │ │ ├── FruitServlet.class │ │ ├── ShopServlet.class │ │ ├── UserServlet.class │ │ └── selServlet.class │ │ └── vo │ │ ├── Cart.class │ │ ├── Fruit.class │ │ └── User.class ├── m2e-wtp │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.xi.x │ │ └── x-test │ │ ├── pom.properties │ │ └── pom.xml ├── maven-status │ └── maven-compiler-plugin │ │ └── compile │ │ └── default-compile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── tomcat │ ├── conf │ │ ├── tomcat-users.xml │ │ └── web.xml │ └── work │ │ └── localEngine │ │ └── localhost │ │ └── x-test │ │ └── org │ │ └── apache │ │ └── jsp │ │ ├── BSindex_jsp.class │ │ ├── BSindex_jsp.java │ │ ├── footer │ │ ├── footer_jsp.class │ │ └── footer_jsp.java │ │ ├── fruit_005finfo_jsp.class │ │ ├── fruit_005finfo_jsp.java │ │ ├── head │ │ ├── head_jsp.class │ │ └── head_jsp.java │ │ ├── index_jsp.class │ │ ├── index_jsp.java │ │ ├── login_jsp.class │ │ ├── login_jsp.java │ │ ├── showcart_jsp.class │ │ └── showcart_jsp.java └── x-test │ ├── BSindex.jsp │ ├── BSindex1.jsp │ ├── BSindex2.jsp │ ├── BSindex3.jsp │ ├── BSindex4.jsp │ ├── BSindex5.jsp │ ├── BSindex6.jsp │ ├── META-INF │ └── MANIFEST.MF │ ├── WEB-INF │ ├── classes │ │ └── com │ │ │ └── fruitDayDB │ │ │ ├── dao │ │ │ ├── FruitDao.class │ │ │ ├── FruitDaoImpl.class │ │ │ ├── ShopDao.class │ │ │ ├── ShopDaoImpl.class │ │ │ ├── UserDao.class │ │ │ └── UserDaoImpl.class │ │ │ ├── db │ │ │ └── DBUtils.class │ │ │ ├── service │ │ │ ├── FruitService.class │ │ │ ├── ShopService.class │ │ │ └── UserService.class │ │ │ ├── servlet │ │ │ ├── BSServlet.class │ │ │ ├── FruitServlet.class │ │ │ ├── ShopServlet.class │ │ │ ├── UserServlet.class │ │ │ └── selServlet.class │ │ │ └── vo │ │ │ ├── Cart.class │ │ │ ├── Fruit.class │ │ │ └── User.class │ ├── lib │ │ ├── commons-beanutils-1.7.0.jar │ │ ├── commons-collections-3.2.1.jar │ │ ├── commons-httpclient-3.1.jar │ │ ├── commons-lang-2.3.jar │ │ ├── commons-logging-1.1.1.jar │ │ ├── ezmorph-1.0.3.jar │ │ ├── json-lib-2.2.3-jdk15.jar │ │ ├── mysql-connector-java-5.1.36-bin.jar │ │ └── mysql-connector-java-5.1.9.jar │ └── web.xml │ ├── css │ ├── BSindex.css │ ├── imgs.css │ ├── index.css │ ├── main.css │ ├── rl.css │ ├── sel.css │ └── showcart.css │ ├── footer │ ├── css │ │ └── footer.css │ ├── footer.jsp │ └── imgs │ │ └── foot_img │ │ ├── foot_a1.jpg │ │ ├── foot_a2.jpg │ │ ├── foot_a3.jpg │ │ ├── foot_a4.jpg │ │ └── foot_a5.jpg │ ├── fruit_info.jsp │ ├── head │ ├── css │ │ ├── head.css │ │ └── main.css │ ├── head.jsp │ └── imgs │ │ ├── ISstar.svg │ │ ├── UNstar.svg │ │ ├── cart_img.svg │ │ └── fdaylogo.png │ ├── img │ ├── alogo.png │ ├── flogo.png │ ├── fruits │ │ ├── 1 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 2 │ │ │ └── (1).jpg │ │ ├── 3 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 4 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 5 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 6 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 7 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 8 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 9 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 10 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 11 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 12 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 13 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 14 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 15 │ │ │ └── (1).jpg │ │ ├── 16 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 17 │ │ │ └── (1).jpg │ │ ├── 18 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── 19 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ ├── (3).jpg │ │ │ └── (4).jpg │ │ ├── 20 │ │ │ ├── (1).jpg │ │ │ ├── (2).jpg │ │ │ └── (3).jpg │ │ ├── f1.jpg │ │ ├── i1.jpg │ │ ├── i2.jpg │ │ └── i3.jpg │ ├── index │ │ ├── h0.jpg │ │ ├── h1.jpg │ │ ├── h2.jpg │ │ ├── h3.jpg │ │ └── h4.jpg │ └── logo_login.png │ ├── index.jsp │ ├── js │ ├── BSindex.js │ ├── imgs.js │ ├── reg.js │ └── sel.js │ ├── login.jsp │ ├── reg.jsp │ ├── sel.jsp │ ├── showcart.jsp │ └── showstar.jsp └── x-test.iml /.classpath: -------------------------------------------------------------------------------- 1 | 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 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | x-test -------------------------------------------------------------------------------- /.idea/artifacts/x_test_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/artifacts/x_test_war_exploded.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/target/x-test 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/dataSources.local.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | #@ 7 | ` 8 | 9 | 10 | master_key 11 | root 12 | fruitday:* 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | mysql 6 | true 7 | com.mysql.jdbc.Driver 8 | jdbc:mysql://localhost:3306/fruitday 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | file://C:/Program Files (x86)/MySQL/Connector.J 5.1/mysql-connector-java-5.1.36-bin.jar 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /.idea/dataSources/8a4a51d6-eaef-4b4c-a746-f6810bc0e707/storage.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/dictionaries/xi.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | onreadystatechange 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_jsp_jsp_api_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__junit_junit_3_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__mysql_mysql_connector_java_5_1_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | Internationalization issues 25 | 26 | 27 | 28 | 29 | Batch Applications Issues 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | x-test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.jsdt.core.javascriptValidator 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.common.project.facet.core.builder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | org.eclipse.wst.validation.validationbuilder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.jdt.core.javanature 38 | org.eclipse.m2e.core.maven2Nature 39 | org.eclipse.wst.common.project.facet.core.nature 40 | org.eclipse.wst.jsdt.core.jsNature 41 | 42 | 43 | -------------------------------------------------------------------------------- /.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 4 | org.eclipse.jdt.core.compiler.compliance=1.5 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # java-fruitsday 2 | 一个基于 Java、JSP、Servlet、MySQL的水果商城。 3 | 4 | ### 实现功能 5 | 6 | * 登陆、注册 7 | * 浏览所有商品 8 | * 查看商品详情 9 | * 添加购物车 10 | * 添加关注 11 | * 管理员功能 12 | * 用户的增、删、改、查 13 | * 商品的增、删、改、查 14 | 15 | ### 部分项目运行截图 16 | 17 | 18 | ![indexPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/index.png) 19 | ![morePNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/more.png) 20 | ![cartPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/cart.png) 21 | ![searchPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/search.jpg) 22 | ![showfruitsPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/showfruits.png) 23 | ![addfruitsPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/addfruits.png) 24 | ![showuserPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/showuser.png) 25 | ![adduserPNG](https://github.com/JieDreambuilder/java-fruitsday/blob/master/readmeImg/adduser.png) 26 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | com.xi.x 5 | x-test 6 | war 7 | 1.0-SNAPSHOT 8 | x-test Maven Webapp 9 | http://maven.apache.org 10 | 11 | 12 | junit 13 | junit 14 | 3.8.1 15 | test 16 | 17 | 18 | mysql 19 | mysql-connector-java 20 | 5.1.9 21 | 22 | 23 | 24 | javax.servlet 25 | javax.servlet-api 26 | 3.0.1 27 | provided 28 | 29 | 30 | javax.servlet.jsp 31 | jsp-api 32 | 2.2 33 | provided 34 | 35 | 36 | 37 | x-test 38 | 39 | 40 | maven-compiler-plugin 41 | 42 | 1.5 43 | 1.5 44 | UTF-8 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /readmeImg/addfruits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/addfruits.png -------------------------------------------------------------------------------- /readmeImg/adduser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/adduser.png -------------------------------------------------------------------------------- /readmeImg/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/cart.png -------------------------------------------------------------------------------- /readmeImg/index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/index.png -------------------------------------------------------------------------------- /readmeImg/more.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/more.png -------------------------------------------------------------------------------- /readmeImg/search.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/search.jpg -------------------------------------------------------------------------------- /readmeImg/showfruits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/showfruits.png -------------------------------------------------------------------------------- /readmeImg/showuser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/readmeImg/showuser.png -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/dao/FruitDao.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.dao; 2 | 3 | import com.fruitDayDB.vo.Fruit; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Created by xi on 2015/10/5. 9 | */ 10 | public interface FruitDao { 11 | 12 | //按商品编号查找 13 | public Fruit findByFid(int fid); 14 | 15 | //热卖商品 16 | public List findHot(); 17 | 18 | //全部商品 19 | public List findall(); 20 | 21 | //添加商品 22 | public int add(Fruit fruit); 23 | 24 | //删除商品 25 | public int del(int fid); 26 | 27 | //更新商品 28 | public int up(Fruit fruit); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/dao/ShopDao.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.dao; 2 | 3 | import com.fruitDayDB.vo.Cart; 4 | import com.fruitDayDB.vo.Fruit; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * Created by xi on 2015/10/6. 10 | */ 11 | public interface ShopDao { 12 | /*创建用户的购物车表*/ 13 | public boolean newTable(int id); 14 | 15 | /*删除*/ 16 | public int del(int id, int fid); 17 | 18 | /*显示购物车列表*/ 19 | public List show(int id); 20 | 21 | /*加入购物车*/ 22 | public int add(int id, Cart cart); 23 | 24 | /*查找*/ 25 | public Cart find(int id,int fid); 26 | 27 | /*修改*/ 28 | public int up(int id,Cart cart); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.dao; 2 | 3 | import com.fruitDayDB.vo.User; 4 | 5 | import java.sql.SQLException; 6 | import java.util.List; 7 | 8 | /** 9 | * Created by xi on 2015/10/4. 10 | */ 11 | public interface UserDao { 12 | //添加用户 13 | public int add(User u); 14 | 15 | //用户按邮箱或手机号登陆 16 | public User findByStr(String str, boolean boo); 17 | 18 | //查看所有人信息 19 | public List findAll(); 20 | 21 | /*删除*/ 22 | public int del(User u); 23 | 24 | //修改信息 25 | public int update(User u); 26 | 27 | //修改密码 28 | public int upPwd(User u); 29 | 30 | //查看个人信息 31 | public User findById(int id); 32 | 33 | //获取管理员uid 34 | public List root(); 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/db/DBUtils.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.db; 2 | 3 | 4 | import java.sql.*; 5 | import java.util.ResourceBundle; 6 | 7 | /** 8 | * Created by xi on 2015/10/4. 9 | */ 10 | public class DBUtils { 11 | //数据库连接地址 12 | public static String URL; 13 | //用户名 14 | public static String USERNAME; 15 | //密码 16 | public static String PASSWORD; 17 | //mysql的驱动类 18 | public static String DRIVER; 19 | 20 | private DBUtils(){} 21 | 22 | //使用静态块加载驱动程序 23 | static{ 24 | URL = "jdbc:mysql://127.0.0.1:3306/fruitday"; 25 | USERNAME = "root"; 26 | PASSWORD = "root"; 27 | DRIVER = "com.mysql.jdbc.Driver"; 28 | try { 29 | Class.forName(DRIVER); 30 | } catch (ClassNotFoundException e) { 31 | e.printStackTrace(); 32 | } 33 | } 34 | //定义一个获取数据库连接的方法 35 | public static Connection getConnection(){ 36 | Connection conn = null; 37 | try { 38 | conn = DriverManager.getConnection(URL, USERNAME, PASSWORD); 39 | } catch (SQLException e) { 40 | e.printStackTrace(); 41 | System.out.println("获取连接失败"); 42 | } 43 | finally { 44 | return conn; 45 | } 46 | } 47 | 48 | /** 49 | * 关闭数据库连接 50 | * @param rs 51 | * @param stat 52 | * @param conn 53 | */ 54 | public static void close(ResultSet rs,Statement stat,Connection conn){ 55 | try { 56 | if(rs!=null)rs.close(); 57 | if(stat!=null)stat.close(); 58 | if(conn!=null)conn.close(); 59 | } catch (SQLException e) { 60 | e.printStackTrace(); 61 | } 62 | } 63 | 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/service/FruitService.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.service; 2 | 3 | import com.fruitDayDB.dao.FruitDao; 4 | import com.fruitDayDB.dao.FruitDaoImpl; 5 | import com.fruitDayDB.vo.Fruit; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | /** 11 | * Created by xi on 2015/10/5. 12 | */ 13 | public class FruitService { 14 | public static Fruit info(int fid) 15 | { 16 | FruitDao fruitDao=new FruitDaoImpl(); 17 | Fruit fruit=fruitDao.findByFid(fid); 18 | 19 | if(fruit==null) 20 | { 21 | fruit=new Fruit(1,"商品不存在","",0,"","",0); 22 | } 23 | 24 | return fruit; 25 | } 26 | 27 | public static List hot() 28 | { 29 | FruitDao fruitDao=new FruitDaoImpl(); 30 | return fruitDao.findHot(); 31 | } 32 | 33 | public static List all() 34 | { 35 | 36 | FruitDao fruitDao=new FruitDaoImpl(); 37 | List serfruits=fruitDao.findall(); 38 | return serfruits; 39 | } 40 | 41 | public static List ser(String ser) 42 | { 43 | FruitDao fruitDao=new FruitDaoImpl(); 44 | List fruits= fruitDao.findall(); 45 | 46 | List serfruits=new ArrayList(); 47 | 48 | for(Fruit fruit:fruits) 49 | { 50 | if(ser.indexOf(fruit.getFname())!=-1) 51 | serfruits.add(fruit); 52 | else if(fruit.getFname().indexOf(ser)!=-1) 53 | serfruits.add(fruit); 54 | } 55 | 56 | return serfruits; 57 | 58 | } 59 | 60 | public static boolean add(Fruit fruit) 61 | { 62 | FruitDao fruitDao=new FruitDaoImpl(); 63 | int num=fruitDao.add(fruit); 64 | if(num==1) 65 | return true; 66 | else 67 | return false; 68 | } 69 | 70 | public static boolean del(int fid) 71 | { 72 | FruitDao fruitDao=new FruitDaoImpl(); 73 | int num=fruitDao.del(fid); 74 | if(num==1) 75 | return true; 76 | else 77 | return false; 78 | } 79 | 80 | public static boolean up(Fruit fruit) 81 | { 82 | FruitDao fruitDao=new FruitDaoImpl(); 83 | int num=fruitDao.up(fruit); 84 | if(num==1) 85 | return true; 86 | else 87 | return false; 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/service/ShopService.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.service; 2 | 3 | import com.fruitDayDB.dao.ShopDao; 4 | import com.fruitDayDB.dao.ShopDaoImpl; 5 | import com.fruitDayDB.vo.Cart; 6 | import com.fruitDayDB.vo.Fruit; 7 | 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | /** 12 | * Created by xi on 2015/10/6. 13 | */ 14 | public class ShopService { 15 | public static boolean del(int id,int fid) 16 | { 17 | ShopDao shopDao=new ShopDaoImpl(); 18 | int num=shopDao.del(id,fid); 19 | if(num==1) 20 | return true; 21 | else 22 | return false; 23 | } 24 | 25 | public static List showAll(int id) 26 | { 27 | ShopDao shopDao=new ShopDaoImpl(); 28 | 29 | return shopDao.show(id); 30 | } 31 | public static List show(int id,boolean boo) 32 | { 33 | ; 34 | List carts=ShopService.showAll(id); 35 | 36 | List fruits=new ArrayList(); 37 | 38 | if(boo) 39 | { 40 | for(Cart cart:carts) 41 | { 42 | if(cart.isCart()) 43 | { 44 | Fruit fruit=new Fruit(); 45 | fruit=FruitService.info(cart.getFid()); 46 | fruits.add(fruit); 47 | } 48 | } 49 | } 50 | else 51 | { 52 | for(Cart cart:carts) 53 | { 54 | if(cart.isStar()) 55 | { 56 | Fruit fruit=new Fruit(); 57 | fruit=FruitService.info(cart.getFid()); 58 | fruits.add(fruit); 59 | } 60 | } 61 | } 62 | 63 | return fruits; 64 | } 65 | 66 | public static void add(int id,Cart cart) 67 | { 68 | ShopDao shopDao=new ShopDaoImpl(); 69 | int num=shopDao.add(id, cart); 70 | System.out.println("num:"+num); 71 | } 72 | 73 | public static Cart find(int id,int fid) 74 | { 75 | ShopDao shopDao=new ShopDaoImpl(); 76 | return shopDao.find(id,fid); 77 | } 78 | 79 | public static boolean up(int id,Cart cart) 80 | { 81 | ShopDao shopDao=new ShopDaoImpl(); 82 | int num=shopDao.up(id,cart); 83 | if(num==1) 84 | return true; 85 | else 86 | return false; 87 | 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.service; 2 | 3 | import com.fruitDayDB.dao.ShopDao; 4 | import com.fruitDayDB.dao.ShopDaoImpl; 5 | import com.fruitDayDB.dao.UserDao; 6 | import com.fruitDayDB.dao.UserDaoImpl; 7 | import com.fruitDayDB.vo.User; 8 | 9 | import java.sql.SQLException; 10 | import java.util.List; 11 | 12 | /** 13 | * Created by xi on 2015/10/4. 14 | */ 15 | public class UserService { 16 | public static User add(User u){ 17 | UserDao userDao=new UserDaoImpl(); 18 | int num=userDao.add(u); 19 | User user=null; 20 | if(num==1) 21 | { 22 | user=UserService.login(u.getEmail(),u.getPwd(),true); 23 | 24 | ShopDao shopDao=new ShopDaoImpl(); 25 | boolean boo=shopDao.newTable(user.getId()); 26 | 27 | if(!boo) 28 | { 29 | UserService.del(user); 30 | return null; 31 | } 32 | } 33 | 34 | return user; 35 | 36 | } 37 | 38 | public static User login(String str,String pwd,boolean boo) 39 | { 40 | UserDao userDao=new UserDaoImpl(); 41 | User u=userDao.findByStr(str,boo); 42 | 43 | if(pwd.equals(u.getPwd())) { 44 | u.setPwd("******"); 45 | return u; 46 | } 47 | else 48 | return null; 49 | } 50 | 51 | public static boolean del(User user) 52 | { 53 | UserDao userDao=new UserDaoImpl(); 54 | int num=userDao.del(user); 55 | if(num==1) 56 | return true; 57 | else 58 | return false; 59 | } 60 | 61 | public static List alluser() 62 | { 63 | UserDao userDao=new UserDaoImpl(); 64 | 65 | return userDao.findAll(); 66 | } 67 | public static List root() 68 | { 69 | UserDao userDao=new UserDaoImpl(); 70 | 71 | return userDao.root(); 72 | } 73 | 74 | public static boolean upUser(User user) 75 | { 76 | UserDao userDao=new UserDaoImpl(); 77 | int num=userDao.update(user); 78 | if(num==1) 79 | return true; 80 | else 81 | return false; 82 | } 83 | 84 | public static User findById(int id) 85 | { 86 | UserDao userDao=new UserDaoImpl(); 87 | return userDao.findById(id); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/servlet/FruitServlet.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.servlet; 2 | 3 | import com.fruitDayDB.service.FruitService; 4 | import com.fruitDayDB.service.ShopService; 5 | import com.fruitDayDB.vo.Cart; 6 | import com.fruitDayDB.vo.Fruit; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import java.io.IOException; 13 | import java.util.List; 14 | 15 | /** 16 | * Created by xi on 2015/10/5. 17 | */ 18 | public class FruitServlet extends HttpServlet { 19 | @Override 20 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 21 | doGet(req, resp); 22 | } 23 | 24 | @Override 25 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 26 | String key=req.getParameter("key"); 27 | 28 | if(key.equals("info")) 29 | doInfo(req,resp); 30 | else if(key.equals("hot")) 31 | doHot(req,resp); 32 | } 33 | 34 | protected void doInfo(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 35 | 36 | int fid=Integer.parseInt(req.getParameter("fid")); 37 | 38 | Fruit fruit= FruitService.info(fid); 39 | 40 | req.setAttribute("fruit", fruit); 41 | 42 | if(!(Integer.parseInt(req.getParameter("id"))==0)) { 43 | 44 | int id=Integer.parseInt(req.getParameter("id")); 45 | 46 | if(id!=0) { 47 | 48 | List carts = ShopService.showAll(id); 49 | 50 | for (Cart cart : carts) { 51 | if (cart.getFid() == fid) { 52 | if(cart.isCart()) 53 | req.setAttribute("tit1", "已加入购物车"); 54 | if(cart.isStar()) 55 | req.setAttribute("tit2", "已关注"); 56 | break; 57 | } 58 | } 59 | } 60 | } 61 | 62 | doHot(req,resp); 63 | 64 | req.getRequestDispatcher("fruit_info.jsp").forward(req, resp); 65 | 66 | } 67 | 68 | protected void doHot(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 69 | 70 | List fruits=FruitService.hot(); 71 | 72 | req.setAttribute("fruits", fruits); 73 | 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/servlet/UserServlet.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.servlet; 2 | 3 | 4 | import com.fruitDayDB.service.UserService; 5 | import com.fruitDayDB.vo.User; 6 | 7 | import javax.jws.WebService; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | import java.io.IOException; 14 | import java.util.List; 15 | 16 | /** 17 | * Created by xi on 2015/10/4. 18 | */ 19 | public class UserServlet extends HttpServlet { 20 | @Override 21 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 22 | String key=req.getParameter("key"); 23 | 24 | if(key.equals("add")) 25 | doAdd(req,resp); 26 | if(key.equals("login")) 27 | doLogin(req,resp); 28 | } 29 | 30 | @Override 31 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 32 | super.doGet(req, resp); 33 | } 34 | 35 | 36 | protected void doAdd(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 37 | String email=req.getParameter("email"); 38 | String phone=req.getParameter("phone"); 39 | String pwd=req.getParameter("pwd1"); 40 | 41 | User u=new User(email,phone,pwd); 42 | 43 | User user=UserService.add(u); 44 | 45 | if(user!=null) 46 | { 47 | HttpSession session=req.getSession(); 48 | session.setAttribute("user",user); 49 | req.getRequestDispatcher(req.getContextPath()+"/index.jsp").forward(req, resp); 50 | } 51 | else 52 | req.getRequestDispatcher("/reg.jsp").forward(req, resp); 53 | } 54 | 55 | protected void doLogin(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 56 | String str=req.getParameter("str"); 57 | String pwd=req.getParameter("pwd"); 58 | boolean boo; 59 | if(str.indexOf("@")!=-1) 60 | boo=true; 61 | else 62 | boo=false; 63 | 64 | User u=UserService.login(str,pwd,boo); 65 | 66 | List uids=UserService.root(); 67 | 68 | if(uids.size()>0||uids!=null) 69 | { 70 | for(int i:uids) 71 | { 72 | if(u.getId()==i) 73 | req.getRequestDispatcher("BSindex.jsp").forward(req, resp); 74 | } 75 | } 76 | if(u!=null) 77 | { 78 | HttpSession session=req.getSession(); 79 | session.setAttribute("user",u); 80 | req.getRequestDispatcher("/index.jsp").forward(req, resp); 81 | } 82 | else 83 | req.getRequestDispatcher("/login.jsp").forward(req, resp); 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/vo/Cart.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.vo; 2 | 3 | /** 4 | * Created by xi on 2015/10/6. 5 | */ 6 | public class Cart { 7 | private int fid; 8 | private boolean isCart; 9 | private boolean isStar; 10 | 11 | public int getFid() { 12 | return fid; 13 | } 14 | 15 | public void setFid(int fid) { 16 | this.fid = fid; 17 | } 18 | 19 | public boolean isCart() { 20 | return isCart; 21 | } 22 | 23 | public void setIsCart(boolean isCart) { 24 | this.isCart = isCart; 25 | } 26 | 27 | public boolean isStar() { 28 | return isStar; 29 | } 30 | 31 | public void setIsStar(boolean isStar) { 32 | this.isStar = isStar; 33 | } 34 | 35 | public Cart(){ 36 | super(); 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return "Cart{" + 42 | "fid=" + fid + 43 | ", isCart=" + isCart + 44 | ", isStar=" + isStar + 45 | '}'; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/vo/Fruit.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.vo; 2 | 3 | /** 4 | * Created by xi on 2015/10/5. 5 | */ 6 | public class Fruit { 7 | private int fid; 8 | private String fname; 9 | private String spec; 10 | private double up; 11 | private String t1; 12 | private String t2; 13 | private int inum; 14 | 15 | public int getFid() { 16 | return fid; 17 | } 18 | 19 | public void setFid(int fid) { 20 | this.fid = fid; 21 | } 22 | 23 | public String getFname() { 24 | return fname; 25 | } 26 | 27 | public void setFname(String fname) { 28 | this.fname = fname; 29 | } 30 | 31 | public String getSpec() { 32 | return spec; 33 | } 34 | 35 | public void setSpec(String spec) { 36 | this.spec = spec; 37 | } 38 | 39 | public double getUp() { 40 | return up; 41 | } 42 | 43 | public void setUp(double up) { 44 | this.up = up; 45 | } 46 | 47 | public String getT1() { 48 | return t1; 49 | } 50 | 51 | public void setT1(String t1) { 52 | this.t1 = t1; 53 | } 54 | 55 | public String getT2() { 56 | return t2; 57 | } 58 | 59 | public void setT2(String t2) { 60 | this.t2 = t2; 61 | } 62 | 63 | public int getInum() { 64 | return inum; 65 | } 66 | 67 | public void setInum(int inum) { 68 | this.inum = inum; 69 | } 70 | 71 | @Override 72 | public String toString() { 73 | return "Fruit{" + 74 | "fid=" + fid + 75 | ", fname='" + fname + '\'' + 76 | ", spec='" + spec + '\'' + 77 | ", up=" + up + 78 | ", t1='" + t1 + '\'' + 79 | ", t2='" + t2 + '\'' + 80 | ", inum=" + inum + 81 | '}'; 82 | } 83 | 84 | public Fruit() { 85 | super(); 86 | } 87 | 88 | public Fruit(String fname, String spec, double up, String t1, String t2, int inum) { 89 | this.fname = fname; 90 | this.spec = spec; 91 | this.up = up; 92 | this.t1 = t1; 93 | this.t2 = t2; 94 | this.inum = inum; 95 | } 96 | 97 | public Fruit(int fid, String fname, String spec, double up, String t1, String t2, int inum) { 98 | 99 | this.fid = fid; 100 | this.fname = fname; 101 | this.spec = spec; 102 | this.up = up; 103 | this.t1 = t1; 104 | this.t2 = t2; 105 | this.inum = inum; 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /src/main/java/com/fruitDayDB/vo/User.java: -------------------------------------------------------------------------------- 1 | package com.fruitDayDB.vo; 2 | 3 | /** 4 | * Created by xi on 2015/10/4. 5 | */ 6 | public class User { 7 | private int id; 8 | private String email; 9 | private String phone; 10 | private String pwd; 11 | private String uname; 12 | 13 | public int getId() { 14 | return id; 15 | } 16 | 17 | public void setId(int id) { 18 | this.id = id; 19 | } 20 | 21 | public String getEmail() { 22 | return email; 23 | } 24 | 25 | public void setEmail(String email) { 26 | this.email = email; 27 | } 28 | 29 | public String getPhone() { 30 | return phone; 31 | } 32 | 33 | public void setPhone(String phone) { 34 | this.phone = phone; 35 | } 36 | 37 | public String getPwd() { 38 | return pwd; 39 | } 40 | 41 | public void setPwd(String pwd) { 42 | this.pwd = pwd; 43 | } 44 | 45 | public String getUname() { 46 | return uname; 47 | } 48 | 49 | public void setUname(String uname) { 50 | this.uname = uname; 51 | } 52 | 53 | public User(int id, String email, String phone, String pwd, String uname) { 54 | this.id = id; 55 | this.email = email; 56 | this.phone = phone; 57 | this.pwd = pwd; 58 | if(uname.equals("")||uname==null) 59 | this.uname=email; 60 | else 61 | this.uname = uname; 62 | } 63 | 64 | public User(String email, String phone, String pwd, String uname) { 65 | this.email = email; 66 | this.phone = phone; 67 | this.pwd = pwd; 68 | if(uname.equals("")||uname==null) 69 | this.uname=email; 70 | else 71 | this.uname = uname; 72 | } 73 | 74 | public User(int id) { 75 | this.id = id; 76 | this.email = null; 77 | this.phone = null; 78 | this.pwd = null; 79 | this.uname=null; 80 | } 81 | 82 | public User(String email, String phone, String pwd) { 83 | this.email = email; 84 | this.phone = phone; 85 | this.pwd = pwd; 86 | this.uname=email; 87 | 88 | } 89 | 90 | public User() { 91 | super(); 92 | } 93 | 94 | @Override 95 | public String toString() { 96 | return "User{" + 97 | "id=" + id + 98 | ", email='" + email + '\'' + 99 | ", phone='" + phone + '\'' + 100 | ", pwd='" + pwd + '\'' + 101 | ", uname='" + uname + '\'' + 102 | '}'; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /src/main/webapp/BSindex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 |
43 | 44 |
45 |
46 |
47 |

欢迎进入天天果园后台管理系统

48 |
49 |
50 |
51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/main/webapp/BSindex1.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 | 43 |
44 | 45 |
46 |
47 |
48 |
    49 |
  • 用户名
  • 50 |
  •  
  • 51 |
  • 邮箱
  • 52 |
  •  
  • 53 |
  • 手机
  • 54 |
  •  
  • 55 |
  • 操作
  • 56 |
57 |
58 | 59 | <% 60 | List users=new ArrayList(); 61 | if(request.getAttribute("allusers")!=null) 62 | { 63 | users=(List)request.getAttribute("allusers"); 64 | 65 | for(User user:users) 66 | { 67 | out.print("
\n" + 68 | " \n" + 77 | "
"); 78 | } 79 | } 80 | 81 | 82 | %> 83 |
84 |
85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/main/webapp/BSindex2.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 | 43 |
44 | 45 | 46 |
47 |
48 |
49 |
50 |
51 | 用户名 : 52 | 53 |
54 | 55 |
56 | 邮箱 : 57 | 58 |
59 | 60 |
61 | 手机 : 62 | 63 |
64 | 65 |
66 | 密码 : 67 | 68 |
69 |
70 | 71 |
72 |
73 |
74 |
75 |
76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/main/webapp/BSindex3.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% 22 | String show="x0"; 23 | if(request.getAttribute("sky")!=null) 24 | show=(String)request.getAttribute("sky"); 25 | %> 26 | 27 | 28 |
29 | 32 |
33 |
用户管理
34 |
35 | 36 | 37 |
38 |
商品管理
39 |
40 | 41 | 42 | 43 |
44 |
45 |
46 | 47 | 48 |
49 |
50 | <% 51 | User user3=new User(1,"","","",""); 52 | if(request.getAttribute("user")!=null) 53 | user3=(User)request.getAttribute("user"); 54 | %> 55 |
56 |
method="post"> 57 |
58 | 用户名 : 59 | /> 60 |
61 | 62 |
63 | 邮箱 : 64 | /> 65 |
66 | 67 |
68 | 手机 : 69 | /> 70 |
71 | 72 |
73 | 密码 : 74 | /> 75 |
76 |
77 | 78 |
79 |
80 |
81 |
82 |
83 | 84 |
85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/main/webapp/BSindex4.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%@ page import="com.fruitDayDB.vo.Fruit" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: xi 8 | Date: 2015/10/18 9 | Time: 9:15 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | <% 23 | String show="x0"; 24 | if(request.getAttribute("sky")!=null) 25 | show=(String)request.getAttribute("sky"); 26 | %> 27 | 28 | 29 |
30 | 33 | 34 |
35 |
用户管理
36 |
37 | 38 | 39 |
40 |
商品管理
41 |
42 | 43 | 44 | 45 |
46 |
47 | 48 |
49 | 50 | 51 |
52 |
53 |
54 |
    55 |
  • 水果
  • 56 |
  •  
  • 57 |
  • 规格
  • 58 |
  •  
  • 59 |
  • 单价
  • 60 |
  •  
  • 61 |
  • 操作
  • 62 |
63 |
64 | <% 65 | List fruits=new ArrayList(); 66 | if(request.getAttribute("allfruit")!=null) { 67 | 68 | fruits = (List) request.getAttribute("allfruit"); 69 | 70 | for(Fruit fruit:fruits) { 71 | out.print("
\n" + 72 | " \n" + 81 | "
"); 82 | } 83 | } 84 | %> 85 | 86 | 87 |
88 |
89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | fruitServlet 9 | com.fruitDayDB.servlet.FruitServlet 10 | 11 | 12 | shopServlet 13 | com.fruitDayDB.servlet.ShopServlet 14 | 15 | 16 | userServlet 17 | com.fruitDayDB.servlet.UserServlet 18 | 19 | 20 | selServlet 21 | com.fruitDayDB.servlet.selServlet 22 | 23 | 24 | bsServlet 25 | com.fruitDayDB.servlet.BSServlet 26 | 27 | 28 | fruitServlet 29 | /FruitServlet 30 | 31 | 32 | shopServlet 33 | /ShopServlet 34 | 35 | 36 | userServlet 37 | /UserServlet 38 | 39 | 40 | selServlet 41 | /SELServlet 42 | 43 | 44 | bsServlet 45 | /BSServlet 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/webapp/css/BSindex.css: -------------------------------------------------------------------------------- 1 | .mean{ 2 | width: 15%; 3 | height: 100%; 4 | position: fixed; 5 | left: 0px;z-index: -1; 6 | border-right: 2px solid #DDD; 7 | } 8 | 9 | .logo{ 10 | width: 100%; 11 | height: 150px; 12 | padding-top: 50px; 13 | text-align:center; 14 | } 15 | .logo img{ 16 | width: 100px; 17 | height: 100px;} 18 | 19 | .mean_ul{ 20 | width: 100%; 21 | min-height:100px; 22 | display: block; 23 | } 24 | .mean_li{ 25 | width: 100%; 26 | height: 50px; 27 | line-height: 50px; 28 | text-align: center; 29 | letter-spacing:10px; 30 | font-size: 20px; 31 | color: #FFFFFF; 32 | background-color: #669900; 33 | border-right: 2px solid #669933; 34 | border-bottom: 2px solid #FFFFFF; 35 | } 36 | .mm{ 37 | width: 100%; 38 | height: 36px; 39 | color: #669933; 40 | line-height: 36px; 41 | text-align: center; 42 | 43 | } 44 | 45 | .g a,.mm a{color: #669933;} 46 | 47 | .gong{ 48 | width: 85%; 49 | min-height:100%; 50 | position: fixed; 51 | right: 0px; 52 | } 53 | 54 | .con{ 55 | width: 80%; 56 | height: 670px; 57 | margin: 0 auto; 58 | 59 | } 60 | 61 | /*全部用户*/ 62 | .tit{ 63 | width: 100%; 64 | height: 50px; 65 | padding-top: 50px; 66 | border-bottom: 1px dashed #669933; 67 | } 68 | 69 | .info{ 70 | width: 100%; 71 | height: 50px; 72 | border-bottom: 1px dashed #669933; 73 | } 74 | .info ul li,.tit ul li{ 75 | float:left; 76 | width: 230px; 77 | height: 50px; 78 | line-height: 50px; 79 | text-align: center; 80 | } 81 | 82 | .info ul li.i,.tit ul li.i{ 83 | width: 2px; 84 | height: 30px; 85 | margin-top:10px; 86 | background-color: #669933; 87 | } 88 | 89 | /*添加用户*//*用户信息*/ 90 | .form{ 91 | margin-top: 100px; 92 | width: 100%; 93 | height: 500px; 94 | position: relative; 95 | } 96 | 97 | .add{ 98 | width: 800px; 99 | height: 80px; 100 | line-height: 80px; 101 | color: #669933; 102 | } 103 | 104 | .add_tit{ 105 | width: 200px; 106 | height: 80px; 107 | line-height: 80px; 108 | text-align: right; 109 | display: inline-block; 110 | } 111 | .add_text input{ 112 | width: 200px; 113 | height: 30px; 114 | line-height: 30px; 115 | padding-left: 10px; 116 | font-size: 20px; 117 | border-bottom: 1px dashed #669933; 118 | } 119 | 120 | .add_sublmit{ 121 | width: 100px; 122 | height: 100px; 123 | line-height: 100px; 124 | text-align: center; 125 | border: 1px dashed #669933; 126 | border-radius: 50px; 127 | position: absolute; 128 | right: 200px; 129 | top: 90px; 130 | } 131 | 132 | .add_sublmit input{ 133 | width: 90px; 134 | height: 90px; 135 | border: 1px dashed #669933; 136 | border-radius: 45px; 137 | font-size: 18px; 138 | color: #669933; 139 | font-weight: bold; 140 | cursor: pointer; 141 | } 142 | 143 | /*水果*/ 144 | #t1,#t2{ 145 | width: 560px; 146 | } 147 | 148 | 149 | /*欢迎页面*/ 150 | .hello{ 151 | width: 100%; 152 | height: 200px; 153 | line-height: 200px; 154 | margin-top: 200px; 155 | text-align: center; 156 | color: #669933; 157 | } 158 | 159 | input.long{ 160 | width: 500px; 161 | } 162 | -------------------------------------------------------------------------------- /src/main/webapp/css/imgs.css: -------------------------------------------------------------------------------- 1 | .fruit_info{width: 1100px;height: 480px;margin: 0 auto;padding-top: 20px;} 2 | 3 | /*图片盒子*/ 4 | .img_box{width: 370px;height: 480px;text-align: left;float:left;margin-right: 20px;} 5 | .non{display: none;} 6 | .show{display:block ;} 7 | .show img{width: 370px;height: 370px;} 8 | 9 | /*图片跳转*/ 10 | .img_to{margin-top: 10px;} 11 | .img_to ul li{width: 85px;height:85px;float:left;margin-right: 10px;} 12 | .img_to ul li img{width: 85px;height:85px;cursor: pointer;} 13 | 14 | /*文字框*/ 15 | .fruit_text{width: 456px;height: 480px;float:left;padding-right: 20px;} 16 | .fruit_text hr{border: none;border-top: 1px dashed #DDD;} 17 | .fname{font-size: 30px;} 18 | .spec,.up,.fid{display: inline-block;} 19 | .up{margin-left: 20px;font-size: 20px;} 20 | .fid{margin-left: 20px;} 21 | #fform{margin-top: 20px;} 22 | /*数量*/ 23 | .Unum{text-align: center;width: 80px;height: 20px;border: 1px solid #C0C0C0;} 24 | 25 | #numl,#numr{display:inline-block;width: 25px;cursor: pointer;} 26 | #numl{float: left;border-right: 1px solid #C0C0C0;} 27 | #numr{float:right;border-left: 1px solid #C0C0C0;} 28 | 29 | /*加入购物车*/ 30 | .Uadd #cart{background-color: #669933;color: white;width:180px;height: 40px;font-size: 16px;cursor: pointer;font-family: 'Microsoft Yahei';} 31 | .Uadd{margin:20px 0 15px 0;width:180px;height: 40px;float:left;} 32 | .Unum,.Uaddress{display: inline-block;} 33 | .Unum{margin-left: 56px;} 34 | #sel{border: 1px solid #C0C0C0;} 35 | 36 | .fform{width: 100%;height: 136px;} 37 | .fform1{width: 100%;height: 30px;margin-bottom:20px;float:left;} 38 | /*关注*/ 39 | .starbutton{margin:20px 0 15px 20px;width:120px;height: 26px;float:left;} 40 | .starbutton #star{border:1px solid #669933;color: #669933;width:180px;height: 40px;font-size: 16px;cursor: pointer;font-family: 'Microsoft Yahei';} 41 | 42 | /*信息与提示*/ 43 | .finfo,.fpro{margin-top: 20px;} 44 | .finfo p,.fpro p{text-indent:2em;margin-top: 10px;} 45 | 46 | /*热卖产品*/ 47 | .fruit_hot{width: 212px;height: 478px;border: 1px solid #DDDDDD;float: left;padding: 0 10px 0 10px;} 48 | .ht_l{float: left;} 49 | .ht_r{float: right;} 50 | .hf_title{width: 100%;height: 20px;margin-top: 11px;} 51 | .hot_fruit{width: 200px;height: 100px;margin-top: 10px;border-bottom: 1px dashed #DDD;} 52 | .hf_img,.hf_img img{width: 85px;height:85px;} 53 | .hf_img{margin-right: 20px;} 54 | .hf_text{width: 100px;height: 85px;} 55 | .hf_img,.hf_text{float: left;} 56 | .hf_mon{margin-top: 5px;font-size: 12px;color: red;} 57 | .hf_name{font-size: 12px;} 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/css/index.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 1100px;margin: 0 auto;} 3 | /*浮动*/ 4 | .left{float: left;} 5 | .right{float: right;} 6 | /*文字*/ 7 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} 8 | 9 | /*imgs*/ 10 | .imgs .con{height:400px;position: relative;} 11 | .non{display: none;} 12 | .show{display:block ;} 13 | ul.imgul {width: 200px;height: 40px;text-align: center;position: absolute;right: 0px;bottom: 0px;} 14 | ul.imgul li {float: left;width: 20px;height: 20px;line-height: 20px;background-color: #444444;color: #FFFFFF;border-radius: 10px;margin: 10px 10px;cursor: pointer;} 15 | #l0{background-color: #669933;} 16 | 17 | /*fruit*/ 18 | .fruitboxs{margin:50px auto;height: 640px;} 19 | .fhead{width: 100%;height: 30px;margin-bottom: 10px;} 20 | .fhr{width: 100%; height: 2px;background-color: #669933;margin-bottom: 5px;} 21 | .fser{width: 4em;height:23px;line-height: 23px;float: left;font-size: 18px;color: #669933;} 22 | .fmore{width: 6em;height:23px;line-height: 23px;float: right;} 23 | 24 | .fruit_box{width: 200px;height: 300px;padding: 0 10px;float:left} 25 | .fruit_img{width: 200px;height:200px;} 26 | .fruit_img img{width: 200px;height: 200px;} 27 | .fruit_name{width: 100%;height:30px;color: #666666;font-size: 20px;line-height: 30px;} 28 | .fruit_num{width: 100%;height: 30px;line-height:30px;font-size:15px;} 29 | .fruit_mon{width: 100%;height:35px;line-height:35px;font-size:20px;color: #669933;} 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/webapp/css/main.css: -------------------------------------------------------------------------------- 1 | body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,p,input,select,textarea,form{margin: 0; padding: 0;} 2 | body{font:14px/1.5 "宋体";} 3 | img{border:none;} 4 | ul,ol{list-style:none;} 5 | input,select,textarea{outline:none;border:none;background:none;} 6 | textarea{resize:none;} 7 | a{text-decoration:none;color: #666666;} 8 | /*清浮动*/ 9 | .clearfix:after{content:"";*display:block;*clear:both;} 10 | .clearfix{zoom:1;} 11 | 12 | /*选择*/ 13 | ::selection {background-color:#669900; color:#ffffff; text-shadow:none;} 14 | ::-moz-selection {background-color:#669900; color:#ffffff;text-shadow:none;} 15 | 16 | /*去掉a的下划线*/ 17 | a {blr:expression(this.onFocus=this.blur())} /*if IE*/ 18 | a {outline:none;}/*if 火狐等现代浏览器浏览器*/ 19 | 20 | div.noss{background-color: #669933;} 21 | 22 | /*文字*/ 23 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} -------------------------------------------------------------------------------- /src/main/webapp/css/rl.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | /*网页居中*/ 4 | .con{width: 990px;margin: 0 auto;} 5 | 6 | .box{width: 990px;height: 480px;margin-top: 20px;} 7 | .head{width: 970px;height: 29px;background-color: #669933;padding: 11px 0 0 20px;} 8 | .text{width: 600px;height: 360px;padding:30px 50px 50px 50px;background-color: #FBF8F1;float: left;} 9 | .jmp{width: 290px;height: 440px;background-color: #DCE6CD;float: left;} 10 | 11 | .h01{font-size: 20px;} 12 | .h02{font-size:14px;color: red;} 13 | .xhr{width: 100%;height: 2px;background-color: #669933;margin-top: 10px;} 14 | 15 | .text_box{margin-top: 20px;} 16 | .main{height: 30px;width: 100%;line-height: 30px;padding: 15px 0px;} 17 | .name{text-align: right;width: 100px;padding-right: 10px;float:left;} 18 | .main input{background-color: #FFF;float:left;width: 200px;height: 100%;border: 1px solid #CCC;padding-left: 8px;} 19 | .xbutton input{float:left;cursor:pointer;background-color: #669933;color: #FFFFFF;width: 105px;height: 33px;font-size: 16px;margin-left: 110px;margin-top: 15px;} 20 | 21 | .fpwd{float:left;margin-top: 15px;margin-left:15px;height: 33px;line-height:33px;width: 100px;} 22 | .fpwd a{color: #669933;} 23 | 24 | .jmpp{color: #669933;font-size: 16px;margin-top: 100px;text-align: center;font-weight: bold;} 25 | .jmpp p{margin-bottom: 10px;} 26 | .jmpa{margin:60px auto 0 auto;width: 112px;} 27 | .jmpa_l{margin:70px auto 0 auto;width: 112px;} 28 | .jmpa a,.jmpa_l a{display: block;width: 110px;height: 30px;line-height:30px;color: #669933;text-align: center;border: 1px solid #669933;border-radius: 6px;cursor:pointer;} 29 | 30 | /*foot_box*/ 31 | .foot_box{text-align: center;margin-top: 30px;} 32 | .foot_box p{margin-top: 5px;} 33 | .foot_box p.b{font-size: 18px;} 34 | -------------------------------------------------------------------------------- /src/main/webapp/css/sel.css: -------------------------------------------------------------------------------- 1 | .fruit_info{width: 1100px;margin: 0 auto;padding-top: 20px;min-height: 660px;} 2 | 3 | 4 | 5 | /*热卖产品*/ 6 | .fruit_hot{width: 120px;min-height: 170px;border: 1px solid #DDDDDD;padding: 0 10px 0 10px;float:left;} 7 | .ht_l{float: left;} 8 | .ht_r{float: right;} 9 | .hf_title{width: 100%;height: 20px;margin-top: 11px;} 10 | .hot_fruit{width: 120px;height: 170px;margin-top: 10px;border-bottom: 1px dashed #DDD;} 11 | .hf_img,.hf_img img{width: 120px;height:120px;} 12 | .hf_img{float:left;} 13 | .hf_text{width: 100%;height: 25px;float:left;line-height: 25px;} 14 | .hf_img,.hf_text{float: left;} 15 | .hf_mon{font-size: 20px;color: #669933;} 16 | .hf_name{font-size: 14px;} 17 | 18 | 19 | /*网页宽度1100px*/ 20 | .con{width: 1100px;margin: 0 auto;} 21 | 22 | /*搜索*/ 23 | .sel{width: 938px;min-height: 200px;float: right;padding: 0px 10px;} 24 | .selfruits{width: 896px;height: 120px;border: 1px solid #DDDDDD;padding: 20px 20px 0px 20px;margin-bottom: 20px;} 25 | .selfruits_li{border-bottom: 1px solid #DDDDDD;width: 100%;height:39px;line-height: 39px;} 26 | .selkey{display: inline-block;padding: 0px 5px;} 27 | .sgreen{ background-color: #669933;color: #fff;line-height: 20px;} 28 | #sort{border: none;} 29 | 30 | 31 | /*搜索列表*/ 32 | /*fruit*/ 33 | .fruitboxs{width: 938px;min-height: 200px;border-top:2px solid #669933;padding-top: 20px; } 34 | 35 | .fruit_box{width: 220px;height: 320px;float:left;border: 1px solid #FFF;position: relative;margin-right: 12px;} 36 | .fruit_box:hover{border: 1px solid #669933;width: 220px;height: 320px;} 37 | .fruit_img{width: 220px;height:220px;} 38 | .fruit_img img{width: 220px;height: 220px;} 39 | .fruit_name{width: 100%;height:30px;color: #666666;font-size: 20px;line-height: 30px;margin-left: 10px;} 40 | .fruit_spec{width: 100%;height: 30px;line-height:30px;font-size:15px;margin-left: 10px;} 41 | .fruit_up{width: 100%;height:35px;line-height:35px;font-size:20px;color: #669933;margin-left: 10px;} 42 | .flogo{position: absolute;right: 0px;bottom: 0px;} 43 | -------------------------------------------------------------------------------- /src/main/webapp/css/showcart.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 990px;margin: 0 auto;} 3 | 4 | .head{width: 970px;height: 29px;background-color: #669933;padding: 11px 0 0 20px;margin-top: 20px;} 5 | 6 | .shop_box{border: 1px solid #DDD;border-top: none;} 7 | .head_text_box{width: 958px;height: 76px;line-height: 76px;padding-left: 30px;} 8 | #head_text{font-size: 20px;} 9 | 10 | .shop_title{width:988px;height:50px;line-height:50px;background-color: #EEE;} 11 | .shop_title div,.shop div{float: left;text-align: center;} 12 | 13 | #st1,.s1{width: 300px;} 14 | #st2,.s2{width: 100px;} 15 | #st3,.s3{width: 100px;} 16 | #st4,.s4{width: 150px;} 17 | #st5,.s5{width: 150px;} 18 | #st6,.s6{width: 188px;} 19 | 20 | .shop{width:988px;height:120px;margin-top: 20px;line-height: 120px;border-bottom: 1px solid #EEE;} 21 | .s1 img{width: 85px;height: 85px;} 22 | .s1 .s1_img{float: left;margin-top: 20px;margin-left: 30px;width: 85px;height: 85px;margin-right: 15px;} 23 | .s1 .s1_tetx{float:left} 24 | 25 | .shop_footer{width: 988px;height: 50px;background-color: #EEE;} 26 | /*数量*/ 27 | .Unum{text-align: center;width: 80px;height: 20px;line-height:20px;border: 1px solid #C0C0C0;margin-left: 34px;margin-top: 48px;} 28 | .numl,.numr{display:inline-block;width: 25px;height:20px;cursor: pointer;} 29 | .numl{float: left;border-right: 1px solid #C0C0C0;} 30 | .numr{float:right;border-left: 1px solid #C0C0C0;} 31 | 32 | .sum_mon{height: 150px;text-align: right;float: right;width: 100%;} 33 | .money{width:100%;height: 45px;line-height: 45px;margin-top: 20px;float: right;margin-bottom: 10px;} 34 | .money span{font-size: 25px;color: red;} 35 | #addmon{background-color: #669933;color: white;width: 150px;height: 36px;float:right;} 36 | 37 | /*foot_box*/ 38 | .foot_box{text-align: center;margin-top: 30px;} 39 | .foot_box p{margin-top: 5px;} 40 | .foot_box p.b{font-size: 18px;} 41 | -------------------------------------------------------------------------------- /src/main/webapp/footer/css/footer.css: -------------------------------------------------------------------------------- 1 | /*footer*/ 2 | .footer{width: 100%;height:82px;;background-color: #669933;margin-top: 100px;} 3 | .foot_ul{width: 1100px;margin: 0 auto;} 4 | .foot_ul li{float:left;margin-top: 15px;padding-right: 48px;} 5 | 6 | /*foot_box*/ 7 | .foot_box{text-align: center;margin-top: 30px;} 8 | .foot_box p{margin-top: 5px;} 9 | .foot_box p.b{font-size: 18px;} 10 | -------------------------------------------------------------------------------- /src/main/webapp/footer/footer.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 20:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 15 | 24 | 25 |
26 |
27 |

版权所有 © 2015版权所有 © 2015 保留所有权利 保留所有权利 | 沪ICP备12042163 | 站长统计

28 |

天天果园 鲜果网购

29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/footer/imgs/foot_img/foot_a1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/footer/imgs/foot_img/foot_a1.jpg -------------------------------------------------------------------------------- /src/main/webapp/footer/imgs/foot_img/foot_a2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/footer/imgs/foot_img/foot_a2.jpg -------------------------------------------------------------------------------- /src/main/webapp/footer/imgs/foot_img/foot_a3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/footer/imgs/foot_img/foot_a3.jpg -------------------------------------------------------------------------------- /src/main/webapp/footer/imgs/foot_img/foot_a4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/footer/imgs/foot_img/foot_a4.jpg -------------------------------------------------------------------------------- /src/main/webapp/footer/imgs/foot_img/foot_a5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/footer/imgs/foot_img/foot_a5.jpg -------------------------------------------------------------------------------- /src/main/webapp/head/css/head.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 1100px;margin: 0 auto;} 3 | /*浮动*/ 4 | .head_left{float: left;width: 200px;height: 30px;} 5 | .head_right{float: right;width: 300px;height: 30px;} 6 | .noLink{text-align: right;} 7 | /*文字*/ 8 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} 9 | /*网页头部*/ 10 | .top{height: 30px;line-height: 30px;border-bottom: 1px solid #DEDEDE;} 11 | /*logo*/ 12 | .head{height: 100px;} 13 | .logo{width: 340px;float: left;margin-top: 15px;} 14 | /*搜索框*/ 15 | .ser{width: 451px;float: left;margin-top: 30px;} 16 | #ser_border{float:left; width:340px; height:40px; line-height:40px;padding-left:11px; background:none; text-align:left; font-size:14px;border: 2px solid #669933;} 17 | #ser_button{floa:right;background-color: #669933;border:0; width:96px; height:40px;line-height:40px;cursor:pointer;color:white;font-size: 20px;} 18 | /*关注*/ 19 | .username{width: 200px;height: 30px;float:left;text-align: center;} 20 | .star{width: 80px;height: 30px;float: left;line-height: 30px;padding-left: 8px;} 21 | .star_img{margin-top:6px;width: 18px;height:18px;background: url(../imgs/ISstar.svg);background-size: 18px 18px;float:left;} 22 | .toStar{width: 60px;height: 30px;float:right;text-align: right;} 23 | /*购物车*/ 24 | .shopcart{width: 130px;height: 16px;border: 1px solid #DFDFDF;float:right;margin-top: 30px;padding: 11px 0px 11px 20px;} 25 | .cart_img{width: 18px;height: 16px;background-image: url(../imgs/cart_img.svg);background-size: 18px 16px;float:left;} 26 | .cart{height: 16px;line-height:16px;float:left;margin-left: 5px;position:relative;} 27 | .cart_to{width:18px;height:16px;font: 400 16px/16px simsun;margin-left: 15px;float:left;} 28 | .cart_num{width: 18px;height: 18px;line-height:18px;background: #669933;position: absolute;right: -18px;top: -18px;border-radius:10px 10px 8px 0px;color: white;text-align: center;} 29 | 30 | /*head_menu*/ 31 | .head_menu{width:100%;height: 45px;background: #F4ECDC;} 32 | .hmenu_ul li{float: left;} 33 | .hmenu_ul li a{display: block;width: 150px;height: 45px;line-height: 45px;color: #669933;font-size: 18px;font-weight: bold;text-align:center;} 34 | .hmenu_ul li a:hover{background-color: #EFE5CD;} 35 | -------------------------------------------------------------------------------- /src/main/webapp/head/css/main.css: -------------------------------------------------------------------------------- 1 | body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,p,input,select,textarea,form{margin: 0; padding: 0;} 2 | body{font:14px/1.5 "宋体";} 3 | img{border:none;} 4 | ul,ol{list-style:none;} 5 | input,select,textarea{outline:none;border:none;background:none;} 6 | textarea{resize:none;} 7 | a{text-decoration:none;color: #666666;} 8 | /*清浮动*/ 9 | .clearfix:after{content:"";*display:block;*clear:both;} 10 | .clearfix{zoom:1;} 11 | 12 | /*选择*/ 13 | ::selection {background-color:#669900; color:#ffffff; text-shadow:none;} 14 | ::-moz-selection {background-color:#669900; color:#ffffff;text-shadow:none;} 15 | 16 | /*去掉a的下划线*/ 17 | a {blr:expression(this.onFocus=this.blur())} /*if IE*/ 18 | a {outline:none;}/*if 火狐等现代浏览器浏览器*/ 19 | 20 | div.noss{background-color: #669933;} 21 | -------------------------------------------------------------------------------- /src/main/webapp/head/head.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: xi 5 | Date: 2015/10/3 6 | Time: 19:39 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 13 | 14 | 15 | <% 16 | User user=new User(0,"","","",""); 17 | int num=0; 18 | if(session.getAttribute("user")!=null) 19 | user=(User)session.getAttribute("user"); 20 | if(request.getAttribute("num")!=null) 21 | num=(Integer)request.getAttribute("num"); 22 | %> 23 | 24 | 25 | 26 |
27 |
28 | 29 |
您好,欢迎来到天天果园!
30 | 31 | <% 32 | if(user.getId()==0) 33 | out.print("
\n" + 34 | " [ 登陆 ]  \n" + 35 | " [ 注册有惊喜 ]\n" + 36 | "
"); 37 | else { 38 | out.print("
\n" + 39 | " \n" + 40 | "
\n" + 41 | "
\n" + 42 | "
\n" + 43 | "
我的关注\n" + 44 | "
\n" + 45 | "
\n" + 46 | "
"); 47 | } 48 | %> 49 | 50 |
51 |
52 | 53 | <%--网站图标、搜索框、购物车--%> 54 |
55 |
56 | 57 | 62 | 63 |
64 |
/SELServlet?selkey=ser method="post" > 65 | 66 | 67 |
68 |
69 | 70 |
71 |
72 | 76 |
>
77 |
78 | 79 |
80 |
81 | 82 | <%--网站菜单--%> 83 |
84 |
85 | 91 |
92 |
93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/main/webapp/head/imgs/ISstar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/head/imgs/UNstar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/head/imgs/cart_img.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/head/imgs/fdaylogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/head/imgs/fdaylogo.png -------------------------------------------------------------------------------- /src/main/webapp/img/alogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/alogo.png -------------------------------------------------------------------------------- /src/main/webapp/img/flogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/flogo.png -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/1/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/1/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/1/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/1/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/1/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/1/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/10/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/10/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/10/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/10/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/10/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/10/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/11/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/11/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/11/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/11/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/11/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/11/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/12/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/12/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/12/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/12/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/12/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/12/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/13/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/13/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/13/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/13/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/13/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/13/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/13/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/13/(4).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/14/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/14/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/14/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/14/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/14/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/14/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/15/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/15/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/16/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/16/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/16/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/16/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/16/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/16/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/17/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/17/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/18/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/18/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/18/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/18/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/18/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/18/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/19/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/19/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/19/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/19/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/19/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/19/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/19/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/19/(4).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/2/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/2/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/20/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/20/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/20/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/20/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/20/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/20/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/3/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/3/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/3/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/3/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/3/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/3/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/4/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/4/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/4/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/4/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/4/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/4/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/4/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/4/(4).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/5/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/5/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/5/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/5/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/5/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/5/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/6/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/6/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/6/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/6/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/6/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/6/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/6/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/6/(4).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/7/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/7/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/7/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/7/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/7/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/7/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/8/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/8/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/8/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/8/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/8/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/8/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/9/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/9/(1).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/9/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/9/(2).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/9/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/9/(3).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/9/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/9/(4).jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/f1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/f1.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/i1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/i1.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/i2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/i2.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/fruits/i3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/fruits/i3.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/index/h0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/index/h0.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/index/h1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/index/h1.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/index/h2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/index/h2.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/index/h3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/index/h3.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/index/h4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/index/h4.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/src/main/webapp/img/logo_login.png -------------------------------------------------------------------------------- /src/main/webapp/js/BSindex.js: -------------------------------------------------------------------------------- 1 | var unum=0; 2 | var fnum=0; 3 | function sss(t) 4 | { 5 | if(t=="u") 6 | { 7 | unum++; 8 | var u=document.getElementById("user_list"); 9 | if(unum%2==1) 10 | u.style.display="none"; 11 | else 12 | u.style.display="block"; 13 | } 14 | else 15 | { 16 | fnum++; 17 | var f=document.getElementById("fruit_list"); 18 | if(fnum%2==1) 19 | f.style.display="none"; 20 | else 21 | f.style.display="block"; 22 | } 23 | 24 | } 25 | 26 | function ox(s) 27 | { 28 | for(var i=0;i<7;i++) 29 | { 30 | var t="x"+i; 31 | 32 | if(s==t) 33 | { 34 | document.getElementById(t).style.display="block"; 35 | } 36 | else 37 | { 38 | document.getElementById(t).style.display="none"; 39 | } 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /src/main/webapp/js/reg.js: -------------------------------------------------------------------------------- 1 | function isEmail(){ 2 | var email=document.getElementById("email").value; 3 | var error=document.getElementById("isEmail"); 4 | var reg=/^[A-Za-z]+\w+(-|\.|)+\w*\@\w+((\.|-)\w+)*\.\w+/; 5 | if(email=="") 6 | error.innerText="邮箱不能为空!"; 7 | else 8 | { 9 | if(reg.test(email)) 10 | { 11 | document.getElementById("email").style.border="1px solid #669933"; 12 | error.innerText=""; 13 | return true; 14 | } 15 | else 16 | error.innerText="邮箱格式不正确!"; 17 | } 18 | document.getElementById("email").style.border="1px solid red"; 19 | return false; 20 | } 21 | 22 | function isPhone(){ 23 | var phone=document.getElementById("phone").value; 24 | var error=document.getElementById("isPhone"); 25 | var reg=/0?(13|14|15|18)[0-9]{9}$/; 26 | if(phone=="") 27 | error.innerText="手机不能为空!"; 28 | else 29 | { 30 | if(reg.test(phone)) 31 | { 32 | document.getElementById("phone").style.border="1px solid #669933"; 33 | error.innerText=""; 34 | return true; 35 | } 36 | else 37 | error.innerText="手机格式不正确!"; 38 | } 39 | document.getElementById("phone").style.border="1px solid red"; 40 | return false; 41 | } 42 | 43 | function isPwd1(){ 44 | var pwd1=document.getElementById("pwd1").value; 45 | var error=document.getElementById("isPwd1"); 46 | var reg=/^[A-Za-z0-9_-]+$/; 47 | if(pwd1=="") 48 | error.innerText="密码不能为空!"; 49 | else 50 | { 51 | if(reg.test(pwd1)) 52 | { 53 | document.getElementById("pwd1").style.border="1px solid #669933"; 54 | error.innerText=""; 55 | return true; 56 | } 57 | else 58 | error.innerText="密码格式不正确!"; 59 | } 60 | document.getElementById("pwd1").style.border="1px solid red"; 61 | return false; 62 | } 63 | 64 | function isPwd2(){ 65 | var pwd2=document.getElementById("pwd2").value; 66 | var pwd1=document.getElementById("pwd1").value; 67 | var error=document.getElementById("isPwd2"); 68 | if(pwd2=="") 69 | error.innerText="不能为空!"; 70 | else 71 | { 72 | if(pwd2==pwd1) 73 | { 74 | document.getElementById("pwd2").style.border="1px solid #669933"; 75 | error.innerText=""; 76 | return true; 77 | } 78 | else 79 | error.innerText="密码不一致!"; 80 | } 81 | document.getElementById("pwd2").style.border="1px solid red"; 82 | return false; 83 | } 84 | 85 | function isReg() 86 | { 87 | if(isEmail()&&isPhone()&&isPwd1()&&isPwd2()) 88 | document.getElementById("regForm").submit(); 89 | else 90 | alert("请完成注册单!"); 91 | } 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /src/main/webapp/js/sel.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by xi on 2015/10/16. 3 | */ 4 | -------------------------------------------------------------------------------- /src/main/webapp/login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 20:48 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 用户登陆 - 天天果园-水果网购首选品牌,水果,我们只挑有来头的! 13 | 14 | 15 | 16 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 |
30 | 31 |
32 |
33 | 会员登陆 34 |
35 |
36 |
/UserServlet?key=login method="post"> 37 |
38 |
邮箱/手机:
39 | 40 |
41 |
密码:
42 | 43 |
44 |
45 | 46 |
47 |
48 | 忘记密码 >> 49 |
50 |
51 | 52 |
53 |
54 | 55 |
56 |
57 |

还没有天天果园账号?

58 |

注册赠时令鲜果1份

59 |
60 |
61 | 立即注册 > 62 |
63 |
64 |
65 | 66 | 67 |
68 | 69 | 70 | -------------------------------------------------------------------------------- /src/main/webapp/reg.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 21:01 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 用户登陆 - 天天果园-水果网购首选品牌,水果,我们只挑有来头的! 13 | 14 | 15 | 16 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 |
30 | 31 |
32 |
33 | 注册会员 34 | 赠时令鲜果1份 35 |
36 |
37 |
/UserServlet?key=add method="post" id="regForm"> 38 |
39 |
邮箱:
40 | 41 |
42 |
43 |
手机号码:
44 | 45 |
46 |
47 |
密码:
48 | 49 |
50 |
51 |
确定密码:
52 | 53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 | 已经是天天果园会员? 65 |
66 |
67 | 立即登陆 > 68 |
69 |
70 |
71 | 72 |
73 | 74 | 75 | -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/FruitDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/FruitDao.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/FruitDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/FruitDaoImpl.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/ShopDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/ShopDao.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/ShopDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/ShopDaoImpl.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/UserDao.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/dao/UserDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/dao/UserDaoImpl.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/db/DBUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/db/DBUtils.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/service/FruitService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/service/FruitService.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/service/ShopService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/service/ShopService.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/service/UserService.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/servlet/BSServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/servlet/BSServlet.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/servlet/FruitServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/servlet/FruitServlet.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/servlet/ShopServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/servlet/ShopServlet.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/servlet/UserServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/servlet/UserServlet.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/servlet/selServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/servlet/selServlet.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/vo/Cart.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/vo/Cart.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/vo/Fruit.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/vo/Fruit.class -------------------------------------------------------------------------------- /target/classes/com/fruitDayDB/vo/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/classes/com/fruitDayDB/vo/User.class -------------------------------------------------------------------------------- /target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Administrator 3 | Build-Jdk: 1.8.0_77 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /target/m2e-wtp/web-resources/META-INF/maven/com.xi.x/x-test/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon Jan 09 18:19:30 CST 2017 3 | version=1.0-SNAPSHOT 4 | groupId=com.xi.x 5 | m2e.projectName=x-test 6 | m2e.projectLocation=C\:\\Users\\Administrator\\Desktop\\x-test 7 | artifactId=x-test 8 | -------------------------------------------------------------------------------- /target/m2e-wtp/web-resources/META-INF/maven/com.xi.x/x-test/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | com.xi.x 5 | x-test 6 | war 7 | 1.0-SNAPSHOT 8 | x-test Maven Webapp 9 | http://maven.apache.org 10 | 11 | 12 | junit 13 | junit 14 | 3.8.1 15 | test 16 | 17 | 18 | mysql 19 | mysql-connector-java 20 | 5.1.9 21 | 22 | 23 | 24 | javax.servlet 25 | javax.servlet-api 26 | 3.0.1 27 | provided 28 | 29 | 30 | javax.servlet.jsp 31 | jsp-api 32 | 2.2 33 | provided 34 | 35 | 36 | 37 | x-test 38 | 39 | 40 | maven-compiler-plugin 41 | 42 | 1.5 43 | 1.5 44 | UTF-8 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com\fruitDayDB\servlet\BSServlet.class 2 | -------------------------------------------------------------------------------- /target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\ShopDao.java 2 | G:\Github\x-test\src\main\java\com\fruitDayDB\servlet\ShopServlet.java 3 | G:\Github\x-test\src\main\java\com\fruitDayDB\servlet\selServlet.java 4 | G:\Github\x-test\src\main\java\com\fruitDayDB\service\FruitService.java 5 | G:\Github\x-test\src\main\java\com\fruitDayDB\service\UserService.java 6 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\FruitDaoImpl.java 7 | G:\Github\x-test\src\main\java\com\fruitDayDB\servlet\BSServlet.java 8 | G:\Github\x-test\src\main\java\com\fruitDayDB\vo\Fruit.java 9 | G:\Github\x-test\src\main\java\com\fruitDayDB\service\ShopService.java 10 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\ShopDaoImpl.java 11 | G:\Github\x-test\src\main\java\com\fruitDayDB\servlet\FruitServlet.java 12 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\UserDaoImpl.java 13 | G:\Github\x-test\src\main\java\com\fruitDayDB\db\DBUtils.java 14 | G:\Github\x-test\src\main\java\com\fruitDayDB\servlet\UserServlet.java 15 | G:\Github\x-test\src\main\java\com\fruitDayDB\vo\Cart.java 16 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\UserDao.java 17 | G:\Github\x-test\src\main\java\com\fruitDayDB\vo\User.java 18 | G:\Github\x-test\src\main\java\com\fruitDayDB\dao\FruitDao.java 19 | -------------------------------------------------------------------------------- /target/tomcat/conf/tomcat-users.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 26 | 27 | -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/BSindex_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/BSindex_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/footer/footer_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/footer/footer_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/fruit_005finfo_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/fruit_005finfo_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/head/head_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/head/head_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/index_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/index_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/login_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/login_jsp.class -------------------------------------------------------------------------------- /target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/showcart_jsp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/tomcat/work/localEngine/localhost/x-test/org/apache/jsp/showcart_jsp.class -------------------------------------------------------------------------------- /target/x-test/BSindex.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 |
43 | 44 |
45 |
46 |
47 |

欢迎进入天天果园后台管理系统

48 |
49 |
50 |
51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /target/x-test/BSindex1.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 | 43 |
44 | 45 |
46 |
47 |
48 |
    49 |
  • 用户名
  • 50 |
  •  
  • 51 |
  • 邮箱
  • 52 |
  •  
  • 53 |
  • 手机
  • 54 |
  •  
  • 55 |
  • 操作
  • 56 |
57 |
58 | 59 | <% 60 | List users=new ArrayList(); 61 | if(request.getAttribute("allusers")!=null) 62 | { 63 | users=(List)request.getAttribute("allusers"); 64 | 65 | for(User user:users) 66 | { 67 | out.print("
\n" + 68 | " \n" + 77 | "
"); 78 | } 79 | } 80 | 81 | 82 | %> 83 |
84 |
85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /target/x-test/BSindex2.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 28 | 29 |
30 |
用户管理
31 |
32 | 33 | 34 |
35 |
商品管理
36 |
37 | 38 | 39 | 40 |
41 |
42 | 43 |
44 | 45 | 46 |
47 |
48 |
49 |
50 |
51 | 用户名 : 52 | 53 |
54 | 55 |
56 | 邮箱 : 57 | 58 |
59 | 60 |
61 | 手机 : 62 | 63 |
64 | 65 |
66 | 密码 : 67 | 68 |
69 |
70 | 71 |
72 |
73 |
74 |
75 |
76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /target/x-test/BSindex3.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: xi 7 | Date: 2015/10/18 8 | Time: 9:15 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | <% 22 | String show="x0"; 23 | if(request.getAttribute("sky")!=null) 24 | show=(String)request.getAttribute("sky"); 25 | %> 26 | 27 | 28 |
29 | 32 |
33 |
用户管理
34 |
35 | 36 | 37 |
38 |
商品管理
39 |
40 | 41 | 42 | 43 |
44 |
45 |
46 | 47 | 48 |
49 |
50 | <% 51 | User user3=new User(1,"","","",""); 52 | if(request.getAttribute("user")!=null) 53 | user3=(User)request.getAttribute("user"); 54 | %> 55 |
56 |
method="post"> 57 |
58 | 用户名 : 59 | /> 60 |
61 | 62 |
63 | 邮箱 : 64 | /> 65 |
66 | 67 |
68 | 手机 : 69 | /> 70 |
71 | 72 |
73 | 密码 : 74 | /> 75 |
76 |
77 | 78 |
79 |
80 |
81 |
82 |
83 | 84 |
85 | 86 | 87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /target/x-test/BSindex4.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%@ page import="com.fruitDayDB.vo.Fruit" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: xi 8 | Date: 2015/10/18 9 | Time: 9:15 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | <% 23 | String show="x0"; 24 | if(request.getAttribute("sky")!=null) 25 | show=(String)request.getAttribute("sky"); 26 | %> 27 | 28 | 29 |
30 | 33 | 34 |
35 |
用户管理
36 |
37 | 38 | 39 |
40 |
商品管理
41 |
42 | 43 | 44 | 45 |
46 |
47 | 48 |
49 | 50 | 51 |
52 |
53 |
54 |
    55 |
  • 水果
  • 56 |
  •  
  • 57 |
  • 规格
  • 58 |
  •  
  • 59 |
  • 单价
  • 60 |
  •  
  • 61 |
  • 操作
  • 62 |
63 |
64 | <% 65 | List fruits=new ArrayList(); 66 | if(request.getAttribute("allfruit")!=null) { 67 | 68 | fruits = (List) request.getAttribute("allfruit"); 69 | 70 | for(Fruit fruit:fruits) { 71 | out.print("
\n" + 72 | " \n" + 81 | "
"); 82 | } 83 | } 84 | %> 85 | 86 | 87 |
88 |
89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /target/x-test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: xi 3 | Created-By: IntelliJ IDEA 4 | Build-Jdk: 1.8.0_111 5 | 6 | -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/FruitDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/FruitDao.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/FruitDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/FruitDaoImpl.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/ShopDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/ShopDao.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/ShopDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/ShopDaoImpl.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/UserDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/UserDao.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/dao/UserDaoImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/dao/UserDaoImpl.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/db/DBUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/db/DBUtils.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/service/FruitService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/service/FruitService.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/service/ShopService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/service/ShopService.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/service/UserService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/service/UserService.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/BSServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/BSServlet.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/FruitServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/FruitServlet.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/ShopServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/ShopServlet.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/UserServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/UserServlet.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/selServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/servlet/selServlet.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/vo/Cart.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/vo/Cart.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/vo/Fruit.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/vo/Fruit.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/classes/com/fruitDayDB/vo/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/classes/com/fruitDayDB/vo/User.class -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/commons-beanutils-1.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/commons-beanutils-1.7.0.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/commons-collections-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/commons-collections-3.2.1.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/commons-httpclient-3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/commons-httpclient-3.1.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/commons-lang-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/commons-lang-2.3.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/ezmorph-1.0.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/ezmorph-1.0.3.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/json-lib-2.2.3-jdk15.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/json-lib-2.2.3-jdk15.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/mysql-connector-java-5.1.36-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/mysql-connector-java-5.1.36-bin.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/lib/mysql-connector-java-5.1.9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/WEB-INF/lib/mysql-connector-java-5.1.9.jar -------------------------------------------------------------------------------- /target/x-test/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | fruitServlet 9 | com.fruitDayDB.servlet.FruitServlet 10 | 11 | 12 | shopServlet 13 | com.fruitDayDB.servlet.ShopServlet 14 | 15 | 16 | userServlet 17 | com.fruitDayDB.servlet.UserServlet 18 | 19 | 20 | selServlet 21 | com.fruitDayDB.servlet.selServlet 22 | 23 | 24 | bsServlet 25 | com.fruitDayDB.servlet.BSServlet 26 | 27 | 28 | fruitServlet 29 | /FruitServlet 30 | 31 | 32 | shopServlet 33 | /ShopServlet 34 | 35 | 36 | userServlet 37 | /UserServlet 38 | 39 | 40 | selServlet 41 | /SELServlet 42 | 43 | 44 | bsServlet 45 | /BSServlet 46 | 47 | 48 | -------------------------------------------------------------------------------- /target/x-test/css/BSindex.css: -------------------------------------------------------------------------------- 1 | .mean{ 2 | width: 15%; 3 | height: 100%; 4 | position: fixed; 5 | left: 0px;z-index: -1; 6 | border-right: 2px solid #DDD; 7 | } 8 | 9 | .logo{ 10 | width: 100%; 11 | height: 150px; 12 | padding-top: 50px; 13 | text-align:center; 14 | } 15 | .logo img{ 16 | width: 100px; 17 | height: 100px;} 18 | 19 | .mean_ul{ 20 | width: 100%; 21 | min-height:100px; 22 | display: block; 23 | } 24 | .mean_li{ 25 | width: 100%; 26 | height: 50px; 27 | line-height: 50px; 28 | text-align: center; 29 | letter-spacing:10px; 30 | font-size: 20px; 31 | color: #FFFFFF; 32 | background-color: #669900; 33 | border-right: 2px solid #669933; 34 | border-bottom: 2px solid #FFFFFF; 35 | } 36 | .mm{ 37 | width: 100%; 38 | height: 36px; 39 | color: #669933; 40 | line-height: 36px; 41 | text-align: center; 42 | 43 | } 44 | 45 | .g a,.mm a{color: #669933;} 46 | 47 | .gong{ 48 | width: 85%; 49 | min-height:100%; 50 | position: fixed; 51 | right: 0px; 52 | } 53 | 54 | .con{ 55 | width: 80%; 56 | height: 670px; 57 | margin: 0 auto; 58 | 59 | } 60 | 61 | /*全部用户*/ 62 | .tit{ 63 | width: 100%; 64 | height: 50px; 65 | padding-top: 50px; 66 | border-bottom: 1px dashed #669933; 67 | } 68 | 69 | .info{ 70 | width: 100%; 71 | height: 50px; 72 | border-bottom: 1px dashed #669933; 73 | } 74 | .info ul li,.tit ul li{ 75 | float:left; 76 | width: 230px; 77 | height: 50px; 78 | line-height: 50px; 79 | text-align: center; 80 | } 81 | 82 | .info ul li.i,.tit ul li.i{ 83 | width: 2px; 84 | height: 30px; 85 | margin-top:10px; 86 | background-color: #669933; 87 | } 88 | 89 | /*添加用户*//*用户信息*/ 90 | .form{ 91 | margin-top: 100px; 92 | width: 100%; 93 | height: 500px; 94 | position: relative; 95 | } 96 | 97 | .add{ 98 | width: 800px; 99 | height: 80px; 100 | line-height: 80px; 101 | color: #669933; 102 | } 103 | 104 | .add_tit{ 105 | width: 200px; 106 | height: 80px; 107 | line-height: 80px; 108 | text-align: right; 109 | display: inline-block; 110 | } 111 | .add_text input{ 112 | width: 200px; 113 | height: 30px; 114 | line-height: 30px; 115 | padding-left: 10px; 116 | font-size: 20px; 117 | border-bottom: 1px dashed #669933; 118 | } 119 | 120 | .add_sublmit{ 121 | width: 100px; 122 | height: 100px; 123 | line-height: 100px; 124 | text-align: center; 125 | border: 1px dashed #669933; 126 | border-radius: 50px; 127 | position: absolute; 128 | right: 200px; 129 | top: 90px; 130 | } 131 | 132 | .add_sublmit input{ 133 | width: 90px; 134 | height: 90px; 135 | border: 1px dashed #669933; 136 | border-radius: 45px; 137 | font-size: 18px; 138 | color: #669933; 139 | font-weight: bold; 140 | cursor: pointer; 141 | } 142 | 143 | /*水果*/ 144 | #t1,#t2{ 145 | width: 560px; 146 | } 147 | 148 | 149 | /*欢迎页面*/ 150 | .hello{ 151 | width: 100%; 152 | height: 200px; 153 | line-height: 200px; 154 | margin-top: 200px; 155 | text-align: center; 156 | color: #669933; 157 | } 158 | 159 | input.long{ 160 | width: 500px; 161 | } 162 | -------------------------------------------------------------------------------- /target/x-test/css/imgs.css: -------------------------------------------------------------------------------- 1 | .fruit_info{width: 1100px;height: 480px;margin: 0 auto;padding-top: 20px;} 2 | 3 | /*图片盒子*/ 4 | .img_box{width: 370px;height: 480px;text-align: left;float:left;margin-right: 20px;} 5 | .non{display: none;} 6 | .show{display:block ;} 7 | .show img{width: 370px;height: 370px;} 8 | 9 | /*图片跳转*/ 10 | .img_to{margin-top: 10px;} 11 | .img_to ul li{width: 85px;height:85px;float:left;margin-right: 10px;} 12 | .img_to ul li img{width: 85px;height:85px;cursor: pointer;} 13 | 14 | /*文字框*/ 15 | .fruit_text{width: 456px;height: 480px;float:left;padding-right: 20px;} 16 | .fruit_text hr{border: none;border-top: 1px dashed #DDD;} 17 | .fname{font-size: 30px;} 18 | .spec,.up,.fid{display: inline-block;} 19 | .up{margin-left: 20px;font-size: 20px;} 20 | .fid{margin-left: 20px;} 21 | #fform{margin-top: 20px;} 22 | /*数量*/ 23 | .Unum{text-align: center;width: 80px;height: 20px;border: 1px solid #C0C0C0;} 24 | 25 | #numl,#numr{display:inline-block;width: 25px;cursor: pointer;} 26 | #numl{float: left;border-right: 1px solid #C0C0C0;} 27 | #numr{float:right;border-left: 1px solid #C0C0C0;} 28 | 29 | /*加入购物车*/ 30 | .Uadd #cart{background-color: #669933;color: white;width:180px;height: 40px;font-size: 16px;cursor: pointer;font-family: 'Microsoft Yahei';} 31 | .Uadd{margin:20px 0 15px 0;width:180px;height: 40px;float:left;} 32 | .Unum,.Uaddress{display: inline-block;} 33 | .Unum{margin-left: 56px;} 34 | #sel{border: 1px solid #C0C0C0;} 35 | 36 | .fform{width: 100%;height: 136px;} 37 | .fform1{width: 100%;height: 30px;margin-bottom:20px;float:left;} 38 | /*关注*/ 39 | .starbutton{margin:20px 0 15px 20px;width:120px;height: 26px;float:left;} 40 | .starbutton #star{border:1px solid #669933;color: #669933;width:180px;height: 40px;font-size: 16px;cursor: pointer;font-family: 'Microsoft Yahei';} 41 | 42 | /*信息与提示*/ 43 | .finfo,.fpro{margin-top: 20px;} 44 | .finfo p,.fpro p{text-indent:2em;margin-top: 10px;} 45 | 46 | /*热卖产品*/ 47 | .fruit_hot{width: 212px;height: 478px;border: 1px solid #DDDDDD;float: left;padding: 0 10px 0 10px;} 48 | .ht_l{float: left;} 49 | .ht_r{float: right;} 50 | .hf_title{width: 100%;height: 20px;margin-top: 11px;} 51 | .hot_fruit{width: 200px;height: 100px;margin-top: 10px;border-bottom: 1px dashed #DDD;} 52 | .hf_img,.hf_img img{width: 85px;height:85px;} 53 | .hf_img{margin-right: 20px;} 54 | .hf_text{width: 100px;height: 85px;} 55 | .hf_img,.hf_text{float: left;} 56 | .hf_mon{margin-top: 5px;font-size: 12px;color: red;} 57 | .hf_name{font-size: 12px;} 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /target/x-test/css/index.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 1100px;margin: 0 auto;} 3 | /*浮动*/ 4 | .left{float: left;} 5 | .right{float: right;} 6 | /*文字*/ 7 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} 8 | 9 | /*imgs*/ 10 | .imgs .con{height:400px;position: relative;} 11 | .non{display: none;} 12 | .show{display:block ;} 13 | ul.imgul {width: 200px;height: 40px;text-align: center;position: absolute;right: 0px;bottom: 0px;} 14 | ul.imgul li {float: left;width: 20px;height: 20px;line-height: 20px;background-color: #444444;color: #FFFFFF;border-radius: 10px;margin: 10px 10px;cursor: pointer;} 15 | #l0{background-color: #669933;} 16 | 17 | /*fruit*/ 18 | .fruitboxs{margin:50px auto;height: 640px;} 19 | .fhead{width: 100%;height: 30px;margin-bottom: 10px;} 20 | .fhr{width: 100%; height: 2px;background-color: #669933;margin-bottom: 5px;} 21 | .fser{width: 4em;height:23px;line-height: 23px;float: left;font-size: 18px;color: #669933;} 22 | .fmore{width: 6em;height:23px;line-height: 23px;float: right;} 23 | 24 | .fruit_box{width: 200px;height: 300px;padding: 0 10px;float:left} 25 | .fruit_img{width: 200px;height:200px;} 26 | .fruit_img img{width: 200px;height: 200px;} 27 | .fruit_name{width: 100%;height:30px;color: #666666;font-size: 20px;line-height: 30px;} 28 | .fruit_num{width: 100%;height: 30px;line-height:30px;font-size:15px;} 29 | .fruit_mon{width: 100%;height:35px;line-height:35px;font-size:20px;color: #669933;} 30 | 31 | 32 | -------------------------------------------------------------------------------- /target/x-test/css/main.css: -------------------------------------------------------------------------------- 1 | body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,p,input,select,textarea,form{margin: 0; padding: 0;} 2 | body{font:14px/1.5 "宋体";} 3 | img{border:none;} 4 | ul,ol{list-style:none;} 5 | input,select,textarea{outline:none;border:none;background:none;} 6 | textarea{resize:none;} 7 | a{text-decoration:none;color: #666666;} 8 | /*清浮动*/ 9 | .clearfix:after{content:"";*display:block;*clear:both;} 10 | .clearfix{zoom:1;} 11 | 12 | /*选择*/ 13 | ::selection {background-color:#669900; color:#ffffff; text-shadow:none;} 14 | ::-moz-selection {background-color:#669900; color:#ffffff;text-shadow:none;} 15 | 16 | /*去掉a的下划线*/ 17 | a {blr:expression(this.onFocus=this.blur())} /*if IE*/ 18 | a {outline:none;}/*if 火狐等现代浏览器浏览器*/ 19 | 20 | div.noss{background-color: #669933;} 21 | 22 | /*文字*/ 23 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} -------------------------------------------------------------------------------- /target/x-test/css/rl.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | /*网页居中*/ 4 | .con{width: 990px;margin: 0 auto;} 5 | 6 | .box{width: 990px;height: 480px;margin-top: 20px;} 7 | .head{width: 970px;height: 29px;background-color: #669933;padding: 11px 0 0 20px;} 8 | .text{width: 600px;height: 360px;padding:30px 50px 50px 50px;background-color: #FBF8F1;float: left;} 9 | .jmp{width: 290px;height: 440px;background-color: #DCE6CD;float: left;} 10 | 11 | .h01{font-size: 20px;} 12 | .h02{font-size:14px;color: red;} 13 | .xhr{width: 100%;height: 2px;background-color: #669933;margin-top: 10px;} 14 | 15 | .text_box{margin-top: 20px;} 16 | .main{height: 30px;width: 100%;line-height: 30px;padding: 15px 0px;} 17 | .name{text-align: right;width: 100px;padding-right: 10px;float:left;} 18 | .main input{background-color: #FFF;float:left;width: 200px;height: 100%;border: 1px solid #CCC;padding-left: 8px;} 19 | .xbutton input{float:left;cursor:pointer;background-color: #669933;color: #FFFFFF;width: 105px;height: 33px;font-size: 16px;margin-left: 110px;margin-top: 15px;} 20 | 21 | .fpwd{float:left;margin-top: 15px;margin-left:15px;height: 33px;line-height:33px;width: 100px;} 22 | .fpwd a{color: #669933;} 23 | 24 | .jmpp{color: #669933;font-size: 16px;margin-top: 100px;text-align: center;font-weight: bold;} 25 | .jmpp p{margin-bottom: 10px;} 26 | .jmpa{margin:60px auto 0 auto;width: 112px;} 27 | .jmpa_l{margin:70px auto 0 auto;width: 112px;} 28 | .jmpa a,.jmpa_l a{display: block;width: 110px;height: 30px;line-height:30px;color: #669933;text-align: center;border: 1px solid #669933;border-radius: 6px;cursor:pointer;} 29 | 30 | /*foot_box*/ 31 | .foot_box{text-align: center;margin-top: 30px;} 32 | .foot_box p{margin-top: 5px;} 33 | .foot_box p.b{font-size: 18px;} 34 | -------------------------------------------------------------------------------- /target/x-test/css/sel.css: -------------------------------------------------------------------------------- 1 | .fruit_info{width: 1100px;margin: 0 auto;padding-top: 20px;min-height: 660px;} 2 | 3 | 4 | 5 | /*热卖产品*/ 6 | .fruit_hot{width: 120px;min-height: 170px;border: 1px solid #DDDDDD;padding: 0 10px 0 10px;float:left;} 7 | .ht_l{float: left;} 8 | .ht_r{float: right;} 9 | .hf_title{width: 100%;height: 20px;margin-top: 11px;} 10 | .hot_fruit{width: 120px;height: 170px;margin-top: 10px;border-bottom: 1px dashed #DDD;} 11 | .hf_img,.hf_img img{width: 120px;height:120px;} 12 | .hf_img{float:left;} 13 | .hf_text{width: 100%;height: 25px;float:left;line-height: 25px;} 14 | .hf_img,.hf_text{float: left;} 15 | .hf_mon{font-size: 20px;color: #669933;} 16 | .hf_name{font-size: 14px;} 17 | 18 | 19 | /*网页宽度1100px*/ 20 | .con{width: 1100px;margin: 0 auto;} 21 | 22 | /*搜索*/ 23 | .sel{width: 938px;min-height: 200px;float: right;padding: 0px 10px;} 24 | .selfruits{width: 896px;height: 120px;border: 1px solid #DDDDDD;padding: 20px 20px 0px 20px;margin-bottom: 20px;} 25 | .selfruits_li{border-bottom: 1px solid #DDDDDD;width: 100%;height:39px;line-height: 39px;} 26 | .selkey{display: inline-block;padding: 0px 5px;} 27 | .sgreen{ background-color: #669933;color: #fff;line-height: 20px;} 28 | #sort{border: none;} 29 | 30 | 31 | /*搜索列表*/ 32 | /*fruit*/ 33 | .fruitboxs{width: 938px;min-height: 200px;border-top:2px solid #669933;padding-top: 20px; } 34 | 35 | .fruit_box{width: 220px;height: 320px;float:left;border: 1px solid #FFF;position: relative;margin-right: 12px;} 36 | .fruit_box:hover{border: 1px solid #669933;width: 220px;height: 320px;} 37 | .fruit_img{width: 220px;height:220px;} 38 | .fruit_img img{width: 220px;height: 220px;} 39 | .fruit_name{width: 100%;height:30px;color: #666666;font-size: 20px;line-height: 30px;margin-left: 10px;} 40 | .fruit_spec{width: 100%;height: 30px;line-height:30px;font-size:15px;margin-left: 10px;} 41 | .fruit_up{width: 100%;height:35px;line-height:35px;font-size:20px;color: #669933;margin-left: 10px;} 42 | .flogo{position: absolute;right: 0px;bottom: 0px;} 43 | -------------------------------------------------------------------------------- /target/x-test/css/showcart.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 990px;margin: 0 auto;} 3 | 4 | .head{width: 970px;height: 29px;background-color: #669933;padding: 11px 0 0 20px;margin-top: 20px;} 5 | 6 | .shop_box{border: 1px solid #DDD;border-top: none;} 7 | .head_text_box{width: 958px;height: 76px;line-height: 76px;padding-left: 30px;} 8 | #head_text{font-size: 20px;} 9 | 10 | .shop_title{width:988px;height:50px;line-height:50px;background-color: #EEE;} 11 | .shop_title div,.shop div{float: left;text-align: center;} 12 | 13 | #st1,.s1{width: 300px;} 14 | #st2,.s2{width: 100px;} 15 | #st3,.s3{width: 100px;} 16 | #st4,.s4{width: 150px;} 17 | #st5,.s5{width: 150px;} 18 | #st6,.s6{width: 188px;} 19 | 20 | .shop{width:988px;height:120px;margin-top: 20px;line-height: 120px;border-bottom: 1px solid #EEE;} 21 | .s1 img{width: 85px;height: 85px;} 22 | .s1 .s1_img{float: left;margin-top: 20px;margin-left: 30px;width: 85px;height: 85px;margin-right: 15px;} 23 | .s1 .s1_tetx{float:left} 24 | 25 | .shop_footer{width: 988px;height: 50px;background-color: #EEE;} 26 | /*数量*/ 27 | .Unum{text-align: center;width: 80px;height: 20px;line-height:20px;border: 1px solid #C0C0C0;margin-left: 34px;margin-top: 48px;} 28 | .numl,.numr{display:inline-block;width: 25px;height:20px;cursor: pointer;} 29 | .numl{float: left;border-right: 1px solid #C0C0C0;} 30 | .numr{float:right;border-left: 1px solid #C0C0C0;} 31 | 32 | .sum_mon{height: 150px;text-align: right;float: right;width: 100%;} 33 | .money{width:100%;height: 45px;line-height: 45px;margin-top: 20px;float: right;margin-bottom: 10px;} 34 | .money span{font-size: 25px;color: red;} 35 | #addmon{background-color: #669933;color: white;width: 150px;height: 36px;float:right;} 36 | 37 | /*foot_box*/ 38 | .foot_box{text-align: center;margin-top: 30px;} 39 | .foot_box p{margin-top: 5px;} 40 | .foot_box p.b{font-size: 18px;} 41 | -------------------------------------------------------------------------------- /target/x-test/footer/css/footer.css: -------------------------------------------------------------------------------- 1 | /*footer*/ 2 | .footer{width: 100%;height:82px;;background-color: #669933;margin-top: 100px;} 3 | .foot_ul{width: 1100px;margin: 0 auto;} 4 | .foot_ul li{float:left;margin-top: 15px;padding-right: 48px;} 5 | 6 | /*foot_box*/ 7 | .foot_box{text-align: center;margin-top: 30px;} 8 | .foot_box p{margin-top: 5px;} 9 | .foot_box p.b{font-size: 18px;} 10 | -------------------------------------------------------------------------------- /target/x-test/footer/footer.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 20:17 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 15 | 24 | 25 |
26 |
27 |

版权所有 © 2015版权所有 © 2015 保留所有权利 保留所有权利 | 沪ICP备12042163 | 站长统计

28 |

天天果园 鲜果网购

29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /target/x-test/footer/imgs/foot_img/foot_a1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/footer/imgs/foot_img/foot_a1.jpg -------------------------------------------------------------------------------- /target/x-test/footer/imgs/foot_img/foot_a2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/footer/imgs/foot_img/foot_a2.jpg -------------------------------------------------------------------------------- /target/x-test/footer/imgs/foot_img/foot_a3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/footer/imgs/foot_img/foot_a3.jpg -------------------------------------------------------------------------------- /target/x-test/footer/imgs/foot_img/foot_a4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/footer/imgs/foot_img/foot_a4.jpg -------------------------------------------------------------------------------- /target/x-test/footer/imgs/foot_img/foot_a5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/footer/imgs/foot_img/foot_a5.jpg -------------------------------------------------------------------------------- /target/x-test/head/css/head.css: -------------------------------------------------------------------------------- 1 | /*网页宽度1100px*/ 2 | .con{width: 1100px;margin: 0 auto;} 3 | /*浮动*/ 4 | .head_left{float: left;width: 200px;height: 30px;} 5 | .head_right{float: right;width: 300px;height: 30px;} 6 | .noLink{text-align: right;} 7 | /*文字*/ 8 | body{color: #666666;font-size: 14px;font-family: arial,"Hiragino Sans GB",sans-serif;} 9 | /*网页头部*/ 10 | .top{height: 30px;line-height: 30px;border-bottom: 1px solid #DEDEDE;} 11 | /*logo*/ 12 | .head{height: 100px;} 13 | .logo{width: 340px;float: left;margin-top: 15px;} 14 | /*搜索框*/ 15 | .ser{width: 451px;float: left;margin-top: 30px;} 16 | #ser_border{float:left; width:340px; height:40px; line-height:40px;padding-left:11px; background:none; text-align:left; font-size:14px;border: 2px solid #669933;} 17 | #ser_button{floa:right;background-color: #669933;border:0; width:96px; height:40px;line-height:40px;cursor:pointer;color:white;font-size: 20px;} 18 | /*关注*/ 19 | .username{width: 200px;height: 30px;float:left;text-align: center;} 20 | .star{width: 80px;height: 30px;float: left;line-height: 30px;padding-left: 8px;} 21 | .star_img{margin-top:6px;width: 18px;height:18px;background: url(../imgs/ISstar.svg);background-size: 18px 18px;float:left;} 22 | .toStar{width: 60px;height: 30px;float:right;text-align: right;} 23 | /*购物车*/ 24 | .shopcart{width: 130px;height: 16px;border: 1px solid #DFDFDF;float:right;margin-top: 30px;padding: 11px 0px 11px 20px;} 25 | .cart_img{width: 18px;height: 16px;background-image: url(../imgs/cart_img.svg);background-size: 18px 16px;float:left;} 26 | .cart{height: 16px;line-height:16px;float:left;margin-left: 5px;position:relative;} 27 | .cart_to{width:18px;height:16px;font: 400 16px/16px simsun;margin-left: 15px;float:left;} 28 | .cart_num{width: 18px;height: 18px;line-height:18px;background: #669933;position: absolute;right: -18px;top: -18px;border-radius:10px 10px 8px 0px;color: white;text-align: center;} 29 | 30 | /*head_menu*/ 31 | .head_menu{width:100%;height: 45px;background: #F4ECDC;} 32 | .hmenu_ul li{float: left;} 33 | .hmenu_ul li a{display: block;width: 150px;height: 45px;line-height: 45px;color: #669933;font-size: 18px;font-weight: bold;text-align:center;} 34 | .hmenu_ul li a:hover{background-color: #EFE5CD;} 35 | -------------------------------------------------------------------------------- /target/x-test/head/css/main.css: -------------------------------------------------------------------------------- 1 | body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,p,input,select,textarea,form{margin: 0; padding: 0;} 2 | body{font:14px/1.5 "宋体";} 3 | img{border:none;} 4 | ul,ol{list-style:none;} 5 | input,select,textarea{outline:none;border:none;background:none;} 6 | textarea{resize:none;} 7 | a{text-decoration:none;color: #666666;} 8 | /*清浮动*/ 9 | .clearfix:after{content:"";*display:block;*clear:both;} 10 | .clearfix{zoom:1;} 11 | 12 | /*选择*/ 13 | ::selection {background-color:#669900; color:#ffffff; text-shadow:none;} 14 | ::-moz-selection {background-color:#669900; color:#ffffff;text-shadow:none;} 15 | 16 | /*去掉a的下划线*/ 17 | a {blr:expression(this.onFocus=this.blur())} /*if IE*/ 18 | a {outline:none;}/*if 火狐等现代浏览器浏览器*/ 19 | 20 | div.noss{background-color: #669933;} 21 | -------------------------------------------------------------------------------- /target/x-test/head/head.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.fruitDayDB.vo.User" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: xi 5 | Date: 2015/10/3 6 | Time: 19:39 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 13 | 14 | 15 | <% 16 | User user=new User(0,"","","",""); 17 | int num=0; 18 | if(session.getAttribute("user")!=null) 19 | user=(User)session.getAttribute("user"); 20 | if(request.getAttribute("num")!=null) 21 | num=(Integer)request.getAttribute("num"); 22 | %> 23 | 24 | 25 | 26 |
27 |
28 | 29 |
您好,欢迎来到天天果园!
30 | 31 | <% 32 | if(user.getId()==0) 33 | out.print("
\n" + 34 | " [ 登陆 ]  \n" + 35 | " [ 注册有惊喜 ]\n" + 36 | "
"); 37 | else { 38 | out.print("
\n" + 39 | " \n" + 40 | "
\n" + 41 | "
\n" + 42 | "
\n" + 43 | "
我的关注\n" + 44 | "
\n" + 45 | "
\n" + 46 | "
"); 47 | } 48 | %> 49 | 50 |
51 |
52 | 53 | <%--网站图标、搜索框、购物车--%> 54 |
55 |
56 | 57 | 62 | 63 |
64 |
/SELServlet?selkey=ser method="post" > 65 | 66 | 67 |
68 |
69 | 70 |
71 |
72 | 76 |
>
77 |
78 | 79 |
80 |
81 | 82 | <%--网站菜单--%> 83 |
84 |
85 | 91 |
92 |
93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /target/x-test/head/imgs/ISstar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /target/x-test/head/imgs/UNstar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /target/x-test/head/imgs/cart_img.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /target/x-test/head/imgs/fdaylogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/head/imgs/fdaylogo.png -------------------------------------------------------------------------------- /target/x-test/img/alogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/alogo.png -------------------------------------------------------------------------------- /target/x-test/img/flogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/flogo.png -------------------------------------------------------------------------------- /target/x-test/img/fruits/1/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/1/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/1/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/1/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/1/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/1/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/10/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/10/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/10/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/10/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/10/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/10/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/11/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/11/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/11/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/11/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/11/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/11/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/12/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/12/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/12/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/12/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/12/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/12/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/13/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/13/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/13/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/13/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/13/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/13/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/13/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/13/(4).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/14/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/14/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/14/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/14/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/14/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/14/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/15/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/15/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/16/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/16/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/16/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/16/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/16/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/16/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/17/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/17/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/18/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/18/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/18/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/18/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/18/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/18/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/19/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/19/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/19/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/19/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/19/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/19/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/19/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/19/(4).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/2/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/2/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/20/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/20/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/20/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/20/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/20/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/20/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/3/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/3/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/3/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/3/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/3/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/3/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/4/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/4/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/4/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/4/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/4/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/4/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/4/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/4/(4).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/5/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/5/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/5/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/5/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/5/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/5/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/6/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/6/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/6/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/6/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/6/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/6/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/6/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/6/(4).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/7/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/7/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/7/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/7/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/7/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/7/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/8/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/8/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/8/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/8/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/8/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/8/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/9/(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/9/(1).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/9/(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/9/(2).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/9/(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/9/(3).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/9/(4).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/9/(4).jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/f1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/f1.jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/i1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/i1.jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/i2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/i2.jpg -------------------------------------------------------------------------------- /target/x-test/img/fruits/i3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/fruits/i3.jpg -------------------------------------------------------------------------------- /target/x-test/img/index/h0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/index/h0.jpg -------------------------------------------------------------------------------- /target/x-test/img/index/h1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/index/h1.jpg -------------------------------------------------------------------------------- /target/x-test/img/index/h2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/index/h2.jpg -------------------------------------------------------------------------------- /target/x-test/img/index/h3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/index/h3.jpg -------------------------------------------------------------------------------- /target/x-test/img/index/h4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/index/h4.jpg -------------------------------------------------------------------------------- /target/x-test/img/logo_login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Rhan2020/java-fruitsday/ece8b55eb419f0b68be43cd108a071a10fc9beec/target/x-test/img/logo_login.png -------------------------------------------------------------------------------- /target/x-test/js/BSindex.js: -------------------------------------------------------------------------------- 1 | var unum=0; 2 | var fnum=0; 3 | function sss(t) 4 | { 5 | if(t=="u") 6 | { 7 | unum++; 8 | var u=document.getElementById("user_list"); 9 | if(unum%2==1) 10 | u.style.display="none"; 11 | else 12 | u.style.display="block"; 13 | } 14 | else 15 | { 16 | fnum++; 17 | var f=document.getElementById("fruit_list"); 18 | if(fnum%2==1) 19 | f.style.display="none"; 20 | else 21 | f.style.display="block"; 22 | } 23 | 24 | } 25 | 26 | function ox(s) 27 | { 28 | for(var i=0;i<7;i++) 29 | { 30 | var t="x"+i; 31 | 32 | if(s==t) 33 | { 34 | document.getElementById(t).style.display="block"; 35 | } 36 | else 37 | { 38 | document.getElementById(t).style.display="none"; 39 | } 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /target/x-test/js/reg.js: -------------------------------------------------------------------------------- 1 | function isEmail(){ 2 | var email=document.getElementById("email").value; 3 | var error=document.getElementById("isEmail"); 4 | var reg=/^[A-Za-z]+\w+(-|\.|)+\w*\@\w+((\.|-)\w+)*\.\w+/; 5 | if(email=="") 6 | error.innerText="邮箱不能为空!"; 7 | else 8 | { 9 | if(reg.test(email)) 10 | { 11 | document.getElementById("email").style.border="1px solid #669933"; 12 | error.innerText=""; 13 | return true; 14 | } 15 | else 16 | error.innerText="邮箱格式不正确!"; 17 | } 18 | document.getElementById("email").style.border="1px solid red"; 19 | return false; 20 | } 21 | 22 | function isPhone(){ 23 | var phone=document.getElementById("phone").value; 24 | var error=document.getElementById("isPhone"); 25 | var reg=/0?(13|14|15|18)[0-9]{9}$/; 26 | if(phone=="") 27 | error.innerText="手机不能为空!"; 28 | else 29 | { 30 | if(reg.test(phone)) 31 | { 32 | document.getElementById("phone").style.border="1px solid #669933"; 33 | error.innerText=""; 34 | return true; 35 | } 36 | else 37 | error.innerText="手机格式不正确!"; 38 | } 39 | document.getElementById("phone").style.border="1px solid red"; 40 | return false; 41 | } 42 | 43 | function isPwd1(){ 44 | var pwd1=document.getElementById("pwd1").value; 45 | var error=document.getElementById("isPwd1"); 46 | var reg=/^[A-Za-z0-9_-]+$/; 47 | if(pwd1=="") 48 | error.innerText="密码不能为空!"; 49 | else 50 | { 51 | if(reg.test(pwd1)) 52 | { 53 | document.getElementById("pwd1").style.border="1px solid #669933"; 54 | error.innerText=""; 55 | return true; 56 | } 57 | else 58 | error.innerText="密码格式不正确!"; 59 | } 60 | document.getElementById("pwd1").style.border="1px solid red"; 61 | return false; 62 | } 63 | 64 | function isPwd2(){ 65 | var pwd2=document.getElementById("pwd2").value; 66 | var pwd1=document.getElementById("pwd1").value; 67 | var error=document.getElementById("isPwd2"); 68 | if(pwd2=="") 69 | error.innerText="不能为空!"; 70 | else 71 | { 72 | if(pwd2==pwd1) 73 | { 74 | document.getElementById("pwd2").style.border="1px solid #669933"; 75 | error.innerText=""; 76 | return true; 77 | } 78 | else 79 | error.innerText="密码不一致!"; 80 | } 81 | document.getElementById("pwd2").style.border="1px solid red"; 82 | return false; 83 | } 84 | 85 | function isReg() 86 | { 87 | if(isEmail()&&isPhone()&&isPwd1()&&isPwd2()) 88 | document.getElementById("regForm").submit(); 89 | else 90 | alert("请完成注册单!"); 91 | } 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /target/x-test/js/sel.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by xi on 2015/10/16. 3 | */ 4 | -------------------------------------------------------------------------------- /target/x-test/login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 20:48 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 用户登陆 - 天天果园-水果网购首选品牌,水果,我们只挑有来头的! 13 | 14 | 15 | 16 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 |
30 | 31 |
32 |
33 | 会员登陆 34 |
35 |
36 |
/UserServlet?key=login method="post"> 37 |
38 |
邮箱/手机:
39 | 40 |
41 |
密码:
42 | 43 |
44 |
45 | 46 |
47 |
48 | 忘记密码 >> 49 |
50 |
51 | 52 |
53 |
54 | 55 |
56 |
57 |

还没有天天果园账号?

58 |

注册赠时令鲜果1份

59 |
60 |
61 | 立即注册 > 62 |
63 |
64 |
65 | 66 | 67 |
68 | 69 | 70 | -------------------------------------------------------------------------------- /target/x-test/reg.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: xi 4 | Date: 2015/10/3 5 | Time: 21:01 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 用户登陆 - 天天果园-水果网购首选品牌,水果,我们只挑有来头的! 13 | 14 | 15 | 16 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 |
30 | 31 |
32 |
33 | 注册会员 34 | 赠时令鲜果1份 35 |
36 |
37 |
/UserServlet?key=add method="post" id="regForm"> 38 |
39 |
邮箱:
40 | 41 |
42 |
43 |
手机号码:
44 | 45 |
46 |
47 |
密码:
48 | 49 |
50 |
51 |
确定密码:
52 | 53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 |
61 | 62 |
63 |
64 | 已经是天天果园会员? 65 |
66 |
67 | 立即登陆 > 68 |
69 |
70 |
71 | 72 |
73 | 74 | 75 | --------------------------------------------------------------------------------