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

📄 search_topic.jsp

📁 java论坛代码。 mvc模式下的bbs论坛程序
💻 JSP
字号:
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page contentType='text/html;charset=GBK'%>
<logic:notPresent name="username">
  <logic:forward name="login" />
</logic:notPresent>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
table {  font-size: 12px}
input {  font-size: 12px; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
select {  font-size: 12px; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
-->
</style>
<script language="JavaScript">

function checkdata() {
if( form1.title.value=="" ) {
alert("\请输入查询内容 !!")
return false;
}
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" background="images/back.gif">
<table width="610" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="44"> 
      <div align="center"><font size="2">雨季情缘 -- 分类讨论区 [人在旅途区]</font></div>
    </td>
  </tr>
  <tr> 
    <td height="7"> 
      <div align="right"></div>
    </td>
  </tr>
  <tr>
    <td height="8">
      <hr>
    </td>
  </tr>
  <tr> 
    <td height="56" valign="top">
      <div align="center"><br>
        <form name="form1" method="post" action="search_result.do?type=<bean:write name='type'/>&&topicid=<bean:write name='topicid' />" onSubmit="return checkdata()">
          输入查询内容: 
          <input type="text" name="title">
          <select name="search">
            <option value="username" selected>作者</option>
            <option value="topic">标题</option>
            <option value="content">内容</option>
          </select>
          <input type="submit" name="Submit" value="提交">
        </form>
      </div>
    </td>
  </tr>
  <tr> 
    <td height="201" valign="top"></td>
  </tr>
</table>
<div align="right"></div>
</body>
</html>

⌨️ 快捷键说明

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