下載
下載下載後請將裡面的資料庫檔案「estore.db」複製到方便存取且不會變更的資料夾目錄,而專案目錄中的檔案可複蓋原有專案的目前錄。也就是說,可以先建立1個名為「estore」的專案然後再用壓縮檔的檔案複蓋。
接下來請找到WEB-INF資料夾,修改裡面的applicationContext.xml檔案後即可啟動專案
1 | <property name= "url" ><value>jdbc:sqlite:改成你的資料庫路徑</value></property> |
資料設計
code_product_category | 產品分類代碼 |
code_product_status | 訂單狀態代碼 |
companys | 公司資料簡介 |
order_detail | 商品細節資料 |
order_main | 訂單主檔 |
paramater | 系統參數 |
products | 商品主檔 |
products_pics | 商品照片 |
sys_server | 伺服器列表 |
user_rules | 使用者權限 |
users | 使用者 |
第1個網頁
請找到Main.jsp將以下內容複製並取代原有檔案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 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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | <%@ page contentType= "text/html; charset=UTF-8" pageEncoding= "UTF-8" %> <%@ taglib uri= "http://www.opensymphony.com/sitemesh/decorator" prefix= "decorator" %> <%@ taglib prefix= "s" uri= "/struts-tags" %> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/" ; %> <!DOCTYPE html> <!--[ if IE 8 ]><html class = "ie8" ><![endif]--> <!--[ if IE 9 ]><html class = "ie9" ><![endif]--> <!--[ if (gt IE 9 )|!(IE)]><!--> <html lang= "zh-tw" class = "" style= "overflow-x: hidden;" > <!--<![endif]--> <head> <base href= "<%=basePath%>" > <!--[ if IE]><meta http-equiv= "X-UA-Compatible" content= "IE=edge,chrome=1" ><![endif]--> <meta charset= "UTF-8" > <title><c:forEach items= "${paramater}" var= "c" > <c: if test= "${c.company eq param.store && c.name eq 'site_name'}" >${c.value}</c: if > </c:forEach></title> <meta name= "viewport" content= "width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" > <link rel= "stylesheet" href= "lib/swiper/css/swiper.min.css" > <!--[ if IE 8 ]><link rel= "stylesheet" href= "lib/swiper-2.7.6/idangerous.swiper.css" ><![endif]--> <link type= "text/css" rel= "stylesheet" href= "fonts/shipping-font/styles.css" > <link rel= "stylesheet" href= "styles/css/styles.css" > <link rel= "stylesheet" href= "styles/css/theme-common.css" id= "theme" > <!--[ if (gte IE 6 )&(lte IE 8 )]><script type= "text/javascript" src= "lib/selectivizr-min.js" ></script><![endif]--> <script src= "lib/modernizr.custom.04294.js" ></script> <!--[ if IE 8 ]><script src= "lib/respond/respond.min.js" ></script><![endif]--> <!--2gis--> <!--<link href= 'http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel= 'stylesheet' type= 'text/css' >--> </head> <body> <div class = "preloader-block" > <img src= "img/preloader.gif" alt= "" > </div> <div class = "bx-panel-dummy" ></div> <div class = "landing-wrap" id= "landing-wrap" > <div class = "wd-cut" > <%@ include file= "header.jsp" %> <div class = "main-section" > <c: if test= "${body_banner!=null}" ><%@ include file= "banner.jsp" %></c: if > <div style= "height: 174px;" ></div> <%@ include file= "category.jsp" %> <c:forEach items= "${paramater}" var= "c" > <c: if test= "${c.company eq param.store && c.name eq 'site_name'}" > <c: if test= "${c.body_discount!=null}" ><%@ include file= "promotions.jsp" %></c: if > </c: if > </c:forEach> </div> <%@ include file= "footer.jsp" %> </div> <%@ include file= "tmpchart.jsp" %> <!--Load libs--> <script>window.jQuery|| document.write( '<script src="lib/jquery/jquery-1.11.3.min.js"><\/script>' ) </script> <!-- Load Bootstrap and bootstrap plugins --> <script src= "lib/bootstrap/dist/js/bootstrap.min.js" ></script> <script src= "lib/bootstrap-select/js/bootstrap-select.min.js" ></script> <script src= "lib/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js" ></script> <script src= "lib/bootstrap-filestyle.min.js" ></script> <!-- Load some plugins --> <!--[ if (gt IE 8 )|!(IE)]><!--> <script src= "lib/swiper/js/swiper.jquery.min.js" ></script> <!--<![endif]--> <!--[ if IE 8 ]><script src= "lib/swiper-2.7.6/idangerous.swiper.min.js" ></script><![endif]--> <script src= "lib/wow/wow.min.js" ></script> <script src= "lib/sly.min.js" ></script> <script src= "lib/countdown/jquery.countdown.min.js" ></script> <script src= "lib/device.js" ></script> <script src= "lib/jquery.parallax-scroll.js" ></script> <script src= "lib/intlTelInput/intlTelInput.min.js" ></script> <script src= "lib/jquery.scrollTo.min.js" ></script> <script src= "lib/jquery.magnify.js" ></script> <script src= "lib/jquery.easing.1.3.js" ></script> <script src= "lib/videoBG/videoBG.js" ></script> <script src= "lib/dragula/dragula.min.js" ></script> <script src= "lib/jquery.cookie.js" ></script> <!--Load scripts--> <script src= "lib/calctable.min.js" ></script> <!-- You can find global settings here --> <script src= "js/globals.js" ></script> <script src= "js/util-functions.js" ></script> <script src= "js/inits/init-settings.js" ></script> <script src= "js/inits/init-checkBrowser.js" ></script> <script src= "js/inits/init-video.js" ></script> <script src= "js/inits/init-youtube.js" ></script> <script src= "js/inits/init-bigSlider.js" ></script> <script src= "js/inits/init-clientSlider.js" ></script> <script src= "js/inits/init-affix.js" ></script> <script src= "js/inits/init-mainMenu.js" ></script> <script src= "js/inits/init-categories.js" ></script> <script src= "js/inits/init-phoneMasking.js" ></script> <script src= "js/inits/init-validation.js" ></script> <script src= "js/inits/init-promos.js" ></script> <script src= "js/inits/init-numberAnimation.js" ></script> <script src= "js/inits/init-numberInputs.js" ></script> <script src= "js/inits/init-cart.js" ></script> <script src= "js/inits/init-modalDetailed.js" ></script> <script src= "js/entry.js" ></script> <script> var baseUrl = '' ; if (typeof SITE_TEMPLATE_PATH !== "undefined" ) baseUrl = SITE_TEMPLATE_PATH + "/" + baseUrl; $(function() { ls.init.phoneMasking(document); $( '.form-tel' ).intlTelInput( "loadUtils" , baseUrl + 'lib/intlTelInput/utils.js' ); }) </script> <div class = "overlay overlay-simplegenie" id= "modal_detailed" aria-hidden= "true" data-backdrop= "true" data-keyboard= "true" tabindex= "-1" > <button type= "button" class = "overlay-close hidden-xs" data-dismiss= "modal" >&# 215 ;</button> <div class = "modal-content detail-popup" > <!-- content added dynamically --> </div> </div> <c: if test= "${param.set eq 'true'}" > <a href= "#" id= "sett-page" class = "glyphicon glyphicon-cog hyde" data-toggle= "modal" data-target= "#modal_settings" ></a> <%@ include file= "setting.jsp" %> </c: if > <%@ include file= "cartList.jsp" %> </div> </body> </html> |
沒有留言:
張貼留言