📄 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 + -