?? checklist.jsp
字號:
<%@ page contentType="text/html; charset=gb2312"
language="java"
import = "java.util.*, java.text.*"
import = "java.sql.*,MyBean.dbcon,MyBean.issuetopic"
%>
<jsp:useBean id="cherCov" scope="session" class="MyBean.charsetConvert" />
<%
dbcon dbc=new dbcon();
dbcon dbc1=new dbcon();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="Style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}
-->
</style>
</head>
<body>
<%
String uid=session.getAttribute("suserid").toString();
issuetopic ist=new issuetopic();
ist.setUserID(uid);
String tmp;
tmp=request.getParameter("topictitle");
tmp=cherCov.parseChinese(tmp);
ist.setTopicTitle(tmp);
String tmp1=request.getParameter("topiccontent");
tmp1=cherCov.parseChinese(tmp1);
ist.setTopicContent(tmp1);
String sql="select * from topicinfo where topictitle like '"+tmp+"' and topicflag='已回答'";
ResultSet rs=dbc.executeQuery(sql);
while(rs.next())
{
%>
你的問題已經被別人問過,請點擊查看
<table width="99%" border="1" align="center" cellpadding="2" bordercolor="#C0C0C0" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#EEEEEE">
<tr height=22>
<td width="15%" align=center>問題標題</td>
<td width="15%" align=center>提問人</td>
<td width="20%" align=center>提問日期</td>
<td width="10%" align=center>操作</td>
</tr>
<%
String topicid=rs.getString("topicid");
%>
<tr>
<td align=center><%=rs.getString("topictitle")%></td>
<td align=center><%=rs.getString("topicuserid")%></td>
<td align=center><%=rs.getString("topictime")%></td>
<td align=center><a href="topicdetail.jsp?topicid=<%=topicid%>">查看</a></td>
</tr>
<%
}
if(rs.next()==false)
{
boolean rt=ist.doIssuetopic();
if(rt!=false)
{
%>
提問成功!!!<br>
<a href="topiclist.jsp">請點這里</a>
<%
}
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -