📄 setup.asp
字号:
setTimeout("countDown("+secs+")",1000);
}
else {
window.location.href=Url;
}
}
countDown(5);
</script>
<%
HtmlBottom
End Function
Sub error(Message)
if IsResponseTop<>1 then HtmlTop
if Left(Message,4)<>"<li>" then Message="<li>"&Message
%>
<div class="CommonBreadCrumbArea"><%=ClubTree%> → 论坛信息</div>
<table cellspacing="1" cellpadding="5" width=100% class=CommonListArea>
<tr class=CommonListTitle>
<td width="100%" colspan="2" align="center">论坛提示信息</td>
</tr>
<tr class="CommonListCell">
<td valign="top" align="Left" colspan="2" height="122">
<table cellspacing="0" cellpadding="5" width="100%" border="0">
<tr>
<td width="83%" valign="top"><b>操作不成功的可能原因或建议:</b><ul><%=Message%></ul></td>
<td width="17%"><img height="97" src="images/err.gif" width="95" /></td>
</tr>
</table>
</td>
</tr>
<tr align="center" class="CommonListCell">
<td valign="center" colspan="2"><input onClick="history.back()" type="submit" value=" << 返 回 上 一 页 " /></td>
</tr>
</table>
<%
HtmlBottom
End Sub
Sub ShowForum()
TodayPostsHtml=""
ModeratedList=""
if Rs("Moderated")<>empty then
filtrate=split(Rs("Moderated"),"|")
for i = 0 to ubound(filtrate)
if ""&filtrate(i)&""<>"" then ModeratedList=ModeratedList&"<a href='Profile.asp?UserName="&filtrate(i)&"'>"&filtrate(i)&"</a> "
next
end if
ForumUrlStr="ShowForum.asp?ForumID="&Rs("ForumID")&""
if Rs("ForumUrl")<>"" then ForumUrlStr=Rs("ForumUrl")
If SiteConfig("IsShowSonForum") = 1 then
SubForumStrings=""
SubForumGetRow=FetchEmploymentStatusList("Select ForumID,ForumName,ForumUrl from ["&TablePrefix&"Forums] where ParentID="&Rs("ForumID")&" and SortOrder>0 and IsActive=1 order by SortOrder")
if IsArray(SubForumGetRow) then
SubForumStrings="<br /><b>子版面:"
for iii=0 to Ubound(SubForumGetRow,2)
if SubForumGetRow(2,iii)<>"" then
SubForumStrings=SubForumStrings&"<a href="&SubForumGetRow(2,iii)&">"&SubForumGetRow(1,iii)&"</a> "
else
SubForumStrings=SubForumStrings&"<a href=ShowForum.asp?ForumID="&SubForumGetRow(0,iii)&">"&SubForumGetRow(1,iii)&"</a> "
end if
next
SubForumStrings=SubForumStrings&"</b>"
end if
SubForumGetRow=null
end if
%>
<tr class="CommonListCell">
<td align="center" width="40">
<%
if Rs("ForumUrl")<>"" then
response.write "<img src=images/forum_link.gif>"
elseif int(DateDiff("d",Rs("MostRecentPostDate"),Now())) < 2 then
response.write "<img src=images/forum_status_new.gif>"
else
response.write "<img src=images/forum_status.gif>"
end if
if Rs("TodayPosts") > 0 then TodayPostsHtml="<font color='red'>("&Rs("TodayPosts")&")</font>"
%>
</td>
<td><a href="<%=ForumUrlStr%>"><%=Rs("ForumName")%></a> <%=TodayPostsHtml%><br /><%=BBCode(Rs("ForumDescription"))%><%=SubForumStrings%></td>
<td align="center"><%=Rs("TotalThreads")%></td>
<td align="center"><%=Rs("TotalPosts")%></td>
<td width="200"><a href=ShowPost.asp?ThreadID=<%=Rs("MostRecentThreadID")%>><b><%=Left(Rs("MostRecentPostSubject"),14)%></b></a><br />by <a href="Profile.asp?UserName=<%=Rs("MostRecentPostAuthor")%>"><%=Rs("MostRecentPostAuthor")%></a><br /><%=Rs("MostRecentPostDate")%></td><td align="center" width="100"><%=ModeratedList%></td>
</tr>
<%
End Sub
Sub ShowThread()
if Rs("ThreadTop")=2 then
IconImage="topic-announce.gif alt='公告主题'"
elseif Rs("ThreadTop")=1 then
IconImage="topic-pinned.gif alt='置顶主题'"
elseif Rs("IsGood")=1 then
IconImage="topic-popular.gif alt='精华主题'"
elseif Rs("IsLocked")=1 then
IconImage="topic-locked.gif alt='主题锁定'"
elseif Rs("IsVote")=1 then
IconImage="topic-poll.gif alt='投票主题'"
elseif DateDiff("d",Rs("PostTime"),Now()) <= SiteConfig("PopularPostThresholdDays") and ( Rs("TotalReplies")=>SiteConfig("PopularPostThresholdPosts") or Rs("TotalViews")=>SiteConfig("PopularPostThresholdViews") ) then
IconImage="topic-hot.gif alt='热门主题'"
else
IconImage="topic.gif alt='普通主题'"
end if
if Rs("TotalReplies")=0 then
replies="-"
else
replies=Rs("TotalReplies")
end if
if Rs("Category")<>"" then
CategoryHtml="[<a href=ShowForum.asp?ForumID="&Rs("ForumID")&"&Category="&Rs("Category")&">"&Rs("Category")&"</a>] "
else
CategoryHtml=""
end if
if Rs("ThreadEmoticonID")>0 then
ThreadEmoticonID="<img src=images/Emoticons/"&Rs("ThreadEmoticonID")&".gif> "
else
ThreadEmoticonID=""
end if
if SiteConfig("DisplayThreadStatus")=1 then
if Rs("ThreadStatus")=1 then
ThreadStatus="<img src=images/status_Answered.gif align=middle title='主题状态:已解决'>"
elseif Rs("ThreadStatus")=2 then
ThreadStatus="<img src=images/status_NotAnswered.gif align=middle title='主题状态:未解决'>"
else
ThreadStatus="<img src=images/status_NotSet.gif align=middle>"
end if
end if
if Rs("HiddenCount")>0 then
ThreadHidden=" <img src='images/InVisible.gif' align=middle alt='"&Rs("HiddenCount")&"未审核帖子' />"
end if
if Rs("DeletedCount")>0 then
ThreadDel=" <img src='images/recycle.gif' align=middle alt='"&Rs("DeletedCount")&"已删除帖子' />"
end if
if DateDiff("d",Rs("PostTime"),Now()) < 2 then
NewHtml=" <img title='一天内新发表的主题' src=images/new.gif align=absmiddle>"
else
NewHtml=""
end if
if Rs("TotalRatings")>0 then StarHtml="<a style=CURSOR:pointer onclick="&CHR(34)&"OpenWindow('PostRating.asp?ThreadID="&Rs("ThreadID")&"')"&CHR(34)&" ><img border=0 src=Images/Star/"&cint(Rs("RatingSum")/Rs("TotalRatings"))&".gif align=middle></a> "
if Rs("TotalReplies")=>SiteConfig("PostsPerPage") then
MaxPostPage=fix(Rs("TotalReplies")/SiteConfig("PostsPerPage"))+1 '共多少页
ShowPostPage="( <img src=images/multiPage.gif> "
For PostPage = 1 To MaxPostPage
if PostPage<11 or MaxPostPage=PostPage then ShowPostPage=""&ShowPostPage&"<a href=ShowPost.asp?PageIndex="&PostPage&"&ThreadID="&Rs("ThreadID")&"><b>"&PostPage&"</b></a> "
Next
ShowPostPage=""&ShowPostPage&")"
else
ShowPostPage=""
end if
%>
<tr class="CommonListCell" id="Thread<%=Rs("ThreadID")%>">
<td width="55%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><a target="_blank" href="ShowPost.asp?ThreadID=<%=Rs("ThreadID")%>"><img src=images/<%=IconImage%> border=0 /></a></td>
<td<%if SiteConfig("EnablePostPreviewPopup")=1 then%> title='<%=Rs("Description")%>'<%end if%>><%=checkboxHtml%><%
if Rs("Visible")=0 then
Response.write("等待审核:")
elseif Rs("Visible")=2 then
Response.write("已被删除:")
end if
%><%=ThreadEmoticonID&CategoryHtml%><a href="ShowPost.asp?ThreadID=<%=Rs("ThreadID")%>"><span style="<%=Rs("ThreadStyle")%>"><%=Rs("Topic")%></span></a><%=ShowPostPage%><%=NewHtml%></td>
<td align="right"><%=StarHtml&ThreadStatus%><%if PermissionManage=1 then Response.write(ThreadHidden&ThreadDel)%></td>
</tr>
</table>
</td>
<td align="center" width="13%"><a href="Profile.asp?UserName=<%=Rs("PostAuthor")%>"><%=Rs("PostAuthor")%></a><br /><%=FormatDateTime(Rs("PostTime"),2)%></td>
<td align="center" width="7%"><%=replies%></td>
<td align="center" width="7%"><%=Rs("TotalViews")%></td>
<td align="center" width="18%"><%=Rs("lasttime")%><br />by <a href="Profile.asp?UserName=<%=Rs("lastname")%>"><%=Rs("lastname")%></a></td>
<%
if PermissionManage=1 then
if Rs("ThreadTop")=2 and BestRole<>1 then
response.write("<td width=50> </td>")
else
response.write("<td width=50><input type=checkbox value="&Rs("ThreadID")&" name=ThreadID onclick="&chr(34)&"CheckSelected(this.form,this.checked,'Thread"&Rs("ThreadID")&"')"&chr(34)&"></td>")
end if
end if
%>
</tr>
<%
End Sub
''''''''''''''''''''''''''''''''
Sub Alert(Message)
%>
<script language="JavaScript" type="text/javascript">
alert('<%=Message%>');
window.history.back();
</script>
<script language="JavaScript" type="text/javascript">window.close();</script>
<%
Response.End
End Sub
''''''''''''''''''''''''''''''''
Sub AlertForModal(Message)
%>
<script language="JavaScript" type="text/javascript">
alert('<%=Message%>');
<%if Request_Method <> "POST" then%>
parent.BBSXP_Modal.Close();
<%else%>
window.history.back();
<%end if%>
</script>
<%
Response.End
End Sub
''''''''''''''''''''''''''''''''
Sub ShowPage()
PageUrl=ReplaceText(Request.QueryString,"PageIndex=([0-9]*)&","")
if Request.Form<>empty then PageUrl=""&PageUrl&"&"&Request.Form&""
%><script language="JavaScript" type="text/javascript">ShowPage(<%=TotalPage%>,<%=PageCount%>,"<%=PageUrl%>")</script><%
End Sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -