📄 checkoutbody.jsp
字号:
<%@page contentType="text/html; charset=gb2312"
import="netshop.util.*,netshop.businessobjects.*"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<SCRIPT language=javascript type="">
function Fuc_BeUserName(fo){
name = document.getElementById("name").value;
telephone = document.getElementById("telephone").value;
email = document.getElementById("email").value;
address = document.getElementById("address").value;
postCode = document.getElementById("postCode").value;
if(fo.checked){
if(name!=""){
document.getElementById("r_name").value = name
}
}else{
document.getElementById("r_name").value = "";
}
if(fo.checked){
if(telephone!=""){
document.getElementById("r_telephone").value = telephone
}
}else{
document.getElementById("r_telephone").value = "";
}
if(fo.checked){
if(email!=""){
document.getElementById("r_email").value = email
}
}else{
document.getElementById("r_email").value = "";
}
if(fo.checked){
if(address!=""){
document.getElementById("r_address").value = address
}
}else{
document.getElementById("r_address").value = "";
}
if(fo.checked){
if(postCode!=""){
document.getElementById("r_postcode").value = postCode
}
}else{
document.getElementById("r_postcode").value = "";
}
}
</SCRIPT>
<logic:present name="<%=Constants.SESSION_CONTAINER_KEY%>"
scope="session">
<logic:notEmpty name="<%=Constants.SESSION_CONTAINER_KEY%>"
scope="session" property="user">
<bean:define id="user" name="<%=Constants.SESSION_CONTAINER_KEY%>"
property="user" toScope="page" scope="session"></bean:define>
<DIV align=center>
<TABLE style="BORDER-COLLAPSE: collapse" height=243 cellPadding=0
width=736 border=0>
<logic:messagesPresent>
<html:messages id="error">
<p></p>
<tr align="center">
<bean:write name="error" />
</tr>
</html:messages>
</logic:messagesPresent>
<html:form action="/saveOrderAction">
<TBODY>
<TR>
<TD background="<%=request.getContextPath()%>/images/cash1.gif" height=25></TD>
</TR>
<TR>
<TD background="<%=request.getContextPath()%>/images/cash2.gif">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="19%" height=26></TD>
<TD><B><bean:message key="user.info.fill" /></B></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.name" /></TD>
<TD><html:text property="name" readonly="true"
value="<%=((User)pageContext.getAttribute("user")).getName()%>">
<bean:write name="user" property="name" />
</html:text></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.telephone" /></TD>
<TD><html:text property="telephone"
value="<%=((User)pageContext.getAttribute("user")).getTelephone() %>"></html:text></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.email" /></TD>
<TD><html:text property="email"
value="<%=((User)pageContext.getAttribute("user")).getEmail() %>" /></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.address" /></TD>
<TD><html:text property="address"
value="<%=((User)pageContext.getAttribute("user")).getAddress() %>"
style="FONT-SIZE: 12px; WIDTH: 210px" size="40" /></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.postcode" /></TD>
<TD><html:text property="postCode" size="10"
value="<%=((User)pageContext.getAttribute("user")).getPostCode() %>" /></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD background="<%=request.getContextPath()%>/images/cash3.gif" height=48></TD>
</TR>
<TR>
<TD background="<%=request.getContextPath()%>/images/cash4.gif">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="19%" height=26></TD>
<TD><B><bean:message key="receiver.info.fill" /></B>
<html:checkbox property="isUser"
onclick="Fuc_BeUserName(this)" /> <bean:message
key="user.receiver.same" /></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.name" /></TD>
<TD><html:text property="r_name" /> <FONT color=#ff0000>*</FONT>
</TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.telephone" /></TD>
<TD><html:text property="r_telephone" /> <FONT color=#ff0000>*</FONT>
</TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.email" /></TD>
<TD><html:text property="r_email" /> <FONT color=#ff0000>*</FONT>
</TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.address" /></TD>
<TD><html:text property="r_address"
style="FONT-SIZE: 12px; WIDTH: 210px" size="40" /> <FONT
color=#ff0000>*</FONT></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="share.postcode" /></TD>
<TD><html:text property="r_postcode" size="10" /> <FONT
color=#ff0000>*</FONT></TD>
</TR>
<TR>
<TD vAlign=top align=right width="19%" height=26>
<P><bean:message key="receiver.reach.time.mode" /></P>
</TD>
<TD vAlign=top><html:radio value="1" property="reachTimeMode" />
<bean:message key="receiver.reach.time.mode.one" /><BR>
<html:radio value="2" property="reachTimeMode" /> <bean:message
key="receiver.reach.time.mode.two" /> <BR>
<html:radio value="3" property="reachTimeMode" /> <bean:message
key="receiver.reach.time.mode.three" /> <BR>
<html:radio value="4" property="reachTimeMode" /> <bean:message
key="receiver.reach.time.mode.four" /><BR>
<html:radio value="5" property="reachTimeMode" /> <bean:message
key="receiver.reach.time.mode.five" /> <BR>
<FONT color=#ff0000>*</FONT></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="receiver.paytype" /></TD>
<TD><html:radio value="1" property="payType" /> <bean:message
key="receiver.paytype.one" /> <html:radio value="2"
property="payType" /> <bean:message
key="receiver.paytype.two" /> <FONT color=#ff0000>*</FONT></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="receiver.delivetype" /></TD>
<TD><html:radio value="1" property="deliveType" /> <bean:message
key="receiver.delivetype.one" /> <html:radio value="2"
property="deliveType" /> <bean:message
key="receiver.delivetype.two" /> <html:radio value="3"
property="deliveType" /> <bean:message
key="receiver.delivetype.three" /> <FONT color=#ff0000>*</FONT></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="receiver.stockout" /></TD>
<TD><html:radio value="true" property="stockOut" /> <bean:message
key="receiver.stockout.one" /><html:radio value="false"
property="stockOut" /> <bean:message
key="receiver.stockout.two" /></TD>
</TR>
<TR>
<TD align=right width="19%" height=26><bean:message
key="receiver.comment" /><BR>
</TD>
<TD><html:textarea cols="30" rows="3" property="comment"
style="FONT-SIZE: 12px; WIDTH: 250px">
</html:textarea></TD>
</TR>
<TR>
<TD align=right width="19%" height=26></TD>
<TD><html:image property="submit" page="/images/regbutton.gif" /></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD align="center" background="<%=request.getContextPath()%>/images/cash5.gif" height=36></TD>
</TR>
</html:form>
</TBODY>
</TABLE>
</DIV>
</logic:notEmpty>
</logic:present>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -