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

📄 searchstep1.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<bean:define id="forumID" name="forumID" type="java.lang.Integer"/>
<bean:define id="typeOfSearch" name="typeOfSearch" type="java.lang.Byte"/>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
<script language="JavaScript">
function selectTypeOfSearch() {
  if(document.myform.typeOfSearch[0].checked==true) {
    condition3.style.display = "none";
  }
  else if(document.myform.typeOfSearch[1].checked==true) {
    condition3.style.display = "";
  }
  else if(document.myform.typeOfSearch[2].checked==true) {
    condition3.style.display = "";
  }
}
</script>
</head>
<body topmargin=0 leftmargin=0>
<TABLE class=tableCommonStyle cellSpacing=1 cellPadding=3 border=0 align=center>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <TR>
  <TD class=noBgStyle>
    <lybbs:typeAdTag/>
  </TD>
 </TR>
 <TR>
  <TD height=4 class=bgStyle></TD>
 </TR>
 <tr>
  <td class=menuStyle height=22>
    <table width=100% cellpadding=0 cellspacing=0 border=0>
    <tr>
    <td align=left>
    <lybbs:typeUserHeaderTag forumID="<%=forumID.intValue()%>"/>
    </td>
    <td align=right>
      <lybbs:web key="returnHomeLink"/>
    </td>
    </tr>
    </table>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
 <tr>
  <td class=navStyle vAlign=center height=25>
    <img src="lybbs/images/forum_nav.gif" width="9" height="9" align="absMiddle"> <a href="bbs_index.do"><lybbs:web key="forumName"/></a> <bean:message key="common.lybbs.arrow"/> <bean:message key="jsp.search.list"/>
  </td>
 </tr>
</table>
<br>
<table class=tableCommonStyle align=center cellspacing=1 cellpadding=3 border=0>
    <form action="bbs_searchSubmit.do" method="post" name="myform">
    <input type=hidden name="action" value="startsearch">
    <tr>
     <td class=catStyle colspan=2 valign=middle align="center">
      <b><bean:message key="jsp.search.input"/></b>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne valign="middle" align="right" width=35%>
      <b><bean:message key="jsp.search.input"/></b>
     </td>
     <td class=forumColorTwo valign="middle" align="left">
      <input type=text size=40 name="searchString" value="<logic:present name="searchString" scope="request"><bean:write name="searchString"/></logic:present>">
      <bean:message key="jsp.search.input.comment"/>
     </td>
    </tr>
    <tr>
     <td class=forumColorTwo valign=middle colspan=2 align=center>
      <b><bean:message key="common.lybbs.option"/></b>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align="right" valign="middle">
       <b><bean:message key="common.lybbs.condition"/>:&nbsp;</b>
     </td>
     <td class=forumColorTwo align="left" valign="middle">
       <input name="typeOfSearch" type="radio" value="0" onclick="selectTypeOfSearch()" <%if(typeOfSearch.byteValue()==(byte)0) out.print("checked");%>>
       <b><bean:message key="jsp.search.author"/></b>
       <input name="typeOfSearch" type="radio" value="1" onclick="selectTypeOfSearch()" <%if(typeOfSearch.byteValue()==(byte)1) out.print("checked");%>>
       <b><bean:message key="jsp.search.keyword"/></b>
       <input name="typeOfSearch" type="radio" value="2" onclick="selectTypeOfSearch()" <%if(typeOfSearch.byteValue()==(byte)2) out.print("checked");%>>
       <b><bean:message key="jsp.search.author.both"/></b>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align="right" valign="middle">
       <b><bean:message key="common.lybbs.condition"/>:&nbsp;</b>
     </td>
     <td class=forumColorTwo align="left" valign="middle">
       <input name="typeOfTopic" type="radio" value="0">
       <bean:message key="jsp.search.author.topic"/>
       <input name="typeOfTopic" type="radio" value="1">
       <bean:message key="jsp.search.author.reply"/>
       <input name="typeOfTopic" type="radio" value="2" checked>
       <bean:message key="jsp.search.author.both"/>
     </td>
    </tr>
    <tr id="condition3" style="display:none;">
     <td class=forumColorOne align="right" valign="middle">
       <b><bean:message key="common.lybbs.condition"/>:&nbsp;</b>
     </td>
     <td class=forumColorTwo align="left" valign="middle">
       <input name="typeOfTitle" type="radio" value="0">
       <bean:message key="jsp.search.keyword.title"/>
       <input name="typeOfTitle" type="radio" value="1">
       <bean:message key="jsp.search.keyword.content"/>
       <input name="typeOfTitle" type="radio" value="2" checked>
       <bean:message key="jsp.search.author.both"/>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align="right" valign="middle">
       <b><bean:message key="common.lybbs.condition"/>:&nbsp;</b>
     </td>
     <td class=forumColorTwo align="left" valign="middle">
       <input name="typeOfElite" type="radio" value="1">
       <bean:message key="jsp.search.elite"/>
       <input name="typeOfElite" type="radio" value="0" checked>
       <bean:message key="common.lybbs.unlimited"/>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align="right" valign="middle">
       <b><bean:message key="jsp.search.keyword.searchdate"/></b>
     </td>
     <td class=forumColorTwo align="left" valign="middle">
      <select name="searchDate">
       <option value="0"><bean:message key="common.lybbs.unlimited"/></option>
       <option value="1"><bean:message key="jsp.search.keyword.selectdate" arg0="1"/></option>
       <option value="2"><bean:message key="jsp.search.keyword.selectdate" arg0="2"/></option>
       <option value="7"><bean:message key="jsp.search.keyword.selectdate" arg0="7"/></option>
       <option value="14"><bean:message key="jsp.search.keyword.selectdate" arg0="14"/></option>
       <option value="30"><bean:message key="jsp.search.keyword.selectdate" arg0="30"/></option>
       <option value="90"><bean:message key="jsp.search.keyword.selectdate" arg0="90"/></option>
       <option value="180"><bean:message key="jsp.search.keyword.selectdate" arg0="180"/></option>
       <option value="365"><bean:message key="jsp.search.keyword.selectdate" arg0="365"/></option>
      </select>
      <input type="radio" name="beforeAfter" value="after" checked> <bean:message key="jsp.search.keyword.after"/>
      <input type="radio" name="beforeAfter" value="before"> <bean:message key="jsp.search.keyword.before"/>
     </td>
    </tr>
    <tr>
     <td class=forumColorTwo valign="middle" colspan=2 align=center>
      <b><bean:message key="jsp.search.selectforum"/></b>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne valign="middle" align="right">
       <b><bean:message key="jsp.search.forum.search"/>:</b> &nbsp;
     </td>
     <td class=forumColorTwo>
       <select name="searchForumID">
        <option value="0"><bean:message key="jsp.search.forum.all"/></option>
         <lybbs:typeSearchForumListTag stat="false"/>
       </select>
       <script language=JavaScript>
         setCurrentSelect(document.myform.searchForumID,"<%=forumID%>");
       </script>
     </td>
    </tr>
    <tr>
     <td class=forumColorTwo valign=middle colspan=2 align=center>
      <input type=submit value="<bean:message key="jsp.search.start"/>">
     </td>
    </tr>
    </form>
</table>
<br>
<lybbs:web key="foot"/>
</body>
</html:html>

⌨️ 快捷键说明

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