📄 topic.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>
<!--
td,select,input,.p1{font-size:12px;}
p,div,.p2{font-size:12px;line-height:130%;}
.vip{color:ffffff;font-size:12px}
.p3{font-size:14.8px;}
.p4{font-size:14.8px;line-height:130%;}
.p5{font-size:10px;font-family:arial}
.p6{line-height:160%}
.p7{line-height:180%}
.hot{color:ff3300}
a:link{color:000066}
a:visited{color:000066}
a.lb:link,a.lb:visited{color:black}
a.lg:link,a.lg:visited{color:#717171}
a:hover,a.lb:hover{color:red;}
.pw,a.lw:link,a.lw:visited{color:white}
a.ch:link,a.ch:visited{color:697111}
.sinput {border-left:1 ridge #ffffff;border-top:1 ridge #ffffff;border-bottom:1;border-right:1;border-style:ridge;background-color:#cccccc}
.ring{font-family: webdings;font-size:12px;color:000066;}
input { border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function CheckForm() {
if (!chknumber(TheForm.page.value) || TheForm.page.value == "") {
alert ("请正确填写要跳到的页数!");
return(false);
}
return(true);
}
function chknumber(checkStr) {
var checkOK = "0123456789.+-";
var allValid = true;
var checkCode = 0;
for (i = 0; i < checkStr.length; i++) {
ch = checkStr.charAt(i);
if (checkOK.indexOf(ch) == -1) {
allValid = false;
break;
}
if ((ch == '+' || ch == '-') && i > 0) {
allValid = false;
break;
}
if (ch == '.') {
checkCode += 1;
if (checkCode > 1) {
allValid = false;
break;
}
}
}
return(allValid);
}
</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"><a href="board.do?type=<bean:write name='type' />">返回总讨论区</a></div>
</td>
</tr>
<tr>
<td height="8">
<hr>
</td>
</tr>
<tr>
<td height="56" valign="top">
<table width=606>
<tr bgcolor='e8e8e8'>
<td width="48">序号
<td width="85">作者
<td width=97>日期
<td width="263">标题
<td width="41">回复
<td width="68">加入最爱
<logic:present name="topiclist">
<logic:iterate id="topic" name="topiclist" offset="0" length="15">
<tr><td width='38'><bean:write name="topic" property="sn" /><td width='60'><a href="user.do?username=<bean:write name='topic' property='username' />"><bean:write name="topic" property="username" /></a><td width='102'><bean:write name="topic" property="writetime" /><td width='335'><a href="content.do?type=<bean:write name='topic' property='type' />&&topicid=<bean:write name='topic' property='topicid' />&&id=<bean:write name='topic' property='id' />"><bean:write name="topic" property="topic" /></a><td width='49'><font color=black><bean:write name="topic" property="renum" /></font><td width='58'><a href="join.do?contentid=<bean:write name='topic' property='id' />">加入</a><tr>
</logic:iterate>
</logic:present>
</table>
</td>
</tr>
<tr>
<td height="375" valign="top">
<div align="right">
<form name="TheForm" method="post" action="topic.do?type=<bean:write name='type' />&&topicid=<bean:write name='topicid' />" onSubmit="return CheckForm()">
<logic:greaterThan name="currentPage" value="1">
<a href="topic.do?type=<bean:write name='type'/>&&topicid=<bean:write name='topicid' />&&page=<bean:write name='previous' />">上一页</a>
</logic:greaterThan>
<logic:lessThan name="currentPage" value="<%=(String)request.getAttribute("pageCount") %>" >
<a href="topic.do?type=<bean:write name='type' />&&topicid=<bean:write name='topicid' />&&page=<bean:write name='next' />">下一页</a>
</logic:lessThan>
第 <bean:write name="currentPage" /> / <bean:write name="pageCount" />
页 跳到 第
<input type="text" name="page" size="3" class="text">
页
<input type="submit" name="Submit" value="跳转" class="botton">
</form>
</div>
<a href="write.do?type=<bean:write name='type'/>&&topicid=<bean:write name='topicid' />"><br>
发表文章</a> 精华区 <a href="topic_admin.do?type=<bean:write name='type'/>&&topicid=<bean:write name='topicid' />">版面管理</a>
<a href="search_topic.do?type=<bean:write name='type'/>&&topicid=<bean:write name='topicid' />">版内查询</a>
精华区查询 </td>
</tr>
</table>
<div align="right"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -