?? searchform.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page import="java.sql.*,com.netshop.*" %>
<html>
<head>
<title>網上商品交易平臺</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<jsp:useBean scope="page" id="goodsField" class="com.netshop.goodsField" />
</head>
<body>
<table width="90%" border="0">
<tr>
<td width="50%" valign="top">
<table width="98%">
<form name="form1" action="showGoods.jsp" method="post">
<tr>
<td colspan="2" align="center">
<font size="4">
查詢商品
</font><br>
</td>
</tr>
<tr>
<td width="40%" align="right">商品類別:</td>
<td width="60%" align="left">
<select name="goodsField">
<option value="0" selected>請選擇</option>
<%
ResultSet rs = goodsField.showAllFields();
while(rs.next())
{
%>
<option value=<%=rs.getLong("ID")%> ><%=rs.getString("name")%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="40%" align="right">商品名稱:</td>
<td width="60%" align="left"><input type="text" name="title" size="30"></td>
</tr>
<tr>
<td width="40%" align="right">價格:</td>
<td width="60%" align="left">
<select name="price">
<option value="0" selected>請選擇</option>
<option value="1">0--100</option>
<option value="2">100--500</option>
<option value="3">500--2000</option>
<option value="4">2000--5000</option>
<option value="5">5000--10000</option>
<option value="6">10000--</option>
</select>(RMB)</td>
</tr>
<tr>
<td colspan="2" align="center"><br>
<input type="submit" name="submit1" value="查詢">
<input type="reset" name="reset1" value="重填">
</td>
</tr>
</form>
</table>
</td>
<td width="50%" valign="top">
<table width="98%">
<form name="form2" action="showMerchant.jsp" method="post">
<tr>
<td colspan="2" align="center">
<font size="4">
查詢店鋪
</font><br>
</td>
</tr>
<tr>
<td width="40%" align="right">店鋪名稱:</td>
<td width="60%" align="left"><input type="text" name="shopName" size="30"></td>
</tr>
<tr>
<td width="40%" align="right">商品類別:</td>
<td width="60%" align="left">
<select name="mainFields">
<option value="0" selected>請選擇</option>
<%
rs.beforeFirst();
while(rs.next())
{
%>
<option value=<%=rs.getLong("ID")%> ><%=rs.getString("name")%></option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="40%" align="right">店主:</td>
<td width="60%" align="left"><input type="text" name="shopper" size="30"></td>
</tr>
<tr>
<td colspan="2" align="center"><br>
<input type="submit" name="submit1" value="查詢">
<input type="reset" name="reset1" value="重填">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -