📄 confirmation.jsp
字号:
<%@ page import="java.text.*" %>
<%@ include file="common_imports.jsp" %>
<%
pageTitle = "Confirmation";
if (jspPath == null)
jspPath = "/shop/index.jsp";
//if(!isSignin)
// request.getRequestDispatcher("/shop/index.jsp").forward(request, response);
String paymentMethod = request.getParameter("payment_method");
String totalPurchase = request.getParameter("total_purchase");
String contextPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ request.getContextPath();
String successURL = contextPath + "/shop/download.jsp";
String errorURL = contextPath + "/shop/error.jsp";
DecimalFormat format = new DecimalFormat("#,##0.00");
%>
<%@ include file="top_body.jsp" %>
<td width="395" valign="top">
<table width="375" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="375" border="0" cellspacing="0" cellpadding="0">
<tr>
<td >
<TABLE width="70%" cellspacing="0" cellpadding="2">
<TR>
<TD class="body_text" colspan="2">
A total of <b>$ <%=format.format(Float.parseFloat(totalPurchase))%></b> will be charged to your <b><%=paymentMethod%></b> card.
Please click confirm to proceed.
</TD>
</TR>
<tr>
<form method="post" action="dreamshop">
<input type="hidden" name="shop_action" value="confirm_payment"/>
<input type="hidden" name="jsp_path" value="/shop/download.jsp"/>
<input type="hidden" name="total_purchase" value="<%=totalPurchase%>"/>
<input type="hidden" name="shop_id" value="<%=operaShopID%>"/>
<input type="hidden" name="payment_method" value="<%=paymentMethod%>"/>
<td align="right"><input class="body_text" type="submit" value="Confirm"/></td>
</form>
</tr>
<TR>
<TD class="body_text" colspan="2"> </TD>
</TR>
</TABLE>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="175"> </td>
<td width="175"> </td>
</tr>
</table>
</td>
<%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -