📄 pay_selectmethod2.jsp
字号:
<%@ include file="/_head.jsp"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<script language="javascript" src="/pay/pay.js" type="text/JavaScript"></script>
<div id="main" style="border:#cccccc 0px solid;width:1004px;">
<div>
<table cellspacing="0" cellpadding="0" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC" height="134" width="100%">
<tr>
<td align="center" height="29" bgcolor="#FFFFCC" width="100%">确认订单信息</td>
</tr>
<tr>
<td style="padding:8px; line-height:150%" height="105" align="center" valign="top">
<table cellpadding="0" cellspacing="0" style="padding:5px; border-collapse:collapse" width="98%" height="96" border="0">
<tr>
<td width="100%" height="83" colspan="2">
<div style="border:#cccccc 0px solid;">
<div>
<table cellspacing="0" cellpadding="0" width="956" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td align="center" height="29" bgcolor="#FFFFCC" width="429">商品名称</td>
<td align="center" height="29" bgcolor="#FFFFCC" width="39">数量</td>
<td align="center" height="29" bgcolor="#FFFFCC" width="138">单价</td>
<td align="center" height="29" bgcolor="#FFFFCC" width="179">金额</td>
<td align="center" height="29" bgcolor="#FFFFCC" width="165">计费重量</td>
</tr>
<%
GenericVO tvo = null;
double tw = 0;
double tp = 0;
int td = 0;
Vector r = (Vector)bean.getItem("GOODS");
for(int i=0;i<r.size();i++){
tvo = (GenericVO)r.elementAt(i);
tw += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("WEIGHT"));
tp += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("PRICE2"));
td += BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("DOT"));
%>
<tr>
<td height="28" width="429"> <%=tvo.getItem("NAME")%></td>
<td align="center" height="28" width="39"> <%=tvo.getItem("COUNT")%></td>
<td align="center" height="28" width="138"> <%=tvo.getItem("PRICE2")%></td>
<td align="center" height="28" width="179"> <%=BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("PRICE2"))%></td>
<td align="center" height="28" width="165"> <%=BaseUtil.todouble(tvo.getItemStr("COUNT"))*BaseUtil.todouble(tvo.getItemStr("WEIGHT"))%></td>
</tr>
<%
}
%>
</table>
</div>
</div>
</td>
</tr>
<tr>
<td width="57%" height="13" valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25"> 收货人信息 </td>
</tr>
<tr>
<td bgColor="#ffffff" height="25">
<table cellSpacing="3" cellPadding="0" width="100%" border="0">
<tr>
<td align="left">
<%tvo = (GenericVO)bean.getItem("ADDR");%>
收货人:<strong><%=tvo.getItem("NAME")%></strong><br>
地址:<%=tvo.getItem("ADDRESS")%><br>
邮编:<%=tvo.getItem("POST")%> <br>
联系电话:<%=tvo.getItem("TEL")%><br>
移动电话:<%=tvo.getItem("MOBILE")%>
</td>
</tr>
<tr>
<td> <a href="/main.do?event=toPaySelectAddr"><img src="/images/icon_modi.gif" border="0" alt=""></a></td>
</tr>
</table>
</td>
</tr>
</table>
<div style="font-size:1px;height:10px;"></div>
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25" width="30%"> 付款方式</td>
<td bgcolor="#FFFFCC" height="25" width="70%"> 详细说明</td>
</tr>
<tr>
<td bgColor="#ffffff" height="25">
<%tvo = (GenericVO)bean.getItem("PAYMETHOD"); %>
<%=tvo.getItem("NAME")%>
</td>
<td bgColor="#ffffff" height="25">
<%=tvo.getItem("DESCRIPTION")%>
</td>
</tr>
</table>
<a href="http://www.buy.com.cn/BuyCart2_Buy.asp"><img src="/images/icon_modi.gif" border="0"></a>
<div style="font-size:1px;height:10px;"></div>
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25"> 送货方式:</td>
</tr>
<tr>
<td bgColor="#ffffff" height="25">
<%tvo = (GenericVO)bean.getItem("POSTMETHOD"); %>
<%=tvo.getItem("NAME")%>:<%=tvo.getItem("TIME")%>
</td>
</tr>
</table>
<a href="http://www.buy.com.cn/BuyCart2_Buy.asp"><img src="/images/icon_modi.gif" border="0"></a><div style="font-size:1px;height:10px;"></div>
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25"> 运费计算</td>
</tr>
<tr>
<td bgColor="#ffffff" height="25">
<table cellSpacing="0" cellPadding="5" width="100%" border="0">
<tr>
<td height="22">
<%
int sz = 1;
int xz = 0;
double je = 0;
if(tw%BaseUtil.todouble(tvo.getItemStr("FIRST"))==0){
xz = (int)(tw/BaseUtil.todouble(tvo.getItemStr("FIRST"))-1);
}
else{
xz = (int)(tw/BaseUtil.todouble(tvo.getItemStr("FIRST")));
}
je = BaseUtil.todouble(tvo.getItemStr("FIRSTFEE"))+xz*BaseUtil.todouble(tvo.getItemStr("NEXTFEE"))+BaseUtil.todouble(tvo.getItemStr("OTHERFEE"));
%>
<strong>计费总重</strong>: <font color="red"><%=tw%></font> 克<br>
<strong>首重</strong>:<font color="red"><%=tvo.getItemStr("FIRST")%></font> 克 <font color="red"><%=tvo.getItemStr("FIRSTFEE")%></font>元<br>
<strong>续重</strong>:<font color="red"><%=xz*BaseUtil.todouble(tvo.getItemStr("NEXT"))%></font> 克 <font color="red"><%=xz*BaseUtil.todouble(tvo.getItemStr("NEXTFEE"))%></font> 元<br>
<strong>其它费用</strong>:<%=tvo.getItemStr("OTHER")%> <font color="red"><%=tvo.getItemStr("OTHERFEE")%></font> 元<br>
<strong>计费金额</strong>:<font color="red"><%=je%></font>
</td>
</tr>
<tr>
<td height="22"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="43%" height="13" valign="top">
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25"> <strong>积分使用:</strong></td>
</tr>
<form target="frmHidden" name="dotchange" action="/main.do?event=doDotChange" method="POST">
<tr>
<td bgColor="#ffffff" height="25">
当前你拥有的积分:<strong><font color="#ff0000"><%=session.getAttribute("DOT")%></font></strong>分<br>
本次购物使用积分: <input size="8" name="dot" value="0" onblur="onDotChange(<%=session.getAttribute("DOT")%>, this.value, <%=tp+je%>);"> (200积分 = 1元)
<input type="hidden" name="orderno" value="<%=bean.getItem("NO")%>" />
</td>
</tr>
</form>
</table>
<div style="font-size:1px;height:10px;"></div>
<div style="font-size:1px;height:10px;"></div>
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="25"> <strong>订单金额</strong></td>
</tr>
<tr>
<td bgColor="#ffffff" height="11">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td align="right" height="22">总金额:<strong><font color="#ff0000"><%=tp%></font></strong> 元 </td>
</tr>
<tr>
<td align="right" height="22">运费:<strong><font color="#ff0000"><%=je%></font></strong> 元 </td>
</tr>
<tr>
<td align="right" height="22">积分折现:<font id="dottomoney" color="red">0</font> 元 </td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgColor="#ffffff" height="12">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td align="right" height="22">您需要付:<strong><font color="#ff0000" size="3" id="zje"><%=tp+je%></font></strong> 元 </td>
</tr>
<tr>
<td align="right" height="22">
您获得积分:<strong><font color="#ff0000" size="3"><%=td%></font></strong> 分
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="font-size:1px;height:10px;"></div>
<form name="orderconfirm" method="POST" action="/main.do?event=toPayGenOrder">
<table cellSpacing="0" cellPadding="0" width="100%" border="1" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFCC" height="24"> 订单备注 </td>
</tr>
<tr>
<td bgColor="#ffffff" height="140" style="line-height: 150%">
<p align="center"><span>如果您有其他要求或问题,请填写备注信息。</span><br>
<br>
<textarea class="input" name="description" rows="5" cols="36"></textarea></td>
</tr>
</table>
<input type="hidden" name="usedot" value="0" />
<input type="hidden" name="orderno" value="<%=bean.getItem("NO")%>" />
<p align="center">
<a onclick="submit();" href="#"><img border="0" src="/images/icon_affirm-order.gif" width="70" height="22"></a>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<%@ include file="/_foot.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -