📄 query.jsp
字号:
<%@ page language="java" pageEncoding="GB2312" %>
<%@ page info="database handler"%>
<jsp:useBean id="user" class="serv.bbsuser" scope="page"/>
<jsp:useBean id="board" class="serv.bbsboard" scope="page"/>
<%
java.sql.ResultSet sqlRst;
int i,method;
String tempSTR,strSQL,whereTo;
int boardid;
String boardname,username,sel;
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>博雅论坛</title>
<style type="text/css">
<!--
.STYLE1 {
color: #7F1F55;
font-weight: bold;
}
.STYLE2 {color: #2A5FAA}
-->
</style>
</head>
<body background ="images/1.jpg">
<br><br><br><br><br><br><br><br>
<div align="center">
<center>
<table border="0" width="500">
<tr>
<td width="100%" align="center"><h2><span class="STYLE1">贴子查询</span></h2></td>
</tr>
<tr>
<td width="100%" align="left">
<form method="POST" action="/May/servlet/querybbswriter" >
<p><span class="STYLE2">按发帖人搜索:</span>
<input type="text" name="writer" size="20">
<input class="buttonface" type="submit" value="查询" name="B1"></p>
</form>
</td>
</tr>
<tr>
<td width="100%" align="left">
<form method="POST" action="/May/servlet/querybbscontent" >
<p><span class="STYLE2">按帖子内容搜索:</span>
<label>
<input type="text" name="bbscontent">
</label>
<input class="buttonface" type="submit" value="查询" name="B1"></p>
</form>
</td>
</tr>
<tr>
<td width="100%" align="left">
<form method="POST" action="/May/servlet/querybbstopic">
<p><span class="STYLE2">按帖子题目搜索:</span>
<label>
<input type="text" name="bbstopic">
</label>
<input class="buttonface" type="submit" value="查询" name="B1"></p>
</form>
</td>
</tr>
</table>
</center>
</div>
<div align="center"><%String s=(String)session.getAttribute("loginName");
if(s!=null&&s.length()!=0){%>
<a href="homeuser.jsp">返回首页</a>
<%}
else{%><a href="home.jsp">返回首页</a><% }%>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -