left.inc
资源名称:bookshop.zip [点击查看]
上传用户:sxlinghang
上传日期:2022-07-20
资源大小:1405k
文件大小:2k
源码类别:
数据库编程
开发平台:
Java
- <%String classid = request.getParameter("classid");
- String classname ="";
- String keyword = request.getParameter("keyword");
- if (classid==null) classid="";
- if (keyword==null) keyword="";
- keyword = book_list.to_String(keyword);
- %>
- <table width="140" border="0" cellspacing="1" cellpadding="1">
- <tr></tr>
- <tr>
- <td align="center"><b>本店图书分类:</b></td>
- </tr>
- <% if (classlist.seachBookClass()){
- for (int i=0;i<classlist.getClasslist().size();i++){
- bookclass bc = (bookclass) classlist.getClasslist().elementAt(i);
- if ( classid.equals(Integer.toString(bc.getId())) ) classname=bc.getClassName();
- %>
- <tr>
- <td align="center"><a href="booklist.jsp?classid=<%= bc.getId()%>"><%= bc.getClassName() %></a></td>
- </tr>
- <% }
- } %>
- <FORM name=form1 METHOD=POST ACTION="booklist.jsp">
- <tr>
- <td align="center"><b>图书查询:</b></td>
- </tr>
- </table>
- <table>
- <tr>
- <td lign="right">关键字:</td>
- <td><INPUT TYPE="text" NAME="keyword" size=8 maxlength=40 value="<%= keyword %>"></td>
- </tr>
- <tr>
- <td lign="right">类别:</td>
- <td> <SELECT NAME="classid">
- <option value="">所有类别</option>
- <%
- for (int i=0;i<classlist.getClasslist().size();i++){
- bookclass bc = (bookclass) classlist.getClasslist().elementAt(i); %>
- <option value="<%= bc.getId()%>"><%= bc.getClassName() %></option>
- <% }
- %></SELECT>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td align="center"><INPUT TYPE="submit" name="submit" value="查询" ></td>
- </tr>
- </FORM>
- </table>