code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <script type="text/javascript" language="javascript" src="<ls:templateResource item='/common/js/randomimage.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <title>激活LegendShop</title> </head> <body> <form action="<ls:url address='/admin/license/postUpgrade'/>" method="POST" onsubmit="return validateRandNum('${pageContext.request.contextPath}');"> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value='<fmt:message key="randomimage.errors.required"/>'/> <input type="hidden" id="charactors4" name="charactors4" value='<ls:i18n key="randomimage.charactors.required" length="6"/>'/> <input type="hidden" id="errorImage" name="errorImage" value='<fmt:message key="error.image.validation"/>'/> <table> <tr><td>激活码:</td><td><input type="text" id="liensekey" name="liensekey"/><input name="submit" type="submit" value='确认' class="s" tabindex="4"></td></tr> <tr><td>验证码:</td><td><input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="7" size="7" tabindex="3" ></td></tr> <tr><td></td><td> <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>" /> &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a> </td></tr> </table> <c:if test="${postUpgrade}"> 升级成功,请关闭本页! </c:if> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/dashboard/upgrade.jsp
Java Server Pages
oos
2,129
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>Cash列表</title> </head> <body> <form action="<ls:url address='/admin/cash/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/cash/query'/>">Cash</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${cash.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建Cash" onclick='window.location="<ls:url address='/admin/cash/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/cash/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="CashId" property="cashId"></display:column> <display:column title="UserId" property="userId"></display:column> <display:column title="UserName" property="userName"></display:column> <display:column title="Code" property="code"></display:column> <display:column title="ShopId" property="shopId"></display:column> <display:column title="ProdId" property="prodId"></display:column> <display:column title="PartnerId" property="partnerId"></display:column> <display:column title="SubId" property="subId"></display:column> <display:column title="Detail" property="detail"></display:column> <display:column title="Money" property="money"></display:column> <display:column title="Status" property="status"></display:column> <display:column title="BeginTime" property="beginTime"></display:column> <display:column title="EndTime" property="endTime"></display:column> <display:column title="Ip" property="ip"></display:column> <display:column title="CreateTime" property="createTime"></display:column> <display:column title="Action" media="html"> <a href="<ls:url address='/admin/cash/load/${item.cashId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.cashId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/cash/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/cash/cashList.jsp
Java Server Pages
oos
4,193
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建Cash</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="<ls:url address='/admin/cash/save'/>" method="post" id="form1"> <input id="cashId" name="cashId" value="${cash.cashId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建Cash </div> </th> </tr> </thead> <tr> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${cash.userId}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${cash.userName}" /></p> </td> </tr> <tr> <td> <div align="center">Code: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="code" id="code" value="${cash.code}" /></p> </td> </tr> <tr> <td> <div align="center">ShopId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="shopId" id="shopId" value="${cash.shopId}" /></p> </td> </tr> <tr> <td> <div align="center">ProdId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="prodId" id="prodId" value="${cash.prodId}" /></p> </td> </tr> <tr> <td> <div align="center">PartnerId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="partnerId" id="partnerId" value="${cash.partnerId}" /></p> </td> </tr> <tr> <td> <div align="center">SubId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="subId" id="subId" value="${cash.subId}" /></p> </td> </tr> <tr> <td> <div align="center">Detail: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="detail" id="detail" value="${cash.detail}" /></p> </td> </tr> <tr> <td> <div align="center">Money: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="money" id="money" value="${cash.money}" /></p> </td> </tr> <tr> <td> <div align="center">Status: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="status" id="status" value="${cash.status}" /></p> </td> </tr> <tr> <td> <div align="center">BeginTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="beginTime" id="beginTime" value="${cash.beginTime}" /></p> </td> </tr> <tr> <td> <div align="center">EndTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="endTime" id="endTime" value="${cash.endTime}" /></p> </td> </tr> <tr> <td> <div align="center">Ip: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="ip" id="ip" value="${cash.ip}" /></p> </td> </tr> <tr> <td> <div align="center">CreateTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="createTime" id="createTime" value="${cash.createTime}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/cash/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/cash/cash.jsp
Java Server Pages
oos
6,127
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建公告</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { title: { required: true, minlength: 2 }, msg: "required" }, messages: { title: { required: "请输入标题", minlength: "请认真输入标题" }, msg: { required: "请输入链接地址" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/pub/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}">公告管理</a> &raquo; 创建公告</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建公告 </div> </th> </tr> </thead> <tr> <td> <div align="right">标题 <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="title" id="title" value="${bean.title}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">链接地址<font color="ff0000">*</font></div> </td> <td> <p> <input name="msg" id="msg" value="${bean.msg}" size="80"/> </p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/pub/pub.jsp
Java Server Pages
oos
3,795
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>公告列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}">公告管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 所属商城 <input type="text" name="userName" maxlength="50" value="${bean.userName}" /> <input type="submit" value="搜索"/> </auth:auth> <input type="button" value="创建公告" onclick='window.location="${pageContext.request.contextPath}/admin/pub/load${applicationScope.WEB_SUFFIX}"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/pub/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width: 100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="标题" property="title"></display:column> <display:column title="链接地址"><a href="${item.msg}" target="_blank">${item.msg}</a></display:column> <display:column title="日期" property="date" format="{0,date,yyyy-MM-dd HH:mm}" sortable="true"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城" property="userName" sortable="true"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/pub/load/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 出现在商城首页,用于商家发布公告信息<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/pub/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/pub/pubList.jsp
Java Server Pages
oos
4,265
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>DeliveryType列表</title> </head> <body> <form action="<ls:url address='/admin/deliveryType/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/deliveryType/query'/>">配送方式</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${deliveryType.userName}" /> </auth:auth> 配送方式&nbsp;<input type="text" name="name" maxlength="50" value="${deliveryType.name}" /> <input type="submit" value="搜索"/> <input type="button" value="创建配送方式" onclick='window.location="<ls:url address='/admin/deliveryType/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/deliveryType/query" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序">${item_rowNum}</display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="配送方式" property="name"></display:column> <display:column title="操作" media="html"> <a href="<ls:url address='/admin/deliveryType/load/${item.dvyTypeId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.dvyTypeId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/deliveryType/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/deliveryType/deliveryTypeList.jsp
Java Server Pages
oos
3,574
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <html> <head> <title>创建DeliveryType</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { name: { required: true, }, dvyId: { required: true, } }, messages: { name: { required: '<fmt:message key="name.required"/>', }, dvyId: { required: '<fmt:message key="deliverytype.dvyid.required"/>', } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/deliveryType/query'/>">配送方式</a> </td> </tr> </thead> </table> <form action="<ls:url address='/admin/deliveryType/save'/>" method="post" id="form1"> <input id="dvyTypeId" name="dvyTypeId" value="${deliveryType.dvyTypeId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> <c:choose> <c:when test="${not empty deliveryType}">修改配送方式</c:when> <c:otherwise>创建配送方式</c:otherwise> </c:choose> </div> </th> </tr> </thead> <tr> <td> <div align="center">配送名称: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="name" id="name" value="${deliveryType.name}" /></p> </td> </tr> <tr> <td> <div align="center">默认物流公司: <font color="ff0000">*</font></div> </td> <td> <p> <select id="dvyId" name="dvyId"> <option:optionGroup type="select" required="true" cache="fasle" beanId="dvyId" beanDisp="name" defaultDisp="-- 物流公司 --" hql="select t.dvyId, t.name from DeliveryCorp t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${deliveryType.dvyId}" /> </select> </p> </td> </tr> <tr> <td> <div align="center">描述: </div> </td> <td> <p><input type="text" name="notes" id="notes" value="${deliveryType.notes}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="保存" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/deliveryType/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/deliveryType/deliveryType.jsp
Java Server Pages
oos
4,466
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>商品评论列表</title> </head> <body> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/productcomment/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/productcomment/query${applicationScope.WEB_SUFFIX}">评论管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> 评价人&nbsp;<input type="text" name="userName" id="userName" maxlength="50" value="${bean.userName}" /> 商品名称&nbsp;<input type="text" name="prodName" id="prodName" maxlength="50" value="${bean.prodName}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="ownerName" maxlength="50" value="${bean.ownerName}" /> </auth:auth> <input type="submit" value="搜索"/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/productcomment/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序"><%=offset++%></display:column> <display:column title="商品" sortable="true" sortName="prod.name"> <a target="_blank" href="${pageContext.request.contextPath}/views/${item.prodId}${applicationScope.WEB_SUFFIX}">${item.prodName}</a> </display:column> <display:column title="评价人" property="userName"></display:column> <display:column title="评论内容" property="content"></display:column> <display:column title="评价时间" sortable="true" sortName="hc.addtime"><fmt:formatDate value="${item.addtime}" pattern="yyyy-MM-dd HH:mm"/></display:column> <display:column title="评价人IP" property="postip" sortable="true" sortName="hc.postip"></display:column> <display:column title="回复内容" property="replyContent"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="回复人" property="replyName"></display:column> <display:column title="商城名称" property="ownerName"></display:column> </auth:auth> <display:column title="回复时间"><fmt:formatDate value="${item.replyTime}" pattern="yyyy-MM-dd HH:mm"/></display:column> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/productcomment/load/${item.id}${applicationScope.WEB_SUFFIX}" title="回复"><img alt="回复" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAllGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 用户在前台录入商品评论<br> 2. 可以回复商品评论或者删除不合理的评论<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/productcomment/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/prodComment/prodCommentList.jsp
Java Server Pages
oos
5,110
<%@ page language="java" pageEncoding="UTF-8"%> <%@include file='/pages/common/taglib.jsp'%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>回复商品评论</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { replyContent: { required: true, minlength: 5, maxlength:300 } }, messages: { replyContent: { required: "请输入回复内容", minlength: "最少不能少于5个字", maxlength: "最大不能超过300字" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/productcomment/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 回复商品评论 </div> </th> </tr> </thead> <tr> <td> <div align="center">商品名称</div> </td> <td> <p>${bean.prodName}</p> </td> </tr> <tr> <td> <div align="center">评价人</div> </td> <td> <p>${bean.userName}</p> </td> </tr> <tr> <td> <div align="center">评论内容</div> </td> <td> <p>${bean.content}</p> </td> </tr> <tr> <td> <div align="center">评论时间</div> </td> <td> <p><fmt:formatDate value="${bean.addtime}" pattern="yyyy-MM-dd HH:mm"/></p> </td> </tr> <tr> <td> <div align="center">回复内容 <font color="ff0000">*</font></div> </td> <td> <p><textarea rows="5" cols="50" id="replyContent" name="replyContent">${bean.replyContent}</textarea></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="提交" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/productcomment/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/prodComment/prodComment.jsp
Java Server Pages
oos
3,723
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html> <head> <title>menu</title> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/base.css" type="text/css" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/menu.css" type="text/css" /> <script language='javascript'>var curopenItem = '1';</script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/skin/js/frame/menu.js"></script> <base target="main" /> </head> <body target="main"> <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'> <tr> <td style='padding-left:3px;padding-top:8px' valign="top"> <!-- Item 1 Strat --> <dl class='bitem'> <dt onClick='showHide("items1_1")'><b>用户管理</b></dt> <dd style='display:block' class='sitem' id='items1_1'> <ul class='sitemu'> <!-- <li> <div class='items'> <div class='fllct'><a href='userMessage.jsp' target='main'>登录用户管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}' target='main'><img src='skin/images/frame/gtk-sadd.png' alt='登录用户管理' title='登录用户管理'/></a> </div> </div> </li> --> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}' target='main'>用户信息管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/system/userDetail/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='用户信息管理' title='用户信息管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/loginHistory/query${applicationScope.WEB_SUFFIX}' target='main'>用户登录历史</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/loginHistory/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='用户登录历史' title='用户登录历史'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/loginHistory/sum${applicationScope.WEB_SUFFIX}' target='main'>登录历史统计</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/loginHistory/sum${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='登录历史统计' title='登录历史统计'/></a> </div> </div> </li> </ul> </dd> </dl> <!-- Item 1 End --> <auth:auth ifAllGranted="F_VIEW_ALL_DATA"> <dl class='bitem'> <dt onClick='showHide("items1_3")'><b>权限管理</b></dt> <dd style='display:block' class='sitem' id='items1_3'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}' target='main'>用户管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/member/user/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='用户管理' title='用户管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}' target='main'>角色管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/member/role/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='角色管理' title='角色管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/member/right/query${applicationScope.WEB_SUFFIX}' target='main'>权限管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/member/right/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='权限管理' title='权限管理'/></a> </div> </div> </li> </ul> </dd> </dl> </auth:auth> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/menu.jsp
Java Server Pages
oos
5,344
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>${sessionScope.SPRING_SECURITY_LAST_USERNAME} - 后台管理</title> <style> body { scrollbar-base-color:#C0D586; scrollbar-arrow-color:#FFFFFF; scrollbar-shadow-color:DEEFC6; } </style> </head> <frameset rows="60,*" cols="*" frameborder="no" framespacing="0"> <frame src="${pageContext.request.contextPath}/admin/top${applicationScope.WEB_SUFFIX}" name="topFrame" scrolling="no"> <frameset cols="180,*" name="btFrame" id="btFrame" frameborder="NO" framespacing="0"> <frame src="${pageContext.request.contextPath}/admin/menu/1${applicationScope.WEB_SUFFIX}" noresize name="menu" scrolling="yes"> <frame src="${pageContext.request.contextPath}/admin/dashboard${applicationScope.WEB_SUFFIX}" noresize name="main" scrolling="yes"> </frameset> </frameset> <noframes> <body>Your browser does not support Frame!</body> </noframes> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/index.jsp
Java Server Pages
oos
994
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>menu</title> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/base.css" type="text/css" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/menu.css" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script language='javascript'>var curopenItem = '1';</script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/skin/js/frame/menu.js"></script> </head> <body target="main"> <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'> <tr> <td style='padding-left:3px;padding-top:8px' valign="top"> <!-- Item 1 Strat --> <dl class='bitem'> <dt onClick='showHide("items1_2")'><b>商城管理</b></dt> <dd style='display:block' class='sitem' id='items1_2'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}' target='main'>商城管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/admin/shopDetail/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='商城管理' title='商城管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}' target='main'>支付管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/paytype/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='支付方式管理' title='支付方式管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}' target='main'>栏目管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/newsCategory/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='新闻栏目管理' title='新闻栏目管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}' target='main'>新闻管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/news/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='新闻管理' title='新闻管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}' target='main'>公告管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/pub/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='公告管理' title='公告管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}' target='main'>Logo管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='Logo管理' title='Logo管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}' target='main'>广告管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/advertisement/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='广告管理' title='广告管理'/></a> </div> </div> </li> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}' target='main'>加盟管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/myleague/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='加盟管理' title='加盟管理'/></a> </div> </div> </li> </c:if> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}' target='main'>链接管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='链接管理' title='链接管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/partner/query${applicationScope.WEB_SUFFIX}' target='main'>供应商管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/partner/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='供应商管理' title='供应商管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/deliveryCorp/query${applicationScope.WEB_SUFFIX}' target='main'>物流公司管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/deliveryCorp/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='物流公司管理' title='物流公司管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/deliveryType/query${applicationScope.WEB_SUFFIX}' target='main'>配送方式管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/deliveryType/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='配送方式管理' title='配送方式管理'/></a> </div> </div> </li> </ul> </dd> </dl> <dl class='bitem'> <dt onClick='showHide("items1_1")'><b>浏览管理</b></dt> <dd style='display:block' class='sitem' id='items1_1'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}' target='main'>浏览管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/admin/visitLog/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='查看用户浏览历史' title='查看用户浏览历史'/></a> </div> </div> </li> </ul> </dd> </dl> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/menu2.jsp
Java Server Pages
oos
8,772
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>menu</title> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/base.css" type="text/css" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/menu.css" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script language='javascript'>var curopenItem = '1';</script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/skin/js/frame/menu.js"></script> </head> <body target="main"> <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'> <tr> <td style='padding-left:3px;padding-top:8px' valign="top"> <!-- Item 1 Strat --> <dl class='bitem'> <dt onClick='showHide("items1_1")'><b>系统管理</b></dt> <dd style='display:block' class='sitem' id='items1_1'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/system/lucene/query${applicationScope.WEB_SUFFIX}' target='main'>重建索引</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/system/lucene/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='重建Lucene索引' title='重建Lucene索引'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/system/systemParameter/query${applicationScope.WEB_SUFFIX}' target='main'>系统配置</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/system/systemParameter/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='系统配置' title='系统配置'/></a> </div> </div> </li> </ul> </dd> </dl> <!-- Item 1 End --> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/menu3.jsp
Java Server Pages
oos
2,288
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>menu</title> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/base.css" type="text/css" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/theme/skin/css/menu.css" type="text/css" /> <script language='javascript'>var curopenItem = '1';</script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/skin/js/frame/menu.js"></script> </head> <body target="main"> <table width='99%' height="100%" border='0' cellspacing='0' cellpadding='0'> <tr> <td style='padding-left:3px;padding-top:8px' valign="top"> <dl class='bitem'> <dt onClick='showHide("items1_2")'><b>首页管理</b></dt> <dd style='display:block' class='sitem' id='items1_2'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/dashboard${applicationScope.WEB_SUFFIX}' target='main'>首页管理</a></div> <div class='flrct'><a href='${pageContext.request.contextPath}/admin/dashboard${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='首页管理' title='首页管理'/></a> </div> </div> </li> </ul> </dd> </dl> <!-- Item 1 Strat --> <dl class='bitem'> <dt onClick='showHide("items1_1")'><b>商品管理</b></dt> <dd style='display:block' class='sitem' id='items1_1'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}' target='main'>商品管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='商品管理' title='商品管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}' target='main'>类型管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/sort/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='商品类型管理' title='商品类型管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}' target='main'>品牌管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/brand/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='商品品牌管理' title='商品品牌管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}?status=0' target='main'>消息管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/userComment/query${applicationScope.WEB_SUFFIX}?status=0' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='消息管理' title='消息管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}' target='main' title="主页上的轮换图片广告管理">图片管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/indexjpg/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='主页图片管理' title='主页图片管理'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}' target='main'>热门商品</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='热门商品' title='热门商品'/></a> </div> </div> </li> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/productcomment/query${applicationScope.WEB_SUFFIX}' target='main'>评论管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/productcommentadmin/productcomment/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='评论管理' title='评论管理'/></a> </div> </div> </li> </ul> </dd> </dl> <dl class='bitem'> <dt onClick='showHide("items1_3")'><b>订单管理</b></dt> <dd style='display:block' class='sitem' id='items1_3'> <ul class='sitemu'> <li> <div class='items'> <div class='fllct'><a href='${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}' target='main'>订单管理</a></div> <div class='flrct'> <a href='${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}' target='main'><img src='${pageContext.request.contextPath}/plugins/theme/skin/images/frame/gtk-sadd.png' alt='订单管理' title='订单管理'/></a> </div> </div> </li> </ul> </dd> </dl> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/menu1.jsp
Java Server Pages
oos
6,658
<%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ include file="/pages/common/taglib.jsp"%> <%@page import="com.legendshop.core.UserManager"%> <html xmlns="http://www.w3.org/1999/xhtml"> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <head> <title>top</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="${pageContext.request.contextPath}/plugins/theme/skin/css/base.css" rel="stylesheet" type="text/css" /> <script language='javascript'> var preFrameW = '206,*'; var FrameHide = 0; var curStyle = 1; var totalItem = 4; function ChangeMenu(way){ var addwidth = 10; var fcol = window.top.document.getElementById("btFrame").cols;//top.document.all.btFrame.cols; if(way==1) addwidth = 10; else if(way==-1) addwidth = -10; else if(way==0){ if(FrameHide == 0){ preFrameW = top.document.all.btFrame.cols; top.document.all.btFrame.cols = '0,*'; FrameHide = 1; return; }else{ top.document.all.btFrame.cols = preFrameW; FrameHide = 0; return; } } fcols = fcol.split(','); fcols[0] = parseInt(fcols[0]) + addwidth; top.document.all.btFrame.cols = fcols[0]+',*'; } function mv(selobj,moveout,itemnum) { if(itemnum==curStyle) return false; if(moveout=='m') selobj.className = 'itemsel'; if(moveout=='o') selobj.className = 'item'; return true; } function changeSel(itemnum) { curStyle = itemnum; for(i=1;i<=totalItem;i++) { if(document.getElementById('item'+i)) document.getElementById('item'+i).className='item'; } document.getElementById('item'+itemnum).className='itemsel'; } function logout() { if (confirm("确认退出管理系统?")) { document.location.href="${pageContext.request.contextPath}/logout.jsp"; } } </script> <style> body { padding:0px; margin:0px; } #tpa { color: #009933; margin:0px; padding:0px; float:right; padding-right:10px; } #tpa dd { margin:0px; padding:0px; float:left; margin-right:2px; } #tpa dd.ditem { margin-right:8px; } #tpa dd.img { padding-top:6px; } div.item { text-align:center; background:url(${pageContext.request.contextPath}/plugins/theme/skin/images/frame/topitembg.gif) 0px 3px no-repeat; width:82px; height:26px; line-height:29px; } .itemsel { width:80px; text-align:center; background:#226411; border-left:1px solid #c5f097; border-right:1px solid #c5f097; border-top:1px solid #c5f097; height:26px; line-height:28px; } *html .itemsel { height:26px; line-height:26px; } a:link,a:visited { text-decoration: underline; } .item a:link, .item a:visited { font-size: 12px; color: #ffffff; text-decoration: none; font-weight: bold; } .itemsel a:hover { color: #ffffff; font-weight: bold; border-bottom:2px solid #E9FC65; } .itemsel a:link, .itemsel a:visited { font-size: 12px; color: #ffffff; text-decoration: none; font-weight: bold; } .itemsel a:hover { color: #ffffff; border-bottom:2px solid #E9FC65; } .rmain { padding-left:10px; /* background:url(skin/images/frame/toprightbg.gif) no-repeat; */ } </style> </head> <body bgColor='#ffffff'> <table width="100%" cellpadding="0" cellspacing="0" background="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/topbg.gif"> <tr> <td width='20%' height="60"><!-- <img src="skin/images/frame/logo.gif" /> --></td> <td width='80%' align="right" valign="bottom"> <table width="750" cellspacing="0" cellpadding="0"> <tr> <td align="right" height="26" style="padding-right:10px;line-height:26px;"> 当前用户:<b>${sessionScope.SPRING_SECURITY_LAST_USERNAME}</b> &nbsp; <span class="username"><a href="${pageContext.request.contextPath}/all${applicationScope.WEB_SUFFIX}"" target="_parent">搜索商城</a></span> <span class="username"><a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}" target="_parent">返回前台</a></span> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <span class="username"><a href="${pageContext.request.contextPath}/shop/${sessionScope.SPRING_SECURITY_LAST_USERNAME}${applicationScope.WEB_SUFFIX}" target="_parent">我的商城</a></span> </c:if> <span class="username"><a href="${pageContext.request.contextPath}/logout.jsp" target="_parent">退出</a></span> </td> </tr> <tr> <td align="right" height="34" class="rmain"> <dl id="tpa"> <dd class='img'><a href="javascript:ChangeMenu(-1);"><img vspace="5" src="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/arrl.gif" width="5" height="8" alt="Reduce left frame" title="Reduce left frame" /></a></dd> <dd class='img'><a href="javascript:ChangeMenu(0);"><img vspace="3" src="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/arrfc.gif" width="12" height="12" alt="Show/Hide left frame" title="Show/Hide left frame" /></a></dd> <dd class='img' style="margin-right:10px;"><a href="javascript:ChangeMenu(1);"><img vspace="5" src="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/arrr.gif" width="5" height="8" alt="Add left frame" title="Add left frame" /></a></dd> <dd><div class='itemsel' id='item1' onMouseMove="mv(this,'m',1);" onMouseOut="mv(this,'o',1);"><a href="${pageContext.request.contextPath}/admin/menu/1${applicationScope.WEB_SUFFIX}" onclick="changeSel(1)" target="menu">商品管理</a></div></dd> <dd><div class='item' id='item2' onMouseMove="mv(this,'m',2);" onMouseOut="mv(this,'o',2);"><a href="${pageContext.request.contextPath}/admin/menu/2${applicationScope.WEB_SUFFIX}" onclick="changeSel(2)" target="menu">商城管理</a></div></dd> <auth:auth ifAnyGranted="F_SYSTEM"> <dd><div class='item' id='item3' onMouseMove="mv(this,'m',3);" onMouseOut="mv(this,'o',3);"><a href="${pageContext.request.contextPath}/admin/menu/0${applicationScope.WEB_SUFFIX}" onclick="changeSel(3)" target="menu">用户管理</a></div></dd> <dd><div class='item' id='item4' onMouseMove="mv(this,'m',4);" onMouseOut="mv(this,'o', 4);"><a href="${pageContext.request.contextPath}/admin/menu/3${applicationScope.WEB_SUFFIX}" onclick="changeSel(4)" target="menu">系统管理</a></div></dd> </auth:auth> </dl> </td> </tr> </table></td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/frame/top.jsp
Java Server Pages
oos
6,603
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建友情连接</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { url: "required", wordlink: "required", content: "required", bs: "number" }, messages: { url: { required: "请输入连接地址" }, wordlink: { required: "请输入连接显示文字" }, content: { required: "请输入描述" }, bs: { number: "显示顺序必须为数字" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}">连接管理</a> &raquo; 创建友情连接</td></tr> </thead> </table> <form action="${pageContext.request.contextPath}/admin/externallink/save${applicationScope.WEB_SUFFIX}" method="post" id="form1" enctype="multipart/form-data"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table align="center" class="${tableclass}" id="col1"> <thead> <tr> <th colspan="2"> <div align="center">创建友情连接</div> </th> </tr> </thead> <tr> <td> <div align="right">连接地址<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="url" id="url" value="${bean.url}" size="50" maxlength="300"/></p> </td> </tr> <tr> <td> <div align="right">连接显示文字<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="wordlink" id="wordlink" value="${bean.wordlink}" size="50" maxlength="50"/></p> </td> </tr> <tr> <td> <div align="right">描述<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="content" id="content" value="${bean.content}" size="50"/></p> </td> </tr> <tr><td> <div align="right">上传友情连接图片</div> </td> <td> <p> <input type="file" name="file" id="file" size="50"/> <input type="hidden" name="picture" id="picture" size="80" value="${bean.picture}" /> </p> </td> </tr> <tr> <td> <div align="right">显示顺序(数字,越小越靠前)</div> </td> <td> <p><input type="text" name="bs" id="bs" value="${bean.bs}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/externallink/externallink.jsp
Java Server Pages
oos
4,828
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>友情链接列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/externallink/query${applicationScope.WEB_SUFFIX}">链接管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp; <input type="text" name="userName" maxlength="50" value="${bean.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建友情链接" onclick='window.location="${pageContext.request.contextPath}/admin/externallink/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/externallink/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="图片"> <c:if test="${item.picture != null}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${item.picture}" height="65px" width="180px"/> </c:if> </display:column> <display:column title="链接地址"><a href="${item.url}" target="_blank">${item.url}</a></display:column> <display:column title="链接文字说明" property="wordlink"></display:column> <display:column title="描述" property="content"></display:column> <display:column title="显示顺序" property="bs" sortable="true" sortName="bs"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName" sortable="true" sortName="userName"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/externallink/load/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 友情链接管理,将会出现在商城首页<br> 2. 可以为每个友情链接增加一个图片<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/externallink/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/externallink/externallinkList.jsp
Java Server Pages
oos
4,736
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建UserAddress</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="<ls:url address='/admin/userAddress/save'/>" method="post" id="form1"> <input id="addrId" name="addrId" value="${userAddress.addrId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建UserAddress </div> </th> </tr> </thead> <tr> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${userAddress.userId}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${userAddress.userName}" /></p> </td> </tr> <tr> <td> <div align="center">Receiver: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="receiver" id="receiver" value="${userAddress.receiver}" /></p> </td> </tr> <tr> <td> <div align="center">SubAdds: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="subAdds" id="subAdds" value="${userAddress.subAdds}" /></p> </td> </tr> <tr> <td> <div align="center">SubPost: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="subPost" id="subPost" value="${userAddress.subPost}" /></p> </td> </tr> <tr> <td> <div align="center">ProvinceId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="provinceId" id="provinceId" value="${userAddress.provinceId}" /></p> </td> </tr> <tr> <td> <div align="center">CityId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="cityId" id="cityId" value="${userAddress.cityId}" /></p> </td> </tr> <tr> <td> <div align="center">Mobile: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="mobile" id="mobile" value="${userAddress.mobile}" /></p> </td> </tr> <tr> <td> <div align="center">Telphone: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="telphone" id="telphone" value="${userAddress.telphone}" /></p> </td> </tr> <tr> <td> <div align="center">Email: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="email" id="email" value="${userAddress.email}" /></p> </td> </tr> <tr> <td> <div align="center">Status: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="status" id="status" value="${userAddress.status}" /></p> </td> </tr> <tr> <td> <div align="center">CommonAddr: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="commonAddr" id="commonAddr" value="${userAddress.commonAddr}" /></p> </td> </tr> <tr> <td> <div align="center">CreateTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="createTime" id="createTime" value="${userAddress.createTime}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/userAddress/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/userAddress/userAddress.jsp
Java Server Pages
oos
6,071
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>UserAddress列表</title> </head> <body> <form action="<ls:url address='/admin/userAddress/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/userAddress/query'/>">UserAddress</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${userAddress.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建UserAddress" onclick='window.location="<ls:url address='/admin/userAddress/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/userAddress/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="AddrId" property="addrId"></display:column> <display:column title="UserId" property="userId"></display:column> <display:column title="UserName" property="userName"></display:column> <display:column title="Receiver" property="receiver"></display:column> <display:column title="SubAdds" property="subAdds"></display:column> <display:column title="SubPost" property="subPost"></display:column> <display:column title="ProvinceId" property="provinceId"></display:column> <display:column title="CityId" property="cityId"></display:column> <display:column title="Mobile" property="mobile"></display:column> <display:column title="Telphone" property="telphone"></display:column> <display:column title="Email" property="email"></display:column> <display:column title="Status" property="status"></display:column> <display:column title="CommonAddr" property="commonAddr"></display:column> <display:column title="CreateTime" property="createTime"></display:column> <display:column title="Action" media="html"> <a href="<ls:url address='/admin/userAddress/load/${item.addrId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.addrId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/userAddress/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/userAddress/userAddressList.jsp
Java Server Pages
oos
4,218
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>Logo 列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}">Logo管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp; <input type="text" name="userName" maxlength="50" value="${bean.userName}" size="15" /> <input type="submit" value="搜索"/> </auth:auth> <c:if test="${fn:length(list) == 0}"> <input type="button" value="创建首页Logo" onclick='window.location="${pageContext.request.contextPath}/admin/logo/load${applicationScope.WEB_SUFFIX}"'/> </c:if> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/logo/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="图片"><img src="${pageContext.request.contextPath}/photoserver/photo/${item.banner}" height="65px" width="180px"/></display:column> <display:column title="链接地址"><a href="${item.url}" target="_blank">${item.url}</a></display:column> <display:column title="备注" property="memo"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName" sortable="true"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/logo/load/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 每个商城可以设置自己的Logo,如果不设置则采用默认Logo<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/logo/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/logo/logoList.jsp
Java Server Pages
oos
4,367
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建 Logo</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { url: "required" }, messages: { url: { required:"请输入链接地址" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/logo/save${applicationScope.WEB_SUFFIX}" method="post" id="form1" enctype="multipart/form-data"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}">Logo管理</a> &raquo; 创建 Logo</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建 Logo </div> </th> </tr> </thead> <tr> <td> <div align="right"> 上传图片(170px*60px) <font color="ff0000">*</font> </div> </td> <td> <p> <input type="file" name="file" id="file"/> <input type="hidden" name="bannerName" id="bannerName" size="80" value="${bean.banner}" /> </p> </td> </tr> <tr> <td> <div align="right"> 连接地址 <font color="ff0000">*</font> </div> </td> <td> <p> <input type="text" name="url" id="url" size="81" value="${bean.url}" /> </p> </td> </tr> <tr> <td> <div align="right"> 备注 </div> </td> <td> <p> <input type="text" name="memo" id="memo" size="81" maxlength="100" value="${bean.memo}" /> </p> </td> </tr> <c:if test="${bean.banner!=null}"> <tr> <td> <div align="center"> 原有图片 </div> </td> <td> <a href="${pageContext.request.contextPath}/photoserver/photo/${bean.banner}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${bean.banner}" width="170" height="44"/> </a> </td> </tr> </c:if> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/logo/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/logo/logo.jsp
Java Server Pages
oos
3,875
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file="/pages/common/back-common.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js" ></script> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js" ></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script src="${pageContext.request.contextPath}/common/js/top.js" type="text/javascript"></script> <style type="text/css" media="all"> .selected { margin: 0px; text-align: center; font-weight: bold; } </style> <% Integer offset = (Integer) request.getAttribute("offset"); %> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}">订单管理</a></td></tr> </thead> </table> <table style="width:100%" class="${tableclass}"> <thead> <tr> <td class="titlebg" align="left" width="100%"> <form action="${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}" id="processedOrderForm" name="processedOrderForm" method="post">&nbsp; <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"/> <a href="javascript:void(0)" onclick="changetab(1);" id="processingbutton" name="processingbutton">处理中的订单</a> <a href="javascript:void(0)" onclick="changetab(2);" id="processedbutton" name="processedbutton"><span>已成交订单</span></a> <input type="hidden" name="subCheck" id="subCheck" value="N"/> &nbsp; 订单号&nbsp;<input type="text" name="subNumber" id="subNumber" value="${subForm.subNumber}" size="30" maxlength="30"/> &nbsp; 买家&nbsp;<input type="text" name="userName" id="userName" value="${subForm.userName}"/> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> &nbsp; 商城名称&nbsp;<input type="text" name="shopName" id="shopName" value="${subForm.shopName}"/> </auth:auth> &nbsp; 状态&nbsp; <select id="status" name="status" class="input"> <option:optionGroup type="select" required="false" cache="true" beanName="ORDER_STATUS" selectedValue="${subForm.status}"/> </select> <input type="submit" value="搜索" class="s"/> </form> </td> </tr> </thead> <tr> <td valign="top"> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column title="顺序" style="width:40px"><%=offset++%></display:column> <display:column title="订单号" sortable="true" sortName="subNumber"> <a href='${pageContext.request.contextPath}/orderDetail/${item.subNumber}${applicationScope.WEB_SUFFIX}' target="_blank">${item.subNumber}</a> </display:column> <display:column title="价格" sortable="true" sortName="total"> <b><fmt:formatNumber type="currency" value="${item.total}" pattern="${CURRENCY_PATTERN}"/></b> </display:column> <display:column title="商品" property="prodName" sortable="true" sortName="prodName"></display:column> <display:column title="买家帐号" sortable="true" sortName="userName">${item.userName}</display:column> <display:column title="日期" sortable="true" sortName="subDate"> <fmt:formatDate value="${item.subDate}" pattern="yyyy-MM-dd HH:mm"/> </display:column> <display:column title="付款方式" property="payTypeName" sortable="true" sortName="payTypeName"></display:column> <display:column title="状态" sortable="true" sortName="status"> <option:optionGroup type="label" required="true" cache="true" beanName="ORDER_STATUS" selectedValue="${item.status}"/> </display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城" property="shopName" sortable="true" sortName="shopName"> <a href="${pageContext.request.contextPath}/shop/${item.shopName}${applicationScope.WEB_SUFFIX}" target="_blank">${item.shopName}</a> </display:column> </auth:auth> <auth:auth ifAnyGranted="F_OPERATOR"> <display:column title="操作" media="html" style="width:110px"> <a href="javascript:void(0)" onclick='javascript:openbag("${item.subNumber}","${item.userName}")'>详情</a> <c:if test="${subForm.subCheck == 'N'}"> <c:if test="${item.status == 1}"> <!-- 1: 等待买家付款 --> <a href="javascript:void(0)" onclick='javascript:openScript("${pageContext.request.contextPath}/admin/order/modifyPrice${applicationScope.WEB_SUFFIX}?total=${item.total}&subId=${item.subId}&subNumber=${item.subNumber}","330","150")'>修改</a> </c:if> <c:if test="${item.status == 2}"> <!-- 2:买家已经付款 --> <!-- 4:交易成功 --> <a href="javascript:void(0)" onclick='javascript:updateSubStatus("${item.subId}",3,"${item.subNumber}");'>发货</a> </c:if> <c:if test="${item.payTypeId == 3 &&( item.status != 3 && item.status != 6)}"> <!-- 3:货到付款,没有退货又没有发货的 --> <a href="javascript:void(0)" onclick='javascript:updateSubStatus("${item.subId}",3,"${item.subNumber}");'>发货</a> </c:if> </c:if> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <a href="javascript:void(0)" onclick='javascript:deleteSub("${item.subId}","${item.subNumber}");'>删除</a> </auth:auth> </display:column> </auth:auth> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> </td> </tr> </table> 说明:<br> 1. 用户支付之后需要点击发货按钮,用户确认收货,整个订单完成,进入历史订单状态<br> 2. 用户申请退款,在退款之后点击关闭交易,订单完成。<br> <script> function submitForm(subCheck){ document.getElementById("subCheck").value= subCheck; document.getElementById("processedOrderForm").submit(); } function changetab(a){ if(a==1){ document.getElementById('processingbutton').className='selected'; document.getElementById('processedbutton').className=''; submitForm("N"); }else{ document.getElementById('processedbutton').className='selected'; document.getElementById('processingbutton').className=''; submitForm("Y"); } } function deleteSub(subId,subNumber) { if(confirm('确定删除订单 '+subNumber+' ?')){ CommonService.adminDeleteSub(subId, function(retData){ if(retData == null ){ //alert("成功删除该纪录!") ; window.location.href='${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}'; }else{ alert("删除失败!请确认改订单的状态和所有人。") ; } }) ; } } function updateSubStatus(subId,status,subNumber) { if(confirm('确认订单 '+subNumber+' ?')){ CommonService.updateSub(subId,status,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ if(retData == null ){ //alert('更新订单成功') ; window.location.href='${pageContext.request.contextPath}/admin/order/query${applicationScope.WEB_SUFFIX}'; }else{ alert('更新订单失败,订单号 ' + subNumber) ; } }) ; } } function openbag(subNumber,userName) { window.open("${pageContext.request.contextPath}/admin/order/loadBySubnumber/" + subNumber+ '${applicationScope.WEB_SUFFIX}', "","height=500,width=720,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("processedOrderForm").submit(); } function onloadSetup(){ if(${subForm.subCheck == 'Y'}){ document.getElementById('processedbutton').className='selected'; document.getElementById('processingbutton').className=''; document.getElementById("subCheck").value= 'Y'; }else{ document.getElementById('processingbutton').className='selected'; document.getElementById('processedbutton').className=''; document.getElementById("subCheck").value= 'N'; } } onloadSetup(); highlightTableRows("item"); </script>
100mall
trunk/100mall/webapps/pages/backend/default/order/orderList.jsp
Java Server Pages
oos
9,634
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%> <html> <head> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <title> ${sub.subNumber} <fmt:message key="product.subscribed.list"/> </title> </head> <body> <table width="700" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px" class="tables"> <tr> <td class="titlebg"><fmt:message key="your.subNember"/>:${sub.subNumber}</td> </tr> <tr> <td> <table width="100%" align="left"> <tr> <td width="45%"><div align="left" style="margin-left: 5px"><fmt:message key="dateStr"/>:<fmt:formatDate value="${sub.subDate}" pattern="yyyy-MM-dd HH:mm"/></div></td> <td width="55%"><div align="left" style="margin-left: 5px"><fmt:message key="Payment.Date"/>:<fmt:formatDate value="${sub.payDate}" pattern="yyyy-MM-dd HH:mm"/></div></td> </tr> <tr> <td><div align="left" style="margin-left: 5px"><fmt:message key="orderer"/>:${sub.orderName}</div></td> <td><div align="left" style="margin-left: 5px"><fmt:message key="User"/>:${sub.userName}</div></td> </tr> <tr> <td><div align="left" style="margin-left: 5px"><fmt:message key="address"/>:${sub.subAdds}</div></td> <td><div align="left" style="margin-left: 5px"><fmt:message key="shop.name"/>:${sub.shopName}</div></td> </tr> <tr> <td><div align="left" style="margin-left: 5px"><fmt:message key="Phone"/>:${sub.subTel}</div></td> <td><div align="left" style="margin-left: 5px"><fmt:message key="postcode"/>:${sub.subPost}</div></td> </tr> <tr> <td><div align="left" style="margin-left: 5px"><fmt:message key="Order.Status"/>: <option:optionGroup type="label" required="true" cache="true" beanName="ORDER_STATUS" selectedValue="${sub.status}" defaultDisp=""/></div> </td> <td><div align="left" style="margin-left: 5px"><fmt:message key="payType"/>:${sub.payTypeName}</div></td> </tr> <tr> <td><div align="left" style="margin-left: 5px"><fmt:message key="charge.amount"/> :<b><fmt:formatNumber type="currency" value="${sub.total}" pattern="${CURRENCY_PATTERN}"/></b> <c:if test="${sub.score ne null}">(<fmt:message key="score.hint"/>:${sub.score})</c:if> </div></td> <td><div align="left" style="margin-left: 5px"><fmt:message key="Order.Update.Date"/>:<fmt:formatDate value="${sub.updateDate}" pattern="yyyy-MM-dd HH:mm"/></div></td> </tr> <tr> <td colspan="2"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="20%"><div align="left" style="margin-left: 5px"><fmt:message key="memo"/>:</div></td> <td width="80%">${sub.other}</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table width="700" align="center" cellspacing="0" cellpadding="0" style="margin-top: 5px" class="tables"> <tr> <td class="titlebg"> <div> <b><fmt:message key="product.subscribed.list"/></b> </div> </td> </tr> <tr> <td width="100%"> <table width="100%" cellpadding="2" cellspacing="2"> <tr> <td width="30%"> <div align="center"><fmt:message key="product.name"/></div></td> <td width="20%"> <div align="center"><fmt:message key="product.attribute"/></div></td> <td width="12%"> <div align="center"><fmt:message key="product.price"/></div></td> <td width="15%"> <div align="center"><fmt:message key="product.number"/></div></td> <td width="15%"> <div align="center"><fmt:message key="dateStr"/></div></td> <td width="8%"> <div align="center"><fmt:message key="price.total"/></div></td> </tr> <c:forEach items="${requestScope.baskets}" var="basket"> <tr> <td><div align="center"><a target="_blank" href="${pageContext.request.contextPath}/views/${basket.prodId}${applicationScope.WEB_SUFFIX}"><font color="#FF0000">${basket.prodName}</font></a></div></td> <td><div align="center">${basket.attribute}</div></td> <td> <div align="center"> ${basket.cash} <c:if test="${basket.carriage != null}"> (<fmt:message key="carriage.charge"/>:<fmt:formatNumber type="currency" value="${basket.carriage}" pattern="${CURRENCY_PATTERN}"/>) </c:if> </div></td> <td width="65"> <div align="center">${basket.basketCount} </div></td> <td> <div align="center"><fmt:formatDate value="${basket.basketDate}" pattern="yyyy-MM-dd HH:mm"/> </div></td> <td> <div align="center"> <fmt:formatNumber type="currency" value="${basket.total}" pattern="${CURRENCY_PATTERN}"/></div></td> </c:forEach> <tr> <td colspan="5"><div align="center"><fmt:message key="price.total"/>:</div></td> <td><div align="center"><fmt:formatNumber type="currency" value="${requestScope.totalcash}" pattern="${CURRENCY_PATTERN}"/> </div></td> </table> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/order/orderDetail.jsp
Java Server Pages
oos
6,335
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/randomimage.js"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/common/js/productDetail.js"></script> <title>修改价格</title> </head> <body> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value='<fmt:message key="randomimage.errors.required"/>'/> <input type="hidden" id="charactors4" name="charactors4" value='<ls:i18n key="randomimage.charactors.required" length="6"/>'/> <input type="hidden" id="errorImage" name="errorImage" value='<fmt:message key="error.image.validation"/>'/> 订单<b>${param.subNumber}</b>, 原价<b><fmt:formatNumber type="currency" value="${param.total}" pattern="${CURRENCY_PATTERN}"/></b><br> 最新价格:<input type="text" id="price" name="price"/> <input name="submit" type="button" value='确认' class="s" tabindex="4" onclick="javascript:changePrice();"> <br> <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>"/> <input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="7" size="7" tabindex="3" > &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a> <br> <script type="text/javascript"> function changePrice(total,subId,subNumber) { var price = document.getElementById("price"); if(price.value == null || price.value == "" || !isNumber(price.value) || price.value < 0){ price.focus(); alert("请输入正确的价格"); return; } if(price.value!= null && price.value != "null" && validateRandNum('${pageContext.request.contextPath}')){ var subId = '${param.subId}'; CommonService.adminChangeSubPrice(subId,price.value, function(retData){ if(retData == null ){ window.close(); window.opener.location.reload() ; }else{ alert('更新价格失败,订单号 ' + subNumber) ; } }) ; } } </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/order/modifyPrice.jsp
Java Server Pages
oos
2,914
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/common.js"></script> <script language="javascript"> function appendProduct(id){ var win = openWindow("${pageContext.request.contextPath}/admin/product/append/"+id + "${applicationScope.WEB_SUFFIX}", "appendBrand",'500','450') ; win.focus() ; } </script> <c:choose> <c:when test="${prod.prodId == null}"> 商品详细信息 </c:when> <c:otherwise> <a href="${pageContext.request.contextPath}/admin/product/update/${prod.prodId}${applicationScope.WEB_SUFFIX}"> <c:choose> <c:when test="${param.step == 1}"><b>1.商品详细信息</b></c:when> <c:otherwise>1.商品详细信息</c:otherwise> </c:choose> </a> <a href="${pageContext.request.contextPath}/admin/imgFile/query${applicationScope.WEB_SUFFIX}?productId=${prod.prodId}"> <c:choose> <c:when test="${param.step == 2}"><b>2.商品图片</b></c:when> <c:otherwise>2.商品图片</c:otherwise> </c:choose> </a> <a href="${pageContext.request.contextPath}/admin/dynamic/loadAttribute/${prod.prodId}${applicationScope.WEB_SUFFIX}"> <c:choose> <c:when test="${param.step == 3}"> <c:choose> <c:when test="${DYNAMIC_TYPE == 1}"><b>3.动态属性</b></c:when> <c:otherwise>3.动态属性</c:otherwise> </c:choose> </c:when> <c:otherwise>3.动态属性</c:otherwise> </c:choose> </a> <a href="${pageContext.request.contextPath}/admin/dynamic/loadParameter/${prod.prodId}${applicationScope.WEB_SUFFIX}"> <c:choose> <c:when test="${param.step == 3}"> <c:choose> <c:when test="${DYNAMIC_TYPE == 2}"><b>4.动态参数</b></c:when> <c:otherwise>4.动态参数</c:otherwise> </c:choose> </c:when> <c:otherwise>4.动态参数</c:otherwise> </c:choose> </a> <a href="javascript:appendProduct(${prod.prodId})"> <c:choose> <c:when test="${param.step == 5}"><b>5.相关商品</b></c:when> <c:otherwise>5.相关商品</c:otherwise> </c:choose> </a> </c:otherwise> </c:choose>
100mall
trunk/100mall/webapps/pages/backend/default/prod/createProductStep.jsp
Java Server Pages
oos
2,581
<%@ page language="java" pageEncoding="UTF-8"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/linked-select.js"></script> <title>类型列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer)request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><th style="font-weight: normal;"><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">商品管理</a></th></tr> </thead> <tbody> <tr><td> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"/> <div align="left" style="padding: 5px;"> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp; <input type="text" name="userName" maxlength="50" value="${prod.userName}" size="15"/> </auth:auth> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> 商品类型&nbsp;<select id="sortId" name="sortId" onChange="changeNsort(this.value)"> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null && sessionScope.SPRING_SECURITY_LAST_USERNAME !=''}"> <option:optionGroup type="select" required="false" cache="fasle" defaultDisp="-- 一级类型 --" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}"/> </c:if> </select> <select id="nsortId" name="nsortId" onChange="changeSubNsort(this.value)"> <option value="">-- 二级类型 --</option> </select> <select id="subNsortId" name="subNsortId"> <option value="">-- 三级类型 --</option> </select> &nbsp;品牌 <select id="brandId" name="brandId"> <option:optionGroup type="select" required="false" cache="fasle" hql="select t.brandId, t.brandName from Brand t where t.userName = ?" defaultDisp="--商品品牌--" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" /> </select> </auth:auth> </div><div align="left" style="padding: 5px"> 商品名称 <input type="text" name="name" id="name" maxlength="50" value="${prod.name}" size="32"/> 推荐 <select id="commend" name="commend"> <option value="">请选择</option> <option value="Y">是</option> <option value="N" >否</option> </select> 状态 <select id="status" name="status"> <option value="">请选择</option> <option value="1">上线</option> <option value="0" >下线</option> </select> <input type="submit" value="搜索"/> <input type="button" value="创建商品" onclick='window.location="${pageContext.request.contextPath}/admin/product/load${applicationScope.WEB_SUFFIX}"'/> </div> </td></tr> </tbody> </table> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/product/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%" sort="external"> <display:column style="width:70px" title="<input type='checkbox' id='checkbox' name='checkbox' onClick='javascript:selAll()' />顺序"><input type="checkbox" name="strArray" value="${item.prodId}" arg="${item.name}"/><%=offset++%></display:column> <display:column title="商品名称" sortable="true" sortName="name"> <a href= "${pageContext.request.contextPath}/views/${item.prodId}${applicationScope.WEB_SUFFIX}" target="_blank"> ${item.name}</a> </display:column> <display:column title="原价" property="price" sortable="true" sortName="price"></display:column> <display:column title="现价" property="cash" sortable="true" sortName="cash"></display:column> <% if((Boolean)PropertiesUtil.getObject(ParameterEnum.VISIT_HW_LOG_ENABLE, Boolean.class)){ %> <display:column title="查看数" property="views" sortable="true" sortName="views"></display:column> <% } %> <display:column title="订购数" property="buys" sortable="true" sortName="buys"></display:column> <display:column title="库存" property="stocks" sortable="true" sortName="stocks"></display:column> <display:column title="实际库存" property="actualStocks" sortable="true" sortName="actualStocks"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName" sortable="true" sortName="userName"></display:column> </auth:auth> <auth:auth ifAnyGranted="F_OPERATOR"> <display:column title="操作" media="html" style="width: 80px;"> <c:choose> <c:when test="${item.status == 1}"> <a href='javascript:productTurnOff("${item.prodId}","${item.name}")'>下线</a> </c:when> <c:otherwise> <a href='javascript:productTurnOn("${item.prodId}","${item.name}")'><font color="red">上线</font></a> </c:otherwise> </c:choose> <a href= "${pageContext.request.contextPath}/admin/product/update/${item.prodId}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <a href='javascript:confirmDelete("${item.prodId}","${item.name}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </display:column> </auth:auth> </display:table> <input type="button" value="刪除" style="float: left" onclick="return deleteAction();"/> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 建立商品的五个步骤:1.商品详细信息 2.商品相关说明图片 3.动态属性 4.动态参数 5.相关商品<br> 1. 商品可以挂在一级,二级,三级类型上<br> 2. 商品有一个对应的品牌,品牌对应三级类型<br> 3. 商品状态,在开始时间和结束时间之内有效,失效后包括下线状态将不会在前台显示,推荐状态为是则在首页精品推荐中出现<br> 4. 价格、运费、库存量为正数,不填写则不在前台显示,如果填写了库存量为0则无法订购<br> 5. 库存量在用户下单时会减少,实际库存量在订单成交时减少<br> 6. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮<br> 7. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteAction() { //获取选择的记录集合 selAry = document.getElementsByName("strArray"); if(!checkSelect(selAry)){ window.alert('删除时至少选中一条记录!'); return false; } if(confirm("确定要删除吗?")){ for(i=0;i<selAry.length;i++){ if(selAry[i].checked){ var prodId = selAry[i].value; var name = selAry[i].getAttribute("arg"); deleteProduct(prodId,name); } } } return true; } function confirmDelete(prodId,name) { if(confirm("确定要删除 "+name+" 吗?")){ deleteProduct(prodId,name); } } function deleteProduct(prodId,name) { CommonService.deleteProduct(prodId, function(retData){ if(retData == null ){ window.location.reload() ; }else{ alert("删除 " + name + " 失败!") ; } }) ; } function productTurnOn(prodId,name) { if(confirm('确定商品 '+name+' 上线?')){ CommonService.productTurnOn(prodId, function(retData){ if(retData == null ){ alert("成功上线!") ; window.location.reload() ; }else{ alert("上线失败!") ; } }) ; } } function productTurnOff(prodId,name) { if(confirm('确定商品 '+name+' 下线?')){ CommonService.productTurnOff(prodId, function(retData){ if(retData == null ){ alert("成功下线!") ; window.location.reload() ; }else{ alert("下线失败!") ; } }) ; } } function changeNsort(sortId) { DWREngine.setAsync(false); if(sortId!=null &&sortId!=''){ var sql ="select nsort_id id, nsort_name name from ls_nsort where sort_id = '"+sortId+"' and parent_nsort_id is null"; changeLinkedOptions1("nsortId", false, sql,"-- 二级类型 --"); } DWREngine.setAsync(true); } function changeSubNsort(nsortId) { DWREngine.setAsync(false); if(nsortId!=null &&nsortId!=''){ var sql ="select nsort_id id, nsort_name name from ls_nsort where parent_nsort_id = '"+nsortId+"'"; changeLinkedOptions1("subNsortId", false, sql,"-- 三级类型 --"); } DWREngine.setAsync(true); } function initSelect(sortIdValue,nsortIdValue,subNsortIdValue,brandIdValue){ //设置商品类型当前值 DWRUtil.setValues({sortId:sortIdValue}); changeNsort(sortIdValue); DWRUtil.setValues({nsortId:nsortIdValue}); changeSubNsort(nsortIdValue); DWRUtil.setValues({subNsortId:subNsortIdValue}); DWRUtil.setValues({brandId:brandIdValue}); } function initStatus(commendValue,statusValue){ DWRUtil.setValues({commend:commendValue}); DWRUtil.setValues({status:statusValue}); } window.onload=function(){ var sortId = '${prod.sortId}'; var nsortId = '${prod.nsortId}'; var subNsortId = '${prod.subNsortId}'; var commend = '${prod.commend}'; var status = '${prod.status}'; var brandId = '${prod.brandId}'; if(sortId!=null ||sortId!=''){ initSelect(sortId,nsortId,subNsortId,brandId); } initStatus(commend,status); } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/prod/prodList.jsp
Java Server Pages
oos
11,773
<%@ page contentType="text/html; charset=utf-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script language="javascript" src='${pageContext.request.contextPath}/common/js/ScrachParam.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/json.js"></script> <html> <head> <title>增加相关商品</title> <link href="${pageContext.request.contextPath}/common/style/global_base.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> function onEnter(e){ var ev = window.event|| e; if(ev.keyCode == 13){ loadDataByName(); } } function save(obj){ obj.disabled = "disabled" ; var idMap = []; var nameMap = []; for(i=0;i<document.getElementById("Select2").options.length;i++){ var brandId = document.getElementById("Select2").options[i].value; var brandName = document.getElementById("Select2").options[i].text; idMap.push(brandId) ; nameMap.push(brandName); } var idJson = JSON.stringify(idMap); var nameJson = JSON.stringify(nameMap); CommonService.saveProdItem(idJson,nameJson,'${prodId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(data){ if(data==null){ alert("操作成功"); window.close(); }else{ alert("操作失败: "+data) ; } obj.disabled = false ; }) ; } function loadDataByName(){ var name = "%"+document.getElementById("selectname").value+"%"; CommonService.getUsableProductItemByName('${prodId}', '${sessionScope.SPRING_SECURITY_LAST_USERNAME}', name,function(dataArray){ try{ dwr.util.removeAllOptions("Select1"); for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select1", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }) ; } function loadData(){ //alert("loadData " + '${prodId}' +" " + '${sessionScope.SPRING_SECURITY_LAST_USERNAME}'); //未有选择 CommonService.getUsableProductItem('${prodId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(dataArray){ try{ for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select1", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }); //已经选择的 CommonService.getUsedProductItem('${prodId}','${sessionScope.SPRING_SECURITY_LAST_USERNAME}',function(dataArray){ try{ for(var i=0;i<dataArray.length ;i++){ var data = dataArray[i] ; dwr.util.addOptions("Select2", [{ value:data.key, disp : data.value }], "value", "disp"); } }catch(e){} }) ; } function toRight(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ if(leftObj.options[i].selected){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool) continue ; rightObj.options.add(new Option(e.text, e.value)); } } } function toLeft(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ if(leftObj.options[i].selected){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool){ continue ; } rightObj.options.add(new Option(e.text, e.value)); } } //toRight(rightObj,leftObj) ; } function toRightAll(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } if(bool) continue ; rightObj.options.add(new Option(e.text, e.value)); leftObj.remove(i); i=i-1; } } function toLeftAll(leftObj,rightObj){ for(var i=0;i<leftObj.options.length;i++){ var e = leftObj.options[i]; //是否存在右边框 var len = 0 ; try{ len = rightObj.options.length ; }catch(e){} var bool = false ; for(var j=0 ;j<len;j++){ var temp = rightObj.options[j] ; if(e.text==temp.text&&e.value==temp.value){ //存在相关数据则返回 bool = true ; } } leftObj.remove(i); i=i-1; if(bool){ continue ; } rightObj.options.add(new Option(e.text, e.value)); } //toRightAll(rightObj,leftObj) ; } </script> </head> <body scroll="no" onLoad="loadData()"> <table width="100%" height="100%" cellpadding="1" cellspacing="1"> <tr> <td><br> &nbsp;&nbsp;<img src="${pageContext.request.contextPath}/plugins/theme/skin/images/frame/menusearch.gif">商品名称 <input name="selectname" type="text" id="selectname" size="15" onKeyDown="javascript:onEnter(event)" > <input name="search" type="button" id="search" onClick="loadDataByName()" value="查询" class="s"></td> </tr> <tr> <td> <fieldset> <legend>选择</legend> <table width="100%" cellpadding="5" cellspacing="0"> <tr> <td width="45%" class="fim_l"> <table width="*" cellpadding="0" cellspacing="0" class=""> <tr> <td> </td> <td> &nbsp;可选择商品</td> </tr> </table> </td> <td width="2%"> </td> <td width="45%"> <table width="*" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td> &nbsp;已选择商品</td> </tr> </table> </td> </tr> <tr> <td valign="top" rowspan="2"> <table width="100%" height="100%"> <tr> <td width="100%" colspan="2" height="*"> <select id="Select1" multiple ondblclick="toRight(Select1,Select2)" name="Select1" style="width: 100%; height:220px"> </select> </td> </tr> </table> </td> <td class="" rowspan="2"> <input type="button" value=">>" title="全部添加" onClick="toRightAll(Select1,Select2)" id="Button3" name="Button1" class="s"><br> <input type="button" value=">" title="添加" onClick="toRight(Select1,Select2)" id="Button4" name="Button2" class="s"><br> <input type="button" value="<" title="删除" onClick="toLeft(Select2,Select1)" id="Button11" name="Button3" class="s"><br> <input type="button" value="<<" title="全部删除" onClick="toLeftAll(Select2,Select1)" id="Button12" name="Button4" class="s"><br> </td> <td class="fim_m"> <select id="Select2" multiple ondblclick="toLeft(Select2,Select1)" class="com_textarea" style="width: 100%; height: 220px"> </select> </td> </tr> </table> </fieldset> </td> </tr> <tr> <td align="center"> <input type="button" class="s" onClick="save(this)" value="确定" id="Button1" name="Button1"> <input type="button" class="s" onclick="window.close();" value="取消" id="Button2" name="Button2"><br><br> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/prod/appendProduct.jsp
Java Server Pages
oos
9,836
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <html> <head> <title>创建商品类型</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/plugins/My97DatePicker/WdatePicker.js"></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/linked-select.js"></script> <script language="javascript"> window.onload=function(){ var sortId = '${prod.sortId}'; var nsortId = '${prod.nsortId}'; var subNsortId = '${prod.subNsortId}'; var brandId = '${prod.brandId}'; if(sortId!=null ||sortId!=''){ initSelect(sortId,nsortId,subNsortId,brandId); } } function changeNsort(sortId) { DWREngine.setAsync(false); if(sortId!=null &&sortId!=''){ var sql ="select nsort_id id, nsort_name name from ls_nsort where sort_id = '"+sortId+"' and parent_nsort_id is null"; changeLinkedOptions1("nsortId", false, sql,"-- 二级类型 --"); } DWREngine.setAsync(true); } function changeSubNsort(nsortId) { DWREngine.setAsync(false); if(nsortId!=null &&nsortId!=''){ var sql ="select nsort_id id, nsort_name name from ls_nsort where parent_nsort_id = '"+nsortId+"'"; changeLinkedOptions1("subNsortId", false, sql,"-- 三级类型 --"); } DWREngine.setAsync(true); } function initSelect(sortIdValue,nsortIdValue,subNsortIdValue,brandIdValue){ //设置商品类型当前值 DWRUtil.setValues({sortId:sortIdValue}); changeNsort(sortIdValue); DWRUtil.setValues({nsortId:nsortIdValue}); changeSubNsort(nsortIdValue); DWRUtil.setValues({subNsortId:subNsortIdValue}); DWRUtil.setValues({brandId:brandIdValue}); } jQuery(document).ready(function() { jQuery("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ jQuery(this).addClass('even'); }else{ jQuery(this).addClass('odd'); } } }); jQuery("#col1 th").addClass('sortable'); }); function checkform() { var content = document.getElementById("content"); var sortId = document.getElementById("sortId"); if(sortId.value == null || sortId.value == '') { alert("请选择类型名称!"); sortId.focus(); return false; } var name = document.getElementById("name"); if(name.value==null||name.value=='') { alert("请输入商品名称!"); name.focus(); return false; } var price = document.getElementById("price"); if((price.value != null || price.value!='') && isNaN(price.value)){ alert("商品原价必须为数字!"); price.focus(); return false; } var cash = document.getElementById("cash"); if((cash.value != null || cash.value!='') && isNaN(cash.value)){ alert("商品价格必须为数字!"); cash.focus(); return false; } var carriage = document.getElementById("carriage"); if((carriage.value != null || carriage.value!='') && isNaN(carriage.value)){ alert("商品运费必须为数字!"); carriage.focus(); return false; } var stocks = document.getElementById("stocks"); if((stocks.value != null || stocks.value!='') && isNaN(stocks.value)){ alert("库存量必须为数字!"); cash.focus(); return false; } var file = document.getElementById("file"); if(file.value==null||file.value=='') { var pic = document.getElementById("pic"); if(pic.value==null||pic.value==''){ alert("请上传商品图片!"); file.focus(); return false; } } return true ; } function submitNext(){ var saveProdForm = document.getElementById("saveProdForm"); if(checkform()){ saveProdForm.submit(); } } function submitFinish(){ var saveProdForm = document.getElementById("saveProdForm"); document.getElementById("nextAction").value = "success"; if(checkform()){ saveProdForm.submit(); } } </script> </head> <body> <form action="${pageContext.request.contextPath}/admin/product/save${applicationScope.WEB_SUFFIX}" id="saveProdForm" name="saveProdForm" method="post" enctype="multipart/form-data" onsubmit="return checkform()"> <input type="hidden" value="next" id="nextAction" name="nextAction"/> <input type="hidden" id="prodId" name="prodId" value="${prod.prodId}"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}">商品管理</a> &raquo; <a href="${pageContext.request.contextPath}/admin/product/load${applicationScope.WEB_SUFFIX}">创建商品</a> <c:if test="${prod.name != null}">&raquo; <a href= "${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" target="_blank">${prod.name}</a></c:if> </td></tr> </thead> <tr class="odd"><td> <jsp:include page="/admin/product/createsetp${applicationScope.WEB_SUFFIX}"> <jsp:param name="step" value="1"/> </jsp:include> </td></tr> </table> <table class="${tableclass}" style="width: 100%;" id="col1"> <thead> <tr> <td colspan="3"> <div align="center"> <b>商品详细信息</b> </div></td> </tr> </thead> <tbody> <tr> <td width="120px"><div align="center">选择商品类型<font color="#ff0000">*</font></div></td> <td width="48%"> <div> <select id="sortId" name="sortId" onChange="changeNsort(this.value)"> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <c:if test="${prod.userName != null}"> <option:optionGroup type="select" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" defaultDisp="--商品大类--" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${prod.userName}" /> </c:if> <c:if test="${prod.userName == null}"> <option value="">-- 一级类型 --</option> </c:if> </auth:auth> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null && sessionScope.SPRING_SECURITY_LAST_USERNAME !=''}"> <option:optionGroup type="select" required="false" cache="fasle" defaultDisp="- 一级类型 -" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}"/> </c:if> </auth:auth> </select> <select id="nsortId" name="nsortId" onChange="changeSubNsort(this.value)"> <option value="">-- 二级类型 --</option> </select> <select id="subNsortId" name="subNsortId"> <option value="">-- 三级类型 --</option> </select> &nbsp;品牌 <select id="brandId" name="brandId"> <option:optionGroup type="select" required="false" cache="fasle" hql="select t.brandId, t.brandName from Brand t where t.userName = ?" defaultDisp="--商品品牌--" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" /> </select> </div><div style="margin-top: 3px"> 还没有商品类型?请先&nbsp;<a href="${pageContext.request.contextPath}/admin/sort/load${applicationScope.WEB_SUFFIX}">创建类型</a>&nbsp;<a href="${pageContext.request.contextPath}/admin/brand/load${applicationScope.WEB_SUFFIX}">创建品牌</a> </div></td> <td width="25%" rowspan="9" align="center" valign="middle" style="margin: 0px"> <c:choose> <c:when test="${prod.pic!=null}"><a href="${pageContext.request.contextPath}/photoserver/photo/${prod.pic}" target="_blank"> <img src="${pageContext.request.contextPath}/photoserver/photo/${prod.pic}" height="235px" width="320px"/></a> </c:when> <c:otherwise>请上传商品图片</c:otherwise> </c:choose> </td> </tr> <tr> <td width="120px"><div align="center">商品名称<font color="#ff0000">*</font></div></td> <td> <input type="text" name="name" id="name" size="50" value="${prod.name}" maxlength="120"/></td> </tr> <tr> <td width="120px"><div align="center">商品型号</div></td> <td> <input type="text" name="modelId" id="modelId" size="50" value="${prod.modelId}" maxlength="50"/></td> </tr> <tr> <td width="120px"><div align="center">关键字</div></td> <td> <input type="text" name="keyWord" id="keyWord" size="50" value="${prod.keyWord}" maxlength="100"/></td> </tr> <tr> <td width="120px"><div align="center">价格</div></td> <td> 原价&nbsp;<input type="text" name="price" id="price" size="10" value="${prod.price}" maxlength="15" />&nbsp; 现价&nbsp;<input type="text" name="cash" id="cash" size="10" value="${prod.cash}" maxlength="15"/>&nbsp; 运费&nbsp;<input type="text" name="carriage" id="carriage" size="10" value="${prod.carriage}" maxlength="15"/> </td> </tr> <tr> <td width="120px"><div align="center">库存量</div></td> <td> <input type="text" name="stocks" id="stocks" size="15" value="${prod.stocks}" maxlength="15"/> </td> </tr> <tr> <td width="120px"><div align="center">类型</div></td> <td> <select id="prodType" name="prodType" style="display: none"> <option:optionGroup type="select" required="true" cache="true" beanName="PRODUCT_TYPE" selectedValue="${prod.prodType}"/> </select>&nbsp; 是否推荐到首页<select id="commend" name="commend"> <c:choose> <c:when test="${prod.commend == 'Y'}"> <option value="Y" selected="selected">是</option> <option value="N" >否</option> </c:when> <c:otherwise> <option value="N" selected="selected">否</option> <option value="Y">是</option> </c:otherwise> </c:choose> </select> </td> </tr> <tr> <td width="120px"><div align="center">有效时间</div></td> <td> 开始时间 <input readonly="readonly" name="startDate" id="startDate" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${prod.startDate}" pattern="yyyy-MM-dd"/>' /> &nbsp; 结束时间 <input readonly="readonly" name="endDate" id="endDate" class="Wdate" type="text" onClick="WdatePicker()" value='<fmt:formatDate value="${prod.endDate}" pattern="yyyy-MM-dd"/>' /> </td> </tr> <tr> <td width="120px"><div align="center">商品图片<font color="#ff0000">*</font></div></td> <td><input type="file" name="file" id="file" size="30"/> <input type="hidden" name="pic" id="pic" size="30" value="${prod.pic}"/>图片分辨率640×470,大小不能超过1M</td> </tr> <tr> <td width="120px"><div align="center">简要描述</div></td> <td colspan="2"><textarea style="width:100%;height:70" name="brief" id="brief" >${prod.brief}</textarea></td> </tr> <auth:auth ifAnyGranted="F_OPERATOR"> <tr> <td width="14%"><div align="center">详细描述</div></td> <td colspan="2"> <FCK:editor instanceName="content" height="600px" basePath="/plugins/fckeditor"> <jsp:attribute name="value">${prod.content}</jsp:attribute> </FCK:editor> </td> </tr> </auth:auth> <tr> <td colspan="3"><div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="button" value="下一步" onclick="javascript:submitNext()"/> <input type="button" value="完成" onclick="javascript:submitFinish()"/> </auth:auth> <input type="reset" value="重置"/> <input type="button" value="返回" onclick='window.location="${pageContext.request.contextPath}/admin/product/query${applicationScope.WEB_SUFFIX}"'/> </div></td> </tr> </tbody> </table> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 带星号<font color="#ff0000">*</font>的属性务必要填写,如果不填写则不在页面展示。如价格和库存量等。<br> 2. 商品类型:首先选择了一级类型,自动关联对应的二级类型,选择了二级类型,自动关联对应的三级类型<br> 3. 是否推荐到首页如果选择是,则会在首页的精品推荐中出现<br> 4. 商品在开始时间和时间结束之内有效,如果不填写则长期有效<br> 5. 详细描述可以上传图片,编辑html元素 </td><tr></table> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/prod/prod.jsp
Java Server Pages
oos
14,054
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ include file="/pages/common/back-common.jsp"%> <html> <head> <title>创建热门商品</title> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { title: { required: true, minlength: 5 }, msg: "required" }, messages: { title: { required: "请输入标题", minlength: "请认真输入标题,不能少于5个字符" }, msg: { required: "请输入链接地址" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body class="bodymargin"> <form action="${pageContext.request.contextPath}/admin/hotsearch/save${applicationScope.WEB_SUFFIX}" method="post" id="form1"> <input id="id" name="id" value="${bean.id}" type="hidden"> <div align="center"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}">热门商品管理</a> &raquo; 创建热门商品</td></tr> </thead> </table> <table align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建热门商品 </div> </th> </tr> </thead> <tr> <td> <div align="right">标题<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="title" id="title" value="${bean.title}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">链接地址<font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="msg" id="msg" value="${bean.msg}" size="50"/></p> </td> </tr> <tr> <td> <div align="right">分类</div> </td> <td> <p> <select id="sort" name="sort"> <option:optionGroup type="select" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" defaultDisp="-- 一级分类 --" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${bean.sort}"/> </select></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <input type="submit" value="提交" /> </auth:auth> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/hotsearch/hotsearch.jsp
Java Server Pages
oos
4,452
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script src="${pageContext.request.contextPath}/css/alternative.js" type="text/javascript"></script> <title>热门列表</title> </head> <body class="bodymargin"> <% Integer offset = (Integer) request.getAttribute("offset"); %> <form action="${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr><td><a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}" target="_parent">首页</a> &raquo; 商品管理 &raquo; <a href="${pageContext.request.contextPath}/admin/hotsearch/query${applicationScope.WEB_SUFFIX}">热门商品管理</a></td></tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> 标题 <input type="text" name="title" maxlength="50" value="${bean.title}" /> 分类 <select id="sort" name="sort"> <option:optionGroup type="select" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" hql="select t.sortId, t.sortName from Sort t where t.userName = ?" param="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" selectedValue="${bean.sort}"/> </select> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${bean.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建热门商品" onclick='window.location="${pageContext.request.contextPath}/admin/hotsearch/load${applicationScope.WEB_SUFFIX}"'/> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/hotsearch/query${applicationScope.WEB_SUFFIX}" id="item" export="true" class="${tableclass}" style="width:100%"> <display:column title="顺序" class="orderwidth"><%=offset++%></display:column> <display:column title="标题" property="title"></display:column> <display:column title="分类"> <option:optionGroup type="label" required="false" cache="fasle" beanName="Sort" beanId="sortId" beanDisp="sortName" selectedValue="${item.sort}" defaultDisp="首页"/> </display:column> <display:column title="链接地址"><a href="${item.msg}" target="_blank">${item.msg}</a></display:column> <display:column title="日期" property="date" format="{0,date,yyyy-MM-dd HH:mm}" sortable="true"></display:column> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <display:column title="商城名称" property="userName"></display:column> </auth:auth> <display:column title="操作" media="html" class="actionwidth"> <a href= "${pageContext.request.contextPath}/admin/hotsearch/load/${item.id}${applicationScope.WEB_SUFFIX}" title="修改"><img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"></a> <auth:auth ifAnyGranted="F_OPERATOR"> <a href='javascript:deleteById("${item.id}")' title="删除"><img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"></a> </auth:auth> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <table style="width: 100%; border: 0px"><tr><td align="left">说明:<br> 1. 热门商品出现在一级商品类型的首页<br> 2. <img alt="修改" src="${pageContext.request.contextPath}/img/grid_edit.png"> 修改按钮<br> 3. <img alt="删除" src="${pageContext.request.contextPath}/img/grid_delete.png"> 删除按钮<br> </td><tr></table> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "${pageContext.request.contextPath}/admin/hotsearch/delete/"+id+"${applicationScope.WEB_SUFFIX}"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } highlightTableRows("item"); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/hotsearch/hotsearchList.jsp
Java Server Pages
oos
5,303
<%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <html> <head> <title>创建Ask</title> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/common/js/jquery.validate.js'/>" /></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <style type="text/css" media="all"> @import url(<ls:templateResource item='/css/screen.css'/>); </style> <script language="javascript"> $.validator.setDefaults({ }); $(document).ready(function() { jQuery("#form1").validate({ rules: { banner: { required: true, minlength: 5 }, url: "required" }, messages: { banner: { required: "Please enter banner", minlength: "banner must consist of at least 5 characters" }, url: { required: "Please provide a password" } } }); $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); </script> </head> <body> <form action="<ls:url address='/admin/ask/save'/>" method="post" id="form1"> <input id="askId" name="askId" value="${ask.askId}" type="hidden"> <div align="center"> <table border="0" align="center" class="${tableclass}" id="col1"> <thead> <tr class="sortable"> <th colspan="2"> <div align="center"> 创建Ask </div> </th> </tr> </thead> <tr> <td> <div align="center">UserId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userId" id="userId" value="${ask.userId}" /></p> </td> </tr> <tr> <td> <div align="center">UserName: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="userName" id="userName" value="${ask.userName}" /></p> </td> </tr> <tr> <td> <div align="center">ProdId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="prodId" id="prodId" value="${ask.prodId}" /></p> </td> </tr> <tr> <td> <div align="center">ShopId: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="shopId" id="shopId" value="${ask.shopId}" /></p> </td> </tr> <tr> <td> <div align="center">Type: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="type" id="type" value="${ask.type}" /></p> </td> </tr> <tr> <td> <div align="center">Content: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="content" id="content" value="${ask.content}" /></p> </td> </tr> <tr> <td> <div align="center">Comment: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="comment" id="comment" value="${ask.comment}" /></p> </td> </tr> <tr> <td> <div align="center">CreateTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="createTime" id="createTime" value="${ask.createTime}" /></p> </td> </tr> <tr> <td> <div align="center">ReplyTime: <font color="ff0000">*</font></div> </td> <td> <p><input type="text" name="replyTime" id="replyTime" value="${ask.replyTime}" /></p> </td> </tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="添加" /> <input type="reset" value="重置" /> <input type="button" value="返回" onclick="window.location='<ls:url address="/admin/ask/query"/>'" /> </div> </td> </tr> </table> </div> </form> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/ask/ask.jsp
Java Server Pages
oos
4,936
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="/WEB-INF/tld/displaytag.tld" prefix="display"%> <html> <head> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/optionService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css" media="all"> @import url("<ls:templateResource item='/css/screen.css'/>"); </style> <title>Ask列表</title> </head> <body> <form action="<ls:url address='/admin/ask/query'/>" id="form1" method="post"> <table class="${tableclass}" style="width: 100%"> <thead> <tr> <td> <a href="<ls:url address='/admin/index'/>" target="_parent">首页</a> &raquo; 商城管理 &raquo; <a href="<ls:url address='/admin/ask/query'/>">Ask</a> </td> </tr> </thead> </table> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> 商城名称&nbsp;<input type="text" name="userName" maxlength="50" value="${ask.userName}" /> </auth:auth> <input type="submit" value="搜索"/> <input type="button" value="创建Ask" onclick='window.location="<ls:url address='/admin/ask/load'/>"'/> <br> </form> <div align="center"> <%@ include file="/pages/common/messages.jsp"%> <display:table name="list" requestURI="/admin/ask/query" id="item" export="false" class="${tableclass}" style="width:100%"> <display:column title="AskId" property="askId"></display:column> <display:column title="UserId" property="userId"></display:column> <display:column title="UserName" property="userName"></display:column> <display:column title="ProdId" property="prodId"></display:column> <display:column title="ShopId" property="shopId"></display:column> <display:column title="Type" property="type"></display:column> <display:column title="Content" property="content"></display:column> <display:column title="Comment" property="comment"></display:column> <display:column title="CreateTime" property="createTime"></display:column> <display:column title="ReplyTime" property="replyTime"></display:column> <display:column title="Action" media="html"> <a href="<ls:url address='/admin/ask/load/${item.askId}'/>" title="修改"> <img alt="修改" src="<ls:templateResource item='/img/grid_edit.png'/>"> </a> <a href='javascript:deleteById("${item.askId}")' title="删除"> <img alt="删除" src="<ls:templateResource item='/img/grid_delete.png'/>"> </a> </display:column> </display:table> <c:if test="${not empty toolBar}"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </c:if> </div> <script language="JavaScript" type="text/javascript"> <!-- function deleteById(id) { if(confirm(" 确定删除 ?")){ window.location = "<ls:url address='/admin/ask/delete/" + id + "'/>"; } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/backend/default/ask/askList.jsp
Java Server Pages
oos
3,822
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <script type="text/javascript"> function turnToPage(id) { document.getElementById('nsortId').value= id; document.getElementById('subNsortId').value= null; pager(1);//turn to another nosrt page } function turnToSubSortPage(id) { document.getElementById('subNsortId').value= id; pager(1);//turn to another nosrt page } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } </script> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <a target="_blank" href="${pageContext.request.contextPath}/sort/${sort.sortId}${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${sort.picture}" width="740px" class="banner" height="180px"></a> </td> </tr> <tr> <td style="border-bottom:#cccccc 1px solid" bgcolor="#f7f7f7"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="25" align="left">&nbsp; <a href="${pageContext.request.contextPath}/sort/${sort.sortId}${applicationScope.WEB_SUFFIX}">${sort.sortName}</a> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${sort.sortId}&nsortId=${nsort.nsortId}">${nsort.nsortName}</a> <c:if test="${subNsort.nsortName!=null}"> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${sort.sortId}&nsortId=${nsort.nsortId}&subNsortId=${subNsort.nsortId}">${subNsort.nsortName}</a> </c:if> &nbsp;</td> <td align="right"> <c:if test="${not empty nsort}"> <select onchange="turnToPage(this.value)"> <c:forEach items="${requestScope.nsortList}" var="nsort"> <c:choose> <c:when test="${CurrentNsortId == nsort.nsortId}"> <option id="${nsort.nsortId}" value="${nsort.nsortId}" class="c" selected> ${nsort.nsortName} </option> </c:when> <c:otherwise> <option id="${nsort.nsortId}" value="${nsort.nsortId}" class="c"> ${nsort.nsortName} </option> </c:otherwise> </c:choose> </c:forEach> </select> </c:if> <c:if test="${not empty hasSubSort}"> <select onchange="turnToSubSortPage(this.value)"> <option id="allProduct" value="0"><fmt:message key="refer.category"/></option> <c:forEach items="${requestScope.subNsortList}" var="subNsort"> <c:choose> <c:when test="${CurrentSubNsortId == subNsort.nsortId}"> <option id="${subNsort.nsortId}" value="${subNsort.nsortId}" class="c" selected> ${subNsort.nsortName} </option> </c:when> <c:otherwise> <option id="${subNsort.nsortId}" value="${subNsort.nsortId}" class="c"> ${subNsort.nsortName} </option> </c:otherwise> </c:choose> </c:forEach> </select> </c:if> </td> </tr> </table></td> </tr> <tr height="40" valign="bottom"> <td > <p align="right"><c:out value="${toolBar}" escapeXml="${toolBar}"></c:out></p> </td> </tr> <tr> <td width="100%"> <form action="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <input type="hidden" id="curPageNO" name="curPageNO" value="${prod.curPageNO}"> <input type="hidden" name="sortId" value="${sort.sortId}"> <input type="hidden" id="nsortId" name="nsortId" value="${nsort.nsortId}"> <input type="hidden" id="subNsortId" name="subNsortId" value="${subNsort.nsortId}"> <table width="100%" cellspacing="10" cellpadding="0"> <tr> <c:forEach items="${requestScope.prodDetailList}" var="prodDetail" varStatus="status"> <c:choose> <c:when test="${(status.index+1)%2==0&&(status.index+1)>=2}"> <td width="50%" align="center"> </c:when> <c:otherwise> <td width="50%" align="center" style="position: relative;border-right:#989DA5 1px dotted;"> </c:otherwise> </c:choose> <table width="100%" align="center" cellpadding="0" cellspacing="0"> <tr> <td rowspan="3" align="center" width="50%"> <div id="apple"> <a href="${pageContext.request.contextPath}/views/${prodDetail.prodId}${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/photoserver/images/${prodDetail.pic}" width="142px" height="105px" style="margin: 5px" ></a></div> </td> </tr> <tr align="left" > <td width="50%"> <a href="${pageContext.request.contextPath}/views/${prodDetail.prodId}${applicationScope.WEB_SUFFIX}"> <font color="#006699"><u>${prodDetail.name}</u> </font> </a> </td> </tr> <c:if test="${not empty prodDetail.cash}"> <tr> <td width="50%" align="left" valign="top"> <fmt:message key="prod_price" /> <s><fmt:formatNumber type="currency" value="${prodDetail.price}" pattern="${CURRENCY_PATTERN}"/> </s> <br> <fmt:message key="prod_cash" /> <font color="red"> <fmt:formatNumber type="currency" value="${prodDetail.cash}" pattern="${CURRENCY_PATTERN}"/> </font> <br> </td> </tr> </c:if> </table> </td> <c:if test="${(status.index+1)%2==0&&(status.index+1)>=2}"> </tr> <tr> </c:if> </c:forEach> </tr> </table> </form> </td> </tr> <tr> <td width="100%" height="20"> <div align="center"></div></td> </tr> <tr> <td width=744px height="23"> <p align="right"><c:out value="${toolBar}" escapeXml="${toolBar}"></c:out></p></td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/smallsort.jsp
Java Server Pages
oos
7,444
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <jsp:directive.page import="com.legendshop.core.UserManager" /> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/randomimage.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <c:forEach items="${requestScope.USER_REG_ADV_740}" var="adv"> <table width="100%" cellspacing="0" cellpadding="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="100%" class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"> <div align="center"> <b><fmt:message key="leave.word" /> </b> </div> </td> </tr> <tr> <td> <form method="POST" action="${pageContext.request.contextPath}/admin/userComment/save${applicationScope.WEB_SUFFIX}" id="form1" name="form1" onsubmit="return validateRandNum('${pageContext.request.contextPath}');"> <input id="userId" name="userId" value="<%=UserManager.getUserId(request)%>" type="hidden" /> <input id="userName" name="userName" value="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" type="hidden" /> <table> <tr> <td width="150px"> <div align="right"> <font color="#ff0000">*</font> <fmt:message key="user.name" />: </div> </td> <td> <div align="left"> <p> <input type="text" id="yourName" name="yourName" size="30" maxlength="30"> </p> </div> </td> </tr> <tr> <td> <div align="right"> <font color="#ff0000">*</font> <fmt:message key="content" />: </div> </td> <td> <textarea rows="10" cols="50" id="content" name="content" ></textarea> </td> </tr> <tr> <td align="right"><fmt:message key="validation.code"/>:</td> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value="<fmt:message key="randomimage.errors.required"/>"/> <input type="hidden" id="charactors4" name="charactors4" value="<ls:i18n key="randomimage.charactors.required" length="6"/>"/> <input type="hidden" id="errorImage" name="errorImage" value="<fmt:message key="error.image.validation"/>"/> <td align="left"><input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="7" size="7" tabindex="3" > <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>"/></td> </tr> <tr><td></td><td align="left"><fmt:message key="change.random1"/> &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a></td></tr> <tr> <td colspan="2"> <div align="center"> <input type="submit" value="<fmt:message key="submit"/>" class="s" /> </div> </td> </tr> </table> </form> </td> </tr> </table> <script type="text/javascript"> jQuery(document).ready(function() { jQuery("#form1").validate({ rules: { yourName: { required: true }, content: { required: true, minlength: 3 } }, messages: { yourName: { required: '<fmt:message key="username.required"/>' }, content: { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="3"/></fmt:message>' } } }) }); </script>
100mall
trunk/100mall/webapps/pages/frontend/default/leaveword.jsp
Java Server Pages
oos
5,220
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><fmt:message key="find.my.password"/></title> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/randomimage.js"></script> <script type="text/javascript"> function reset(){ if(validateRandNum('${pageContext.request.contextPath}')){ var resetpass = document.getElementById("resetpass"); var sendMail = document.getElementById("sendMail"); var userName = document.getElementById("userName").value; var userMail = document.getElementById("userMail").value; CommonService.resetPassword(userName,userMail, function(retData){ if(retData !=null){ alert('<fmt:message key="check.parameter"/>'); }else{ resetpass.style.display = "none"; sendMail.style.display = "block"; } }) ; } } </script> </head> <body> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value='<fmt:message key="randomimage.errors.required"/>'/> <input type="hidden" id="charactors4" name="charactors4" value='<ls:i18n key="randomimage.charactors.required" length="6"/>'/> <input type="hidden" id="errorImage" name="errorImage" value='<fmt:message key="error.image.validation"/>'/> <table class="tables" id="resetpass" cellpadding="0" cellspacing="0"> <tr height="25px"> <td colspan="2" class="titlebg"><div style="font-size: 16px;font-weight: bold;"><fmt:message key="find.my.password"/></div><br></td> </td> </tr> <tr height="25px"> <td><fmt:message key="user.name"/>:</td> <td><input type="text" maxlength="50" id="userName" name="userName"/> </td> </tr> <tr height="25px"> <td><fmt:message key="user.email"/>:</td> <td><input type="text" maxlength="50" id="userMail" name="userMail"/> </td> </tr> <tr height="25px"> <td><fmt:message key="validation.code"/>:</td> <td> <input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="50" tabindex="3" > </td> </tr> <tr height="25px"> <td></td> <td> <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>"/> &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a> </td> </tr> <tr height="25px"><td colspan="2" align="center"><input type="submit" value='<fmt:message key="submit"/>' onclick="reset()"/></td></tr> </table> <table id="sendMail" style="display: none"> <tr><td><br><br><fmt:message key="reset.mail.sended"/></td></tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/resetpassword.jsp
Java Server Pages
oos
3,366
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <table class="tablesnoborder" width="100%" cellpadding="0" cellspacing="0"> <tr style="font-weight: bold"> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <td width="10%"> <div align="center"> <fmt:message key="shop.name" /> </div> </td> </c:if> <td width="42%" height="25"> <div align="center"> <fmt:message key="product.name" /> </div> </td> <td width="12%"> <div align="center"> <fmt:message key="product.price" /> </div> </td> <td width="12%"> <div align="center"> <fmt:message key="product.attribute" /> </div> </td> <td width="8%"> <div align="center"> <fmt:message key="product.number" /> </div> </td> <td width="150px"> <div align="center"> <fmt:message key="price.total" /> </div> </td> <td width="100px"> <div align="center"> <fmt:message key="operation"/> </div> </td> </tr> <c:forEach items="${requestScope.baskets}" var="basket"> <tr> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <td height="25"> <div align="center"> <a href="${pageContext.request.contextPath}/shop/${basket.shopName}${applicationScope.WEB_SUFFIX}">${basket.shopName}</a> </div> </td> </c:if> <td> <a target="_blank" href="${pageContext.request.contextPath}/views/${basket.prodId}${applicationScope.WEB_SUFFIX}"><font color="#FF0000">${basket.prodName}</font> </a> </td> <td height="25"> <div align="center"> <fmt:formatNumber type="currency" value="${basket.cash}" pattern="${CURRENCY_PATTERN}"/> </div> </td> <td height="25"> <div align="center"> ${basket.attribute} </div> </td> <td width="65" height="25"> <div align="center">${basket.basketCount}</div> </td> <td height="25"> <div align="center"> <fmt:formatNumber type="currency" value="${basket.total}" pattern="${CURRENCY_PATTERN}"/> <c:if test="${basket.carriage != null && basket.carriage > 0}"> (<fmt:message key="carriage.charge"/><fmt:formatNumber type="currency" value="${basket.carriage}" pattern="${CURRENCY_PATTERN}"/>)</c:if> </div> </td> <td> <a href="${pageContext.request.contextPath}/clear${applicationScope.WEB_SUFFIX}?basketId=${basket.basketId}" title='<fmt:message key="product.name.delete"/>'><fmt:message key="delete"/></a> </td> </tr> </c:forEach> <c:if test="${requestScope.totalcash != null}"> <tr> <td height="25" colspan="8"> <div align="right" style="margin-right: 86px;"> <b><fmt:message key="price.total" /> <fmt:formatNumber type="currency" value="${requestScope.totalcash}" pattern="${CURRENCY_PATTERN}"/> </b> </div> </td> </tr> </c:if> <c:if test="${requestScope.baskets != null && fn:length(requestScope.baskets) > 0}"> <tr> <td colspan="8"> <div style="margin: 3px"> <a href="${pageContext.request.contextPath}/buy${applicationScope.WEB_SUFFIX}" onMouseOver="btnMouseOver('mbtn0')" onMouseOut="btnMouseOut('mbtn0')" onMouseDown="btnMouseDown('mbtn0')"> <img name="mbtn0" /> </a> <a href="${pageContext.request.contextPath}/clear${applicationScope.WEB_SUFFIX}" onMouseOver="btnMouseOver('mbtn1')" onMouseOut="btnMouseOut('mbtn1')" onMouseDown="btnMouseDown('mbtn1')"> <img name="mbtn1" /> </a> <a href="${pageContext.request.contextPath}/cash${applicationScope.WEB_SUFFIX}" onMouseOver="btnMouseOver('mbtn2')" onMouseOut="btnMouseOut('mbtn2')" onMouseDown="btnMouseDown('mbtn2')"> <img name="mbtn2" /> </a> </div> </td> </tr> <script type="text/javascript"> <!-- var btnCount = 3; var staCount = 3; var btnImages = new Array(); for (i= 0; i< btnCount; i++) { btnImages[i] = new Array(); for (j= 0; j< staCount; j++) { btnImages[i][j] = new Image(); btnImages[i][j].src = '${pageContext.request.contextPath}<fmt:message key="img.btn"/>' + i + '_' + j + '.gif'; } } document.images['mbtn0'].src = '${pageContext.request.contextPath}<fmt:message key="img.btn"/>' + '0_0.gif'; document.images['mbtn1'].src = '${pageContext.request.contextPath}<fmt:message key="img.btn"/>' + '1_0.gif'; document.images['mbtn2'].src = '${pageContext.request.contextPath}<fmt:message key="img.btn"/>' + '2_0.gif'; function btnMouseOut(img) { document.images[img].src = btnImages[img.substring(img.indexOf('mbtn')+4,img.length)][0].src; }; function btnMouseOver(img) { document.images[img].src = btnImages[img.substring(img.indexOf('mbtn')+4,img.length)][1].src; }; function btnMouseDown(img) { document.images[img].src = btnImages[img.substring(img.indexOf('mbtn')+4,img.length)][2].src; }; //--> </script> </c:if> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/bought.jsp
Java Server Pages
oos
5,576
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <c:if test="${requestScope.hotonList != null}"> <table width="205px" style="margin-bottom: 4px;margin-right: 5px;" class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="hot.sale"/></td> </tr> <tr> <td> <c:forEach items="${requestScope.hotonList}" var="hoton"> <table width="100%" cellpadding="1" cellspacing="0"> <tr> <td width="15" height="22" align="center"> <img src="${pageContext.request.contextPath}/img/dot.gif" style="margin-left: 3px"> </td> <td width="98%" align="left" title="${hoton.name}"> <div class="topnewsfixed" title="${hoton.name}"> <a href="${pageContext.request.contextPath}/views/${hoton.prodId}${applicationScope.WEB_SUFFIX}">${hoton.name}</a> </div> </td> </tr> </table> </c:forEach> </td> </tr> </table> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/hoton.jsp
Java Server Pages
oos
1,576
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <div class="rollBox"> <div class="LeftBotton" onmousedown="ISL_GoUp()" onmouseup="ISL_StopUp()" onmouseout="ISL_StopUp()"></div> <div class="Cont" id="ISL_Cont"> <div class="ScrCont"> <div id="List1"> <!-- 图片列表 begin --> <c:forEach items="${requestScope.newestList}" var="prod" varStatus="status"> <div class="pic"> <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/photoserver/images//${prod.pic}" width="112" height="90" alt="${prod.name}"/></a> <font color="red" style="font-weight: bold;"><fmt:formatNumber type="currency" pattern="${CURRENCY_PATTERN}" value="${prod.cash}"/></font><br> <font color="#006699"><a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" target="_blank">${prod.name}</a></font> </div> </c:forEach> <!-- 图片列表 end --> </div> <div id="List2"></div> </div> </div> <div class="RightBotton" onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()"></div> </div> <style type="text/css"> <!-- .rollBox{width:580px;overflow:hidden;padding:4px 0 4px 0px;} .rollBox .LeftBotton{height:52px;width:19px;background:url(${pageContext.request.contextPath}/jsp/img/left_right.gif) no-repeat 11px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;} .rollBox .RightBotton{height:52px;width:19px;background:url(${pageContext.request.contextPath}/jsp/img/left_right.gif) no-repeat -8px 0;overflow:hidden;float:left;display:inline;margin:25px 0 0 0;cursor:pointer;} .rollBox .Cont{width:539px;overflow:hidden;float:left;} .rollBox .ScrCont{width:10000000px;} .rollBox .Cont .pic{width:135px;float:left;text-align:center;} .rollBox .Cont .pic img{padding:4px;background:#fff;border:1px solid #ccc;display:block;margin:0 auto;} .rollBox .Cont .pic p{line-height:26px;color:#505050;} .rollBox .Cont a:link,.rollBox .Cont a:visited{color:#626466;text-decoration:none;} .rollBox .Cont a:hover{color:#f00;text-decoration:underline;} .rollBox #List1,.rollBox #List2{float:left;} --> </style> <script language="javascript" type="text/javascript"> <!-- var Speed = 10; //速度(毫秒) var Space = 5; //每次移动(px) var PageWidth = 135; //翻页宽度 var fill = 0; //整体移位 var MoveLock = false; var MoveTimeObj; var Comp = 0; var AutoPlayObj = null; GetObj("List2").innerHTML = GetObj("List1").innerHTML; GetObj('ISL_Cont').scrollLeft = fill; GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);} GetObj("ISL_Cont").onmouseout = function(){AutoPlay();} AutoPlay(); function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}} function AutoPlay(){ //自动滚动 clearInterval(AutoPlayObj); AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',5000); //间隔时间 } function ISL_GoUp(){ //上翻开始 if(MoveLock) return; clearInterval(AutoPlayObj); MoveLock = true; MoveTimeObj = setInterval('ISL_ScrUp();',Speed); } function ISL_StopUp(){ //上翻停止 clearInterval(MoveTimeObj); if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){ Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth); CompScr(); }else{ MoveLock = false; } AutoPlay(); } function ISL_ScrUp(){ //上翻动作 if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth} GetObj('ISL_Cont').scrollLeft -= Space ; } function ISL_GoDown(){ //下翻 clearInterval(MoveTimeObj); if(MoveLock) return; clearInterval(AutoPlayObj); MoveLock = true; ISL_ScrDown(); MoveTimeObj = setInterval('ISL_ScrDown()',Speed); } function ISL_StopDown(){ //下翻停止 clearInterval(MoveTimeObj); if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){ Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill; CompScr(); }else{ MoveLock = false; } AutoPlay(); } function ISL_ScrDown(){ //下翻动作 if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;} GetObj('ISL_Cont').scrollLeft += Space ; } function CompScr(){ var num; if(Comp == 0){MoveLock = false;return;} if(Comp < 0){ //上翻 if(Comp < -Space){ Comp += Space; num = Space; }else{ num = -Comp; Comp = 0; } GetObj('ISL_Cont').scrollLeft -= num; setTimeout('CompScr()',Speed); }else{ //下翻 if(Comp > Space){ Comp -= Space; num = Space; }else{ num = Comp; Comp = 0; } GetObj('ISL_Cont').scrollLeft += num; setTimeout('CompScr()',Speed); } } //--> </script>
100mall
trunk/100mall/webapps/pages/frontend/default/newestProduct.jsp
Java Server Pages
oos
5,113
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <link href="${pageContext.request.contextPath}/common/css/css.css" rel="stylesheet" type="text/css" /> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js" ></script> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js" ></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <style type="text/css" media="all"> tr.tableRowEven,tr.even { background-color: #f5f5f5 } </style> <% Integer offset = (Integer) request.getAttribute("offset"); %> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME !=null}"> <c:forEach items="${requestScope.USER_REG_ADV_950}" var="adv"> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table class="tables" width="100%" cellpadding="0" cellspacing="0"> <form action="${pageContext.request.contextPath}/order${applicationScope.WEB_SUFFIX}" id="orderForm" name="orderForm" method="post"> <tr> <td class="titlebgnormal" align="left" valign="middle">&nbsp; <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}"/> <input type="hidden" name="subCheck" id="subCheck" value="N"/> <a href="javascript:void(0)" onclick="changetab(1);" id="processingbutton" name="processingbutton"> <fmt:message key="order.processing"/> </a> <a href="javascript:void(0)" onclick="changetab(2);" id="processedbutton" name="processedbutton"><fmt:message key="order.processed"/></a> &nbsp;<fmt:message key="order.number"/>:<input type="text" value="${subForm.subNumber}" maxlength="30" name="subNumber" id="subNumber" class="input2"/> &nbsp; <fmt:message key="Order.Status"/>: <select id="status" name="status" style="height: 1.50em;"> <option:optionGroup type="select" required="false" cache="true" beanName="ORDER_STATUS" selectedValue="${subForm.status}"/> </select> <input type="submit" value="<fmt:message key="search"/>" class="s"/> </td> </tr> </form> <tr> <td valign="top" > <table style="width: 100%" id="col1"> <tr style="font-weight: bold" class="even"> <td width="20px">&nbsp;</td> <td width="160px"><fmt:message key="order.number"/></td> <td width="50px"><fmt:message key="price.hint"/></td> <td><fmt:message key="product.hint"/></td> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <td width="100px"><fmt:message key="shop.name"/></td> </c:if> <td width="120px"><fmt:message key="dateStr"/></td> <td width="100px"><fmt:message key="Order.Status"/></td> <td width="100px" height="25" align="center"><fmt:message key="operation"/></td> </tr> <c:forEach items="${requestScope.list}" var="order" varStatus="status"> <tr> <td height="25">&nbsp;<%=offset++%>&nbsp;</td> <td height="25"><a href='${pageContext.request.contextPath}/orderDetail/${order.subNumber}${applicationScope.WEB_SUFFIX}' target="_blank">${order.subNumber}</a></td> <td height="25"><b><fmt:formatNumber type="currency" value="${order.total}" pattern="${CURRENCY_PATTERN}"/></b></td> <td height="25">${order.prodName}</td> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <td height="25"><a href="${pageContext.request.contextPath}/shop/${order.shopName}${applicationScope.WEB_SUFFIX}" target="_blank">${order.shopName}</a></td> </c:if> <td height="25"><fmt:formatDate value="${order.subDate}" pattern="yyyy-MM-dd HH:mm"/></td> <td height="25"> <option:optionGroup type="label" required="true" cache="true" beanName="ORDER_STATUS" selectedValue="${order.status}"/> </td> <td height="25" align="center"> <c:if test="${order.status == 1 or order.status == 7}"> <a href='${pageContext.request.contextPath}/orderDetail/${order.subNumber}${applicationScope.WEB_SUFFIX}' target="_blank"><fmt:message key="payment.hint"/></a> </c:if> <c:if test="${order.status == 3}"> <!-- 3:卖家已经发货 --> <!-- 4:交易成功 --> <a href="javascript:void(0)" onclick='javascript:updateSubStatus("${order.subId}",4,"${order.subNumber}");'><fmt:message key="ensure.recieve"/></a> <!-- 6:退款中的订单 --> <a href="javascript:void(0)" onclick='javascript:updateSubStatus("${order.subId}",6,"${order.subNumber}");'><fmt:message key="apply.for.refundment"/></a> </c:if> <c:if test="${order.status == 6}"><!-- 6:退款中的订单 --> <!-- 5:交易关闭 --> <a href="javascript:void(0)" onclick='javascript:updateSubStatus("${order.subId}",5,"${order.subNumber}");'><fmt:message key="trade.close"/></a> </c:if> <!-- 用户不可删除,系统在30天后自动housekeep <c:if test="${order.status == 1 or order.status == 7}"> <a href='javascript:deleteSub("${order.subId}","${order.subNumber}");'><fmt:message key="delete"/></a> </c:if> --> </td> </tr> </c:forEach> </table> </td> </tr> <tr> <td align="right" ><c:out value="${toolBar}" escapeXml="${toolBar}"></c:out></td> </tr> </table> <script type=text/javascript> function submitOrderForm(subCheck){ document.getElementById("subCheck").value= subCheck; document.getElementById("orderForm").submit(); } function changetab(a){ if(a==1){ document.getElementById('processingbutton').className='selected'; document.getElementById('processedbutton').className=''; submitOrderForm("N"); }else{ document.getElementById('processedbutton').className='selected'; document.getElementById('processingbutton').className=''; submitOrderForm("Y"); } } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("orderForm").submit(); } $(document).ready(function() { $("#col1 tr").each(function(i){ if(i>0){ if(i%2 == 0){ $(this).addClass('even'); }else{ $(this).addClass('odd'); } } }); $("#col1 th").addClass('sortable'); }); function deleteSub(subId,subNumber) { if(confirm('<fmt:message key="delete.order"/> '+subNumber+' ?')){ CommonService.deleteSub(subId,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ if(retData == null ){ //alert('<fmt:message key="operation.successful"/>') ; window.location.reload() ; }else{ alert('<fmt:message key="entity.deleted"/>') ; } }) ; } } function updateSubStatus(subId,status,subNumber) { if(confirm('<fmt:message key="confirm.order"/> '+subNumber+' ?')){ CommonService.updateSub(subId,status,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ if(retData == null ){ //alert('<fmt:message key="operation.successful"/>') ; window.location.reload() ; }else{ alert('<fmt:message key="operation.fail"/>' + retData) ; } }) ; } } function onloadSetup(){ if(${subForm.subCheck == 'Y'}){ document.getElementById('processedbutton').className='selected'; document.getElementById('processingbutton').className=''; document.getElementById("subCheck").value= 'Y'; }else{ document.getElementById('processingbutton').className='selected'; document.getElementById('processedbutton').className=''; document.getElementById("subCheck").value= 'N'; } } onloadSetup(); </script> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/order.jsp
Java Server Pages
oos
8,921
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <jsp:include flush="true" page="/top${applicationScope.WEB_SUFFIX}" /> <div id="bodyer"> <table width="954px" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px"> <tr> <td><tiles2:insertAttribute name="main" ignore="true" /></td> </tr> <tr> <td> <div style="margin-top: 5px"> <jsp:include flush="true" page="/hotview${applicationScope.WEB_SUFFIX}"></jsp:include> </div> </td> </tr> <tr> <td valign="top"> <%@ include file="copy.jsp"%></td> </tr> </table> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/topFrame.jsp
Java Server Pages
oos
704
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <div class="recommond"> <fmt:message key="product.recommend" /> <table width="100%" cellpadding="0" cellspacing="10"> <tr> <c:forEach items="${requestScope.productList}" var="prod" varStatus="status"> <td width="20%" align="center" style="font-weight: normal;color: #666666"> <div> <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" ><img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" width="165px" height="120px" title="${prod.name}" id="pic"></a></div> <div class="topnewsfixed" title="${prod.name}">${prod.name}</div> <c:if test="${not empty prod.cash}"> <fmt:message key="prod_cash" /> <font color="red"><fmt:formatNumber type="currency" value="${prod.cash}" pattern="${CURRENCY_PATTERN}"/></font> </c:if> </td> <c:if test="${(status.index+1)%5==0&&(status.index+1)>=5}"></tr><tr></c:if> </c:forEach> </tr> </table> </div>
100mall
trunk/100mall/webapps/pages/frontend/default/recommend.jsp
Java Server Pages
oos
1,278
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205px" cellspacing="0" cellpadding="0" bgcolor="#FFFFF6" style="margin-bottom: 5px;margin-right: 5px;table-layout: fixed;" class="tables"> <tr> <td class="titlebg"><fmt:message key="newsCenter"/> <a href="${pageContext.request.contextPath}/allNews${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/more.gif" width="45"></a></td> </tr> <tr height="135px"> <td valign="top" align="left"> <c:forEach items="${requestScope.newList}" var="new"> <div class="topnewsfixed"> <c:choose> <c:when test="${fn:length(new.newsTitle) > 18}"> <div title="${new.newsTitle}" class="topnewsfixed"> <img src="${pageContext.request.contextPath}/img/dot.gif" style="margin-left: 3px"><a href="${pageContext.request.contextPath}/news/${new.newsId}${applicationScope.WEB_SUFFIX}">${new.newsTitle}</a> </div> </c:when> <c:otherwise> <div class="topnewsfixed"> <img src="${pageContext.request.contextPath}/img/dot.gif" width="15" height="15" style="margin-left: 3px"><a href="${pageContext.request.contextPath}/news/${new.newsId}${applicationScope.WEB_SUFFIX}">${new.newsTitle}</a> </div> </c:otherwise> </c:choose> </div> </c:forEach> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/topsortnews.jsp
Java Server Pages
oos
1,678
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <jsp:include flush="true" page="/top${applicationScope.WEB_SUFFIX}" /> <div id="bodyer"> <table width="952px" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px"> <tr> <td valign="top" align="left"> <c:forEach items="${requestScope.SORT_ADV_TOP}" var="adv"> <table width="205px" cellspacing="0" cellpadding="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <jsp:include page="/topnews${applicationScope.WEB_SUFFIX}?topsortnews=1" flush="true"/> <c:forEach items="${requestScope.SORT_ADV_MID1}" var="adv"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <jsp:include page="/topsort${applicationScope.WEB_SUFFIX}" flush="true" /> <c:forEach items="${requestScope.SORT_ADV_MID2}" var="adv"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <jsp:include page="/hoton${applicationScope.WEB_SUFFIX}?sortId=${sort.sortId}" flush="true"/> <c:forEach items="${requestScope.SORT_ADV_BOTTOM}" var="adv"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom:4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> </td> <td valign="top" width="744px"><tiles2:insertAttribute name="right" ignore="true" /> <%@ include file="visitedHistory.jsp"%></td> </tr> <tr> <td valign="top" colspan="2"> <%@ include file="copy.jsp"%></td> </tr> </table> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/sort.jsp
Java Server Pages
oos
2,515
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <table width="100%" cellspacing="0" cellpadding="0" class="tables"> <tr> <td class="titlebg"><fmt:message key="contact.method"><fmt:param value="${sessionScope.shopName}"/></fmt:message></td> </tr> <tr> <td> <table width="100%" cellspacing="1" cellpadding="0" height="100%"> <tr> <c:if test="${user.shopDetail.shopPic != null}"> <td valign="top" width="300px"><div id="apple" style="margin: 5px"><img src="${pageContext.request.contextPath}/photoserver/photo/${user.shopDetail.shopPic}" width="300"/></div></td> </c:if> <td align="left" valign="top"> <table width="100%" align="center" cellpadding="0" cellspacing="0" style="margin-bottom: 6;margin-top: 9px"> <tr> <td width="110px" height="29"><div align="right"> <fmt:message key="mall.name"/>:</div></td> <td> ${user.shopDetail.sitename} </td> </tr> <tr> <tr> <td height="29"><div align="right"><fmt:message key="product.num"/>:</div></td> <td height="29"><div align="left">${user.shopDetail.productNum}</div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="shop.create.date"/>:</div></td> <td height="29"><div align="left"><fmt:formatDate value="${user.shopDetail.addtime}" pattern="yyyy-MM-dd"/></div></td> </tr> <td height="29"><div align="right"><fmt:message key="user.name"/>:</div></td> <td> ${user.userName} </td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="real.name"/>:</div></td> <td height="29"><div align="left"> <b>${user.nickName}</b> </div></td> </tr> <c:if test="${user.userTel != null && user.userTel != ''}"> <tr> <td height="29"><div align="right"><fmt:message key="Telphone"/>:</div></td> <td height="29"><div align="left"> ${user.userTel} </div></td> </tr> </c:if> <c:if test="${user.qq != null && user.qq != ''}"> <tr> <td height="29"><div align="right">QQ:</div></td> <td height="29"><div align="left"> <c:forEach var="qq" items="${user.qqList}"> <div style="margin: 5px"> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=${qq}&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:${qq}:42" alt="QQ:${qq}" title="QQ:${qq}"></a></div> </c:forEach> </div></td> </tr> </c:if> <c:if test="${user.msn != null && user.msn != ''}"> <tr> <td height="29"><div align="right">MSN:</div></td> <td height="29"><div align="left"> <p><a href="msnim:chat?contact=${user.msn}"> <font color="#008000">${user.msn}</font></a> </p> </div></td> </tr> </c:if> <c:if test="${user.fax != null && user.fax != ''}"> <tr> <td height="29"><div align="right"><fmt:message key="Fax"/>:</div></td> <td height="29"><div align="left">${user.fax}</div></td> </tr> </c:if> <c:if test="${user.userPostcode != null && user.userPostcode != ''}"> <tr> <td height="29"><div align="right"><fmt:message key="PostCode"/>:</div></td> <td height="29"><div align="left"> ${user.userPostcode} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.maddr != null && user.shopDetail.maddr != ''}"> <tr> <td height="29"><div align="right"><fmt:message key="Address"/>:</div></td> <td height="29"><div align="left"> ${user.shopDetail.maddr} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.msn != null && user.shopDetail.msn != ''}"> <tr> <td height="29"><div align="right">银行汇款帐号:</div></td> <td height="29"><div align="left"> ${user.shopDetail.msn} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.mname != null && user.shopDetail.mname != ''}"> <tr> <td height="29"><div align="right">收款人姓名:</div></td> <td height="29"><div align="left"> ${user.shopDetail.mname} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.code != null && user.shopDetail.code != ''}"> <tr> <td height="29"><div align="right">邮政编码:</div></td> <td height="29"><div align="left"> ${user.shopDetail.code} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.ymaddr != null && user.shopDetail.ymaddr != ''}"> <tr> <td height="29"><div align="right">汇款地址:</div></td> <td height="29"><div align="left"> ${user.shopDetail.ymaddr} </div></td> </tr> </c:if> <c:if test="${user.shopDetail.ymname != null && user.shopDetail.ymname != ''}"> <tr> <td height="29"><div align="right">邮递接收人:</div></td> <td height="29"><div align="left"> ${user.shopDetail.ymname} </div></td> </tr> </c:if> </table> </td> </tr> </table></td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/shopContact.jsp
Java Server Pages
oos
8,950
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@ include file="top.jsp"%> <script type="text/javascript" src="${pageContext.request.contextPath}/common/js/funcs.js"></script> <div id="bodyer"> <c:forEach items="${requestScope.INDEX_ADV_TOP}" var="adv"> <table width="954px" cellpadding="0" cellspacing="0" style="margin-top: 5px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="950px" cellspacing="0" cellpadding="0" align="center" style="margin-top: 4px"> <tr> <td> <%@ include file="notice.jsp"%> <%@ include file="topnews.jsp"%> </td> <td width="530px" valign="top"> <div class="flashNews" style="width: 530px"> <div id="Switch_1"><a id="imglink1" target="_blank" ><img id="img1" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_2" style="display:none;"><a id="imglink2" target="_blank"><img id="img2" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_3" style="display:none;"><a id="imglink3" target="_blank"><img id="img3" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_4" style="display:none;"><a id="imglink4" target="_blank"><img id="img4" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_5" style="display:none;"><a id="imglink5" target="_blank"><img id="img5" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_6" style="display:none;"><a id="imglink6" target="_blank"><img id="img6" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_7" style="display:none;"><a id="imglink7" target="_blank"><img id="img7" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="Switch_8" style="display:none;"><a id="imglink8" target="_blank"><img id="img8" width="530px" height="290px" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"/></a></div> <div id="SwitchTitle" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div> <ul id="SwitchNav" style="margin: 0px"></ul> <div class="bg" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"></div> </div> </td> <td valign="top" width="205px"><%@ include file="newproducts.jsp"%></td> </tr> </table> <c:forEach items="${requestScope.INDEX_ADV_MID}" var="adv"> <table width="954px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="954px" cellspacing="0" cellpadding="0" style="margin-bottom: 5px" class="tables"> <tr> <td valign="top" align="center"> <%@ include file="recommend.jsp"%> </td> </tr> </table> <c:forEach items="${requestScope.INDEX_ADV_BOTTOM}" var="adv"> <table width="954px" cellpadding="0" cellspacing="0" style="margin-top: 5px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="954px" cellspacing="0" cellpadding="0" align="center" > <tr> <td valign="top" align="center"> <%@ include file="copy.jsp"%> </td> </tr> </table> </div> <script type="text/javascript" src="${pageContext.request.contextPath}/common/js/couplet.js"></script> <script type="text/javascript"> <!-- var showad = '${not empty COUPLET}' == 'true'; var Toppx = 128; var AdDivW = 110; var AdDivH = 300; var PageWidth = 980; var MinScreenW = 1024; window.onscroll=scallWin; window.onresize=scallWin; window.onload=scallWin; if(showad){ var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:0px;z-index:2000;"><a href="javascript:void(0)" onclick="hidead()" style="color:black;text-decoration:none;font-size:12px;"><img src="${pageContext.request.contextPath}/img/close.gif"/></a></div>' var AdContentHtml = '<div align="center" style="color:green;font-size:23pt;font-family:黑体;"><a href="${COUPLET.linkUrl}" target="_blank"><img src="${pageContext.request.contextPath}/photoserver/photo/${COUPLET.picUrl}" width="110px" border="0"></a></div>'; document.write('<div id="coupletLeftDiv" style="position: absolute;border: 1px solid #CCCCCC; background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>'); document.write('<div id="coupletRightDiv" style="position: absolute;border: 1px solid #CCCCCC; background-color:#EEEEE2;z-index:1000;width:'+AdDivW+'px;top:-1000px;word-break:break-all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>'); } //indexJpg var Switcher = new Array(); var MaxScreen = '${MaxScreen}' ; var dataArray = eval('${indexJSON}'); if(dataArray!="undefined" || dataArray != null){ for(var i in dataArray){ MaxScreen = dataArray.length; var ii = parseInt(i); var data = dataArray[i] ; Switcher[ii+1] = Array(); Switcher[ii+1]['title'] = data.title ; Switcher[ii+1]['stitle'] = data.stitle ; Switcher[ii+1]['link'] = data.titleLink ; var imgorder = "img"+(ii+1); var imgs = document.getElementById(imgorder); imgs.src = '${pageContext.request.contextPath}/photoserver/photo/' + data.img; imgs.alt = data.alt; var linkorder = "imglink"+(ii+1); var links = document.getElementById(linkorder); links.href = data.link; } } if(MaxScreen == 0){ Switcher[1] = Array(); Switcher[1]['title'] = 'LegendShop - 微商(微型商城)平台'; Switcher[1]['stitle'] = '基于J2EE的MVC架构的高性能、独立可配置的多用户商城系统' ; Switcher[1]['link'] = '${DOMAIN_NAME}' ; var imgorder = "img1"; var imgs = document.getElementById(imgorder); imgs.src = '${pageContext.request.contextPath}/img/common.jpg'; imgs.alt = '基于J2EE的MVC架构的高性能、独立可配置的多用户商城系统'; var linkorder = "imglink1"; var links = document.getElementById(linkorder); links.href = '${DOMAIN_NAME}'; MaxScreen = 1; } switchPic(1); refreshSwitchTimer = setTimeout('reSwitchPic()', 6000); //--> </script> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/index.jsp
Java Server Pages
oos
7,559
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <jsp:include flush="true" page="/top${applicationScope.WEB_SUFFIX}" /> <div id="bodyer"> <table width="954px" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px"> <tr> <td valign="top" align="left"> <jsp:include page="/topnews${applicationScope.WEB_SUFFIX}?topsortnews=1" flush="true"/> <jsp:include page="/topsort${applicationScope.WEB_SUFFIX}" flush="true" /> <jsp:include page="/hoton${applicationScope.WEB_SUFFIX}?sortId=${sort.sortId}" flush="true"/> </td> <td valign="top" width="744px"><tiles2:insertAttribute name="right" ignore="true" /></td> </tr> <tr> <td valign="top" colspan="2"> <%@ include file="copy.jsp"%></td> </tr> </table> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/myaccount.jsp
Java Server Pages
oos
895
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <% int offset=((Integer)request.getAttribute("offset")).intValue(); %> <script type="text/javascript"> <!-- function pager(curPageNO){ window.location.href="${pageContext.request.contextPath}/allNews${applicationScope.WEB_SUFFIX}?curPageNO="+curPageNO; } function changePager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script> <c:forEach items="${requestScope.USER_REG_ADV_740}" var="adv"> <table width="100%" cellspacing="0" cellpadding="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="100%" class="tables" cellpadding="0" cellspacing="0"> <tr><td class="titlebg"><fmt:message key="newsCenter"/></td></tr> <tr> <td> <div style="margin: 8px;" align="right"> <form action="${pageContext.request.contextPath}/allNews${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> <fmt:message key="to.topic"/>: <select id="newsCategoryId" name="newsCategoryId" onchange="this.form.submit();"> <option value=""><fmt:message key="please.select"/></option> <option:optionGroup type="select" required="true" cache="fasle" beanName="NewsCategory" beanId="newsCategoryId" beanDisp="newsCategoryName" hql="select t.newsCategoryId, t.newsCategoryName from NewsCategory t where t.status = 1 and t.userName = ?" param="${sessionScope.shopName}" selectedValue="${newsCategoryId}"/> </select> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> </form> </div> </td> </tr> <c:forEach items="${requestScope.newsList}" var="news" varStatus="status"> <tr> <td align="left" style="border-bottom: 1px dotted #E9E9E9;padding: 3px"> <div> &nbsp;${status.index+1}. <a href="${pageContext.request.contextPath}/news/${news.newsId}${applicationScope.WEB_SUFFIX}"> <c:choose> <c:when test="${news.highLine == 1}"> <span style="font-weight:bold; color:#FF6600">${news.newsTitle}</span> </c:when> <c:otherwise> <span style="font-weight:bold;">${news.newsTitle}</span> </c:otherwise> </c:choose> </a> &nbsp;[<fmt:formatDate value="${news.newsDate}" pattern="yyyy-MM-dd"/>] </div> <div style="margin-left: 50px;margin-bottom: 8px;margin-top: 2px;">${news.newsBrief}</div> </td> </tr> </c:forEach> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/allnews.jsp
Java Server Pages
oos
3,209
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth"%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <lb:shopDetail var="shopDetail" /> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/optionService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/linked-select.js"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script> function changeCity(provinceid) { DWREngine.setAsync(false); if(provinceid!=null &&provinceid!=''){ var sql ="select cityid id, city name from ls_cities where provinceid = '"+provinceid+"'"; changeLinkedOptions1("cityid", false, sql,"-- 城市 --"); } DWREngine.setAsync(true); } function changeAreas(cityid) { DWREngine.setAsync(false); if(cityid!=null && cityid!=''){ var sql ="select areaid id, area name from ls_areas where cityid = '"+cityid+"'"; changeLinkedOptions1("areaid", false, sql,"-- 地区 --"); } DWREngine.setAsync(true); } function initSelect(provinceidValue,cityidValue,areasidValue){ DWRUtil.setValues({provinceid:provinceidValue}); changeCity(provinceidValue); DWRUtil.setValues({cityid:cityidValue}); changeAreas(cityidValue); DWRUtil.setValues({areaid:areasidValue}); } jQuery(document).ready(function() { //jQuery("b").css("color","red"); // jQuery("#apple img[rel]").overlay({effect: 'apple'}); initSelect('${provinceid}','${cityid}','${areaid}'); }); </script> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <style type="text/css"> a:visited { text-decoration: underline } a:hover { text-decoration: underline } a:active { text-decoration: underline } a:link { text-decoration: underline } BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #ffffff; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-TOP: 0px; } </style> <title>LegendShop - Java企业级多用户商城系统</title> <link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="${shopDetail.storeName},${shopDetail.briefDesc}" /> <meta name="keywords" content="${shopDetail.storeName},${shopDetail.briefDesc}" /> <meta name="keywords" content="shop,legend,LegendShop,B2B,B2C,网上商城,商城,电子商务,连锁店" /> </head> <body> <center> <table width="98%"> <tr> <td width="140px" style="BORDER-RIGHT: #999999 1px solid;vertical-align: top;" align="left"> <c:choose> <c:when test="${entityType == 0}"> <div style="font-weight: bold;"><fmt:message key="search.by.price"/></div><br> <div><fmt:message key="from.hint"/><input type="text" id="priceStart" name="priceStart" value="${priceStart}" maxlength="8" size="8"/> ¥</div><br> <div><fmt:message key="to.hint"/><input type="text" id="priceEnd" name="priceEnd" maxlength="8" value="${priceEnd}" size="8"/> ¥</div> </c:when> <c:when test="${entityType == 1}"> <div style="font-weight: bold;"><fmt:message key="search.shop.by.address"/></div><br> <select id="provinceid" name="provinceid" onChange="changeCity(this.value)"> <option:optionGroup type="select" required="false" cache="fasle" defaultDisp="-- 省份 --" sql="select t.provinceid, t.province from ls_provinces t"/> </select>&nbsp;<br/><br/> <select id="cityid" name="cityid" onChange="changeAreas(this.value)"> <option value="">-- 城市 --</option> </select>&nbsp;<br/><br/> <select id="areaid" name="areaid"> <option value="">-- 地区 --</option><br/> </select> </c:when> <c:otherwise></c:otherwise> </c:choose> </td> <td align="left" valign="top"> <c:choose> <c:when test="${requestScope.searchResult != null && entityType == 0}"> <div style="margin-left: 20px;font-size: 12pt" align="left"> <c:forEach items="${requestScope.searchResult}" var="record" varStatus="status"> <table cellpadding="2"> <tr> <td> <img src="${pageContext.request.contextPath}/photoserver/images/${record.pic}" width="120px" height="100px" style="margin-right: 3px"/> </td> <td style="vertical-align: top"><div> <div style="margin-top: 8px;font-size: 13pt"> <a href="${pageContext.request.contextPath}/views/${record.prodId}${applicationScope.WEB_SUFFIX}" target="_blank">${record.name}</a> </div> <div>${record.content}</div> <div> <c:if test="${record.price != null}"> <fmt:message key="prod_price"/> <s><fmt:formatNumber type="currency" value="${record.price}" pattern="${CURRENCY_PATTERN}"/></s> </c:if> <c:if test="${record.cash != null}"> <fmt:message key="prod_cash"/> <span style="font-weight: bold;"><fmt:formatNumber type="currency" value="${record.cash}" pattern="${CURRENCY_PATTERN}"/></span> </c:if> </div> <div><fmt:message key="product.sort"/> - <a href="${pageContext.request.contextPath}/sort/${record.sortId}${applicationScope.WEB_SUFFIX}" target="_blank">${record.sortName}</a> <a href="${pageContext.request.contextPath}/nsort/${record.sortId}-${record.nsortId}${applicationScope.WEB_SUFFIX}" target="_blank">${record.nsortName}</a> <a href="${pageContext.request.contextPath}/nsort/${record.sortId}-${record.nsortId}${applicationScope.WEB_SUFFIX}?subNsortId=${record.subNsortId}" target="_blank">${record.subNsortName}</a> </div> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <div style="color: green"> <fmt:message key="shop.name"/> - <a href="${pageContext.request.contextPath}/shop/${record.userName }${applicationScope.WEB_SUFFIX}" style="color: green" target="_blank">${record.userName}</a> </div> </c:if> </div></td> </tr> </table> </c:forEach> <c:if test="${toolBar!=null}"> <p align="right"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </p> </c:if> </div> </c:when> <c:when test="${requestScope.searchResult != null && entityType == 1}"> <!-- shop --> <div style="margin-left: 20px;font-size: 12pt" align="left"> <c:forEach items="${requestScope.searchResult}" var="record" varStatus="status"> <table cellpadding="2"> <tr> <td style="vertical-align: top" align="left"> <div> <div style="margin-top: 8px;font-size: 13pt"> <a href="${pageContext.request.contextPath}/shop/${record.storeName}${applicationScope.WEB_SUFFIX}" target="_blank">${record.sitename}</a> </div> <div>${record.detailDesc}</div> <div><fmt:message key="shop.contact.method"/> - <fmt:message key="Phone"/>: <span style="color: green">${record.userTel}</span> &nbsp; QQ:<span style="color: green">${record.qq}</span> &nbsp; MSN:<span style="color: green"> ${record.msnNumber}</span> </div> <div> <c:if test="${record.province != null}"> <fmt:message key="address"/> - ${record.province} <c:if test="${record.city != null}">&raquo; ${record.city} <c:if test="${record.area != null}">&raquo; ${record.area}</c:if> </c:if> </c:if> </div> <c:if test="${record.ymaddr != null}"> <div><fmt:message key="detail.address"/> - ${record.ymaddr}</div> </c:if> </div></td> </tr> </table> </c:forEach> <c:if test="${toolBar!=null}"> <p align="right"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </p> </c:if> </div> </c:when> <c:otherwise> <div style="font-size: 13pt;margin-left: 20px"> <fmt:message key="can.not.found"><fmt:param value="${keyword}"/></fmt:message> </div> </c:otherwise> </c:choose> </td> <td width="255px" valign="top" align="left"> <c:if test="${sessionScope.VisitHistory.visitedShop != null && fn:length(sessionScope.VisitHistory.visitedShop) > 0 && 'C2C' == applicationScope.BUSINESS_MODE}"> <table width="100%" style="margin-bottom: 4px;margin-right: 5px;" class="tables" cellpadding="0" cellspacing="0"> <tr><td class="titlebg"><fmt:message key="visited.mall"/></td></tr> <tr><td align="left"> <c:forEach items="${sessionScope.VisitHistory.visitedShop}" var="visitedShop" varStatus="status"> <div style="margin: 2px;"><a href="${pageContext.request.contextPath}/shop/${visitedShop.name}${applicationScope.WEB_SUFFIX}" title="${visitedShop.title}" target="_blank">${visitedShop.name}</a></div> </c:forEach> </td></tr> </table> </c:if> <br/> <c:if test="${sessionScope.VisitHistory.visitedProd != null && fn:length(sessionScope.VisitHistory.visitedProd) > 0}"> <table width="100%" style="margin-bottom: 4px;margin-right: 5px;" class="tables" cellpadding="0" cellspacing="0"> <tr><td class="titlebg"><fmt:message key="visited.product"/></td></tr> <tr><td align="left"> <c:forEach items="${sessionScope.VisitHistory.visitedProd}" var="visitProd" varStatus="status"> <div style="margin: 2px;"><a href="${pageContext.request.contextPath}/views/${visitProd.id}${applicationScope.WEB_SUFFIX}" title="${visitProd.title}" target="_blank">${visitProd.name}</a></div> </c:forEach> </td></tr> <tr><td></td></tr> </table> </c:if> </td> </tr> </table> </center>
100mall
trunk/100mall/webapps/pages/frontend/default/searchall.jsp
Java Server Pages
oos
10,898
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <c:forEach items="${requestScope.USER_REG_ADV_740}" var="adv"> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="740px"/></a></td></tr> </table> </c:forEach> <table class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"> <fmt:message key="leagueShop"/></td> </tr> <tr> <td width="744px"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <c:choose> <c:when test="${leagues != null}"> <c:forEach items="${requestScope.leagues}" var="league" varStatus="status"> <td align="left"> <table> <tr> <td align="center" > <div id="apple"> <a href="${pageContext.request.contextPath}/shop/${league.friendId}${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${league.banner}" height="65px" style="margin: 2px" title="${league.province}/${league.city}/${league.area}/${league.friendId}"> </a> </div> </td> </tr> <tr> <td align="center">${league.friendName}</td> </tr> </table> </td> <c:if test="${(status.index+1)%3==0&&(status.index+1)>=3}"> </tr> <tr> </c:if> </c:forEach> </c:when> <c:otherwise> <td align="center"> <fmt:message key="nothingfound"/> </td> </c:otherwise> </c:choose> </tr> </table> </td> </tr> <tr> <td><c:if test="${toolBar!=null}"> <p align="right"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </p> </c:if> </td> </tr> </table> <form action="${pageContext.request.contextPath}/league${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> </form> <script language="JavaScript" type="text/javascript"> <!-- function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } //--> </script>
100mall
trunk/100mall/webapps/pages/frontend/default/league.jsp
Java Server Pages
oos
4,007
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205px" cellspacing="0" cellpadding="0" style="margin-right: 5px;margin-bottom: 4px;margin-left: 0px;margin-top: 4px" class="tables" > <tr> <td class="titlebg"><fmt:message key="newsCenter"/> <a href="${pageContext.request.contextPath}/allNews${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/more.gif" width="45px" /></a> </td> </tr> <tr height="136px"> <td valign="top" align="left"> <c:forEach items="${requestScope.newList}" var="new"> <div class="topnewsfixed"> <c:choose> <c:when test="${fn:length(new.newsTitle) > 20}"> <div title="${new.newsTitle}"> <img src="${pageContext.request.contextPath}/img/dot.gif" width="15" height="15" style="margin-left: 3px"> <a href="${pageContext.request.contextPath}/news/${new.newsId}${applicationScope.WEB_SUFFIX}"><c:choose> <c:when test="${new.highLine == 1}"><span style="color:#FF6600">${new.newsTitle}</span></c:when> <c:otherwise>${new.newsTitle}</c:otherwise> </c:choose></a>&nbsp; </div> </c:when> <c:otherwise> <div> <img src="${pageContext.request.contextPath}/img/dot.gif" width="15" height="15" style="margin-left: 3px"> <a href="${pageContext.request.contextPath}/news/${new.newsId}${applicationScope.WEB_SUFFIX}"><c:choose> <c:when test="${new.highLine == 1}"><span style="color:#FF6600">${new.newsTitle}</span></c:when> <c:otherwise>${new.newsTitle}</c:otherwise> </c:choose></a>&nbsp; </div> </c:otherwise> </c:choose> </div> </c:forEach> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/topnews.jsp
Java Server Pages
oos
2,125
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <script src="${pageContext.request.contextPath}/common/js/jquery.tools.min.js"></script> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <link rel="stylesheet" href="${pageContext.request.contextPath}/common/css/jquery.superbox.css" type="text/css" media="all" /> <script type="text/javascript" src="${pageContext.request.contextPath}/common/js/jquery.superbox-min.js"></script> <script src="${pageContext.request.contextPath}/common/js/productDetail.js"></script> <script type="text/javascript"> $(function() { $("#apple img[rel]").overlay({effect: 'apple'}); }); function basket(){ var count = document.getElementById("count"); if(!isNumber(count.value)){ alert('<fmt:message key="errors.number"><fmt:param value=""/></fmt:message>'); count.focus(); return; } document.getElementById("form1").submit(); } </script> <style> <!-- .prodattr{margin-left: 10px;} --> </style> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <form id="form1" method="post" action="buy${applicationScope.WEB_SUFFIX}"> <input name="action" value="buy" type="hidden"/> <input name="prodId" value="${prod.prodId}" type="hidden"/> <input name="pic" value="${prod.pic}" type="hidden"/> <input name="name" value="${prod.name}" type="hidden"/> <input name="cash" value="${prod.cash}" type="hidden"/> <table width="100%" cellspacing="0" cellpadding="0" align="center" style="border:1px solid #CCCCCC"> <tr> <td class="titlebg"><fmt:message key="product.subscribing.list"/></td> </tr> <tr><td> <table width="100%"> <tr> <td valign="top" align="center" width="256px"> <div id="apple"> <img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" width="256px" height="188px" style="margin-right: 10px" rel="#${prod.prodId}"/> </div> <div class="apple_overlay" id="${prod.prodId}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${prod.pic}" width="640px" height="470px"/> <div class="details"> <h2>${prod.name}</h2> </div> </div> </td> <td align="center" valign="top"> <table width="100%" border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;margin-top: 7px;border: 1px solid #CCCCCC;" bgcolor="#ECECEC"> <tr align="center"> <td height="30" colspan="2" style="margin-left: 10px"><b><a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}">${prod.name}</a></b></td> </tr> <tr bgcolor="#FFFFFF"> <td width="80px" height="25"> <div align="left" class="prodattr"><fmt:message key="sort_name"/></div> </td> <td height="25"> <div align="left" class="prodattr"> <a href="${pageContext.request.contextPath}/sort/${prod.sortId}${applicationScope.WEB_SUFFIX}">${prod.sortName}</a> <c:if test="${not empty prod.nsortName}"> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${prod.sortId}&nsortId=${prod.nsortId}">${prod.nsortName}</a> </c:if> <c:if test="${not empty prod.subNsortName}"> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${prod.sortId}&nsortId=${prod.nsortId}&subNsortId=${prod.subNsortId}"> ${prod.subNsortName}</a> </c:if> </div> </td> </tr> <c:if test="${not empty prod.brandName}"> <tr bgcolor="#FFFFFF"> <td height="25"> <div align="left" class="prodattr"><fmt:message key="brand.hint"/></div> </td> <td height="25"> <div align="left" class="prodattr"> ${prod.brandName}</div> </td> </tr> </c:if> <c:choose> <c:when test="${not empty prod.cash}"> <tr bgcolor="#FFFFFF"> <td height="25"> <div align="left" class="prodattr"><fmt:message key="price.hint"/></div> </td> <td> <div align="left" class="prodattr"> <fmt:message key="product.price"/> <font color="#D03430"><fmt:formatNumber type="currency" value="${prod.cash}" pattern="${CURRENCY_PATTERN}"/></font> <c:if test="${prod.carriage != null}"> &nbsp;&nbsp;<fmt:message key="carriage.charge"/> <font color="#D03430"><fmt:formatNumber type="currency" value="${prod.carriage}" pattern="${CURRENCY_PATTERN}"/></font> <input type="hidden" id="carriage" name="carriage" value="${prod.carriage}"/> </c:if> </div> </td> </tr> <c:if test="${not empty prod.cash}"> <tr bgcolor="#FFFFFF"> <td height="25"> <div align="left" class="prodattr"><fmt:message key="total.charge"/></div> </td> <td> <div align="left" class="prodattr"> <font color="#D03430"><b><span id="totalFee"><fmt:formatNumber type="currency" value="${prodTotalFee}" pattern="${CURRENCY_PATTERN}"/></span></b></font></div> </td> </tr> </c:if> <c:if test="${not empty prod.attribute}"> <tr bgcolor="#FFFFFF"> <td height="25"> <div align="left" class="prodattr"><fmt:message key="product.attribute"/></div> </td> <td> <div align="left" class="prodattr" style="margin-top: 3px;margin-bottom: 3px"> <input type="hidden" id="attribute" name="attribute" value="${sessionScope.BASKET_HW_ATTR}"/> ${sessionScope.BASKET_HW_ATTR} </div> </td> </tr> </c:if> <c:if test="${not empty prod.cash}"> <tr> <td height="29"> <div align="left" class="prodattr"><fmt:message key="comfirm.order"/></div> </td> <td> <div align="left" class="prodattr"> <c:if test="${sessionScope.BASKET_HW_COUNT != null}"> <input type="text" class="input2" id="count" name="count" maxlength="8" size="3" value="${sessionScope.BASKET_HW_COUNT}"></input> </c:if> <c:if test="${sessionScope.BASKET_HW_COUNT == null}"> <input type="text" class="input2" id="count" name="count" maxlength="8" size="3" value="1"></input> </c:if> <input type="button" value="<fmt:message key="submit"/>" class="s" onclick="javascript:basket()"/> </div> </td> </tr> </c:if> </c:when> <c:otherwise> </c:otherwise> </c:choose> </table> </td> </tr> </table> </td></tr> <tr> <td class="titlebg"><fmt:message key="product.subscribed.list"/></td> </tr> <tr><td><jsp:include flush="true" page="/bought${applicationScope.WEB_SUFFIX}" /></td></tr> </table> </form> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/basket.jsp
Java Server Pages
oos
10,198
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <c:if test="${requestScope.hotViewList != null}"> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <div class="tables"> <table class="recommond" width="100%" cellpadding="0" cellspacing="0"> <tr><td><fmt:message key="shop.hot.product"><fmt:param value="${sessionScope.shopName}"/></fmt:message></td></tr> <tr><td><table style="font-weight: normal;color: #666666"> <tr> <c:forEach items="${requestScope.hotViewList}" var="prod" varStatus="status"> <%-- style="position: relative;border:#989DA5 1px dotted;" --%> <td width="20%" align="center"> <c:choose> <c:when test="${fn:length(prod.name) > 30}"> <span> <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" ><img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" width="165px" height="120px" title="${prod.name}" id="pic"></a></span><br>${fn:substring(prod.name,0,30)}...<br> </c:when> <c:otherwise> <span > <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" width="165px" height="120px" id="pic"></a></span><br>${prod.name}<br> </c:otherwise> </c:choose> <c:if test="${not empty prod.cash}"> <fmt:message key="prod_cash" /> <font color="red"><fmt:formatNumber type="currency" value="${prod.cash}" pattern="${CURRENCY_PATTERN}"/></font> </c:if> </td> <c:if test="${(status.index+1)%5==0&&(status.index+1)>=5}"></tr><tr></c:if> </c:forEach> </tr> </table></td></tr> </table> </div> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/hotview.jsp
Java Server Pages
oos
1,976
<%@ page contentType="text/html;charset=UTF-8" language="java" isErrorPage="true" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>对不起,您请求的页面暂时不能访问!</title> </head> <body> <table width="554" border="0" align="center" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="56" colspan="4" valign="top"><div align="center"></div></td> </tr> <tr> <td height="195" colspan="4" valign="middle"> <div align="center"><img src="img/error.gif" width="128" height="112"></div></td> </tr> <tr> <td height="24" colspan="4" valign="top"><div align="center"> <p><font color="#FF0000" size="5">对不起,您请求的页面暂时不能访问!</font></p> </div></td> </tr> <tr> <td width="94" height="10"></td> <td width="20"></td> <td width="338"></td> <td width="102"></td> </tr> <tr> <td height="18"></td> <td></td> <td valign="top"><p>可能存在的问题如下:<br> </p></td> <td></td> </tr> <tr> <td height="10"></td> <td></td> <td></td> <td></td> </tr> <tr> <td height="62"></td> <td colspan="2" valign="top"><ul> <li>网站访问量过大</li> <li>网站服务器暂时出现问题</li> </ul></td> <td></td> </tr> <tr> <td height="33" colspan="4" valign="top"><div align="center"><font size="2">如果问题长时间没有解决,请您发信至:<a href="mailto:gmhwq@126.com">gmhwq@126.com</a></font></div></td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/error.html
HTML
oos
1,650
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>LegendShop商品属性选择器</title> <style type="text/css"> <!-- body{padding:20px;} body,td,th { font-size: 12px; } a:link { color: #000000; } a:visited { color: #000000; } a:hover { color: #000000; } ul{list-style-type:none;} ul li{float:left;display:inline;margin-right:5px;width:auto;overflow:hidden;} ul li a{display:block;border:1px solid #CCCCCC;padding:5px 6px 5px 6px;margin:1px;} ul li a:hover{border:2px solid #FF6701;margin:0px;} .select{} .select a{ border:2px solid #FF6701; margin:0px; background:url(/img/productselected.gif) no-repeat right bottom; } --> </style> <script language="javascript"> window.onload=function(){ var color = new Select("color",{ Radio :true , //是否为单选,默认为true,如果设置为true,Default,Max选项将失效 OnClick:function(selected){ document.form.color.value = selected.join(",") } }); var size = new Select("size",{ OnClick:function(selected){ document.form.size.value = selected.join(",") } }); var other = new Select("other",{ Radio:false, Max:5, //Default:"袜子,扣子", OnClick:function(selected){ document.form.other.value = selected.join(",") } }); } </script> </head> <body> <form name="form"> <table border="1" cellspacing="0" cellpadding="0"> <tr> <td>颜色(单选):</td> <td><ul id="color"> <li dataValue="red"><a href="#">红色</a></li> <li dataValue="blue"><a href="#">蓝色</a></li> <li dataValue="amethyst"><a href="#">紫色</a></li> <li dataValue="green"><a href="#">绿色</a></li> </ul></td> </tr> <tr> <td>尺码(单选):</td> <td> <ul id="size"> <li dataValue="S"><a href="#">S</a></li> <li dataValue="M" class="select"><a href="#">M</a></li> <li dataValue="L"><a href="#">L</a></li> <li dataValue="XL"><a href="#">XL</a></li> </ul></td> </tr> <tr> <td>配件(多选):</td> <td> <ul id="other"> <li dataValue="袜子"><a href="#">袜子</a></li> <li dataValue="扣子"><a href="#">扣子</a></li> <li dataValue="盒子" class="select"><a href="#">盒子</a></li> <li dataValue="袋子"><a href="#">袋子</a></li> <li dataValue="鞋子"><a href="#">鞋子</a></li> <li dataValue="帽子"><a href="#">帽子</a></li> <li dataValue="围巾"><a href="#">围巾</a></li> </ul> </td> </tr> </table> <div id="result"> <input name="color" type="text" id="color" size="15" /> <input name="size" type="text" id="size" size="15" /> <input name="other" type="text" id="other" size="15" /> </div> </form> <script language="javascript" type="text/javascript"> function Select(id,config){ this.config = config||{}; this.id = typeof(id)=='string'?document.getElementById(id):id; this.items = this.id.getElementsByTagName("li"); this.selectClass = "select"; this.selected = new Array(); var _this = this; this.selectOpt = function(value,opt){ var exist = false; for(var i=0;i<_this.selected.length;i++){ if(_this.selected[i]==value){ exist = true ; if(opt=="remove"){ _this.selected.splice(i,1);} break; } } if(!exist && opt=="add"){_this.selected.push(value);} }; //初始化对象 (function(_this){ //是否有默认配置的选择项 if(_this.config.Default){ var arr = _this.config.Default.split(","); for(var i=0;i<arr.length;i++)_this.selectOpt(arr[i],"add"); } for(var i=0;i<_this.items.length;i++){ //将defalut中配置的项加上样式 if( _this.selected.join(",").indexOf(_this.items[i].getAttribute('dataValue'))>-1 && _this.items[i].className==""){ _this.items[i].className=_this.selectClass; } //如果有样式中定义了默认 if(_this.items[i].className==_this.selectClass){ _this.selectOpt(_this.items[i].getAttribute('dataValue'),"add"); } //加点单击事件 _this.items[i].onclick=function(){ //是否为单选 var radio = _this.config.Raido?_this.config.Raido:true; if(_this.config.Radio==null || _this.config.Radio){ if(this.className!=_this.selectClass){ var items = this.parentNode.getElementsByTagName("li"); for(var i=0;i<items.length;i++){ items[i].className=""; } _this.selected.length = 0; _this.selected.push(this.getAttribute('dataValue')); this.className=_this.selectClass; } }else{ var Max = _this.config.Max?_this.config.Max:1; if(this.className==_this.selectClass){ this.className=""; _this.selectOpt(this.getAttribute('dataValue'),"remove"); }else{ if(_this.selected.length>=Max){ alert("最多只能选择"+Max+"项"); }else{ this.className=_this.selectClass; _this.selectOpt(this.getAttribute('dataValue'),"add"); } } } //去掉那个虚线框 this.firstChild.blur(); //调用回调函数 if(_this.config.OnClick)_this.config.OnClick.call(this,_this.selected); return false; } } })(_this); } </script> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/product/select.jsp
Java Server Pages
oos
5,590
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/addtocart.css" /> <!--[if IE]> <style type="text/css"> .facebox { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#333333,endColorstr=#333333); zoom: 1; } </style> <![endif]--> <a href="javascript:showcart(1)"><img src="${pageContext.request.contextPath}/img/addtocart.jpg" title='<fmt:message key="add.tocart" />' /></a>&nbsp; <div id="facebox" style="position: absolute; z-index: 9999; top: 260px; left: 430px; display: none;overflow: hidden;"> <div> <h2><span id="can_AddToCart"><fmt:message key="add.tocart.seccess"/></span></h2> <p><fmt:message key="cart.have.products"><fmt:param value='<span id="basket_count">1</span>'/></fmt:message> <span id="basket_total_cash">1.00</span>&nbsp;<fmt:message key="curreny.unit"/></p> <p style="color:#666"> <span id="go_ToCash" style="display: none;"><input type="button" value='<fmt:message key="goto.settlement" />' onclick="javascript:gotoCash();" /></span> <a href="javascript:showcart(0)"><fmt:message key="buy.others" /></a> <span id="product_Less" style="display: none;"><a href="${pageContext.request.contextPath}/leaveword${applicationScope.WEB_SUFFIX}"><fmt:message key="notice.product.less"/></a></span> </p> </div> </div> <script type="text/javascript"> <!-- function gotoCash(){ document.getElementById("addtoCart").value = "added"; document.getElementById("form1").submit(); } //加入购物车 function showcart(show){ var facebox1 = document.getElementById("facebox"); if(show == 0){ facebox1.style.display = "none"; }else{ var count = document.getElementById("count"); if(!isNumber(count.value)){ alert('<fmt:message key="errors.number"><fmt:param value=""/></fmt:message>'); count.focus(); return; } var carriage = '${prod.carriage}'; if(carriage == null){ carriage = 0; } var prodAttr = getProdAttr(); if(prodAttr.startWith("error")){ alert('<fmt:message key="please.select" />:' + prodAttr.substring(5)); return; } CommonService.addtocart('${sessionScope.SPRING_SECURITY_LAST_USERNAME}', '${sessionScope.shopName}', ${prod.prodId},'${prod.pic}', '${prod.name}', '${prod.cash}', carriage, count.value, prodAttr, function(retData){ document.getElementById("basket_total_cash").innerHTML = "<b>" + retData.BASKET_TOTAL_CASH + "</b>"; document.getElementById("basket_count").innerHTML = retData.BASKET_COUNT; if(retData.BASKET_COUNT > 0){ document.getElementById("go_ToCash").style.display = ""; } if(retData.PRODUCT_LESS){ document.getElementById("can_AddToCart").innerHTML = '<fmt:message key="product.less" />'; document.getElementById("product_Less").style.display = ""; } }); facebox1.style.display = "block"; } } //--> </script>
100mall
trunk/100mall/webapps/pages/frontend/default/product/addtocart.jsp
Java Server Pages
oos
3,513
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <lb:shopDetail var="shopDetail" /> <link rel="stylesheet" type="text/css" media='screen' href="<ls:templateResource item='/css/productTab.css'/>" /> <script type="text/javascript" language="javascript" src="<ls:templateResource item='/common/js/productTab.js'/>"></script> <DIV id="con"> <UL id="tags"> <LI class="selectTag"> <A onClick="selectTag('tagContent0',this)" href="javascript:void(0)"><fmt:message key="prod_content"/></A> </LI> <LI> <A onClick="selectTag('tagContent1',this)" href="javascript:void(0)"><fmt:message key="product.parameter"/></A> </LI> <LI> <A onClick="selectTag('tagContent2',this)" href="javascript:void(0)"><fmt:message key="product.comment"/></A> </LI> <c:if test="${requestScope.productList != null && fn:length(requestScope.productList) > 0}"> <LI> <A onClick="selectTag('tagContent3',this)" href="javascript:void(0)"><fmt:message key="related.products"/></A> </LI> </c:if> </UL> <DIV id="tagContent"> <DIV class="tagContent selectTag" id="tagContent0"> ${prod.content} <br></br> ${shopDetail.detailDesc} <br/> </DIV> <DIV class="tagContent" id="tagContent1"> <div id="prodParameter" name="prodParameter"></div> <br/><br/> ${shopDetail.detailDesc} <br/> </DIV> <DIV class="tagContent" id="tagContent2"> <div id="productComment" name="productComment"></div> <%@ include file="productcomment.jsp"%> </DIV> <c:if test="${requestScope.productList != null && fn:length(requestScope.productList) > 0}"> <DIV class="tagContent" id="tagContent3"> <table width=100%" cellpadding="0" cellspacing="10" align="left"> <tr> <c:forEach items="${requestScope.productList}" var="prod" varStatus="status"> <td width="33%" align="left"> <c:choose> <c:when test="${fn:length(prod.name) > 30}"> <span> <a href="<ls:url address='/views'/>" > <img src="<ls:templateResource item='/photoserver/images/${prod.pic}'/>" width="150px" height="110px" title="${prod.name}" id="pic"></a></span><br>${fn:substring(prod.name,0,30)}...<br> </c:when> <c:otherwise> <span> <a href="<ls:url address='/views'/>"> <img src="<ls:templateResource item='/photoserver/images/${prod.pic}'/>" width="150px" height="110px" id="pic"></a> </span><br>${prod.name}<br> </c:otherwise> </c:choose> <c:if test="${not empty prod.cash}"> <fmt:message key="prod_cash" /><font color="red"><fmt:formatNumber type="currency" value="${prod.cash}" pattern="${CURRENCY_PATTERN}"/></font> </c:if> </td> <c:if test="${(status.index+1)%3==0&&(status.index+1)>=3}"> </tr> <tr> </c:if> </c:forEach> </tr> </table> <table> <tr><td></td></tr> </table> </DIV> </c:if> </DIV> </DIV> <SCRIPT type=text/javascript> function getProductComment(){ var prodId = ${prod.prodId}; CommonService.getProductComment(prodId,"1",function(dataArray){ try{ document.getElementById("productComment").innerHTML =dataArray; //alert(dataArray); }catch(e){} }) ; } function queryParameter(){ var prodId = ${prod.prodId}; CommonService.queryParameter(prodId,function(dataArray){ try{ document.getElementById("prodParameter").innerHTML =dataArray; //alert(dataArray); }catch(e){} }) ; } function pager(curPageNO){ var prodId = ${prod.prodId}; CommonService.getProductComment(prodId,curPageNO,function(dataArray){ try{ document.getElementById("productComment").innerHTML =dataArray; //alert(dataArray); }catch(e){} }) ; } </SCRIPT>
100mall
trunk/100mall/webapps/pages/frontend/default/product/productTab.jsp
Java Server Pages
oos
4,493
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <script type="text/javascript" language="javascript" src="${pageContext.request.contextPath}/common/js/randomimage.js"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <c:if test="${requestScope.productCommentList != null }"> <table width="100%" class="tables" cellpadding="0" cellspacing="0"> <tr> <td style="background-color: #ECECEC;font-weight: bold;"> <table width="100%"> <tr> <td width="80%"><fmt:message key="comment.content" /></td> <td><fmt:message key="comment.Spokesperson"/></td> </tr> </table> </td> <tr> <c:forEach items="${requestScope.productCommentList}" var="comment" varStatus="status"> <tr> <td align="left" style="width: 80%"> <div><span style="color: red">&nbsp;[<fmt:formatDate value="${comment.addtime}" pattern="yyyy-MM-dd HH:mm"/>]</span> &nbsp; ${comment.content}</div> <c:if test="${comment.replyContent != null}"> <div style="margin-left: 10px"><fmt:message key="comment.content"/> ${comment.replyContent}</div> </c:if> </td> <td> ${comment.userName} </td> </tr> </c:forEach> </table> </c:if> <br> <table width="100%" class="tables" cellpadding="0" cellspacing="0"> <tr> <td style="background-color: #ECECEC;font-weight: bold;height: 30px"> <div align="center"><fmt:message key="comment.want"/></div> </td> </tr> <tr> <td> <table style="width: 100%"> <tr> <td width="150px" align="right"> <font color="#ff0000">*</font> <fmt:message key="content" /> </td> <td align="left"><textarea rows="5" cols="50" id="content" name="content"></textarea></td> </tr> <tr> <td align="right"><fmt:message key="validation.code"/></td> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value="<fmt:message key="randomimage.errors.required"/>"/> <input type="hidden" id="charactors4" name="charactors4" value="<ls:i18n key="randomimage.charactors.required" length="6"/>"/> <input type="hidden" id="errorImage" name="errorImage" value="<fmt:message key="error.image.validation"/>"/> <td align="left"><input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="7" size="7" tabindex="3" > <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>"/></td> </tr> <tr><td></td><td align="left"><fmt:message key="change.random1"/> &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a></td></tr> <tr> <td colspan="2"> <div align="center"> <% if(!(PropertiesUtil.getObject(ParameterEnum.COMMENT_LEVEL,String.class)).equals("ANONYMOUS_COMMENT")){ %> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME == null}"><input type="button" value='<fmt:message key="logon.first"/>' class="s" disabled="disabled"></c:when> <c:otherwise><input type="button" value="<fmt:message key="submit"/>" class="s" onclick="addProdcutComment();"/></c:otherwise> </c:choose> <% }else{%> <input type="button" value="<fmt:message key="submit"/>" class="s" onclick="addProdcutComment();"/> <% }%> </div> </td> </tr> </table> </td> </tr> </table> <script type="text/javascript"> function checkform(content) { { if(content.value == null || content.value == ''){ alert('<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>'); document.getElementById("content").focus(); return false; }else if(content.value.length <3){ alert('<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="3"/></fmt:message>'); return false; }else if(content.value.length >200){ alert('<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="200"/></fmt:message>'); return false; } } return true ; } function addProdcutComment(){ var prodId = ${prod.prodId}; var content = document.getElementById("content"); if(validateRandNum('${pageContext.request.contextPath}')){ if(checkform(content)){ CommonService.addProdcutComment(prodId,content.value,function(dataArray){ try{ if("NOLOGON" == dataArray){ alert('<fmt:message key="no.login.hint" />'); }else if("NOBUYED" == dataArray){ alert('<fmt:message key="error.nobuyed" />'); }else if("NOCOMMENT" == dataArray){ alert('<fmt:message key="error.nocomment" />'); }else{ document.getElementById("productComment").innerHTML =dataArray; content.value = ""; changeRandImg('${pageContext.request.contextPath}'); alert('<fmt:message key="comment.success" />'); } }catch(e){} }) ; } } } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/product/productcomment.jsp
Java Server Pages
oos
6,417
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.tools.min.js"></script> <script src="${pageContext.request.contextPath}/common/js/productDetail.js"></script> <lb:shopDetail var="shopDetail" /> <script type="text/javascript"> function basket(){ var count = document.getElementById("count"); if(!isNumber(count.value) || count.value == 0){ alert('<fmt:message key="errors.number"><fmt:param value=""/></fmt:message>'); count.focus(); return; } var prodAttr = getProdAttr(); if(prodAttr.startWith("error")){ alert('<fmt:message key="please.select"/>:' + prodAttr.substring(5)); }else{ document.getElementById("prodattr").value = prodAttr; document.getElementById("addtoCart").value = "buy"; document.getElementById("form1").submit(); } } function getProdAttr(){ var prodattr = ""; var errMsg = ""; var attrselect = $(".attrselect"); for(var i = 0; i< attrselect.size(); i++){ if(attrselect.get(i).value == ''){ errMsg = errMsg + " " + attrselect.get(i).getAttribute("dataValue") ; }else{ prodattr = prodattr + attrselect.get(i).getAttribute("dataValue") +":"+attrselect.get(i).value + ";"; } } if(errMsg != ""){ prodattr = "error"+errMsg; } return prodattr; } String.prototype.startWith=function(str){ var reg=new RegExp("^"+str); return reg.test(this); } </script> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <style> <!-- .prodattr{margin-left: 10px;} --> </style> <table style="TABLE-LAYOUT: fixed; WORD-WRAP: break-word;" width="100%"> <tr> <td> <form action="${pageContext.request.contextPath}/basket/query${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <input type="hidden" id="prodId" name="prodId" value="${prod.prodId}"/> <input type="hidden" id="prodattr" name="prodattr"/> <input type="hidden" id="addtoCart" name="addtoCart"/> <table> <tr> <td valign="top" align="center"> <!-- insert Prod pic --> <%@include file="prodpics.jsp"%> </td> <td align="center" valign="top" style="width: 100%"> <table width="100%"> <tr align="center"> <td height="30" colspan="2"><b>${prod.name}</b></td> </tr> <tr> <td width="80px" height="25"> <div align="left" class="prodattr"><fmt:message key="sort_name"/></div> </td> <td height="25"> <div align="left" class="prodattr"> <a href="${pageContext.request.contextPath}/sort/${prod.sortId}${applicationScope.WEB_SUFFIX}">${prod.sortName}</a> <c:if test="${not empty prod.nsortName}"> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${prod.sortId}&nsortId=${prod.nsortId}">${prod.nsortName}</a> </c:if> <c:if test="${not empty prod.subNsortName}"> / <a href="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}?sortId=${prod.sortId}&nsortId=${prod.nsortId}&subNsortId=${prod.subNsortId}"> ${prod.subNsortName}</a> </c:if> </div> </td> </tr> <c:if test="${not empty prod.brandName}"> <tr> <td height="25"> <div align="left" class="prodattr"><fmt:message key="brand.hint"/></div> </td> <td height="25"> <div align="left" class="prodattr"> ${prod.brandName}</div> </td> </tr> </c:if> <c:choose> <c:when test="${not empty prod.cash}"> <c:if test="${not empty prod.price}"> <tr> <td height="25"> <div align="left" class="prodattr"><fmt:message key="prod_price"/></div> </td> <td> <div align="left" class="prodattr"> <font color="#D03430"><b><s><fmt:formatNumber type="currency" value="${prod.price}" pattern="${CURRENCY_PATTERN}"/></s></b> </font>&nbsp; <fmt:message key="discount"/> <fmt:formatNumber type="percent" value="${prod.cash / prod.price}"/> </div> </td> </tr> </c:if> <tr> <td height="25"> <div align="left" class="prodattr"><fmt:message key="price.hint"/></div> </td> <td> <div align="left" class="prodattr"> <font color="#D03430"><b><fmt:formatNumber type="currency" value="${prod.cash}" pattern="${CURRENCY_PATTERN}"/></b> </font> <c:if test="${prod.carriage!= null}"> &nbsp;<fmt:message key="carriage.charge"/>&nbsp;<font color="#D03430"><fmt:formatNumber type="currency" value="${prod.carriage}" pattern="${CURRENCY_PATTERN}"/></font> </c:if> </div> </td> </tr> <c:if test="${not empty prod.attribute}"> <tr> <td colspan="2"> <div align="left" class="prodattr"> <jsp:include page="/dynamic/attribute/${prod.prodId}${applicationScope.WEB_SUFFIX}" flush="true"/> </div> </td> </tr> </c:if> <tr> <td height="25"> <div align="left" class="prodattr"><fmt:message key="product.number"/></div> </td> <td> <div align="left" class="prodattr" style="margin-top: 3px;margin-bottom: 3px"> <input type="text" class="input2" id="count" name="count" value="1" size="3" maxlength="8"></input> <c:if test="${not empty prod.stocks}"> (<fmt:message key="stock.hint"/>&nbsp;<font color="#D03430">${prod.stocks}</font>&nbsp;<fmt:message key="product.unit"/> <c:if test="${prod.buys > 0}"> ,<fmt:message key="selled.number"/>&nbsp;<font color="#D03430">${prod.buys}</font>&nbsp;<fmt:message key="product.unit"/> </c:if> ) </c:if> </div> </td> </tr> <!-- 订购 --> <c:if test="${shopDetail.qqList != null && fn:length(shopDetail.qqList) > 0}"> <tr> <td height="25"><div align="left" class="prodattr"><fmt:message key="contact.seller"/></div></td> <td><div align="left" class="prodattr"> <c:forEach var="qq" items="${shopDetail.qqList}"> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=${qq}&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:${qq}:42" alt="QQ:${qq}" title="QQ:${qq}"></a> </c:forEach> </div> </td> </tr> </c:if> <tr> <td height="30" colspan="2" align="center"> <div> <%@include file="product/addtocart.jsp"%> <c:choose> <c:when test="${prod.stocks != null && prod.cash != null && prod.stocks > 0}"> <a href="javascript:basket()"> <img src="${pageContext.request.contextPath}/img/buynows.jpg" title='<fmt:message key="order" />' /> </c:when> <c:otherwise><a href="${pageContext.request.contextPath}/leaveword${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/img/productless.jpg" title='<fmt:message key="notice.product.less" />' /></a></c:otherwise> </c:choose> </div> </td> </tr> </c:when> <c:otherwise> </c:otherwise> </c:choose> </table> <table width="100%" cellspacing="0" cellpadding="0" style="TABLE-LAYOUT: fixed; WORD-WRAP: break-word;"> <tr align="left"> <td> <pre>${prod.brief}</pre> </td> </tr> </table> </td> </tr> </table> </form> </td> </tr> <tr><td><%@ include file="product/productTab.jsp"%></td></tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/productDetail.jsp
Java Server Pages
oos
11,926
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205" cellspacing="0" cellpadding="0" bgcolor="#FFFFF6" style="margin-bottom: 5px;margin-right: 5px;" class="tables" > <tr> <td class="titlebg"><fmt:message key="product.sort"/></td> </tr> <tr> <td valign="top"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="16" valign="top"> <c:choose> <c:when test="${sortList == null}"> &nbsp; </c:when> <c:otherwise> <c:forEach items="${requestScope.sortList}" var="sort"> <table cellspacing="0" cellpadding="0" width="100%"> <tr height="21"> <td width="15" align="center" > <img src="${pageContext.request.contextPath}/img/dot.gif" style="margin-left: 3px"> </td> <td width="124" align="left"> <a href="${pageContext.request.contextPath}/sort/${sort.sortId}${applicationScope.WEB_SUFFIX}"> <c:choose> <c:when test="${fn:length(sort.sortName) >12}"> ${fn:substring(sort.sortName,0,12)}.. </c:when> <c:otherwise> ${sort.sortName} </c:otherwise> </c:choose> </a> </td> </tr> <tr> <td align="right" colspan="2"> <table width="88%" cellspacing="0" cellpadding="0"> <tr> <c:forEach items="${sort.nsort}" var="nsort" varStatus="status"> <c:choose> <c:when test="${fn:length(nsort.nsortName) > 8}"> <td align="left" title="${nsort.nsortName}"> <img src="${pageContext.request.contextPath}/img/004.gif"><a href="${pageContext.request.contextPath}/nsort/${sort.sortId}-${nsort.nsortId}${applicationScope.WEB_SUFFIX}">${fn:substring(nsort.nsortName,0,8)}..</a> </td> </c:when> <c:otherwise> <td align="left""> <img src="${pageContext.request.contextPath}/img/004.gif"><a href="${pageContext.request.contextPath}/nsort/${sort.sortId}-${nsort.nsortId}${applicationScope.WEB_SUFFIX}">${nsort.nsortName}</a> </td> </c:otherwise> </c:choose> <c:if test="${(status.index+1)%2==0&&(status.index+1)>=2}"> </tr><tr> </c:if> </c:forEach> </tr> </table> </td> </tr> </table> </c:forEach> </c:otherwise> </c:choose> </td> </tr> </table></td> </tr> </table></td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/topsort.jsp
Java Server Pages
oos
4,155
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <lb:shopDetail var="shopDetail" /> <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/css/searchall.css'/>" rel="stylesheet" type="text/css" /> <script src="<ls:templateResource item='/common/js/jquery.js'/>" type="text/javascript"></script> <title>LegendShop <c:choose> <c:when test="${shopDetail != null}"> - ${shopDetail.sitename} </c:when> <c:otherwise> </c:otherwise> </c:choose> </title> <link rel="icon" href="<ls:templateResource item='/favicon.ico'/>" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="${shopDetail.storeName},${shopDetail.briefDesc}" /> <meta name="keywords" content="${shopDetail.storeName},${shopDetail.briefDesc}"/> <meta name="keywords" content="LegendShop 网购平台, 网店系统, 商城系统, 商城系统, 电子商务系统, B2C系统, 购物系统, 网上商店系统, 网上交易系统, JAVA网店, JAVA商城, JSP网店, JSP商城, SSH项目, JAVA开源项目"/> <script> function submitSearchAllTopform(entityType,keyword){ if(document.getElementById("priceStart") && document.getElementById("priceEnd")){ var priceStart = document.getElementById("priceStart").value; var pricarEnd = document.getElementById("priceEnd").value; if(isNaN(priceStart) || isNaN(pricarEnd)){ alert('<fmt:message key="errors.number"><fmt:param value=""/></fmt:message>'); return; } document.getElementById("priceStartValue").value = priceStart; document.getElementById("priceEndValue").value = pricarEnd; } if(document.getElementById("provinceid")){ document.getElementById("provinceidValue").value = document.getElementById("provinceid").value; } if(document.getElementById("cityid")){ document.getElementById("cityidValue").value = document.getElementById("cityid").value; } if(document.getElementById("areaid")){ document.getElementById("areaidValue").value = document.getElementById("areaid").value; } document.getElementById("searchAllTopform").action = "<ls:url address='/searchall'/>?entityType=" + entityType +"&keyword="+keyword; document.getElementById("searchAllTopform").submit(); } function pager(curPageNO){ //alert(curPageNO); document.getElementById("curPageNO").value=curPageNO; submitSearchAllTopform(document.getElementById("entityType").value,document.getElementById("keyword").value); } </script> </head> <!-- id="master" --> <body> <center> <table width="954px" style="border-bottom-width: 1px;border-bottom-color: red;border: 1px"> <tr> <td width="160px"> <a href="<ls:url address='/index'/>"><img src="<ls:templateResource item='/img/legendshop.gif'/>" width="160px" title="LegendShop"/></a> </td> <td> <table width="100%"> <tr><td> <table width="100%"> <tr> <td align="left"> <%if(PropertiesUtil.getDefaultShopName()!=null && PropertiesUtil.getDefaultShopName().length() > 0){ %> <a href="${pageContext.request.contextPath}/shop/<%=PropertiesUtil.getDefaultShopName() %>${applicationScope.WEB_SUFFIX}"><fmt:message key="shop.index"/></a> <%} %> <a href="<ls:url address='/all'/>"><fmt:message key="search"/></a></td> <td align="right"> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <span style="color: red; font-weight: bold;">${sessionScope.SPRING_SECURITY_LAST_USERNAME}</span> <a href="<ls:url address='/myaccount'/>")><fmt:message key="myaccount"/></a> <a href="<ls:url address='/order'/>")><fmt:message key="myorder"/></a> <a href="${pageContext.request.contextPath}/logout.jsp" target="_parent"><fmt:message key="logout"/></a> <auth:auth ifAnyGranted="F_ADMIN"> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <a href="<ls:url address='/shop/${sessionScope.SPRING_SECURITY_LAST_USERNAME}'/>"><fmt:message key="myShop"/></a> </c:if> <a href="<ls:url address='/admin/index'/>"><fmt:message key="system.management"/></a> </auth:auth> </c:when> <c:otherwise> <a href="<ls:url address='/login'/>"><fmt:message key="login"/></a> </c:otherwise> </c:choose> <a href="<ls:url address='/reg'/>"><fmt:message key="register.title"/></a> <a href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club"><fmt:message key="bbs"/></a> </td> </tr> </table> </td> </tr> <tr> <td align="left"> <form action="<ls:url address='/searchall'/>" method="post" id="searchAllTopform"> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> <input type="hidden" id="priceStartValue" name="priceStartValue" /> <input type="hidden" id="priceEndValue" name="priceEndValue"/> <input type="hidden" id="entityType" name="entityType" value="${entityType}"/> <input type="hidden" id="provinceidValue" name="provinceidValue"/> <input type="hidden" id="cityidValue" name="cityidValue"/> <input type="hidden" id="areaidValue" name="areaidValue"/> <input type="text" value="${keyword}" id="keyword" name="keyword" maxlength="100" size="50" class="kw"></input> <input type="button" value='<fmt:message key="search.product"/>' class="btn" onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'" onclick='javascrpit:submitSearchAllTopform(0,document.getElementById("keyword").value)'></input> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <input type="button" value='<fmt:message key="search.mall"/>' class="btn" onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'" onclick='javascrpit:submitSearchAllTopform(1,document.getElementById("keyword").value)'></input> </c:if> </form> </td></tr> </table> </td> </tr> </table> </center>
100mall
trunk/100mall/webapps/pages/frontend/default/topAll.jsp
Java Server Pages
oos
6,864
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <lb:shopDetail var="shopDetail" /> <link href="${pageContext.request.contextPath}/common/css/header.css" rel="stylesheet" type="text/css" /> <div id="pagetop"> <div id="headertop"> <table width="954px" cellspacing="0" cellpadding="0" style="margin-bottom: 5px;" align="center" border="0"> <tr> <td valign="top" align="left"> <div id="site-nav"> <UL class="quick-menu"> <LI class="first"> <A href="${pageContext.request.contextPath}/all${applicationScope.WEB_SUFFIX}" target="_blank"><b><fmt:message key="search.total.index" /> </b> </A> </LI> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <% if (PropertiesUtil.getDefaultShopName() != null && PropertiesUtil.getDefaultShopName().length() > 0) { %> <LI> <a href="${pageContext.request.contextPath}/shop/<%=PropertiesUtil.getDefaultShopName()%>${applicationScope.WEB_SUFFIX}"><fmt:message key="shop.total.index" /></a> </LI> <% } %> </c:if> <LI> <fmt:message key="nows.location" /> <c:if test="${shopDetail.province != null}"> ${shopDetail.province}/${shopDetail.city}/${shopDetail.area}/ </c:if> <b><a href="${pageContext.request.contextPath}/shopcontact${applicationScope.WEB_SUFFIX}">${sessionScope.shopName}</a> </b> </LI> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <LI> <A href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}?openshop=1" target="_blank"><fmt:message key="register.shop" /> </A> </LI> </c:if> <LI class="favorite"> <a href='#' onclick="javascript:bookmark('<fmt:message key="welcome.to.legendshop"/><%=PropertiesUtil.getDefaultShopName()%> - LegendShop购物商城','${DOMAIN_NAME}/shop/<%=PropertiesUtil.getDefaultShopName()%>${applicationScope.WEB_SUFFIX}');"> <fmt:message key="shop.favorite" /> </a> </LI> <LI class="services menu-item last"> <div class="menu"> <A class="menu-hd" href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club" target="_blank"><fmt:message key="club.navigation" /><B></B> </A> <div class="menu-bd" style="WIDTH: 280px; HEIGHT: 240px; _width: 202px;"> <div class="menu-bd-panel"> <DL> <DT> <b>站务公告</b> <DD> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/14.page" target="_blank">公告专区</A> </DD> </DL> <DL> <DT> <b>网商之家</b> <DD> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/17.page" target="_blank">店长经验交流</A> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/3.page" target="_blank">网店营销推广</A> </DD> </DL> <DL> <DT> <b>LegendShop商城系统</b> <DD> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/16.page" target="_blank">程序发布与升级</A> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/12.page" target="_blank">安装与使用</A> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/13.page" target="_blank">技术交流区</A> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/15.page" target="_blank">产品资讯与销售</A> <A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/forums/show/22.page" target="_blank">意见与建议</A> </DD> </DL> <DL class=last> <DD> <STRONG style="FONT-WEIGHT: bold"><A href="/club" target="_blank">更多内容</A> </STRONG> </DD> </DL> </div> <S class=r></S><S class=rt></S><S class=lt></S><S class=b style="WIDTH: 169px"></S><S class="b b2" style="WIDTH: 169px"></S><S class=rb></S><S class=lb></S> </div> </div> </LI> </UL> </div> </td> </tr> </table> </div> </div>
100mall
trunk/100mall/webapps/pages/frontend/default/header.jsp
Java Server Pages
oos
5,047
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <c:forEach items="${requestScope.USER_REG_ADV_740}" var="adv"> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <table width="746px" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed; word-break: break-all" class="tables"> <tr> <td class="titlebg"><b>${news.newsTitle}</td> </tr> <tr> <td> <div style="margin: 8px;" align="right"> <form action="${pageContext.request.contextPath}/allNews${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <span style="margin-right: 20px"><fmt:formatDate value="${news.newsDate}" pattern="yyyy-MM-dd"/></span> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> <fmt:message key="to.topic"/>: <select id="newsCategoryId" name="newsCategoryId" onchange="this.form.submit();"> <option value=""><fmt:message key="please.select"/></option> <option:optionGroup type="select" required="true" cache="fasle" beanName="NewsCategory" beanId="newsCategoryId" beanDisp="newsCategoryName" hql="select t.newsCategoryId, t.newsCategoryName from NewsCategory t where t.status = 1 and t.userName = ?" param="${sessionScope.shopName}" selectedValue="${newsCategoryId}" /> </select> <input type="hidden" id="curPageNO" name="curPageNO" value="${curPageNO}" /> </form> </div> </td> </tr> <tr> <td height="200px" valign="top"> <div align="center"> <div align="left" width="100%" style="margin-left: 8px;margin-right: 5px"> ${news.newsContent} </div> </div> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/news.jsp
Java Server Pages
oos
2,179
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205px" cellspacing="0" cellpadding="0" style="margin-bottom: 4px;margin-left: 4px;" class="tables"> <tr> <td class="titlebg" valign="middle" width="200px"><fmt:message key="new.product" /></td> </tr> <tr align="center" height="260px"> <td width="200px" valign="top"> <table cellspacing="2" cellpadding="0" width="98%" border="0"> <c:if test="${newestList != null}"> <c:forEach items="${requestScope.newestList}" var="prod" varStatus="status"> <tr align="left" valign="top"> <c:choose> <c:when test="${fn:length(prod.name) > 14}"> <td valign="middle" width="12px"> <img src="${pageContext.request.contextPath}/common/images/number/num_${status.index+1}.gif" height="13px"> </td> <td title="${prod.name}" align="left"> <div class="topnewsfixed"> <font color="#006699"> <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" style="margin-left: 3px;">${prod.name}</a> </font> </div> </td> </c:when> <c:otherwise> <td valign="middle" width="12px"> <img src="${pageContext.request.contextPath}/common/images/number/num_${status.index+1}.gif"> </td> <td align="left"> <div class="topnewsfixed" > <font color="#006699"> <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}" style="margin-left: 3px;">${prod.name}</a> </font> </div> </td> </c:otherwise> </c:choose> </tr> </c:forEach> </c:if> </table> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/newproducts.jsp
Java Server Pages
oos
2,315
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <jsp:include flush="true" page="/topall${applicationScope.WEB_SUFFIX}" /> <div id="bodyer"> <table width="100%" cellspacing="0" cellpadding="0" align="center" style="margin: 5px"> <tr> <td><tiles2:insertAttribute name="main" ignore="true" /></td> </tr> <tr> <td valign="top"> <%@ include file="copy.jsp"%></td> </tr> </table> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/searchTopFrame.jsp
Java Server Pages
oos
510
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <script type="text/javascript" language="javascript" src="<ls:templateResource item='/common/js/randomimage.js'/>"></script> <link rel="stylesheet" type="text/css" media="screen" href="<ls:templateResource item='/common/css/indexJpgForm.css'/>" /> <script type="text/javascript" src="<ls:templateResource item='/common/js/jquery.superbox-min.js'/>"></script> <link rel="stylesheet" href="<ls:templateResource item='/common/css/jquery.superbox.css'/>" type="text/css" media="all" /> <script type="text/javascript"> jQuery(function(){ jQuery.superbox.settings = { closeTxt: "<fmt:message key="close"/>", loadTxt: "Loading...", nextTxt: "Next", prevTxt: "Previous" }; jQuery.superbox(); }); </script> </style> <table width="954px" cellpadding="0" cellspacing="0" class="tables"> <tr> <td class="titlebg"><font style="font-size: 1.4em"><fmt:message key="login"/></font></td> </tr> <tr><td><center> <form name="loginform" action="j_spring_security_check" method="POST" onsubmit="return checkRandNum();"> <input type="hidden" id="rand" name="rand"/> <input type="hidden" id="cannonull" name="cannonull" value='<fmt:message key="randomimage.errors.required"/>'/> <input type="hidden" id="charactors4" name="charactors4" value='<ls:i18n key="randomimage.charactors.required" length="6"/>'/> <input type="hidden" id="errorImage" name="errorImage" value='<fmt:message key="error.image.validation"/>'/> <input type="hidden" id="returnUrl" name="returnUrl" value="${param.returnUrl}"/> <table><tr><td> <table cellpadding="5px" border="0"> <tr> <td colspan="2" align="left"> <b><fmt:message key="username.password"/></b> <c:if test="${param.error}"> <br><label class="error"><fmt:message key="error.password.noright"/></label> </c:if> </td> </tr> <tr> <td> <fmt:message key="user.name"/> </td> <td align="left"><input id="username" type='text' name="j_username" style="font-size:11pt; width: 180px" class="inputbutton2" tabindex="1" value="${sessionScope.SPRING_SECURITY_LAST_USERNAME}"/> </td> </tr> <tr> <td><fmt:message key="editForm.password"/></td> <td align="left"><input id="pwd" type='password' name='j_password' style="font-size:11pt; width: 180px" autocomplete="off" class="inputbutton2" tabindex="2" onload="this.value=''"/></td> </tr> <tr> <td><fmt:message key="validation.code"/></td> <td align="left"><input type="text" id="randNum" name="randNum" class="inputbutton2" maxlength="7" style="font-size:11pt; width: 180px" tabindex="3" > <!-- <img id="randImage" name="randImage"/> --> </td> </tr> <tr><td></td><td> <img id="randImage" name="randImage" src="<ls:templateResource item='/captcha.svl'/>" /> &nbsp;<a href="javascript:void(0)" onclick="javascript:changeRandImg('${pageContext.request.contextPath}')" style="font-weight: bold;"><fmt:message key="change.random2"/></a></td></tr> <tr> <td></td> <td><input name="submit" type="submit" value='<fmt:message key="login"/>' class="s" tabindex="4"> <input name="reset" type="reset" value='<fmt:message key="reset.hint"/>' class="s" tabindex="5"></td> </tr> </table> </td> <td> <table cellpadding="15px"><tr><td><fmt:message key="security.hint"/></td></tr></table> <table cellpadding="2px" style="margin-left: 20px" align="left"> <tr><td align="left"><img src="<ls:templateResource item='/img/004.gif'/>"/><fmt:message key="not.member.hint"/>,&nbsp;<a href="<ls:url address='/reg'/>"><fmt:message key="regFree"/></a></td></tr> <tr><td align="left"><img src="<ls:templateResource item='/img/004.gif'/>"/><fmt:message key="goto.home"/>&nbsp;<a href="<ls:url address='/index'/>"><fmt:message key="shop.index"/></a></td></tr> <tr><td align="left"><img src="<ls:templateResource item='/img/004.gif'/>"/><fmt:message key="forget.password.hint"/> <a href="<ls:url address='/resetpassword'/>" rel="superbox[iframe][330x230]">&nbsp;<fmt:message key="find.my.password"/></a> </td> </tr> </table> </td> </tr> </table> </form> </center> </td> </tr> </table> <script type="text/javascript"> window.onload = function(){ if(window.top.location.href!=location.href) { window.top.location.href=location.href; } document.getElementById("username").focus(); } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/login.jsp
Java Server Pages
oos
5,439
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME == null}"> </c:when> <c:otherwise> <table width="100%" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px;" class="tables"> <tr> <td class="titlebg"><fmt:message key="order.detail.hint"/></font> </td> </tr> <tr> <td> <c:forEach items="${requestScope.subList}" var="sub"> <form action="${pageContext.request.contextPath}/payment/payto${applicationScope.WEB_SUFFIX}" method="post" target="_blank"> <input type="hidden" name="subNumber" id="subNumber" value="${sub.subNumber}" /> <input type="hidden" name="aliorder" id="aliorder" value="${sub.prodName}" /> <input type="hidden" name="alibody" id="alibody" value="${member.other}" /> <input type="hidden" name="alimoney" id="alimoney" value="${sub.total}" /> <input type="hidden" name="shopName" id="shopName" value="${sub.shopName}" /> <input type="hidden" name="payTypeId" id="payTypeId" value="3"/> <!-- default 货到付款 --> <input type="hidden" name="subId" id="subId" value="${sub.subId}" /> <table class="tables" style="margin: 5px" width="99%"> <tr align="left" bgcolor="#ECECEC" > <td> <div style="margin-top: 5px;margin-bottom: 5px;margin-left: 30px"> <fmt:message key="shop.name"/>:<span style="color: red;font-weight: bold;"><a href="${pageContext.request.contextPath}/shop/${sub.shopName}${applicationScope.WEB_SUFFIX}">${sub.shopName}</a></span> &nbsp; <fmt:message key="order.number"/>:<b>${sub.subNumber}</b> &nbsp; <fmt:message key="dateStr"/>:<fmt:formatDate value="${sub.subDate}" pattern="yyyy-MM-dd HH:mm"/> &nbsp; <fmt:message key="Order.Status"/>: <span style="color: #666;font-weight: bold;"><option:optionGroup type="label" required="true" cache="true" beanName="ORDER_STATUS" selectedValue="${sub.status}"/></span>&nbsp; </div> </td> </tr> <tr><td> <table width="100%"> <tr><td><fmt:message key="picture.hint"/></td><td><fmt:message key="product.name"/></td><td width="30px"><fmt:message key="product.number"/></td><td><fmt:message key="price.hint"/></td><td>&nbsp;</td></tr> <c:forEach items="${sub.basket}" var="basket"> <tr> <td> <img src="${pageContext.request.contextPath}/photoserver/images/${basket.pic}" width="102px" height="75px" style="border-collapse: collapse;margin: 1px;border: 1px solid #CCCCCC;"/> </td> <td><a target="_blank" href="${pageContext.request.contextPath}/views/${basket.prodId}${applicationScope.WEB_SUFFIX}"><font color="#FF0000">${basket.prodName}</font></a></td> <td>${basket.basketCount}</td> <td><fmt:formatNumber type="currency" value="${basket.cash}" pattern="${CURRENCY_PATTERN}"/> <c:if test="${basket.carriage != null}"> (<fmt:message key="carriage.charge"/><fmt:formatNumber type="currency" value="${basket.carriage}" pattern="${CURRENCY_PATTERN}"/>)</c:if>&nbsp;&nbsp;</td> <td>${basket.attribute}</td> </tr> </c:forEach> </table> </td></tr> <tr align="left"><td> <table style="margin-left: 30px"> <tr height="30px"><td> <fmt:message key="total.charge"/> <span style="color: red;font-weight: bold;font-size: 12pt"><fmt:formatNumber type="currency" value="${sub.total}" pattern="${CURRENCY_PATTERN}"/></span> &nbsp; <c:if test="${sub.score ne null}"><fmt:message key="score.use"/>:${sub.score}</c:if> <%if((Boolean)PropertiesUtil.getObject(ParameterEnum.USE_SCORE, Boolean.class)){ %> <c:if test="${sub.scoreId == null and (sub.status == 1 or sub.status == 7)}"> <fmt:message key="score.add"/>:<font style="color: red;font-weight: bold;font-size: 10pt"><fmt:formatNumber value="${sub.total}" pattern="#" type="number"/></font> &nbsp; </c:if> <c:if test="${availableScore > 0 && sub.scoreId == null}"> <fmt:message key="available.score"/>:<font style="color: red;font-weight: bold;font-size: 10pt">${availableScore}</font> &nbsp; <a href='javascript:void(0)' onclick='javascript:useScore("${sub.subNumber}","${sub.subId}","${sub.total}")'><fmt:message key="score.buy"/></a> &nbsp; </c:if> <%} %> </td> </tr> <c:if test="${sub.status == 1 or sub.status == 7}"> <!-- 不是货到付款,等待客户付款状态 --> <tr height="40px"><td> <fmt:message key="payType"/> <c:forEach items="${sub.payType}" var="payTypeInstance"> <input type="button" value="${payTypeInstance.payTypeName}" id="${payTypeInstance.payTypeId}" class="s" onclick="payto(this)"/> </c:forEach> </td></tr> </c:if> </table> </td></tr> </table> </form> </c:forEach> <table width="100%" cellpadding="0" cellspacing="0"> <c:if test="${member.payTypeName != null}"> <tr> <td width="20%" height="25"> <div align="right"><fmt:message key="payType"/>:</div> </td> <td width="80%" height="25"> <div align="left">${member.payTypeName}</div> </td> </tr> </c:if> <tr> <td width="20%" height="25"> <div align="right"><fmt:message key="orderer"/>:</div> </td> <td width="80%" height="25"> <div align="left">${member.orderName} </div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="address"/>:</div> </td> <td height="25"> <div align="left">${member.userAdds}</div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="postcode"/>:</div> </td> <td height="25"> <div align="left">${member.userPostcode}</div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="Phone"/>:</div> </td> <td height="25"> <div align="left">${member.userTel}</div> </td> </tr> <tr> <td height="12"> <div align="right"><fmt:message key="memo"/>:</div> </td> <td height="25"> <div align="left">${member.other}</div> </td> </tr> <tr> <td colspan="2" height="21"> <table width="90%" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <p style="word-spacing: 2; line-height: 150%; margin-top: 4; margin-bottom: 6"> <font color="#FF9900"><fmt:message key="after.order"/></font></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </c:otherwise> </c:choose> <script type="text/javascript"> function payto(obj){ var payForm = obj.form; var subId = payForm["subId"].value; payForm["payTypeId"].value = obj.id; CommonService.payToOrder(subId,payForm["shopName"].value,payForm["payTypeId"].value, function(retData){}) ; if(obj.id != 3){ payForm.submit(); }else{ alert('<fmt:message key="purchase.finished"/>'); <!-- 7: 货到付款 --> updateSubStatus(subId,7); window.location="${pageContext.request.contextPath}/order${applicationScope.WEB_SUFFIX}"; } } function updateSubStatus(subId,status) { DWREngine.setAsync(false); CommonService.updateSub(subId,status,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ }) ; DWREngine.setAsync(true); } function useScore(subNumber,subId,total){ var score = ${availableScore}; var scoreCash; DWREngine.setAsync(false); CommonService.calMoney(score, function(retData){ scoreCash = retData; }) ; if(scoreCash > total){ scoreCash = total; } if(confirm('<fmt:message key="score.use.confirm"><fmt:param value="' +scoreCash + '"/></fmt:message>')){ CommonService.userScore(subId,score, function(retData){ //alert(retData.userScore +" " + retData.subTotal); window.location.href ='/orderDetail/'+subNumber+"${applicationScope.WEB_SUFFIX}"; }) ; } DWREngine.setAsync(true); } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/sub.jsp
Java Server Pages
oos
10,680
<%@ page language="java" pageEncoding="UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@ include file="/pages/common/taglib.jsp"%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/productpics.css" /> <script type="text/javascript"> $(function() { $("#apple img[rel]").overlay({effect: 'apple'}); }); </script> <div id="apple"> <img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" width="256px" height="188px" style="margin-right: 10px" rel="#${prod.prodId}"/> </div> <div class="apple_overlay" id="${prod.prodId}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${prod.pic}" width="640px" height="470px"/> <div class="details"> <h2>${prod.name}</h2> </div> </div> <!-- <a href="${pageContext.request.contextPath}/photoserver/photo/${prod.pic}" target="_blank"> [<fmt:message key="view.big.picture"/>]</a> --> <c:if test="${requestScope.prodPics != null && fn:length(requestScope.prodPics) > 0}"> <div class="rollBox"> <div class="LeftBotton" onmousedown="ISL_GoUp()" onmouseup="ISL_StopUp()" onmouseout="ISL_StopUp()"></div> <div class="Cont" id="ISL_Cont"> <div class="ScrCont"> <div id="List1"> <!-- 图片列表 begin --> <c:forEach items="${requestScope.prodPics}" var="pics"> <div class="pic"> <a href="${pageContext.request.contextPath}/productGallery/${prod.prodId}${applicationScope.WEB_SUFFIX}" target="_blank"><img src="${pageContext.request.contextPath}/photoserver/images/${pics.filePath}" width="65" height="50" /></a> </div> </c:forEach> <!-- 图片列表 end --> </div> <div id="List2"></div> </div> </div> <div class="RightBotton" onmousedown="ISL_GoDown()" onmouseup="ISL_StopDown()" onmouseout="ISL_StopDown()"></div> </div> <script type="text/javascript" src="${pageContext.request.contextPath}/common/js/productpics.js"></script> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/prodpics.jsp
Java Server Pages
oos
2,322
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@page import="com.legendshop.business.common.CommonServiceUtil"%> <%@page import="com.legendshop.business.common.Constants"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <% request.getSession().setAttribute(Constants.TOKEN, CommonServiceUtil.generateRandom()); %> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <table style="margin-top: 5px" class="tables" width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="cash.bar"/></td> </tr> <tr> <td><jsp:include flush="true" page="/bought${applicationScope.WEB_SUFFIX}"></jsp:include></td> </tr> <tr><td><jsp:include flush="true" page="/cashsave${applicationScope.WEB_SUFFIX}"></jsp:include></td></tr> </table> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/cash.jsp
Java Server Pages
oos
871
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay.css" /> <script type="text/javascript"> function turnToPage(id) { document.getElementById('nsortId').value= id; document.getElementById('PagingForm').submit(); } function pager(curPageNO){ document.getElementById("curPageNO").value=curPageNO; document.getElementById("form1").submit(); } </script> <table cellspacing="0" cellpadding="0" width="744px"> <tr> <c:choose> <c:when test="${sort.picture !=null}"> <td><img src="${pageContext.request.contextPath}/photoserver/photo/${sort.picture}" width="740px" class="banner"></a> </td> </c:when> <c:otherwise> <td height="0px" width="735px"></td> </c:otherwise> </c:choose> </tr> <c:if test="${sort.sortName != null}"> <tr> <td style="border-bottom:#cccccc 1px solid;background-color:#f7f7f7 " width="100%"> <table width="744px"> <tr> <td height="25" align="left"> ${sort.sortName} <c:if test="${requestScope.searchList!=null}">&nbsp; <fmt:message key="hot.product"/>: <c:forEach items="${requestScope.searchList}" var="search"> <a href="${search.msg}">${search.title}</a> </c:forEach> </c:if> </td> <td align="right"> <c:if test="${not empty requestScope.nsortList}"> <select onchange="turnToPage(this.value)"> <option id="allProduct" value="0"> <fmt:message key="all.category" /> </option> <c:forEach items="${requestScope.nsortList}" var="nsort"> <c:choose> <c:when test="${CurrentNsortId == nsort.nsortId}"> <option id="${nsort.nsortId}" value="${nsort.nsortId}" class="c" selected> ${nsort.nsortName} </option> </c:when> <c:otherwise> <option id="${nsort.nsortId}" value="${nsort.nsortId}" class="c"> ${nsort.nsortName} </option> </c:otherwise> </c:choose> </c:forEach> </select> </c:if> <form id="PagingForm" method="post" action="${pageContext.request.contextPath}/nsort${applicationScope.WEB_SUFFIX}"> <input type="hidden" id="sortId" name="sortId" value="${sort.sortId}"> <input type="hidden" id="nsortId" name="nsortId"> </form> </td> </tr> </table> </td> </tr> </c:if> <c:if test="${toolBar!=null}"> <tr height="40" valign="bottom"> <td> <p align="right"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </p> </td> </tr> </c:if> <tr> <td> <table> <tr> <td valign="top"> <form action="${pageContext.request.contextPath}/sort${applicationScope.WEB_SUFFIX}" id="form1" method="post"> <input type="hidden" id="curPageNO" name="curPageNO" value="${prod.curPageNO}"/> <input type="hidden" name="sortId" value="${sort.sortId}"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <c:choose> <c:when test="${prodDetailList != null && fn:length(prodDetailList) > 0}"> <c:forEach items="${requestScope.prodDetailList}" var="prodDetail" varStatus="status"> <td align="center"> <table> <tr> <td align="center" > <div id="apple"> <a href="${pageContext.request.contextPath}/views/${prodDetail.prodId}${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/photoserver/images/${prodDetail.pic}" width="160px" height="118px" style="margin: 2px" ></a> </div> </td> </tr> <tr align="center"> <td width="100%" align="center" title="${prodDetail.name}"> <div class="topnewsfixed" title="${prod.name}"> <a href="${pageContext.request.contextPath}/views/${prodDetail.prodId}${applicationScope.WEB_SUFFIX}">${prodDetail.name}</a> </div> </td> </tr> <tr> <td align="center" valign="top"> <c:if test="${not empty prodDetail.cash}"> <fmt:message key="prod_cash" /> <font color="red"><fmt:formatNumber type="currency" value="${prodDetail.cash}" pattern="${CURRENCY_PATTERN}"/></font> <!-- <c:if test="${empty userName}"> <a href="${pageContext.request.contextPath}/basket${applicationScope.WEB_SUFFIX}?prodId=${prodDetail.prodId}" rel="#overlay"> <img src="${pageContext.request.contextPath}/img/order.gif" align="middle" title="<fmt:message key='order'/>"></a> </c:if> <c:if test="${not empty userName}"> <a href="${pageContext.request.contextPath}/basket${applicationScope.WEB_SUFFIX}?prodId=${prodDetail.prodId}" rel="superbox[iframe][525x420]"> <img src="${pageContext.request.contextPath}/img/order.gif" align="middle" title="<fmt:message key='order'/>"></a> </c:if> --> </c:if> </td> </tr> </table> </td> <c:if test="${(status.index+1)%4==0&&(status.index+1)>=4}"> </tr> <tr> </c:if> </c:forEach> </c:when> <c:otherwise> <td align="center"> <fmt:message key="nothingfound"/> </td> </c:otherwise> </c:choose> </tr> </table> </form> </td> </tr> </table> </td> </tr> <tr> <td><c:if test="${toolBar!=null}"> <p align="right"> <c:out value="${toolBar}" escapeXml="${toolBar}"></c:out> </p> </c:if> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/right.jsp
Java Server Pages
oos
9,274
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME == null}"> </c:when> <c:otherwise> <table width="100%" cellspacing="0" cellpadding="0" align="center" style="margin-top: 5px;" class="tables"> <tr> <td class="titlebg"><fmt:message key="order.detail.hint"/></font> </td> </tr> <tr> <td> <c:forEach items="${requestScope.subList}" var="sub"> <form action="${pageContext.request.contextPath}/payment/payto${applicationScope.WEB_SUFFIX}" method="post" target="_blank"> <input type="hidden" name="subNumber" id="subNumber" value="${sub.subNumber}" /> <input type="hidden" name="aliorder" id="aliorder" value="${sub.name}" /> <input type="hidden" name="alibody" id="alibody" value="${member.other}" /> <input type="hidden" name="alimoney" id="alimoney" value="${sub.total}" /> <input type="hidden" name="shopName" id="shopName" value="${sub.shopName}" /> <input type="hidden" name="payTypeId" id="payTypeId" value="3"/> <!-- default 货到付款 --> <input type="hidden" name="subId" id="subId" value="${sub.subId}" /> <table class="tables" style="margin: 5px" width="99%"> <tr align="left" bgcolor="#ECECEC" > <td> <div style="margin-top: 5px;margin-bottom: 5px;margin-left: 30px"> <fmt:message key="shop.name"/>:<span style="color: red;font-weight: bold;"><a href="${pageContext.request.contextPath}/shop/${sub.shopName}${applicationScope.WEB_SUFFIX}">${sub.shopName}</a></span> &nbsp; <fmt:message key="order.number"/>:<b>${sub.subNumber}</b> &nbsp; <fmt:message key="dateStr"/>:<fmt:formatDate value="${sub.subDate}" pattern="yyyy-MM-dd HH:mm"/> &nbsp; <fmt:message key="Order.Status"/>: <span style="color: #666;font-weight: bold;"><option:optionGroup type="label" required="true" cache="true" beanName="ORDER_STATUS" selectedValue="${sub.status}"/></span>&nbsp; </div> </td> </tr> <tr><td> <table width="100%"> <tr><td><fmt:message key="picture.hint"/></td><td><fmt:message key="product.name"/></td><td width="30px"><fmt:message key="product.number"/></td><td><fmt:message key="price.hint"/></td><td>&nbsp;</td></tr> <c:forEach items="${sub.basket}" var="basket"> <tr> <td> <img src="${pageContext.request.contextPath}/photoserver/images/${basket.pic}" width="102px" height="75px" style="border-collapse: collapse;margin: 1px;border: 1px solid #CCCCCC;"/> </td> <td><a target="_blank" href="${pageContext.request.contextPath}/views/${basket.prodId}${applicationScope.WEB_SUFFIX}"><font color="#FF0000">${basket.name}</font></a></td> <td>${basket.basketCount}</td> <td><fmt:formatNumber type="currency" value="${basket.cash}" pattern="${CURRENCY_PATTERN}"/> <c:if test="${basket.carriage != null}"> (<fmt:message key="carriage.charge"/><fmt:formatNumber type="currency" value="${basket.carriage}" pattern="${CURRENCY_PATTERN}"/>)</c:if>&nbsp;&nbsp;</td> <td>${basket.attribute}</td> </tr> </c:forEach> </table> </td></tr> <tr align="left"><td> <table style="margin-left: 30px"> <tr height="30px"><td> <fmt:message key="total.charge"/> <span style="color: red;font-weight: bold;font-size: 12pt"><fmt:formatNumber type="currency" value="${sub.total}" pattern="${CURRENCY_PATTERN}"/></span> &nbsp; <c:if test="${sub.score ne null}"><fmt:message key="score.use"/>:${sub.score}</c:if> <%if((Boolean)PropertiesUtil.getObject(ParameterEnum.USE_SCORE, Boolean.class)){ %> <c:if test="${sub.scoreId == null and (sub.status == 1 or sub.status == 7)}"> <fmt:message key="score.add"/>:<font style="color: red;font-weight: bold;font-size: 10pt"><fmt:formatNumber value="${sub.total}" pattern="#" type="number"/></font> &nbsp; </c:if> <c:if test="${availableScore > 0 && sub.scoreId == null}"> <fmt:message key="available.score"/>:<font style="color: red;font-weight: bold;font-size: 10pt">${availableScore}</font> &nbsp; <a href='javascript:void(0)' onclick='javascript:useScore("${sub.subNumber}","${sub.subId}","${sub.total}")'><fmt:message key="score.buy"/></a> &nbsp; </c:if> <%} %> </td> </tr> <c:if test="${sub.status == 1 or sub.status == 7}"> <!-- 不是货到付款,等待客户付款状态 --> <tr height="40px"><td> <fmt:message key="payType"/> <c:forEach items="${sub.payType}" var="payTypeInstance"> <input type="button" value="${payTypeInstance.payTypeName}" id="${payTypeInstance.payTypeId}" class="s" onclick="payto(this)"/> </c:forEach> </td></tr> </c:if> </table> </td></tr> </table> </form> </c:forEach> <table width="100%" cellpadding="0" cellspacing="0"> <c:if test="${member.payTypeName != null}"> <tr> <td width="20%" height="25"> <div align="right"><fmt:message key="payType"/>:</div> </td> <td width="80%" height="25"> <div align="left">${member.payTypeName}</div> </td> </tr> </c:if> <tr> <td width="20%" height="25"> <div align="right"><fmt:message key="orderer"/>:</div> </td> <td width="80%" height="25"> <div align="left">${member.orderName} </div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="address"/>:</div> </td> <td height="25"> <div align="left">${member.userAdds}</div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="postcode"/>:</div> </td> <td height="25"> <div align="left">${member.userPostcode}</div> </td> </tr> <tr> <td height="25"> <div align="right"><fmt:message key="Phone"/>:</div> </td> <td height="25"> <div align="left">${member.userTel}</div> </td> </tr> <tr> <td height="12"> <div align="right"><fmt:message key="memo"/>:</div> </td> <td height="25"> <div align="left">${member.other}</div> </td> </tr> <tr> <td colspan="2" height="21"> <table width="90%" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <p style="word-spacing: 2; line-height: 150%; margin-top: 4; margin-bottom: 6"> <font color="#FF9900"><fmt:message key="after.order"/></font></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </c:otherwise> </c:choose> <script type="text/javascript"> function payto(obj){ var payForm = obj.form; var subId = payForm["subId"].value; payForm["payTypeId"].value = obj.id; CommonService.payToOrder(subId,payForm["shopName"].value,payForm["payTypeId"].value, function(retData){}) ; if(obj.id != 3){ payForm.submit(); }else{ alert('<fmt:message key="purchase.finished"/>'); <!-- 7: 货到付款 --> updateSubStatus(subId,7); window.location="${pageContext.request.contextPath}/order${applicationScope.WEB_SUFFIX}"; } } function updateSubStatus(subId,status) { DWREngine.setAsync(false); CommonService.updateSub(subId,status,'${sessionScope.SPRING_SECURITY_LAST_USERNAME}', function(retData){ }) ; DWREngine.setAsync(true); } function useScore(subNumber,subId,total){ var score = ${availableScore}; var scoreCash; DWREngine.setAsync(false); CommonService.calMoney(score, function(retData){ scoreCash = retData; }) ; if(scoreCash > total){ scoreCash = total; } if(confirm('<fmt:message key="shop.hot.product"><fmt:param value="' +scoreCash + '"/></fmt:message>')){ CommonService.userScore(subId,score, function(retData){ //alert(retData.userScore +" " + retData.subTotal); window.location.href ='/orderDetail/'+subNumber+"${applicationScope.WEB_SUFFIX}"; }) ; } DWREngine.setAsync(true); } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/saveto.jsp
Java Server Pages
oos
10,667
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option" %> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/util.js'></script> <style> <!-- .myaccount{background-color: #F6F6F6;height: 28px;font-weight: bold;} --> </style> <script type="text/javascript"> <!-- function changePass(obj){ if(obj.checked){ document.getElementById("pass1").style.display="block"; }else{ document.getElementById("pass1").style.display="none"; } } jQuery.validator.setDefaults({ }); jQuery(document).ready(function() { jQuery("#userUpdateForm").validate({ rules: { name: { required: true, minlength: 5 }, nickName: "required", passwordOld: { required: "#modifyPass:checked" }, password: { required: "#modifyPass:checked", minlength: 6 }, password2: { required: "#modifyPass:checked", minlength: 6, equalTo: "#password" }, userMail: { required: true, email: true }, userAdds:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userMobile:{ required: true, minlength: 8 }, userAdds: { required: true } }, messages: { name: { required: '<fmt:message key="username.required"/>', minlength: '<fmt:message key="username.minlength"/>' }, password: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>' }, password2: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>', equalTo: '<fmt:message key="password.equalTo"/>' }, nickName:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, passwordOld:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userMobile:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="8"/></fmt:message>', number: '<fmt:message key="errors.phone"><fmt:param value=""/></fmt:message>' }, userMail:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', email: '<fmt:message key="errors.email"><fmt:param value=""/></fmt:message>' }, fax:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userPostcode:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userAdds:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="3"/></fmt:message>' } } }); // propose username by combining first- and lastname jQuery("#name").blur(function() { if(jQuery("#name").val()!=null&&jQuery("#name").val()!=''){ if(jQuery("#name").val().length>=6){ CommonService.isUserExist(jQuery("#name").val(), function(retData){ if(retData){ alert("alerm:user "+jQuery("#name").val()+" had exist!") ; return false; }else{ } }) ; } } }); // check if confirm password is still valid after password changed jQuery("#password").blur(function() { jQuery("#password2").valid(); }) }); //--> </script> <c:forEach items="${requestScope.USER_REG_ADV_740}" var="adv"> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}"/></a></td></tr> </table> </c:forEach> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px" class="tables"> <tr > <td class="myaccount"><fmt:message key="order.processing"/></td><td>${totalProcessingOrder}&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/order${applicationScope.WEB_SUFFIX}">[<fmt:message key="Query.Order.Status"/>]</a></td> <td class="myaccount"><fmt:message key="product.subscribed.list"/></a></td><td>${totalBasketByuserName}&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/buy${applicationScope.WEB_SUFFIX}">[<fmt:message key="shopingCar"/>]</a></td> <td class="myaccount"> <%if((Boolean)PropertiesUtil.getObject(ParameterEnum.USE_SCORE, Boolean.class)){ %> <fmt:message key="score.total"/> <%} %> </td><td> <%if((Boolean)PropertiesUtil.getObject(ParameterEnum.USE_SCORE, Boolean.class)){ %> ${user.score} <%} %> </td> </tr> <tr > <td class="myaccount"><fmt:message key="register.date"/></td><td><fmt:formatDate value="${user.userRegtime}" pattern="yyyy-MM-dd"/></td> <td class="myaccount"><fmt:message key="last.login.date"/></td><td><fmt:formatDate value="${user.userLasttime}" pattern="yyyy-MM-dd"/></td> <td class="myaccount"><fmt:message key="last.login.ip"/></td><td>${user.userLastip}</td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="0" class="tables"> <tr> <td class="titlebg"><fmt:message key="myaccount"/></td> </tr> <tr> <td height="2"> <table width="100%" cellspacing="0" cellpadding="0" height="100%"> <tr> <td align="left"> <form action="${pageContext.request.contextPath}/updateAccount${applicationScope.WEB_SUFFIX}" method="post" name="userUpdateForm" id="userUpdateForm"> <input type="hidden" id="userId" name="userId" value="${user.userId}"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <UL> <fmt:message key="register.hint"/></UL><br> <table width="100%" align="center" cellpadding="0" cellspacing="0" style="margin-bottom: 6"> <tr> <td width="33%" height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="user.name"/>:</div></td> <td width="67%"><div align="left"> <c:choose> <c:when test="${param.userName == null}"> <input style="WIDTH: 200px; color: #949492" type="text" name="userName" id="userName" size="20" class=input value="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" readonly="readonly"> </c:when> <c:otherwise> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <input style="WIDTH: 200px; color: #949492" type="text" name="userName" id="userName" size="20" class=input value="${param.userName}" readonly="readonly"> </auth:auth> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <input style="WIDTH: 200px; color: #949492" type="text" name="userName" id="userName" size="20" class=input value="${sessionScope.SPRING_SECURITY_LAST_USERNAME}" readonly="readonly"> </auth:auth> </c:otherwise> </c:choose> <c:if test="${supportOpenShop == 'true' && 'C2C' == applicationScope.BUSINESS_MODE}"> &nbsp; <c:choose> <c:when test="${requestScope.myShopDetail == null}"> <fmt:message key="shop.not.open"/><font style="font-weight: bold; color: #CCFFCC"><a href="${pageContext.request.contextPath}/openShop${applicationScope.WEB_SUFFIX}"><fmt:message key="apply.hint"/></a></font>? </c:when> <c:otherwise> <c:if test="${requestScope.myShopDetail.status == -1}"> <fmt:message key="shop.is.opening"/> </c:if> <c:if test="${requestScope.myShopDetail.status == -2}"> <fmt:message key="shop.audit.failed"/><a href="${pageContext.request.contextPath}/openShop${applicationScope.WEB_SUFFIX}"><b><fmt:message key="review.material"/></b></a> </c:if> <c:if test="${requestScope.myShopDetail.status == 1}"> <a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}"><b><fmt:message key="fill.detail.shop"/></b></a> </c:if> </c:otherwise> </c:choose> </c:if> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="user.email"/>:</div></td> <td height="29"><div align="left"> <auth:auth ifAnyGranted="F_VIEW_ALL_DATA"> <input style="WIDTH: 200px;" type="text" name="userMail" id="userMail" size="20" class=input value="${user.userMail}" /> </auth:auth> <auth:auth ifNotGranted="F_VIEW_ALL_DATA"> <input style="WIDTH: 200px; color: #949492" type="text" name="userMail" id="userMail" size="20" class=input value="${user.userMail}" readonly="readonly" /> </auth:auth> &nbsp;<fmt:message key="mail.canot.changed"/></div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="real.name"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="nickName" id="nickName" size="20" class=input value="${user.nickName}" maxlength="30"> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="Phone"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="userMobile" id="userMobile" size="20" class=input value="${user.userMobile}" maxlength="50"> </div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="userTel"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="userTel" id="userTel" size="20" class=input value="${user.userTel}" maxlength="50"> </div></td> </tr> <tr> <td height="29"><div align="right">QQ:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="qq" id="qq" size="20" class=input value="${user.qq}" maxlength="50">&nbsp;<fmt:message key="more.qq.number"/> </div></td> </tr> <tr> <td height="29"><div align="right">MSN:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="msn" id="msn" size="20" class=input value="${user.msn}" maxlength="100"> </div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="Fax"/>:</div></td> <td height="29"><div align="left"><input style="WIDTH: 200px" type="text" name="fax" id="fax" size="20" class=input value="${user.fax}" maxlength="15"></div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="PostCode"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="text" name="userPostcode" id="userPostcode" size="20" class=input value="${user.userPostcode}" maxlength="15"> </div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="gender.hint"/>:</div></td> <td height="29"><div align="left"> <select id="sex" name="sex"> <option:optionGroup type="select" required="false" cache="true" beanName="USER_SEX_TYPE" selectedValue="${user.sex}"/> </select> </div></td> </tr> <tr> <td height="29"><div align="right"><fmt:message key="birth.day"/>: </div></td> <td height="29"><div align="left"> <select name="userBirthYear" id="userBirthYear" size="1" onchange="showmonth();showday()"> <script> var yearbegin=1980,yearend=2010; document.write('<option value="" selected><fmt:message key="year.hint"/></option>') for(var i=yearbegin;i<=yearend;i++){ document.write ("<option value="+i+">"+i+"</option>") } </script> </select> <select name="userBirthMonth" id="userBirthMonth" size="1" onchange="showday();"> <option value=""> <fmt:message key="month.hint"/> </option> </select> <select name="userBirthDay" id="userBirthDay" size="1"> <option value=""> <fmt:message key="day.hint"/> </option> </select> </div> </td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="Address"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 250px" type="text" name="userAdds" id="userAdds" size="20" class=input value="${user.userAdds}" maxlength="150"> </div></td> </tr> <tr> <td height="29"><div align="right"> <fmt:message key="modify.password"/>:</div></td> <!-- 修改密码 --> <td height="29"><div align="left"> <input type="checkbox" name="modifyPass" id="modifyPass" onclick="javascript:changePass(this)"> </div></td> </tr> <tr><td colspan="2" width="100%"> <div id="pass1" style="display: none"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="33%" height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="origin.password"/>:</div></td> <td width="67%" height="29"><div align="left"> <input style="WIDTH: 200px" type="password" name="passwordOld" id="passwordOld" size="20" class="input" /> </div></td> </tr> <tr> <td height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="password"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="password" name="password" id="password" size="20" class="input" /> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="Confirmation"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 200px" type="password" name="password2" id="password2" size="20" class="input" /> </div></td> </tr> </table> </div> </td></tr> <tr> <td height="35" colspan="2"><div align="center"> <table width="100%" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"> <auth:auth ifAnyGranted="F_OPERATOR"> <!-- 管理员只能看,不能编辑 --> <input type="submit" value="<fmt:message key="submit"/>" class="s"/> </auth:auth> <input type="reset" value="<fmt:message key="cancel"/>" class="s"> </div></td> </tr> </table> </div></td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var userBirthYearValue = '${userBirthYear}'; var userBirthMonthValue = '${userBirthMonth}'; var userBirthDayValue = '${userBirthDay}'; var elYear = document.getElementById("userBirthYear"); var elMonth = document.getElementById("userBirthMonth"); function showyear(){ if(userBirthYearValue!=""){ DWRUtil.setValues({userBirthYear:userBirthYearValue}); } } function showmonth(){ elMonth.options.add(new Option("01", "01")); elMonth.options.add(new Option("02", "02")); elMonth.options.add(new Option("03", "03")); elMonth.options.add(new Option("04", "04")); elMonth.options.add(new Option("05", "05")); elMonth.options.add(new Option("06", "06")); elMonth.options.add(new Option("07", "07")); elMonth.options.add(new Option("08", "08")); elMonth.options.add(new Option("09", "09")); elMonth.options.add(new Option("10", "10")); elMonth.options.add(new Option("11", "11")); elMonth.options.add(new Option("12", "12")); if(userBirthMonthValue!=""){ DWRUtil.setValues({userBirthMonth:userBirthMonthValue}); } } function showday(){ var elDay = document.getElementById("userBirthDay"); if(elMonth.value!="" && elYear.value!=""){ elDay.length=0; elDay.options.add(new Option("01", "01")); elDay.options.add(new Option("02", "02")); elDay.options.add(new Option("03", "03")); elDay.options.add(new Option("04", "04")); elDay.options.add(new Option("05", "05")); elDay.options.add(new Option("06", "06")); elDay.options.add(new Option("07", "07")); elDay.options.add(new Option("08", "08")); elDay.options.add(new Option("09", "09")); for(var i=10;i<28;i++){ elDay.options.add(new Option(i+1, i+1)); } if(elMonth.value!="2"){ elDay.options.add(new Option(29, 29)); elDay.options.add(new Option(30, 30)); } switch(elMonth.value){ case "1": case "3": case "5": case "7": case "8": case "10": case "12":{ elDay.options.add(new Option(31, 31)); } case "2":{ var nYear=elYear.value; if(nYear%400==0 || nYear%4==0 && nYear%100!=0)elDay.options.add(new Option(29, 29)); } } } if(userBirthDayValue!=""){ DWRUtil.setValues({userBirthDay:userBirthDayValue}); } } window.onload=function(){ showyear(); showmonth(); showday(); } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/updateMyAccount.jsp
Java Server Pages
oos
22,768
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@page import="com.legendshop.core.helper.PropertiesUtil"%> <%@page import="com.legendshop.core.constant.ParameterEnum"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <style type="text/css"> .input {FONT-SIZE: 12px; WIDTH: 150px;margin-left: 10px} </style> <script type="text/javascript"> jQuery.validator.setDefaults({ }); jQuery(document).ready(function() { jQuery("#openShopForm").validate({ rules: { "sitename": { required: true, minlength: 2 }, "ymaddr": { required: true, minlength: 2 }, "idCardNum": { required: true, minlength: 15 }, "type": { required: true }, "idCardPicFile": { required: true }, "trafficPicFile": { required: "#type:checked" } }, messages: { "sitename": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' }, "ymaddr":{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' }, "idCardNum": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="15"/></fmt:message>' }, "type": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, "idCardPicFile": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, "trafficPicFile": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' } } }); }); function changeType(obj){ if(obj == 1){ document.getElementById("trafficPicDiv").style.display="block"; }else{ document.getElementById("trafficPicDiv").style.display="none"; } } </script> <%if(PropertiesUtil.getObject(ParameterEnum.OPEN_SHOP,Boolean.class)){ %> <form action="${pageContext.request.contextPath}/addShop${applicationScope.WEB_SUFFIX}" method="post" name="openShopForm" id="openShopForm" enctype="multipart/form-data"> <table width="100%" cellpadding="0" cellspacing="0" class="tables"> <tr> <td class="titlebg"><fmt:message key="register.shop"/></td> </tr> <tr> <td align="left"> <div style="margin-left: 100px"> <fmt:message key="reality.material"/> </div> <br> </td> </tr> <tr><td> <table width="100%"> <tr> <td width="33%"><div align="right"> <font color="#ff0000">*</font><fmt:message key="mall.name"/></div></td> <td height="27"><div align="left"> <input name="sitename" id="sitename" class="input"/> </div></td> </tr> <tr> <td width="33%"><div align="right"><font color="#ff0000">*</font><fmt:message key="idcard.number"/></div></td> <td height="27"><div align="left"> <input type="text" name="idCardNum" id="idCardNum" class="input" maxlength="20" /> </div></td> </tr> <tr> <td width="33%"><div align="right"><font color="#ff0000">*</font><fmt:message key="mall.type"/></div></td> <td height="27"><div align="left"> &nbsp;&nbsp;<fmt:message key="type.business"/><input type="radio" name="type" id="type" value="1" onclick="javascript:changeType(1)"/>&nbsp; <fmt:message key="type.individual"/><input type="radio" name="type" value="0" onclick="javascript:changeType(0)"/> </div></td> </tr> <tr> <td width="33%"><div align="right"><font color="#ff0000">*</font><fmt:message key="upload.IDcard.pic"/></div></td> <td height="27"><div align="left"> <input type="file" style="FONT-SIZE: 12px; WIDTH: 250px;margin-left: 10px" name="idCardPicFile" id="trafficPicFile" class="input" /> </div></td> </tr> <tr> <td colspan="2"> <div id="trafficPicDiv" style="display: none"> <table width="100%" cellpadding="0" cellspacing="0"><tr> <td width="33%"> <div align="right"><font color="#ff0000">*</font><fmt:message key="upload.business.pic"/><br> </div> </td> <td> <div align="left"> <input type="file" style="FONT-SIZE: 12px; WIDTH: 250px;margin-left: 10px;" name="trafficPicFile" id="trafficPicFile" class="input" /> </div></td> </tr> </table> </div> </td> </tr> </table> </td></tr> <tr> <td height="35"><div align="center"> <table width="100%" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="left" style="margin-left: 100px"> <input type="submit" value="<fmt:message key="submit"/>" class="s" style="margin-left: 250px"/> <input type="reset" value="<fmt:message key="cancel"/>" class="s"> </div> </td> </tr> </table> </form> <% } else {%> Not Support for this version! <%}%>
100mall
trunk/100mall/webapps/pages/frontend/default/openShop.jsp
Java Server Pages
oos
7,587
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <html> <head> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/interface/CommonService.js'></script> <script type='text/javascript' src='${pageContext.request.contextPath}/dwr/engine.js'></script> <title>USER Register</title> <script type="text/javascript"> jQuery.validator.setDefaults({ }); /*** 检查是否由数字字母和下划线组成 ***/ String.prototype.isAlpha = function() { return (this.replace(/\w/g, "").length == 0); } jQuery.validator.addMethod("stringCheck", function(value, element) { return value.isAlpha();}, '<fmt:message key="user.reg.username"/>'); jQuery.validator.addMethod("checkName1", function(value, element) { return checkName(value);}, '<fmt:message key="errors.user.exists"><fmt:param value=""/></fmt:message>'); jQuery.validator.addMethod("checkEmail1", function(value, element) { return checkEmail(value);}, '<fmt:message key="errors.email.exists"><fmt:param value=""/></fmt:message>'); jQuery(document).ready(function() { jQuery("#userRegForm").validate({ rules: { name: { required: true, minlength: 4, stringCheck: true, checkName1: true }, nickName: "required", password: { required: true, minlength: 6 }, password2: { required: true, minlength: 6, equalTo: "#password" }, userMail: { required: true, email: true, checkEmail1: true }, agreement: "required", "shopDetail.sitename": { required: "#openShop:checked", minlength: 2 }, "shopDetail.ymaddr": { required: "#openShop:checked", minlength: 2 }, "shopDetail.idCardNum": { required: "#openShop:checked", minlength: 15 }, "shopDetail.type": { required: "#openShop:checked" }, "shopDetail.idCardPicFile": { required: "#openShop:checked" }, "shopDetail.trafficPicFile": { required: "#openShop:checked", required: "#type:checked" } }, messages: { name: { required: '<fmt:message key="username.required"/>', minlength: '<fmt:message key="username.minlength"/>' }, password: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>' }, password2: { required: '<fmt:message key="password.required"/>', minlength: '<fmt:message key="password.minlength"/>', equalTo: '<fmt:message key="password.equalTo"/>' }, nickName:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, passwordOld:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userMail:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', email: '<fmt:message key="errors.email"><fmt:param value=""/></fmt:message>' }, agreement:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userAdds:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userTel:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="8"/></fmt:message>' }, "shopDetail.sitename": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' }, "shopDetail.ymaddr":{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="2"/></fmt:message>' }, "shopDetail.idCardNum": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="15"/></fmt:message>' }, "shopDetail.type": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, "shopDetail.idCardPicFile": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, "shopDetail.trafficPicFile": { required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' } } }); // check if confirm password is still valid after password changed jQuery("#password").blur(function() { jQuery("#password2").valid(); }) }); // propose username by combining first- and lastname function checkName() { var result = true; DWREngine.setAsync(false); var nameValue = jQuery("#name").val(); if(nameValue!=null && nameValue!=''){ if(nameValue.length >= 4 && nameValue.isAlpha() ){ CommonService.isUserExist(nameValue, function(retData){ if(retData){ result = false; } }) ; } } DWREngine.setAsync(true); return result; } function checkEmail() { var result = true; DWREngine.setAsync(false); var userMailValue = jQuery("#userMail").val(); if(userMailValue!=null && userMailValue!=''){ if(isEmail(userMailValue)){ CommonService.isEmailExist(userMailValue, function(retData){ if(retData){ result = false; } }) ; } } DWREngine.setAsync(true); return result; } function isEmail(str){ var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/; return reg.test(str); } function isOpenShop(obj){ if(obj.checked){ document.getElementById("shopDetail").style.display="block"; }else{ document.getElementById("shopDetail").style.display="none"; } } function changeType(obj){ if(obj == 1){ document.getElementById("trafficPicDiv").style.display="block"; }else{ document.getElementById("trafficPicDiv").style.display="none"; } } </script> </head> <body> <c:forEach items="${requestScope.USER_REG_ADV_950}" var="adv"> <table class="picstyle" cellpadding="0" cellspacing="0" style="margin-bottom: 5px"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="950px" /></a></td> </tr> </table> </c:forEach> <table width="100%" cellspacing="0" cellpadding="0" class="tables"> <tr> <td class="titlebg" ><fmt:message key="register.title"/></td> </tr> <tr> <td height="2" bgcolor="#FFFFF6"><table width="100%" cellspacing="0" cellpadding="0" height="100%"> <tr> <td align="left"> <form action="${pageContext.request.contextPath}/userReg${applicationScope.WEB_SUFFIX}" method="post" name="userRegForm" id="userRegForm" enctype="multipart/form-data"> <div style="margin-left: 100px"> <UL> <fmt:message key="register.hint"/></UL> <c:forEach items="${User_Messages.callBackList}" var="callback"> <li> <font color="red">${callback.callBackTitle} ${callback.callBackDesc}</font> </li> </c:forEach> </div> <br> <table width="100%" align="center" cellpadding="0" cellspacing="0" style="margin-bottom: 6"> <tr> <td width="33%" height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="user.name"/>: </div></td> <td width="67%"><div align="left"> <input class="input" type="text" name="name" id="name" maxlength="15" value="${userForm.name}"/> <span id="userAreardyExists"></span> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="real.name"/>:</div></td> <td height="29"> <div align="left"> <input class="input" type="text" name="nickName" id="nickName" size="20" value="${userForm.nickName}" maxlength="30"> </div> </td> </tr> <tr> <td height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="password"/>: </div></td> <td height="29"><div align="left"> <input class="input" type="password" name="password" id="password" size="20" maxlength="50"> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="Confirmation"/>: </div></td> <td height="29"><div align="left"> <input class="input" type="password" name="password2" id="password2" size="20" maxlength="50"> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="user.email"/>:</div></td> <td height="29"><div align="left"> <input class="input" type="text" name="userMail" id="userMail" value="${userForm.userMail}" maxlength="50"> <span id="mailAreardyExists"></span> </div></td> </tr> <c:if test="${supportOpenShop == 'true' && 'C2C' == applicationScope.BUSINESS_MODE}"> <tr> <td><br><div align="right"><fmt:message key="openShop"/>:</div> </td> <td><br><input type="checkbox" id="openShop" name="openShop" onclick="javascript:isOpenShop(this)" style="margin-left: 10px"/></td> </tr> </c:if> <tr><td colspan="2" width="100%"> <div id="shopDetail" style="display: none"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> <div style="margin-left: 100px"> <fmt:message key="mall.register.required"/> <c:if test="${validationOnOpenShop == 'true'}"> <li><fmt:message key="mall.register.shop.required"/>:</li> </c:if> </div> <br> </td> </tr> <tr> <td width="33%" height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="mall.name"/>:</div></td> <td width="67%" height="29"><div align="left"> <input name="shopDetail.sitename" id="sitename" class="input" maxlength="50"/> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="idcard.number"/>:</div></td> <td height="29"><div align="left"> <input type="text" name="shopDetail.idCardNum" id="idCardNum" class="input" maxlength="20" maxlength="50"/> </div></td> </tr> <tr> <td height="29"><div align="right"> <font color="#ff0000">*</font><fmt:message key="address"/>:</div></td> <td height="29"><div align="left"> <input style="WIDTH: 250px;" name="shopDetail.ymaddr" id="ymaddr" size="20" class="input" maxlength="300"/> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="mall.type"/>:</div></td> <td height="29"><div align="left"> &nbsp;&nbsp;<fmt:message key="type.business"/><input type="radio" name="shopDetail.type" id="type" value="1" onclick="javascript:changeType(1)"/>&nbsp; <fmt:message key="type.individual"/> <input type="radio" name="shopDetail.type" value="0" onclick="javascript:changeType(0)"/> </div></td> </tr> <tr> <td height="29"><div align="right"><font color="#ff0000">*</font><fmt:message key="upload.IDcard.pic"/>:</div></td> <td height="29"><div align="left"> <input type="file" style="WIDTH: 250px;margin-left: 10px" name="shopDetail.idCardPicFile" id="trafficPicFile" class="input" /> </div></td> </tr> <tr> <td height="29" colspan="2"> <div id="trafficPicDiv" style="display: none"> <table width="100%" cellpadding="0" cellspacing="0"><tr><td width="33%"> <div align="right"><font color="#ff0000">*</font><fmt:message key="upload.business.pic"/>:<br> </div> </td> <td> <input type="file" style="WIDTH: 250px;margin-left: 10px;" name="shopDetail.trafficPicFile" id="trafficPicFile" class="input" /></td> </tr> </table> </div> </td> </tr> </table> </div> </td></tr> <tr> <td height="29"><div align="right"></div></td> <td height="29"><div align="left"> <a href="${pageContext.request.contextPath}/regItem${applicationScope.WEB_SUFFIX}" target="_blank"><fmt:message key="UserAgreement"/></a><input type="checkbox" id="agreement" name="agreement" checked="checked"/> </div></td> </tr> <tr> <td height="35" colspan="2"><div align="center"> <table width="100%" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="left"> <input type="submit" value='<fmt:message key="submit"/>' class="s" style="margin-left: 250px"/> <input type="reset" value='<fmt:message key="reset.hint"/>' class="s"> </div> </td> </tr> </table> </div></td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/reg.jsp
Java Server Pages
oos
17,938
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="<ls:templateResource item='/common/js/jquery.js'/>" type="text/javascript"></script> <script src="<ls:templateResource item='/common/js/top.js'/>" type="text/javascript"></script> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME == null}"> <script src="<ls:templateResource item='/common/js/jquery.tools.min.js'/>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media='screen' href="<ls:templateResource item='/common/css/overlay-minimal.css'/>" /> </c:when> <c:otherwise> <link rel="stylesheet" href="<ls:templateResource item='/common/css/jquery.superbox.css'/>" type="text/css" media="all" /> <script type="text/javascript" src="<ls:templateResource item='/common/js/jquery.superbox-min.js'/>"></script> </c:otherwise> </c:choose> <script type='text/javascript' src="<ls:templateResource item='/dwr/interface/CommonService.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/engine.js'/>"></script> <script type='text/javascript' src="<ls:templateResource item='/dwr/util.js'/>"></script> <style type="text/css"> body {behavior:url("<ls:templateResource item='/common/css/csshover.htc'/>"); } </style> <script> function form1_onsubmit() { var words = document.getElementById("headerkeywordp"); if( words.value == null || words.value == '' || words.value == '关键字'){ alert('<fmt:message key="errors.keyword.required"/>'); words.focus(); return false; } return true; } function addMyLeague(userName,shopName) { if(confirm('<fmt:message key="addLeague"/> '+shopName+' ?')){ CommonService.addMyLeague(userName,shopName,'${shopDetail.sitename}', function(retData){ switch(retData){ case 0: alert('<fmt:message key="addLeagueSuccess"/>') ; break; default: alert('<fmt:message key="addLeagueError"/>') ; } }) ; } } </script> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <title>${shopDetail.sitename}</title> <link rel="icon" href="<ls:templateResource item='/favicon.ico'/>" type="image/x-icon" /> <meta name="description" content="${shopDetail.storeName},${shopDetail.briefDesc}" /> <meta name="keywords" content="${shopDetail.storeName},${shopDetail.briefDesc}"/> <meta name="keywords" content="LegendShop 网购平台, 网店系统, 商城系统, 商城系统, 电子商务系统, B2C系统, 购物系统, 网上商店系统, 网上交易系统, JAVA网店, JAVA商城, JSP网店, JSP商城, SSH项目, JAVA开源项目"/> </head> <!-- id="master" --> <body> <%@ include file="header.jsp"%> <div id="header"> <div id="logo"> <a href="${logo.url}"> <c:choose> <c:when test="${logo.id != -1}"> <img style="Clear: Both; Border: 0px" src="${pageContext.request.contextPath}/photoserver/photo/${logo.banner}" height="65px" title="${logo.memo}" /> </c:when> <c:otherwise> <img src="<ls:templateResource item='/img/legendshop.gif'/>" height="65px" title="LegendShop"/> </c:otherwise> </c:choose> </a> </div> <div> <ul id="topnews"> <c:forEach items="${newsTopList}" var="newsTop"> <li><a href="<ls:url address='/news/${newsTop.newsId}'/>">${newsTop.newsTitle}</a></li> </c:forEach> <c:if test="${'userChoice' eq sessionScope.shopDetail.langStyle}"> <li class="hl"><a href="<ls:url address='/changeLocale'/>?country=CN&language=zh">中文</a></li> <li class="hl"><a href="<ls:url address='/changeLocale'/>?country=US&language=en">English</a></li> </c:if> </ul> </div> <div> <ul id="topnav"> <c:if test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <c:if test="${shopExists && 'C2C' == applicationScope.BUSINESS_MODE}"> <li><a href="<ls:url address='/shop/${sessionScope.SPRING_SECURITY_LAST_USERNAME}'/>"><fmt:message key="myShop"/></a></li> </c:if> <auth:auth ifAnyGranted="F_ADMIN"> <c:if test="${canbeLeagueShop}"><li><a href='javascript:addMyLeague("${sessionScope.SPRING_SECURITY_LAST_USERNAME}","${sessionScope.shopName}")'><fmt:message key="addLeague"/><fmt:message key="this.shop"/></a></li></c:if> <li><a href="<ls:url address='/admin/index'/>"><b><fmt:message key="system.management"/></b></a></li> </auth:auth> <li><a href="<ls:url address='/leaveword'/>"><fmt:message key="leaveword"/></a></li> <li><a href="<ls:url address='/order'/>"><fmt:message key="myorder"/></a></li> </c:if> <li class="navCartSum"><a href="<ls:url address='/buy'/>"><fmt:message key="shopingCar"/></a></li> <li class="hl"><a href="<ls:url address='/allNews'/>"><fmt:message key="newsCenter"/></a></li> </ul> </div> <div id="headerlogin"> <span> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <span><b>${sessionScope.SPRING_SECURITY_LAST_USERNAME}</b></span> <a href="<ls:url address='/myaccount'/>")>[<fmt:message key="myaccount"/>]</a> <a href="${pageContext.request.contextPath}/logout.jsp" target="_parent">[<fmt:message key="logout"/>]</a> </c:when> <c:otherwise> <a href="<ls:url address='/login'/>">[<fmt:message key="login"/>]</a> </c:otherwise> </c:choose> <a href="<ls:url address='/reg'/>" class="n2">[<fmt:message key="regFree"/>]</a> </span> </div> </div> <div id="headernav"> <ul> <li class="n2"><a href="<ls:url address='/index'/>"><fmt:message key="shop.index"/></a></li> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE }"> <li class="n2"><a href="<ls:url address='/league'/>"><fmt:message key="leagueShop"/></a></li> </c:if> <c:forEach items="${newsSortList}" var="newsSort"> <li><a href="<ls:url address='/news/${newsSort.newsId}'/>">${newsSort.newsTitle}</a></li> </c:forEach> </ul> <ul class="nright"> <c:forEach items="${requestScope.sortList}" var="sort" end="8"> <li><a href="<ls:url address='/sort/${sort.sortId}'/>">${sort.sortName}</a></li> </c:forEach> </ul> </div> <form method="post" onsubmit="return form1_onsubmit();" action="<ls:url address='/search'/>" id="searchForm" name="searchForm" style="margin: 0px;padding: 0px"> <div id="searchwrapper"> <div id="qchannel"> <div id="headersearch"> <input type="hidden" id="curPageNOTop" name="curPageNOTop" value="${searchForm.curPageNOTop}"/> <select name="sortId" id="headersearchcategory" style="margin-right: 3px"> <option id="allProduct" value="0"><fmt:message key="all.product"/></option> <c:forEach items="${requestScope.sortList}" var="sort"> <c:choose> <c:when test="${CurrentSortId == sort.sortId}"> <option id="${sort.sortId}" value="${sort.sortId}" class="c" selected="selected">${sort.sortName}</option> </c:when> <c:otherwise> <option id="${sort.sortId}" value="${sort.sortId}" class="c">${sort.sortName}</option> </c:otherwise> </c:choose> </c:forEach> </select> <input type="text" value="${searchForm.keyword}" name="keyword" id="headerkeywordp" class="input2" onMouseOver="this.focus()" onBlur="if (this.value =='') this.value='关键字'" onFocus="this.select()" onClick="if (this.value=='关键字') this.value=''"/> <input type="submit" value='<fmt:message key="search"/>' class="input3" onmouseover="this.style.background='#99CC00'" onmouseout="this.style.background='#FFCC00'"/> <a href="javascript:advanceSearch('${pageContext.request.contextPath}')" style="margin: 6px"><font color="white"><fmt:message key="advance.search"/></font></a> </div> <div id="topcatalog"> <h2> <a href='#' onclick="javascript:bookmark('${shopDetail.storeName} - ${shopDetail.sitename}','${DOMAIN_NAME}/shop/${shopDetail.storeName}${applicationScope.WEB_SUFFIX}');"> <fmt:message key="favorite"/> </a> </h2> </div> <div> <ul id="favourite"> <li><center><a href="<ls:url address='/shopcontact'/>?shop=${sessionScope.shopName}" title="${sessionScope.shopName}<fmt:message key='online.customer'/>"><fmt:message key="online.customer"/></a></center></li> </ul> </div> </div> </div> </form>
100mall
trunk/100mall/webapps/pages/frontend/default/top.jsp
Java Server Pages
oos
9,104
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <jsp:include flush="true" page="/top${applicationScope.WEB_SUFFIX}" /> <meta name="keywords" content="${prod.keyWord}"/> <meta name="description" content="${prod.keyWord}"/> <div id="bodyer"> <table width="954px" align="center" cellpadding="0" cellspacing="0" style="margin-top: 4px"> <tr> <td valign="top"> <!-- adv --> <c:forEach items="${requestScope.PROD_ADV_TOP}" var="adv"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="100%"/></a></td></tr> </table> </c:forEach> <!-- topnews --> <jsp:include page="/topnews${applicationScope.WEB_SUFFIX}?topsortnews=1"/> <!-- adv --> <c:forEach items="${requestScope.PROD_ADV_MID1}" var="adv1"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv1.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv1.picUrl}" title="${adv1.title}" width="100%"/></a></td></tr> </table> </c:forEach> <!-- topsort --> <jsp:include flush="true" page="/topsort${applicationScope.WEB_SUFFIX}" /> <!-- adv --> <c:forEach items="${requestScope.PROD_ADV_MID2}" var="adv2"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv2.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv2.picUrl}" title="${adv2.title}" width="100%"/></a></td></tr> </table> </c:forEach> <!-- hot product --> <jsp:include page="/hoton${applicationScope.WEB_SUFFIX}?sortId=${prod.sortId}" /> <!-- adv --> <c:forEach items="${requestScope.PROD_ADV_BOTTOM}" var="adv3"> <table width="205px" cellpadding="0" cellspacing="0" style="margin-bottom: 4px; margin-right: 5px;" class="picstyle"> <tr><td><a href="${adv3.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv3.picUrl}" title="${adv3.title}" width="100%"/></a></td></tr> </table> </c:forEach> </td> <td valign="top" width="744px"><%@ include file="productDetail.jsp"%></td> </tr> </table> </div> <%@ include file="copy.jsp"%>
100mall
trunk/100mall/webapps/pages/frontend/default/views.jsp
Java Server Pages
oos
2,615
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205px" height="116px" cellspacing="0" cellpadding="0" style="margin-right: 5px;margin-bottom: 0px;margin-left: 0px;margin-top: 0px" class="tables"> <tr> <td class="titlebg"><fmt:message key="index.notice"/></td> </tr> <tr> <td height="87px" valign="top"> <c:choose> <c:when test="${requestScope.pubList == null}"> <p>&nbsp;<br> </c:when> <c:otherwise> <c:forEach items="${requestScope.pubList}" var="pub"> <div class="topnewsfixed"> <c:choose> <c:when test="${fn:length(pub.title) > 14}"> <div title="${pub.title}" align="left"> <img src="${pageContext.request.contextPath}/img/dot.gif" width="15" height="15" style="margin-left: 3px"><a href="${pub.msg}">${pub.title}</a> </div> </c:when> <c:otherwise> <div align="left"> <img src="${pageContext.request.contextPath}/img/dot.gif" width="15" height="15" style="margin-left: 3px"><a href="${pub.msg}">${pub.title}</a> </div> </c:otherwise> </c:choose> </div> </c:forEach> </c:otherwise> </c:choose> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/notice.jsp
Java Server Pages
oos
1,687
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <html> <head> <%@include file='/pages/common/common.jsp'%> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <title> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> ${sessionScope.SPRING_SECURITY_LAST_USERNAME} <fmt:message key="shopingCar"/> </c:when> <c:otherwise> <fmt:message key="shopingCar"/> </c:otherwise> </c:choose> </title> </head> <body topmargin="0"> <c:forEach items="${requestScope.USER_REG_ADV_950}" var="adv"> <table width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px" class="picstyle"> <tr><td><a href="${adv.linkUrl}"><img src="${pageContext.request.contextPath}/photoserver/photo/${adv.picUrl}" title="${adv.title}" width="950px"/></a></td></tr> </table> </c:forEach> <table width="100%" class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="product.subscribed.list"/></td> </tr> <tr><td><jsp:include flush="true" page="/bought${applicationScope.WEB_SUFFIX}"></jsp:include></td></tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/buy.jsp
Java Server Pages
oos
1,471
<%@page import="com.legendshop.core.ContextServiceLocator"%> <%@page import="com.legendshop.model.entity.Sub"%> <%@page import="com.legendshop.business.service.impl.PayTypeServiceImpl"%> <%@page import="com.legendshop.model.entity.PayType"%> <%@page import="com.legendshop.business.common.OrderStatusEnum"%> <%@page import="com.legendshop.business.dao.impl.SubDaoImpl"%> <%@page import="com.legendshop.business.payment.alipay.util.AlipayNotify"%> <%@page import="com.legendshop.business.common.SubStatusEnum"%> <% /* * 功能:付完款后跳转的页面(页面跳转同步通知页面) 版本:3.1 日期:2010-11-24 说明: 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 //***********页面功能说明*********** 该页面可在本机电脑测试 该页面称作“页面跳转同步通知页面”,是由支付宝服务器同步调用,可当作是支付完成后的提示信息页,如“您的某某某订单,多少金额已支付成功”。 可放入HTML等美化页面的代码和订单交易完成后的数据库更新程序代码 WAIT_SELLER_SEND_GOODS(表示买家已在支付宝交易管理中产生了交易记录且付款成功,但卖家没有发货); TRADE_FINISHED(表示买家已经确认收货,这笔交易完成); *************注意****************** 如何判断该笔交易是通过即时到帐方式付款还是通过担保交易方式付款? 担保交易的交易状态变化顺序是:等待买家付款→买家已付款,等待卖家发货→卖家已发货,等待买家收货→买家已收货,交易完成 即时到帐的交易状态变化顺序是:等待买家付款→交易完成 每当收到支付宝发来通知中,就可以获取到这笔交易的交易状态,并且商户需要利用商户订单号查询商户网站的订单数据, 得到这笔订单在商户网站中的状态是什么,把商户网站中的订单状态与从支付宝通知中获取到的状态来做对比。 如果商户网站中目前的状态是等待买家付款,而从支付宝通知获取来的状态是买家已付款,等待卖家发货,那么这笔交易买家是用担保交易方式付款的 如果商户网站中目前的状态是等待买家付款,而从支付宝通知获取来的状态是交易完成,那么这笔交易买家是用即时到帐方式付款的 ********************************** //******************************** * */ %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>支付成功客户端返回</title> <style type="text/css"> .font_content{ font-family:"宋体"; font-size:14px; color:#FF6600; } .font_title{ font-family:"宋体"; font-size:16px; color:#FF0000; font-weight:bold; } table{ border: 1px solid #CCCCCC; } </style> </head> <body> <% String order_no = request.getParameter("out_trade_no"); //获取订单号,根据订单号找出对应的订单和用户 System.out.println("return order_no ==== " + order_no); SubDaoImpl subDao = (SubDaoImpl)ContextServiceLocator.getInstance().getBean("subDao"); Sub sub = subDao.getSubBySubNumber(order_no); PayTypeServiceImpl payTypeService = (PayTypeServiceImpl)ContextServiceLocator.getInstance().getBean("payTypeService"); PayType payType = payTypeService.getPayTypeById(sub.getPayId()); String key = payType.getValidateKey(); //获取支付宝GET过来反馈信息 Map params = new HashMap(); Map requestParams = request.getParameterMap(); for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext();) { String name = (String) iter.next(); String[] values = (String[]) requestParams.get(name); String valueStr = ""; for (int i = 0; i < values.length; i++) { valueStr = (i == values.length - 1) ? valueStr + values[i] : valueStr + values[i] + ","; } //乱码解决,这段代码在出现乱码时使用。如果mysign和sign不相等也可以使用这段代码转化 //valueStr = new String(valueStr.getBytes("ISO-8859-1"), "UTF-8"); //System.out.println("return_url.jsp 74L: name = " + name +" , valueStr = " + valueStr); params.put(name, valueStr); } //获取支付宝的通知返回参数,可参考技术文档中页面跳转同步通知参数列表(以下仅供参考)// String trade_no = request.getParameter("trade_no"); //支付宝交易号 String total_fee = request.getParameter("price"); //获取总金额 if(total_fee == null || total_fee == ""){ //System.out.println("接口没有返回总费用,采用订单设置"); total_fee = String.valueOf(sub.getTotal()); } String subject = request.getParameter("subject");//商品名称、订单名称 String body = ""; if(request.getParameter("body") != null){ body = request.getParameter("body");//商品描述、订单备注、描述 } String buyer_email = request.getParameter("buyer_email"); //买家支付宝账号 String receive_name = "";//收货人姓名 if(request.getParameter("receive_name") != null){ receive_name = request.getParameter("receive_name"); } String receive_address = "";//收货人地址 if(request.getParameter("receive_address") != null){ receive_address = request.getParameter("receive_address"); } String receive_zip = "";//收货人邮编 if(request.getParameter("receive_zip") != null){ receive_zip = request.getParameter("receive_zip"); } String receive_phone = "";//收货人电话 if(request.getParameter("receive_phone") != null){ receive_phone = request.getParameter("receive_phone"); } String receive_mobile = "";//收货人手机 if(request.getParameter("receive_mobile") != null){ receive_mobile = request.getParameter("receive_mobile"); } String trade_status = request.getParameter("trade_status"); //交易状态 //获取支付宝的通知返回参数,可参考技术文档中页面跳转同步通知参数列表(以上仅供参考)// String verifyStatus = ""; System.out.println(new StringBuffer().append("receive_name=").append(receive_name).append(",buyer_email=").append(buyer_email) .append(",receive_zip=").append(receive_zip).append(",receive_phone=").append(receive_phone).append(",receive_mobile=") .append(receive_mobile).append("receive_address=").append(receive_address).toString()); //计算得出通知验证结果 boolean verify_result = AlipayNotify.verify(params,key); if(verify_result){ ////////////////////////////////////////////////////////////////////////////////////////// //请在这里加上商户的业务逻辑程序代码 //——请根据您的业务逻辑来编写程序(以下代码仅作参考)—— if(trade_status.equals("WAIT_SELLER_SEND_GOODS")){ //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 if(!OrderStatusEnum.PADYED.value().equals(sub.getStatus())){ subDao.saveSubHistory(sub,SubStatusEnum.CHANGE_STATUS.value()); sub.setPayDate(new Date()); sub.setStatus(OrderStatusEnum.PADYED.value()); sub.setTradeNo(trade_no); subDao.update(sub); } } //——请根据您的业务逻辑来编写程序(以下代码仅作参考)—— if(trade_status.equals("TRADE_FINISHED") || trade_status.equals("TRADE_SUCCESS")){ //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 if(!OrderStatusEnum.SUCCESS.value().equals(sub.getStatus()) && !"Y".equals(sub.getSubCheck())){ subDao.saveSubHistory(sub,SubStatusEnum.CHANGE_STATUS.value()); sub.setPayDate(new Date()); sub.setStatus(OrderStatusEnum.SUCCESS.value()); sub.setSubCheck("Y");//完成订单的标识 sub.setTradeNo(trade_no); //System.out.println(sub.getUserName() +" update sub " + OrderStatusEnum.SUCCESS.value()); subDao.update(sub); } } verifyStatus = "验证成功"; //——请根据您的业务逻辑来编写程序(以上代码仅作参考)—— ////////////////////////////////////////////////////////////////////////////////////////// }else{ verifyStatus = "验证失败"; } %> <table align="center" width="450" cellpadding="5" cellspacing="0"> <tr> <td align="center" class="font_title" colspan="2"> 通知返回<a href="${DOMAIN_NAME}">[返回系统]</a></td> </tr> <tr> <td class="font_content" align="right"> 支付宝交易号:</td> <td class="font_content" align="left"><%=trade_no %></td> </tr> <tr> <td class="font_content" align="right"> 订单号:</td> <td class="font_content" align="left"><%=order_no %></td> </tr> <tr> <td class="font_content" align="right"> 付款总金额:</td> <td class="font_content" align="left"><%=total_fee %></td> </tr> <tr> <td class="font_content" align="right"> 商品标题:</td> <td class="font_content" align="left"><%=subject %></td> </tr> <tr> <td class="font_content" align="right"> 商品描述:</td> <td class="font_content" align="left"><%=body %></td> </tr> <tr> <td class="font_content" align="right"> 买家账号:</td> <td class="font_content" align="left"><%=buyer_email %></td> </tr> <tr> <td class="font_content" align="right"> 卖家姓名:</td> <td class="font_content" align="left"><%=sub.getShopName() %></td> </tr> <tr> <td class="font_content" align="right"> 收货人姓名:</td> <td class="font_content" align="left"><%=sub.getUserName() %></td> </tr> <tr> <td class="font_content" align="right"> 收货人地址:</td> <td class="font_content" align="left"><%=sub.getSubAdds() %></td> </tr> <tr> <td class="font_content" align="right"> 收货人邮编:</td> <td class="font_content" align="left"><%=sub.getSubPost() %></td> </tr> <tr> <td class="font_content" align="right"> 收货人电话:</td> <td class="font_content" align="left"><%=sub.getSubTel() %></td> </tr> <tr> <td class="font_content" align="right"> 交易状态:</td> <td class="font_content" align="left"><%=trade_status %></td> </tr> <tr> <td class="font_content" align="right"> 验证状态:</td> <td class="font_content" align="left"><%=verifyStatus %></td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/alipay/return_url.jsp
Java Server Pages
oos
12,116
<%@page import="com.legendshop.core.ContextServiceLocator"%> <%@page import="com.legendshop.business.service.impl.PayTypeServiceImpl"%> <%@page import="com.legendshop.model.entity.PayType"%> <%@page import="com.legendshop.model.entity.Sub"%> <%@page import="com.legendshop.business.payment.alipay.util.AlipayNotify"%> <%@page import="com.legendshop.business.dao.impl.SubDaoImpl"%> <%@page import="com.legendshop.business.common.SubStatusEnum"%> <%@page import="com.legendshop.business.common.OrderStatusEnum"%> <% /* * 功能:支付宝主动通知调用的页面(服务器异步通知页面) 版本:3.1 日期:2010-11-24 说明: 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 //***********页面功能说明*********** 创建该页面文件时,请留心该页面文件中无任何HTML代码及空格。 该页面不能在本机电脑测试,请到服务器上做测试。请确保互联网可以访问该页面。 该页面调试工具请使用写文本函数log_result,该函数已被默认开启 WAIT_BUYER_PAY(表示买家已在支付宝交易管理中产生了交易记录,但没有付款); WAIT_SELLER_SEND_GOODS(表示买家已在支付宝交易管理中产生了交易记录且付款成功,但卖家没有发货); WAIT_BUYER_CONFIRM_GOODS(表示卖家已经发了货,但买家还没有做确认收货的操作); TRADE_FINISHED(表示买家已经确认收货,这笔交易完成); 该服务器异步通知页面面主要功能是:防止订单未更新。如果没有收到该页面打印的 success 信息,支付宝会在24小时内按一定的时间策略重发通知 *************注意****************** 如何判断该笔交易是通过即时到帐方式付款还是通过担保交易方式付款? 担保交易的交易状态变化顺序是:等待买家付款→买家已付款,等待卖家发货→卖家已发货,等待买家收货→买家已收货,交易完成 即时到帐的交易状态变化顺序是:等待买家付款→交易完成 每当收到支付宝发来通知中,就可以获取到这笔交易的交易状态,并且商户需要利用商户订单号查询商户网站的订单数据, 得到这笔订单在商户网站中的状态是什么,把商户网站中的订单状态与从支付宝通知中获取到的状态来做对比。 如果商户网站中目前的状态是等待买家付款,而从支付宝通知获取来的状态是买家已付款,等待卖家发货,那么这笔交易买家是用担保交易方式付款的 如果商户网站中目前的状态是等待买家付款,而从支付宝通知获取来的状态是交易完成,那么这笔交易买家是用即时到帐方式付款的 ********************************** //******************************** * */ %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.*"%> <% String order_no = request.getParameter("out_trade_no"); //获取订单号 System.out.println("notify order_no ==== " + order_no); if(order_no == null){ return; } SubDaoImpl subDao = (SubDaoImpl)ContextServiceLocator.getInstance().getBean("subDao"); Sub sub = subDao.getSubBySubNumber(order_no); PayTypeServiceImpl payTypeService = (PayTypeServiceImpl)ContextServiceLocator.getInstance().getBean("payTypeService"); PayType payType = payTypeService.getPayTypeById(sub.getPayId()); if(payType == null){ return; } String key = payType.getValidateKey(); //获取支付宝POST过来反馈信息 Map params = new HashMap(); Map requestParams = request.getParameterMap(); for (Iterator iter = requestParams.keySet().iterator(); iter.hasNext();) { String name = (String) iter.next(); String[] values = (String[]) requestParams.get(name); String valueStr = ""; for (int i = 0; i < values.length; i++) { valueStr = (i == values.length - 1) ? valueStr + values[i] : valueStr + values[i] + ","; } //乱码解决,这段代码在出现乱码时使用。如果mysign和sign不相等也可以使用这段代码转化 //valueStr = new String(valueStr.getBytes("ISO-8859-1"), "UTF-8"); params.put(name, valueStr); } //获取支付宝的通知返回参数,可参考技术文档中页面跳转同步通知参数列表(以下仅供参考)// String trade_no = request.getParameter("trade_no"); //支付宝交易号 String total_fee = request.getParameter("price"); //获取总金额 String subject = new String(request.getParameter("subject").getBytes("ISO-8859-1"),"UTF-8");//商品名称、订单名称 String body = ""; if(request.getParameter("body") != null){ body = new String(request.getParameter("body").getBytes("ISO-8859-1"), "UTF-8");//商品描述、订单备注、描述 } String buyer_email = request.getParameter("buyer_email"); //买家支付宝账号 String receive_name = "";//收货人姓名 if(request.getParameter("receive_name") != null){ receive_name = new String(request.getParameter("receive_name").getBytes("ISO-8859-1"), "UTF-8"); } String receive_address = "";//收货人地址 if(request.getParameter("receive_address") != null){ receive_address = new String(request.getParameter("receive_address").getBytes("ISO-8859-1"), "UTF-8"); } String receive_zip = "";//收货人邮编 if(request.getParameter("receive_zip") != null){ receive_zip = new String(request.getParameter("receive_zip").getBytes("ISO-8859-1"), "UTF-8"); } String receive_phone = "";//收货人电话 if(request.getParameter("receive_phone") != null){ receive_phone = new String(request.getParameter("receive_phone").getBytes("ISO-8859-1"), "UTF-8"); } String receive_mobile = "";//收货人手机 if(request.getParameter("receive_mobile") != null){ receive_mobile = new String(request.getParameter("receive_mobile").getBytes("ISO-8859-1"), "UTF-8"); } System.out.println(new StringBuffer().append("receive_name=").append(receive_name).append(",buyer_email=").append(buyer_email) .append(",receive_zip=").append(receive_zip).append(",receive_phone=").append(receive_phone).append(",receive_mobile=") .append(receive_mobile).append("receive_address=").append(receive_address).toString()); String trade_status = request.getParameter("trade_status"); //交易状态 //获取支付宝的通知返回参数,可参考技术文档中页面跳转同步通知参数列表(以上仅供参考)// if(trade_status != null && AlipayNotify.verify(params,key)){ //验证成功 //请在这里加上商户的业务逻辑程序代码 //——请根据您的业务逻辑来编写程序(以下代码仅作参考)—— if(trade_status.equals("WAIT_BUYER_PAY")){ //该判断表示买家已在支付宝交易管理中产生了交易记录,但没有付款 //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 out.println("success"); //请不要修改或删除 } else if(trade_status.equals("WAIT_SELLER_SEND_GOODS")){ //该判断表示买家已在支付宝交易管理中产生了交易记录且付款成功,但卖家没有发货 //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 if(!OrderStatusEnum.PADYED.value().equals(sub.getStatus()) && !OrderStatusEnum.SUCCESS.value().equals(sub.getStatus())){ subDao.saveSubHistory(sub,SubStatusEnum.CHANGE_STATUS.value()); sub.setPayDate(new Date()); sub.setStatus(OrderStatusEnum.PADYED.value()); sub.setTradeNo(trade_no); subDao.update(sub); } out.println("success"); //请不要修改或删除 } else if(trade_status.equals("WAIT_BUYER_CONFIRM_GOODS")){ //该判断表示卖家已经发了货,但买家还没有做确认收货的操作 //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 System.out.println("卖家已经发货, order_no = " + order_no); out.println("success"); //请不要修改或删除 } else if(trade_status.equals("TRADE_FINISHED") || trade_status.equals("TRADE_SUCCESS")){ //该判断表示买家已经确认收货,这笔交易完成 //判断该笔订单是否在商户网站中已经做过处理(可参考“集成教程”中“3.4返回数据处理”) //如果没有做过处理,根据订单号(out_trade_no)在商户网站的订单系统中查到该笔订单的详细,并执行商户的业务程序 //如果有做过处理,不执行商户的业务程序 System.out.println("订单完成, order_no = " + order_no); if(!OrderStatusEnum.SUCCESS.value().equals(sub.getStatus())){ subDao.saveSubHistory(sub,SubStatusEnum.CHANGE_STATUS.value()); sub.setPayDate(new Date()); sub.setStatus(OrderStatusEnum.SUCCESS.value()); sub.setSubCheck("Y");//完成订单的标识 sub.setTradeNo(trade_no); //System.out.println(sub.getUserName() +" update sub " + OrderStatusEnum.SUCCESS.value()); subDao.update(sub); } out.println("success"); //请不要修改或删除 } else { System.out.println("订单非正常完成, order_no = " + order_no); out.println("success"); //请不要修改或删除 } //——请根据您的业务逻辑来编写程序(以上代码仅作参考)—— ////////////////////////////////////////////////////////////////////////////////////////// }else{//验证失败 out.println("fail"); } %>
100mall
trunk/100mall/webapps/pages/frontend/default/alipay/notify_url.jsp
Java Server Pages
oos
10,446
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="180" cellspacing="0" cellpadding="0" style="margin-bottom: 5px;margin-right: 5px;"> <tr> <td align="center"><img src="${pageContext.request.contextPath}/img/promo_list_top.gif" width="100%" height="1"></td> </tr> <tr><td class="titlebg"><fmt:message key="friend.link"/></td></tr> <tr> <td bgcolor="#ECECEC"> <p style="line-height:150%" align=center> <c:forEach items="${requestScope.adList}" var="ad"> <a href="${ad.url}" target=_blank>${ad.wordlink}</a><br> </c:forEach> </p></td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/friendlink.jsp
Java Server Pages
oos
1,019
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/plugins/theme/gallery/jquery.ad-gallery.css"> <script type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/gallery/jquery.min.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/plugins/theme/gallery/jquery.ad-gallery.js"></script> <script type="text/javascript"> var start_message = '<fmt:message key="start.message"/>'; var stop_message = '<fmt:message key="stop.message"/>'; $(function() { var galleries = $('.ad-gallery').adGallery(); }); </script> <style type="text/css"> * { font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, Arial, sans-serif; color: #333; line-height: 140%; } select, input, textarea { font-size: 1em; } h2 { margin-top: 1.2em; margin-bottom: 0; padding: 0; border-bottom: 1px dotted #dedede; } h3 { margin-top: 1.2em; margin-bottom: 0; padding: 0; } .example { border: 1px solid #CCC; background: #f2f2f2; padding: 10px; } ul { list-style-image:url(list-style.gif); } pre { font-family: "Lucida Console", "Courier New", Verdana; border: 1px solid #CCC; background: #f2f2f2; padding: 10px; } code { font-family: "Lucida Console", "Courier New", Verdana; margin: 0; padding: 0; } #gallery { padding: 30px; } </style> <title>${prod.name}</title> </head> <body style="text-align:center"> <div id="container"> <h2>${prod.name} <a href="${pageContext.request.contextPath}/views/${prod.prodId}${applicationScope.WEB_SUFFIX}">[<fmt:message key="order"/>]</a></h2> <div id="gallery" class="ad-gallery"> <div class="ad-image-wrapper"> </div> <div class="ad-controls"> </div> <div class="ad-nav"> <div class="ad-thumbs"> <ul class="ad-thumb-list"> <c:forEach items="${requestScope.prodPics}" var="pic" varStatus="status"> <li><a href="${pageContext.request.contextPath}/photoserver/photo/${pic.filePath}"> <img src="${pageContext.request.contextPath}/photoserver/images/${pic.filePath}" class="image${status.index+1}" width="108px" height="80px"> </a></li> </c:forEach> </ul> </div> </div> </div> </div> </body> </html>
100mall
trunk/100mall/webapps/pages/frontend/default/gallery.jsp
Java Server Pages
oos
2,761
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <table class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"> <c:choose> <c:when test="${(not empty User_Messages.code) and (User_Messages.code != 200)}"> <SPAN class="afterOperate"><fmt:message key="operation.fail"/></SPAN> </c:when> <c:otherwise> <SPAN class="afterOperate"><fmt:message key="operation.successful"/></SPAN> </c:otherwise> </c:choose> <br> </td> </tr> <tr> <td bgcolor="#FFFFF6" align="left" > <div style="margin-left: 85px"> <c:if test="${User_Messages.title != null}"> <br> <H2>${User_Messages.title}</H2> ${User_Messages.desc} </c:if> </div> <div style="margin-top: 10px"> <jsp:include page="/pages/common/moreoption.jsp"></jsp:include> </div> </td> </tr> <tr><td bgcolor="#FFFFF6"> <br></br> <div align="center"> <input type="submit" onclick="javascript:turnToIndex()" value='<fmt:message key="submit"/>' class="s"/> </div> <br></br> </td></tr> </table> <script type="text/javascript"> function turnToIndex(){ window.location.href = "${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"; } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/afterOperation.jsp
Java Server Pages
oos
2,569
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/common.jsp'%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="${pageContext.request.contextPath}/common/css/searchall.css" rel="stylesheet" type="text/css" /> <title> <lb:shopDetail var="shopDetail" /> <c:choose> <c:when test="${shopDetail != null}"> ${shopDetail.sitename} </c:when> <c:otherwise> LegendShop - Java企业级商城系统 </c:otherwise> </c:choose> </title> <link rel="icon" href="${pageContext.request.contextPath}/favicon.ico" type="image/x-icon" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="${shopDetail.storeName},${shopDetail.briefDesc}" /> <meta name="keywords" content="${shopDetail.storeName},${shopDetail.briefDesc}"/> <meta name="keywords" content="LegendShop 网购平台, 网店系统, 商城系统, 商城系统, 电子商务系统, B2C系统, 购物系统, 网上商店系统, 网上交易系统, JAVA网店, JAVA商城, JSP网店, JSP商城, SSH项目, JAVA开源项目"/> <script> function submitSearchAllform(entityType,keyword){ //var keyword = document.getElementById("keyword").value; document.getElementById("searchAllform").action = "${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=" + entityType +"&keyword="+keyword; document.getElementById("searchAllform").submit(); } </script> </head> <body> <table width="100%"> <tr><td style="border-bottom-width: 1px; border-bottom-style: solid;border-bottom-color: #CCC"> <table width="100%"> <tr> <td align="left"> <a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"><fmt:message key="shop.index"/></a> &nbsp; <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME != null}"> <span style="color: red; font-weight: bold;">${sessionScope.SPRING_SECURITY_LAST_USERNAME}</span> <a href="${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}")><fmt:message key="myaccount"/></a> <a href="${pageContext.request.contextPath}/order${applicationScope.WEB_SUFFIX}")><fmt:message key="myorder"/></a> <a href="${pageContext.request.contextPath}/logout.jsp" target="_parent"><fmt:message key="logout"/></a> <auth:auth ifAnyGranted="F_ADMIN"> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <a href="${pageContext.request.contextPath}/shop/${sessionScope.SPRING_SECURITY_LAST_USERNAME}${applicationScope.WEB_SUFFIX}"><fmt:message key="myShop"/></a> </c:if> <a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}"><fmt:message key="system.management"/></a> </auth:auth> </c:when> <c:otherwise> <a href="${pageContext.request.contextPath}/login${applicationScope.WEB_SUFFIX}"><fmt:message key="login"/></a> </c:otherwise> </c:choose> <a href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}"><fmt:message key="register.title"/></a> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <a href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}?openshop=1"><fmt:message key="register.shop"/></a> </c:if> </td> <td align="right"> <a href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club"><fmt:message key="bbs"/></a> </td> </tr> </table> </td></tr> <tr><td> <div align="center" style="margin: 40px"> <a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/legendshop.gif" width="240px"/></a> </div> </td></tr> <tr><td align="center"> <form action="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}" method="post" id="searchAllform" name="searchAllform"> <table> <tr><td align="left"> <input type="text" value="${keyword}" id="keyword" name="keyword" maxlength="100" size="50" class="kw"></input> <input type="button" value='<fmt:message key="search.product"/>' class="btn" onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'" onclick='javascrpit:submitSearchAllform(0,document.getElementById("keyword").value)'></input> <c:if test="${'C2C' == applicationScope.BUSINESS_MODE}"> <input type="button" value='<fmt:message key="search.mall"/>' class="btn" onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'" onclick='javascrpit:submitSearchAllform(1,document.getElementById("keyword").value)'></input> </c:if> </td></tr> </table> </form> </td></tr> </table> <center> <c:if test="${'TEST' == applicationScope.RUNTIME_MODE}"> <table width="550px" style="margin: 10px"> <tr><td width="80px" align="right">热门商家:</td> <td align="left"> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=1&keyword=LegendShop">LegendShop软件商城</a> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=1&keyword=360buy">360buy天天购物网</a> </td></tr> <tr><td align="right">热门商品:</td> <td align="left"> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=0&keyword=戴尔">戴尔</a> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=0&keyword=CPU">CPU</a> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=0&keyword=索尼 SONY">SONY</a> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=0&keyword=创维">创维</a> <a href="${pageContext.request.contextPath}/searchall${applicationScope.WEB_SUFFIX}?entityType=0&keyword=三星 SAMSUNG">三星SAMSUNG</a> </td> </tr> </table> </c:if> <br><br><br><br><br><br> <jsp:include page="/copyAll${applicationScope.WEB_SUFFIX}" flush="true"/> </center>
100mall
trunk/100mall/webapps/pages/frontend/default/all.jsp
Java Server Pages
oos
6,552
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="/WEB-INF/tld/options.tld" prefix="option"%> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <script src="${pageContext.request.contextPath}/common/js/jquery.validate.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/common/css/indexJpgForm.css" /> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/engine.js" ></script> <script type="text/javascript" src="${pageContext.request.contextPath}/dwr/util.js" ></script> <script language="JavaScript"> jQuery.validator.setDefaults({ }); jQuery(document).ready(function() { jQuery("#cashSaveForm").validate({ rules: { orderName: { required: true, minlength: 3 }, userPostcode: "required", userTel: { required: true, minlength: 8, number: true }, userMail: { required: true, email: true }, userAdds: { required: true, minlength: 6 } }, messages: { orderName: { required: '<fmt:message key="errors.orderName.required"/>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="3"/></fmt:message>' }, userPostcode:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>' }, userTel:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="8"/></fmt:message>', number: '<fmt:message key="errors.phone"><fmt:param value=""/></fmt:message>' }, userAdds:{ required: '<fmt:message key="errors.required"><fmt:param value=""/></fmt:message>', minlength: '<fmt:message key="errors.minlength"><fmt:param value=""/><fmt:param value="3"/></fmt:message>' } } }); }); function submitCashSaveForm(){ document.getElementById("cashSaveForm").submit(); } </script> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <c:choose> <c:when test="${sessionScope.SPRING_SECURITY_LAST_USERNAME == null}"> <logic:forward name="nologon"/> </c:when> <c:otherwise> <form action="${pageContext.request.contextPath}/sub/save${applicationScope.WEB_SUFFIX}" method="post" id="cashSaveForm" name="cashSaveForm"> <table width="100%" class="tablesnoborder" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="order.detail"/></td> </tr> <tr> <td> <input name="userName" value="${member.userName}" type="hidden"/> <input name="basketId" value="${basketId}" type="hidden"/> <input name="subNember" value="${subNember}" type="hidden"/> <input name="total" value="${requestScope.totalcash}" type="hidden"/> <input type="hidden" id="SESSION_TOKEN" name="SESSION_TOKEN" value="${sessionScope.SESSION_TOKEN}" /> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="left"><br>   <fmt:message key="save.sub.tip"/><br> <br> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td height="25" colspan="2" style="margin-left: 20px">&nbsp;&nbsp;<b><fmt:message key="input.detail"/></b></td> </tr> <tr> <td width="19%" height="30"> <div align="right"><font color="#ff0000">*</font><fmt:message key="name"/>:</div> </td> <td width="81%"> <input class="input" type="text" name="orderName" size="30" value="${member.nickName}" maxlength="50"> </td> </tr> <tr> <td width="19%" height="30"> <div align="right"><font color="#ff0000">*</font><fmt:message key="postcode"/>:</div> </td> <td> <input maxlength="15" class="input"type="text" name="userPostcode" size="30" value="${member.userPostcode}"> </td> </tr> <tr> <td width="19%" height="30"> <div align="right"><font color="#ff0000">*</font><fmt:message key="Phone"/>:</div> </td> <td> <input maxlength="30" class="input" type="text" name="userTel" size="30" value="${member.userTel}"> </td> </tr> <tr> <td width="19%" height="30"> <div align="right"><font color="#ff0000">*</font><fmt:message key="address"/>:</div> </td> <td height="25"> <input maxlength="200" style="WIDTH: 300px" class="input" type="text" name="userAdds" value="${member.userAdds}"> <a href="${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}" target="_blank"><fmt:message key="modify.address"/></a> </td> </tr> <tr> <td width="19%" height="50"> <div align="right"><fmt:message key="memo"/>:<br> </div> </td> <td height="50"><textarea style="WIDTH: 300px;font-size: 10pt" class="input2" name="other" cols="100" rows="5"></textarea> <br>(<fmt:message key="cashsave.description"/>) </td> </tr> <tr height="35"> <td colspan="2"> <table width="40%" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <div align="center"> <input type="submit" value='<fmt:message key="order.hint"/>' class="s"/> </div> </td> <td> <div align="center"> <input type="reset" value="<fmt:message key="cancel"/>" class="s" /> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </form> </c:otherwise> </c:choose>
100mall
trunk/100mall/webapps/pages/frontend/default/cashsave.jsp
Java Server Pages
oos
8,526
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <table width="100%" cellspacing="0" cellpadding="0" class="tables"> <tr> <td class="titlebg" width="90%"><fmt:message key="no.login.hint"/></td> </tr> <tr> <td align="left"> <div style="margin-left: 50px;margin-bottom: 20px;margin-top: 20px"> <fmt:message key="nologin.hint.self"> <fmt:param value="${pageContext.request.contextPath}/login${applicationScope.WEB_SUFFIX}?returnUrl=${returnUrl}"></fmt:param> <fmt:param value="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}"></fmt:param> </fmt:message> </div> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/loginHint.jsp
Java Server Pages
oos
742
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <link rel="stylesheet" href="../img/button/sliding.css" type="text/css" media="screen" /> <ul class="green"> <li><a href="#" title="搜索" class="current"><span></span>搜索</a></li> <li><a href="#" title="高级搜索"><span></span>高级搜索</a></li> </ul> 高级搜索
100mall
trunk/100mall/webapps/pages/frontend/default/searchbutton.jsp
Java Server Pages
oos
474
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="954px" cellpadding="3px" cellspacing="3px" align="center" > <td width="100%" align="center"> <c:forEach items="${requestScope.newsBottomList}" var="newsBottom"> <a href="${pageContext.request.contextPath}/news/${newsBottom.newsId}${applicationScope.WEB_SUFFIX}" target="_blank">${newsBottom.newsTitle}</a> | </c:forEach> <a href="${pageContext.request.contextPath}/ipsearch${applicationScope.WEB_SUFFIX}" target="_blank">IP地址查询</a> </td></tr> <tr> <td width="100%" align="center"> &copy;Copyright 2009 - 2011 Power By <a href="http://www.legendesign.net" target="_blank">LegendShop ${LEGENDSHOP_VERSION} ${licenseDesc}</a> All Rights Reserved. </td></tr> <tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/copyAll.jsp
Java Server Pages
oos
890
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <table width="205" cellspacing="0" cellpadding="0" style="margin-bottom: 5px;margin-left: 5px;"> <tr> <td class="titlebg"><fmt:message key="hotsale" /></td> </tr> <tr align="center" height="105"> <td width="100%"> <table width="100%"> <c:if test="${productList != null}"> <c:forEach items="${requestScope.hotsaleList}" var="hotsale" varStatus="status"> <tr> <td> <a href="${pageContext.request.contextPath}/views/${hotsale.prodId}${applicationScope.WEB_SUFFIX}"> <img src="${pageContext.request.contextPath}/common/images/number/num_${status.index+1}.gif"> </a> </td> <td align="left"> <font color="#006699"><a href="${pageContext.request.contextPath}/views/${hotsale.prodId}${applicationScope.WEB_SUFFIX}" target="_blank"> ${hotsale.name} </a> </font> </td> </tr> </c:forEach> </c:if> </table> </td> </tr> </table>
100mall
trunk/100mall/webapps/pages/frontend/default/hotsale.jsp
Java Server Pages
oos
1,106
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %> <lb:shopDetail var="shopDetail" /> <c:if test="${requestScope.adList!=null}"> <table width="954px" cellpadding="0" cellspacing="0" style="margin-top: 5px"> <tr><td align="center"> <table cellpadding="2" cellspacing="2"> <tr> <c:forEach items="${requestScope.adList}" var="ad"> <td height="40px" align="center"> <a href="${ad.url}" target=_blank title="${ad.content}"> <c:choose> <c:when test="${ad.picture != null}"> <img src="${pageContext.request.contextPath}/photoserver/photo/${ad.picture}" title="${ad.wordlink}"/><br>${ad.wordlink} </c:when> <c:otherwise>${ad.wordlink}</c:otherwise> </c:choose> </a> </td> </c:forEach> </tr> </table> </td></tr></table> </c:if> <c:choose> <c:when test="${shopDetail != null}"> <table width="954px" class="tables" style="margin-top: 5px" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="order.step"/></td> </tr><tr> <td> <jsp:include page="/copyAll${applicationScope.WEB_SUFFIX}" flush="true"/> </td> </tr> </table> </c:when> <c:otherwise> <jsp:include page="/copyAll${applicationScope.WEB_SUFFIX}" flush="true"/> </c:otherwise> </c:choose> <br>
100mall
trunk/100mall/webapps/pages/frontend/default/copy.jsp
Java Server Pages
oos
1,492
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <c:if test="${sessionScope.VisitHistory.visitedProd != null && fn:length(sessionScope.VisitHistory.visitedProd) > 0}"> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" media='screen' href="${pageContext.request.contextPath}/common/css/overlay-ie6.css" /> <![endif]--> <table><tr><td> <div style="font-weight: bold; font-family:sans-serif; font-size:15px;margin-left: 10px;margin-top: 10px"><fmt:message key="visited.product"/></div> </td></tr></table> <table cellpadding="0" cellspacing="10"> <tr align="left"> <c:forEach items="${sessionScope.VisitHistory.visitedProd}" var="prod" varStatus="status"> <td align="left"> <c:choose> <c:when test="${fn:length(prod.name) > 9}"> <span> <a href="${pageContext.request.contextPath}/views/${prod.id}${applicationScope.WEB_SUFFIX}" ><img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" title="${prod.name}" id="prodvisited"></a></span><br>${fn:substring(prod.name,0,9)}...<br> </c:when> <c:otherwise> <span > <a href="${pageContext.request.contextPath}/views/${prod.id}${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/photoserver/images/${prod.pic}" id="prodvisited"></a></span><br>${prod.name}<br> </c:otherwise> </c:choose> </td> <c:if test="${(status.index+1)%6==0&&(status.index+1)>=6}"></tr><tr></c:if> </c:forEach> </tr> </table> </c:if>
100mall
trunk/100mall/webapps/pages/frontend/default/visitedHistory.jsp
Java Server Pages
oos
1,609
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@include file='/pages/common/taglib.jsp'%> <table class="tables" cellpadding="0" cellspacing="0"> <tr> <td class="titlebg"><fmt:message key="operation"/></td> </tr> <tr> <td bgcolor="#ECECEC"> <div align="center"> <table width="100%" height="30" cellspacing="0"> <tr> <td width="100%" height="37"> <table width="100%" cellspacing="0" cellpadding="0" align="center"> <tr> <td height="110" valign="middle" align="left"> <table width="100%" cellspacing="5" cellpadding="2" align="center"> <tr> <td width="80px"> </td> <td> <div align="center"> <c:if test="${OK==null}"> <a href="${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}"> <SPAN class="afterOperate"><fmt:message key="operation.error"/></SPAN> </a> </c:if> <c:if test="${OK!=null}"> <SPAN class="afterOperate"><fmt:message key="operation.successful"/></SPAN> <br><br><br> <input type="submit" onclick="javascript:turnToIndex()" value='<fmt:message key="submit"/>' class="s"/> </c:if> </div> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </td> </tr> </table> <script type="text/javascript"> function turnToIndex(){ window.location.href = "${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"; } </script>
100mall
trunk/100mall/webapps/pages/frontend/default/afterUserUpdate.jsp
Java Server Pages
oos
2,748
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='/pages/common/common.jsp'%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%> <html> <head> <title><fmt:message key="operation.error"/></title> <lb:shopDetail var="shopDetail" > <link href="<ls:templateResource item='/common/style/style_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> <link href="<ls:templateResource item='/common/style/global_${shopDetail.colorStyle}.css'/>" rel="stylesheet" type="text/css" /> </lb:shopDetail> <body topmargin="0"> <table width="500" cellspacing="2" cellpadding="2" align="center" > <tr valign="middle" height="100px"> <td align="center" style="font-family: serif;font-size: 1.5em;"><ls:i18n key="no.login.hint"/></td> </tr> <tr> <td height="80px" align="left" style="margin-left: 80px;"> <ls:i18n key="nologin.hint" login="<ls:url address='/login'/>" reg="<ls:url address='/reg'/>"/> </td> </tr> </table> </body> </html>
100mall
trunk/100mall/webapps/pages/common/nologon.jsp
Java Server Pages
oos
1,086
<link href="${pageContext.request.contextPath}/common/css/css.css" rel="stylesheet" type="text/css" />
100mall
trunk/100mall/webapps/pages/common/common.jsp
Java Server Pages
oos
102
<!-- TODO <fmt:setLocale value="${empty sessionScope.WW_TRANS_I18N_LOCALE ? requestScope.Locale: sessionScope.WW_TRANS_I18N_LOCALE}"/> --> <fmt:setBundle basename="i18n/ApplicationResources"/>
100mall
trunk/100mall/webapps/pages/common/localeBundle.jsp
Java Server Pages
oos
196
<%@ page language="java" isErrorPage="true" contentType="text/html;charset=UTF-8"%> <%@ include file="/pages/common/back-common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <html > <head> <script src="${pageContext.request.contextPath}/common/js/jquery.js" type="text/javascript"></script> <title>操作成功</title> </head> <body> <br> <center> <table class="${tableclass}" style="width: 100%"> <thead> <tr height="39px"> <td style="font-weight: bold;font-size: 1.5em;" align="center"> <center> <c:choose> <c:when test="${ERROR_MESSAGE == null}"><fmt:message key="operation.successful"/></c:when> <c:otherwise><font color="red"><fmt:message key="operation.fail"/></font></c:otherwise> </c:choose> </center> </td> </tr> </thead> <tbody> <tr> <td align="center"> ${ERROR_MESSAGE} </td> </tr> <tr height="28px"> <td class="titlebg"> <div align="center"> <c:if test="${not empty CALL_BACK}"> <a href="${pageContext.request.contextPath}/${CALL_BACK}"><fmt:message key="go.back"/></a> </c:if> <a href="javascript:history.go(-1)"><fmt:message key="previous.page"/></a> </div> </td> </tr> </tbody> </table> </center> </body> </html>
100mall
trunk/100mall/webapps/pages/common/success.jsp
Java Server Pages
oos
1,495
<%@ include file="/pages/common/taglib.jsp"%> <%@ include file="/pages/common/common.jsp"%> <%-- Error Messages --%> <c:if test="${not empty springMessages}"> <div class="message"> <c:forEach var="msg" items="${springMessages}"> <img src="${pageContext.request.contextPath}/img/iconInformation.gif" alt="Info"/>${msg}<br/> </c:forEach> </div> </c:if> <%-- Info Messages --%> <c:if test="${not empty springErrors}"> <div class="error"> <c:forEach var="errorMsg" items="${springErrors}"> <img src="${pageContext.request.contextPath}/img/iconWarning.gif" alt="Warning"/>${errorMsg}<br/> </c:forEach> </div> </c:if>
100mall
trunk/100mall/webapps/pages/common/messages.jsp
Java Server Pages
oos
688
<%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='localeBundle.jsp'%> <html> <head> <title> <c:choose> <c:when test="${User_Messages.code != null}">${User_Messages.code}</c:when> <c:otherwise>404</c:otherwise> </c:choose> Error - LegendShop </title> </head> <body> <center> <TABLE cellSpacing="0" cellPadding="0" width="955px"> <TBODY> <TR> <TD noWrap width="1%" rowSpan=3> <a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/legendshop.gif" width="200px" title="LegendShop"/></a> <TD>&nbsp;</TD></TR> <TR> <TD bgColor=#3366cc><FONT face=arial,sans-serif color=#ffffff><B> <c:choose> <c:when test="${User_Messages.code != null}">${User_Messages.code}</c:when> <c:otherwise>404</c:otherwise> </c:choose> Error</B></FONT></TD></TR> <TR> <TD>&nbsp;</TD></TR> </TBODY> </TABLE> <br> <table cellSpacing=0 cellPadding=0 width="955px"><tr><td> <BLOCKQUOTE> <c:choose> <c:when test="${User_Messages.title != null}"> <H2>${User_Messages.title}</H2> ${User_Messages.desc} </c:when> <c:otherwise> <H2>没有找到您要访问的页面</H2> The requested URL was not found on this server. </c:otherwise> </c:choose> <fmt:message key="error.page.message"/> </BLOCKQUOTE> </td></tr></table> <jsp:include page="moreoption.jsp"></jsp:include> </center> <br> </body> </html>
100mall
trunk/100mall/webapps/pages/common/404.jsp
Java Server Pages
oos
1,667
<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <html> <head> <style type="text/css"> a:visited { text-decoration: underline } a:hover { text-decoration: underline } a:active { text-decoration: underline } a:link { text-decoration: underline } BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #ffffff; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-TOP: 0px; } #master { width: 100%; background: url('../../common/style/master_bg.gif') repeat-x ; z-index: 10; } H1 { FONT-SIZE: 22px } UL { MARGIN: 1em } LI { LINE-HEIGHT: 1.6em; FONT-FAMILY: 宋体 } </style> <title>IP 地址查询</title> <script type="text/javascript"> function isIP() { var result = true; var strIP = document.getElementById("ipAddress"); if (strIP.value == null || strIP.value == ''){ result = false; } if(result){ var re=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g //匹配IP地址的正则表达式 if(re.test(strIP.value)) { if( RegExp.$1 <256 && RegExp.$2<256 && RegExp.$3<256 && RegExp.$4<256){ result = true; } else{ result = false; } }else{ result = false; } } if(!result){ alert("请输入正确的IP地址"); } return result; } </script> </head> <!-- id="master" --> <body> <center> <form action="${pageContext.request.contextPath}/ipsearch${applicationScope.WEB_SUFFIX}" method="post" onsubmit="return isIP();"> <table width="954px" style="border-bottom-width: 1px;border-bottom-color: red;border: 1px"> <tr> <td width="160px"> <a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/legendshop.gif" width="160px" title="LegendShop"/></a> </td> <td> <table width="100%"> <tr><td> <table width="100%"> <tr> <td align="left">商家 买家 新闻 <a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}">高级搜索</a></td> <td align="right"> <c:choose> <c:when test="${SPRING_SECURITY_LAST_USERNAME != null}"> <span style="color: red; font-weight: bold;">${sessionScope.SPRING_SECURITY_LAST_USERNAME}</span> <a href="${pageContext.request.contextPath}/myaccount${applicationScope.WEB_SUFFIX}")><fmt:message key="myaccount"/></a> <a href="${pageContext.request.contextPath}/logout.jsp" target="_parent"><fmt:message key="logout"/></a> <auth:auth ifAnyGranted="F_ADMIN"> <a href="${pageContext.request.contextPath}/shop/${sessionScope.SPRING_SECURITY_LAST_USERNAME}${applicationScope.WEB_SUFFIX}"><fmt:message key="myShop"/></a> <a href="${pageContext.request.contextPath}/admin/index${applicationScope.WEB_SUFFIX}"><fmt:message key="system.management"/></a> </auth:auth> </c:when> <c:otherwise> <a href="${pageContext.request.contextPath}/login${applicationScope.WEB_SUFFIX}"><fmt:message key="login"/></a> </c:otherwise> </c:choose> <a href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}">用户注册</a> <a href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}">我要加盟</a> <a href="../club">论坛</a> </td> </tr> </table> </td> </tr> <tr> <td align="left"> <b>请输入IP地址</b>&nbsp; <input type="text" name="ipAddress" id="ipAddress" style="height: 26px" maxlength="100" size="50" value="${ipAddress}"></input> <input type="submit" value="搜地址" style="margin-left: 0px;height: 27px"></input> </td></tr> </table> </td> </tr> </table> <br> <br> <c:if test="${address != null}"> 该IP地址位于:<H1> <b>${address}</b></H1> </c:if> </form> <table cellSpacing=0 cellPadding=0 width="955px" ><tr><td> <BLOCKQUOTE> <OL> 您可以尝试访问以下链接: <UL type=square> <LI><A href="${pageContext.request.contextPath}/all${applicationScope.WEB_SUFFIX}">高级搜索</A> - 搜索各种商城和商品,或者到商城首页 </LI> <LI><A href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}">首页</A> - 到当前商城首页 </LI> <LI><A href="${pageContext.request.contextPath}/reg${applicationScope.WEB_SUFFIX}">注册</A> - 注册一个用户或者商家</LI> <LI><A href="${pageContext.request.contextPath}/login${applicationScope.WEB_SUFFIX}">登录</A> - 登录系统</LI> <LI><A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club">论坛</A> - 买家和卖家的经验交流基地</LI> <LI><A href="${applicationScope.LEGENDSHOP_DOMAIN_NAME}/club/jforum.page?module=posts&action=insert&forum_id=4">我要投诉</A> - 到论坛上投诉 </LI> </UL> </OL> <P></P> </BLOCKQUOTE> </td></tr></table> </center> <br> <jsp:include page="/copyAll${applicationScope.WEB_SUFFIX}" flush="true"/> </body> </html>
100mall
trunk/100mall/webapps/pages/common/ipsearch.jsp
Java Server Pages
oos
5,203
<%@ page language="java" isErrorPage="true" contentType="text/html;charset=UTF-8"%> <%@ include file="/pages/common/common.jsp"%> <%@include file='/pages/common/taglib.jsp'%> <%@include file='localeBundle.jsp'%> <html> <head> <title><c:choose> <c:when test="${User_Messages.code != null}">${User_Messages.code}</c:when> <c:otherwise>500</c:otherwise> </c:choose> Error - LegendShop</title> </head> <body> <center> <TABLE cellSpacing="0" cellPadding="0" width="955px"> <TBODY> <TR> <TD noWrap width="1%" rowSpan=3><a href="${pageContext.request.contextPath}/index${applicationScope.WEB_SUFFIX}"><img src="${pageContext.request.contextPath}/img/legendshop.gif" width="200px" title="LegendShop" /></a> <TD>&nbsp;</TD> </TR> <TR> <TD bgColor=#3366cc><FONT face=arial,sans-serif color=#ffffff><B> <c:choose> <c:when test="${User_Messages.code != null}">${User_Messages.code}</c:when> <c:otherwise>500</c:otherwise> </c:choose> Error </B></FONT></TD> </TR> <TR> <TD>&nbsp;</TD> </TR> </TBODY> </TABLE> <br> <table cellSpacing=0 cellPadding=0 width="955px"> <tr> <td> <BLOCKQUOTE> <c:choose> <c:when test="${User_Messages.title != null}"> <H2>${User_Messages.title}</H2> ${User_Messages.desc} </c:when> <c:otherwise> <H2>系统错误</H2> Internal error found on this server. </c:otherwise> </c:choose> <fmt:message key="error.page.message" /> </BLOCKQUOTE> </td> </tr> </table> <jsp:include page="moreoption.jsp"></jsp:include> </center> <br> </body> </html>
100mall
trunk/100mall/webapps/pages/common/error.jsp
Java Server Pages
oos
1,738
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%> <%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%> <%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn"%> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles2"%> <%@ taglib uri="http://www.legendesign.net/tags" prefix="ls"%> <%@ taglib uri="http://www.legendesign.net/biz" prefix="lb"%>
100mall
trunk/100mall/webapps/pages/common/taglib.jsp
Java Server Pages
oos
352