⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.jsp

📁 飞鱼论坛 (java)
💻 JSP
字号:
<%--
 - $Author: 飞鱼
 - $Revision: 1.22 $
 - $Date: 2003/02/01 09:41:34 $
 - http://www.hnedu.net/fiyu 
  --%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="fiyuforum.db.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<%@ include file="inc_js_myvietnamlib.jsp"%>
<html >
<head>
  <title>fiyuForum - 搜寻</title>
<%@ include file="/fiyuplugin/fiyuforum/meta.jsp"%>
</head>
<link href="<%=contextPath%>/fiyuplugin/fiyuforum/css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript1.2" src="<%=contextPath%>/fiyuplugin/fiyuforum/js/vietuni.js" type="text/javascript"></script>
<body leftmargin="0" topmargin="0">

<script type="text/javascript">
function SubmitForm() {
  if (ValidateForm() == true ) {
    document.submitform.submitbutton.disabled=true;
    document.submitform.submit();
  }
}

function ValidateForm() {
  if (document.submitform.key.value == '' && document.submitform.member.value == '') {
    alert("\"文字搜寻\" 是个必要填写的栏位.");
    return false;
  } 
  return true;
}
</script>

<%@ include file="header.jsp"%>
<br/>

<table width="95%" align="center">
  <tr class="nav">
    <td><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/nav.gif"></td>
    <td width="100%" nowrap> <a class="nav" href="index"><%=fiyuForumConfig.getWebName()%></a>&nbsp;&raquo;&nbsp; 
      搜寻 </td>
  </tr>
</table>
<br/>

<form action="searchprocess" name="submitform">
<input type="hidden" name="offset" value="0">
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
  <tr class="theader">
    <td colspan="2">请搜寻入你想要搜寻的文字:</td>
  </tr>
  <tr class="trow1">
    <td>文字搜寻</td>
    <td><input type="text" size="60" name="key" onkeyup="initTyper(this);"></td>
  </tr>
  <tr class="trow2">
    <td>会员搜寻</td>
    <td><input type="text" size="60" name="member"></td>
  </tr>
  <tr class="trow1">
    <td>讨论区分类/讨论区</td>
    <td>
      <select name="forum">
        <option value="0" selected>所有讨论区</option>
<%
CategoryCache categoryCache = CategoryCache.getInstance();
ForumCache forumCache = ForumCache.getInstance();
Collection catBeans = categoryCache.getBeans();
Collection forumBeans = forumCache.getBeans();
for (Iterator catIter = catBeans.iterator(); catIter.hasNext(); ) {
    CategoryBean catBean = (CategoryBean)catIter.next();
    int catID = catBean.getCategoryID();
    int forumsInCurrentCat = forumCache.getNumberOfBeans(catID);
    if (forumsInCurrentCat == 0) continue;
%>
        <option value=""></option>
        <option value="-<%=catID%>"><%=catBean.getCategoryName()%></option>
        <option value="">---------------------------------</option>
    <%
    for (Iterator forumIter = forumBeans.iterator(); forumIter.hasNext(); ) {
        ForumBean forumBean = (ForumBean)forumIter.next();
        if (forumBean.getCategoryID() != catID) continue;
        if (permission.canReadPost(forumBean.getForumID())) { %>
        <option value="<%=forumBean.getForumID()%>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=forumBean.getForumName()%></option>
<%      } //if
    } // for forum
}// for category
%>
      </select>
    </td>
  </tr>
  <tr class="trow2">
    <td>每页要显示几笔搜寻的资料</td>
    <td>
      <select name="rows" size="1">
        <option value="10">10
        <option value="20" selected>20
        <option value="30">30
        <option value="50">50
        <option value="100">100
      </select>
    </td>
  </tr>
  <tr class="trowfinal">
    <td colspan="2" align="center">
      <input type="button" name="submitbutton" value="搜寻" onclick="javascript:SubmitForm();" class="mainoption">
      <input type="reset" value="重设" class="liteoption">
    </td>
  </tr>
</table>
</form>

<br/>
<%@ include file="footer.jsp"%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -