📄 shopping.jsp
字号:
MM_keepForm = MM_keepForm + '&' + nextItem + '=' + java.net.URLEncoder.encode(request.getParameter(nextItem));
}
}
}
String tempStr = "";
for (int i=0; i < MM_keepURL.length(); i++) {
if (MM_keepURL.charAt(i) == '<') tempStr = tempStr + "<";
else if (MM_keepURL.charAt(i) == '>') tempStr = tempStr + ">";
else if (MM_keepURL.charAt(i) == '"') tempStr = tempStr + """;
else tempStr = tempStr + MM_keepURL.charAt(i);
}
MM_keepURL = tempStr;
tempStr = "";
for (int i=0; i < MM_keepForm.length(); i++) {
if (MM_keepForm.charAt(i) == '<') tempStr = tempStr + "<";
else if (MM_keepForm.charAt(i) == '>') tempStr = tempStr + ">";
else if (MM_keepForm.charAt(i) == '"') tempStr = tempStr + """;
else tempStr = tempStr + MM_keepForm.charAt(i);
}
MM_keepForm = tempStr;
// create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL + MM_keepForm;
if (MM_keepBoth.length() > 0) MM_keepBoth = MM_keepBoth.substring(1);
if (MM_keepURL.length() > 0) MM_keepURL = MM_keepURL.substring(1);
if (MM_keepForm.length() > 0) MM_keepForm = MM_keepForm.substring(1);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在线购物-商品订购页面</title>
<style type="text/css">
<!--
.style5 {
font-size: 24px;
color: #FF7D0C;
font-weight: bold;
}
.style7 {
color: #FF9900;
font-size: 16px;
}
.style11 {font-size: 16px}
.BOX {
border: thick solid #339999;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 10px;
margin-left: 0px;
}
.colorbox {
border: 1px solid #FF7905;
}
.style6 {color: #009933}
.style12 {
font-size: 16px;
color: #000066;
}
-->
</style>
</head>
<body>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7"><table width="200" border="3" align="center" cellpadding="2" cellspacing="1" bordercolor="#FFDEC1" class="style6">
<tr>
<td><img src="images/esale_title.jpg" width="760" height="120"></td>
</tr>
</table></td>
</tr>
<tr background="images/life_23.gif">
<td height="20" colspan="7" background="images/line_top.gif"> </td>
</tr>
<tr>
<td width="22" rowspan="3" background="images/line_top.gif"> </td>
<td width="16" rowspan="3" valign="top"> </td>
<td width="50" height="50" align="left" valign="top"><img src="images/border_ul.gif" width="50" height="51"></td>
<td width="586" rowspan="3" align="center"><div align="center">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="BOX">
<tr bgcolor="#009999">
<td colspan="2"><span class="style5"><%=(((recprod_data = recprod.getObject("prod_name"))==null || recprod.wasNull())?"":recprod_data)%></span></td>
</tr>
<tr>
<td width="31%" valign="top"><div align="center"><img src="prod_img/<%=(((recprod_data = recprod.getObject("prod_img"))==null || recprod.wasNull())?"":recprod_data)%>" alt="" name="prd_img" width="200"></div></td>
<td width="44%" align="center" valign="top"> <table width="100%" height="194" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="194" valign="top"><table width="100%" border="0" align="center" cellpadding="4" cellspacing="0" class="colorbox">
<tr>
<td width="45%"><div align="right"><font color="#000066" size="4">产品编号:</font></div></td>
<td width="55%"><font color="#FF9900" size="4"><%=(((recprod_data = recprod.getObject("prod_id"))==null || recprod.wasNull())?"":recprod_data)%></font></td>
</tr>
<tr>
<td><div align="right"><font color="#000066" size="4">售价:</font></div></td>
<td><font color="#FF9900" size="4"><%=(((recprod_data = recprod.getObject("prod_price"))==null || recprod.wasNull())?"":recprod_data)%></font></td>
</tr>
<tr>
<td><div align="right"><font color="#000066" size="4">尺寸:</font></div></td>
<td><span class="style11"><font color="#FF9900"><%=(((recprod_data = recprod.getObject("prod_size"))==null || recprod.wasNull())?"":recprod_data)%></font></span></td>
</tr>
<tr>
<td><div align="left">
<p align="right"><font color="#000066" size="4">产品说明:</font></p>
</div> </td>
<td><span class="style7"><%=(((recprod_data = recprod.getObject("prod_memo"))==null || recprod.wasNull())?"":recprod_data)%></span></td>
</tr>
<tr>
<td height="35" colspan="2">
<% String ordid =String.valueOf(1+recorder.getInt("ord_id"));
session.setAttribute("ordid",ordid); %></td>
</tr>
<tr>
<td colspan="2"><div align="right">
<form name="form1" method="POST" action="<%=MM_editAction%>">
<label>
<div align="left"><span class="style12">请输入要订购的数量:
<input name="ord_quantity" type="text" id="ord_quantity" size="5">
</span><font color="#000066" size="4"><a href="login.jsp">
<input type="submit" name="Submit" value="立即购买">
</a></font><font color="#000066" size="4"><a href="login.jsp">
<label></label>
</a></font></div>
<p><font color="#000066" size="4"><a href="chart.jsp">
<input name="ord_prodid" type="hidden" id="ord_prodid" value="<%=(((recprod_data = recprod.getObject("prod_id"))==null || recprod.wasNull())?"":recprod_data)%>">
<input name="ord_id" type="hidden" id="ord_id" value="<%=1+recorder.getInt("ord_id")%>">
</a></font>
<input type="hidden" name="MM_insert" value="form1">
</label>
</p>
</form>
</div></td>
</tr>
</table> </td>
</tr>
</table></td></tr>
<tr bgcolor="#009999" class="style5">
<td colspan="2"> </td>
</tr>
</table>
</div> </td>
<td width="50" height="50" align="right" valign="top"><img src="images/border_ur.gif" width="50" height="51"></td>
<td width="16" rowspan="3"> </td>
<td width="20" rowspan="3" background="images/line_top.gif"> </td>
</tr>
<tr>
<td width="50" height="246"> </td>
<td width="50"> </td>
</tr>
<tr>
<td width="50" height="50" align="right" valign="bottom"><img src="images/border_dl.gif" width="50" height="51"></td>
<td width="50" height="50" align="right" valign="bottom"><img src="images/border_dr.gif" width="50" height="51"></td>
</tr>
<tr>
<td height="20" colspan="7" background="images/line_top.gif"> </td>
</tr>
</table>
<p> </p>
</body>
</html>
<%
recprod.close();
Statementrecprod.close();
Connrecprod.close();
%>
<%
recorder.close();
Statementrecorder.close();
Connrecorder.close();
%>
<%
recprod.close();
Statementrecprod.close();
Connrecprod.close();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -