showforum.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:139k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.showforum" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:58.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:58.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
- templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
- templateBuilder.Append("<div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
- templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
- templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function bind_keyword(form) {rn");
- templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
- templateBuilder.Append(" form.action = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
- templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
- templateBuilder.Append(" form.keyword.value = '';rn");
- templateBuilder.Append(" form.poster.value = form.keywordf.value;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" form.poster.value = '';rn");
- templateBuilder.Append(" form.keyword.value = form.keywordf.value;rn");
- templateBuilder.Append(" if (form.keywordtype.value == '2')rn");
- templateBuilder.Append(" form.type.value = 'spacepost';rn");
- templateBuilder.Append(" if (form.keywordtype.value == '3')rn");
- templateBuilder.Append(" form.type.value = 'album';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span class="avataonline right">rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
- templateBuilder.Append(" >rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("条新短消息">收件箱</a>rn");
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
- if (oluserinfo.Newnotices>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showalbumlist.aspx?uid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("">我的相册</a></li>rn");
- } //end if
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="header">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
- } //end if
- templateBuilder.Append(" <ul id="menu">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(mainnavigation.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- Response.Clear();
- Response.ContentType = "Text/XML";
- Response.Expires = 0;
- Response.Cache.SetNoStore();
-
- templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- if (page_err==0)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var templatepath = "");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append(" var fid = parseInt(");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var postminchars = parseInt(");
- templateBuilder.Append(config.Minpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var postmaxchars = parseInt(");
- templateBuilder.Append(config.Maxpostsize.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var disablepostctrl = parseInt(");
- templateBuilder.Append(disablepostctrl.ToString());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" var forumurl = forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("javascript/template_showforum.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (page_err==0)
- {
- templateBuilder.Append(" <span class="right">rn");
- if (ismoder)
- {
- templateBuilder.Append("<a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("modcp.aspx?operation=attention&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" target="_blank">管理面板</a>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- } //end if
- templateBuilder.Append(" <a id="forumlist" href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("" rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append("onmouseover="showMenu(this.id);" onmouseout="showMenu(this.id);"rn");
- } //end if
- templateBuilder.Append(" class="title">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » ");
- templateBuilder.Append(forumnav.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (page_err==0)
- {
- if (showforumlogin==1)
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append(" <div class="main">rn");
- templateBuilder.Append(" <h3>本版块已经被管理员设置了密码</h3>rn");
- templateBuilder.Append(" <form id="forumlogin" name="forumlogin" method="post" action="">rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" border="0" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="forumpassword">请输入密码</label></th>rn");
- templateBuilder.Append(" <td><input name="forumpassword" type="password" id="forumpassword" size="20" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- if (isseccode)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="vcode">输入验证码</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div style="position: relative;">rn");
- templateBuilder.Append("<div id="vcode_temp"></div>rn");
- templateBuilder.Append("<script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" var infloat = ");
- templateBuilder.Append(infloat.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" if (typeof vcodeimgid == 'undefined'){rn");
- templateBuilder.Append(" var vcodeimgid = 1;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" vcodeimgid++;rn");
- templateBuilder.Append(" $('vcode_temp').parentNode.innerHTML = '<input name="vcodetext" tabindex="1" size="20" onkeyup="changevcode(this.form, this.value);" class="txt" style="width:90px;" id="vcodetext' + vcodeimgid + '" onblur="if(!seccodefocus) {display(this.id + \'_menu\')};" onclick="opensecwin('+vcodeimgid+',1)" value="验证码" autocomplete="off"/>' +rn");
- templateBuilder.Append(" '<div class="seccodecontent" style="display:none;cursor: pointer;width: 124px; height: 44px;top:256px;z-index:10009;padding:0;" id="vcodetext' + vcodeimgid + '_menu" onmouseout="seccodefocus = 0" onmouseover="seccodefocus = 1"><img src="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?time=");
- templateBuilder.Append(Processtime.ToString());
- templateBuilder.Append("" class="cursor" id="vcodeimg' + vcodeimgid + '" onclick="this.src=\'");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append("&time=\' + Math.random();"/></div>';rn");
- templateBuilder.Append(" function changevcode(form, value){rn");
- templateBuilder.Append(" if (!$('vcode')){rn");
- templateBuilder.Append(" var vcode = document.createElement('input');rn");
- templateBuilder.Append(" vcode.id = 'vcode';rn");
- templateBuilder.Append(" vcode.name = 'vcode';rn");
- templateBuilder.Append(" vcode.type = 'hidden';rn");
- templateBuilder.Append(" vcode.value = value;rn");
- templateBuilder.Append(" form.appendChild(vcode);rn");
- templateBuilder.Append(" }else{rn");
- templateBuilder.Append(" $('vcode').value = value;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var secclick = new Array();rn");
- templateBuilder.Append("var seccodefocus = 0;rn");
- templateBuilder.Append("function opensecwin(id,type) {rn");
- templateBuilder.Append(" if($('vcode')){rn");
- templateBuilder.Append(" $('vcode').parentNode.removeChild($('vcode'));}rn");
- templateBuilder.Append(" if (!secclick['vcodetext' + id]) {rn");
- templateBuilder.Append(" $('vcodetext' + id).value = '';rn");
- templateBuilder.Append(" secclick['vcodetext' + id] = 1;rn");
- templateBuilder.Append(" if(type)rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.top = parseInt($('vcodetext' + id + '_menu').style.top) - parseInt($('vcodetext' + id + '_menu').style.height) + 'px';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.position = 'absolute';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.top = (-parseInt($('vcodetext' + id + '_menu').style.height) - 2) + 'px';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.left = '0px';rn");
- templateBuilder.Append(" $('vcodetext' + id + '_menu').style.display = '';rn");
- templateBuilder.Append(" $('vcodetext' + id).focus();rn");
- templateBuilder.Append(" $('vcodetext' + id).unselectable = 'off';rn");
- templateBuilder.Append(" $('vcodeimg' + id).src = '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("tools/VerifyImagePage.aspx?id=");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append("&time=' + Math.random();rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th>rn");
- templateBuilder.Append(" <td><input type="submit" value="确定"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- if (pagewordad.Length>0)
- {
- templateBuilder.Append("<div id="ad_text" class="ad_text sclear">rn");
- templateBuilder.Append(" <table cellspacing="1" cellpadding="0" width="100%" summary="text ad">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- int adindex = 0;
-
- int pageword__loop__id=0;
- foreach(string pageword in pagewordad)
- {
- pageword__loop__id++;
- if (adindex<4)
- {
- templateBuilder.Append(" <td>");
- templateBuilder.Append(pageword.ToString());
- templateBuilder.Append("</td>rn");
- adindex = adindex+1;
-
- }
- else
- {
- templateBuilder.Append(" </tr><tr>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(pageword.ToString());
- templateBuilder.Append("</td>rn");
- adindex = 1;
-
- } //end if
- } //end loop
- if (pagewordad.Length%4>0)
- {
- for (int j = 0; j < (4 - pagewordad.Length % 4); j++)
- {
-
- templateBuilder.Append(" <td> </td>rn");
- }
-
- } //end if
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div id="forumheader" class="s_clear">rn");
- templateBuilder.Append(" <h1>rn");
- aspxrewriteurl = this.ShowForumAspxRewrite(forum.Fid,0);
- templateBuilder.Append(forum.Name.ToString().Trim());
- templateBuilder.Append("</h1>rn");
- templateBuilder.Append(" <p class="forumstats left">[ <em>");
- templateBuilder.Append(topiccount.ToString());
- templateBuilder.Append("</em> 主题 / ");
- templateBuilder.Append(forum.Posts.ToString().Trim());
- templateBuilder.Append(" 帖子 / ");
- templateBuilder.Append(forum.Todayposts.ToString().Trim());
- templateBuilder.Append(" 今日帖子 ]</p>rn");
- templateBuilder.Append(" <div class="forumaction left">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=digest" class="digest">精华</a>rn");
- if (config.Rssstatus!=0&&forum.Allowrss!=0)
- {
- aspxrewriteurl = this.RssAspxRewrite(forum.Fid);
-
- templateBuilder.Append(" <a class="feed" target="_blank" href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("tools/");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">RSS</a> rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p class="channelinfo f_clear">");
- templateBuilder.Append(forum.Description.ToString().Trim());
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <p id="modedby" class="f_clear">rn");
- if (page_err==0)
- {
- templateBuilder.Append("版主: <span class="lightlink">rn");
- if (forum.Moderators!="")
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(forum.Moderators.ToString().Trim());
- templateBuilder.Append("rn");
- }
- else
- {
- templateBuilder.Append(" *空缺中*rn");
- } //end if
- templateBuilder.Append("</span>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- if (forum.Rules!="")
- {
- templateBuilder.Append(" <div class="mainbox" id="rules">rn");
- templateBuilder.Append(" <span class="headactions"><img id="rules_img" title="收起" onclick="$('rules_link').style.display = '';toggle_collapse('rules', 1);" alt="收起" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_no.gif" /></span>rn");
- templateBuilder.Append(" <h3>本版规则</h3>rn");
- templateBuilder.Append(" <div id="rules_link">");
- templateBuilder.Append(forum.Rules.ToString().Trim());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (forum.Subforumcount>0)
- {
- templateBuilder.Append("<div id="subforum" class="mainbox list">rn");
- templateBuilder.Append(" <span class="headactions">rn");
- if (forum.Moderators!="")
- {
- templateBuilder.Append(" 分类版主: ");
- templateBuilder.Append(forum.Moderators.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" <img id="category_");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("_img" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapsed_no.gif" alt="展开/收起" onclick="toggle_collapse('category_");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("');" class="cursor"/>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <h3>子版块</h3>rn");
- templateBuilder.Append(" <table id="category_");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("" cellspacing="0" cellpadding="0" summary="category_");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <tbody> rn");
- if (forum.Colcount==1)
- {
- int subforum__loop__id=0;
- foreach(IndexPageForumInfo subforum in subforumlist)
- {
- subforum__loop__id++;
- templateBuilder.Append(" <tr>rn");
- aspxrewriteurl = this.ShowForumAspxRewrite(subforum.Fid,0);
-
- templateBuilder.Append(" <th rn");
- if (config.Shownewposticon==1)
- {
- templateBuilder.Append("class="notopic rn");
- if (subforum.Havenew=="new")
- {
- templateBuilder.Append("newrn");
- } //end if
- templateBuilder.Append(""rn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" <h2>rn");
- if (subforum.Icon!="")
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(subforum.Icon.ToString().Trim());
- templateBuilder.Append("" border="0" align="left" hspace="5" alt="");
- templateBuilder.Append(subforum.Name.ToString().Trim());
- templateBuilder.Append(""/>rn");
- } //end if
- if (subforum.Redirect=="")
- {
- aspxrewriteurl = this.ShowForumAspxRewrite(subforum.Fid,0,subforum.Rewritename);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(subforum.Redirect.ToString().Trim());
- templateBuilder.Append("" target="_blank">rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(subforum.Name.ToString().Trim());
- templateBuilder.Append("</a>rn");
- if (subforum.Todayposts>0)
- {
- templateBuilder.Append("<span class="today">(");
- templateBuilder.Append(subforum.Todayposts.ToString().Trim());
- templateBuilder.Append(")</span>rn");
- } //end if
- templateBuilder.Append(" </h2>rn");
- if (subforum.Description!="")
- {
- templateBuilder.Append("<p>");
- templateBuilder.Append(subforum.Description.ToString().Trim());
- templateBuilder.Append("</p>rn");
- } //end if
- if (subforum.Moderators!="")
- {
- templateBuilder.Append("<p class="moderators">版主:");
- templateBuilder.Append(subforum.Moderators.ToString().Trim());
- templateBuilder.Append("</p>rn");
- } //end if
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td class="nums"><em>");
- templateBuilder.Append(subforum.Topics.ToString().Trim());
- templateBuilder.Append("</em> / ");
- templateBuilder.Append(subforum.Posts.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="lastpost">rn");
- if (subforum.Status==-1)
- {
- templateBuilder.Append(" 私密论坛rn");
- }
- else
- {
- if (subforum.Lasttid!=0)
- {
- templateBuilder.Append(" <p>rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(subforum.Lasttid,0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(subforum.Lasttitle.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <div class="topicbackwriter">byrn");
- if (subforum.Lastposter!="")
- {
- if (subforum.Lastposterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(subforum.Lastposterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(subforum.Lastposter.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" 匿名rn");
- } //end if
- aspxrewriteurl = this.ShowTopicAspxRewrite(subforum.Lasttid,0);
-
- templateBuilder.Append(" - <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("showtopic.aspx?topicid=");
- templateBuilder.Append(subforum.Lasttid.ToString().Trim());
- templateBuilder.Append("&page=end#lastpost" title="");
- templateBuilder.Append(subforum.Lasttitle.ToString().Trim());
- templateBuilder.Append(""><span>rn");
- templateBuilder.Append(Convert.ToDateTime(subforum.Lastpost).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</span></a>rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- templateBuilder.Append(" 从未rn");
- } //end if
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end loop
- }
- else
- {
- int subforumindex = 0;
-
- double colwidth = 99.6 / forum.Colcount;
-
- int subforum__loop__id=0;
- foreach(IndexPageForumInfo subforum in subforumlist)
- {
- subforum__loop__id++;
- subforumindex = subforumindex+1;
-
- if (subforumindex==1)
- {
- templateBuilder.Append(" <tr>rn");
- } //end if
- templateBuilder.Append(" <th style="width:");
- templateBuilder.Append(colwidth.ToString());
- templateBuilder.Append("%;" rn");
- if (config.Shownewposticon==1)
- {
- templateBuilder.Append("class="notopic rn");
- if (subforum.Havenew=="new")
- {
- templateBuilder.Append("newrn");
- } //end if
- templateBuilder.Append(""rn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" <h2>rn");
- if (subforum.Icon!="")
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(subforum.Icon.ToString().Trim());
- templateBuilder.Append("" alt="");
- templateBuilder.Append(subforum.Name.ToString().Trim());
- templateBuilder.Append("" hspace="5" />rn");
- } //end if
- if (forum.Redirect=="")
- {
- aspxrewriteurl = this.ShowForumAspxRewrite(subforum.Fid,0,subforum.Rewritename);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(subforum.Redirect.ToString().Trim());
- templateBuilder.Append("" target="_blank">rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(subforum.Name.ToString().Trim());
- templateBuilder.Append("</a>rn");
- if (subforum.Todayposts>0)
- {
- templateBuilder.Append(" <span class="time">(");
- templateBuilder.Append(subforum.Todayposts.ToString().Trim());
- templateBuilder.Append(")</span>rn");
- } //end if
- templateBuilder.Append(" </h2>rn");
- templateBuilder.Append(" <p>主题:");
- templateBuilder.Append(subforum.Topics.ToString().Trim());
- templateBuilder.Append(", 帖数:");
- templateBuilder.Append(subforum.Posts.ToString().Trim());
- templateBuilder.Append("</p>rn");
- if (subforum.Status==-1)
- {
- templateBuilder.Append(" <p>私密版块</p>rn");
- }
- else
- {
- if (subforum.Lasttid!=0)
- {
- templateBuilder.Append(" <p>最后: <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("showtopic.aspx?topicid=");
- templateBuilder.Append(subforum.Lasttid.ToString().Trim());
- templateBuilder.Append("&page=end#lastpost" title="");
- templateBuilder.Append(subforum.Lasttitle.ToString().Trim());
- templateBuilder.Append(""><span>rn");
- templateBuilder.Append(Convert.ToDateTime(subforum.Lastpost).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</span></a> by rn");
- if (subforum.Lastposter!="")
- {
- if (subforum.Lastposterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(subforum.Lastposterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(subforum.Lastposter.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" 匿名rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </th>rn");
- if (subforumindex==forum.Colcount)
- {
- templateBuilder.Append(" </tr>rn");
- subforumindex = 0;
-
- } //end if
- } //end loop
- if (subforumindex!=0)
- {
- for (int i = 0; i < forum.Colcount-subforumindex; i++)
- {
- templateBuilder.Append("<td> </td>");
- }
- templateBuilder.Append(" </tr>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- if (forum.Layer!=0)
- {
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" <cite class="pageback" id="visitedforums"rn");
- if (showvisitedforumsmenu)
- {
- templateBuilder.Append(" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu(this.id);"rn");
- } //end if
- templateBuilder.Append("><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("">返回首页</a></cite>rn");
- if (pagecount!=1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- if (pagecount>8)
- {
- templateBuilder.Append(" <kbd><b id="pageidtxt1" title="可以输入页码按回车键自动跳转" onclick="$('pageidtxt1').style.display='none';$('pageidinput1').style.display='';$('pageidinput1').focus();">");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("</b>rn");
- templateBuilder.Append(" <input name="gopage" type="text" class="txt" id="pageidinput1" value="");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("" style="display:none;text-align:center;" onfocus="this.value=this.defaultValue;this.size=this.value.length;this.select();" onblur="$('pageidinput1').style.display='none';$('pageidtxt1').style.display='';" onKeyDown="if(event.keyCode==13) { if(parseInt('");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append("')==1) {window.location='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum-");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("-' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1) + '");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("';}else{window.location='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&page=' + (parseInt(this.value) > 0 ? parseInt(this.value) : 1);}}if((event.keyCode >= 48 && event.keyCode <= 57) || event.keyCode==8){this.size=this.value.length+1;return true;}else{return false;}" size="");
- templateBuilder.Append(pageid.ToString().Trim().Length.ToString().Trim());
- templateBuilder.Append("" maxlength="9" />/ ");
- templateBuilder.Append(pagecount.ToString());
- templateBuilder.Append("</kbd>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(nextpage.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- if (userid<0||canposttopic)
- {
- templateBuilder.Append(" <span onmouseover="if($('newspecial_menu').childNodes.length>0) showMenu(this.id);" id="newspecial" class="postbtn left"><a title="发新话题" id="newtopic" href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("" onmouseover="if($('newspecial_menu').childNodes.length>0) showMenu(this.id);" onclick="floatwin('open_newthread', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("posttopic.aspx?forumid=");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("', 600, 410, '600,0');doane(event);"><img alt="发新话题" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/newtopic.gif"/></a></span>rn");
- } //end if
- templateBuilder.Append(" <span class="refreshbtn left"><a href="javascript:document.location.reload();"><img alt="刷新页面" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/refresh.gif"/></a></span>rn");
- templateBuilder.Append(" <div onmouseover="showMenu(this.id);" class="left orderselect" id="filterorder">排序方式</div>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup" id="filterorder_menu" style="width:60px;display:none;">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?search=1&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topictypeid.ToString());
- templateBuilder.Append("&filter=");
- templateBuilder.Append(filter.ToString());
- templateBuilder.Append("&order=2" rn");
- if (order==2)
- {
- templateBuilder.Append("class="active"rn");
- } //end if
- templateBuilder.Append(">发布时间</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?search=1&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topictypeid.ToString());
- templateBuilder.Append("&filter=");
- templateBuilder.Append(filter.ToString());
- templateBuilder.Append("&order=1" rn");
- if (order==1)
- {
- templateBuilder.Append("class="active"rn");
- } //end if
- templateBuilder.Append(">回复时间</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="headfilter">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(ShowForumAspxRewrite(forumid,0).ToString());
- templateBuilder.Append("" rn");
- if (filter=="")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append(">全部</a>rn");
- int specialpost = forum.Allowpostspecial&1;
-
- if (specialpost==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=poll" rn");
- if (filter=="poll")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append(">投票</a>rn");
- } //end if
- specialpost = forum.Allowpostspecial&4;
-
- if (specialpost==4)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=reward" id="rewardmenu" class="rn");
- if (filter=="reward" || filter=="rewarding")
- {
- templateBuilder.Append("currentrn");
- }
- else
- {
- if (filter=="rewarded")
- {
- templateBuilder.Append("currentrn");
- } //end if
- } //end if
- templateBuilder.Append(" drop" onMouseOver="showMenu(this.id);">悬赏</a>rn");
- } //end if
- specialpost = forum.Allowpostspecial&16;
-
- if (specialpost==16)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=debate" rn");
- if (filter=="debate")
- {
- templateBuilder.Append("class="current"rn");
- } //end if
- templateBuilder.Append(">辩论</a>rn");
- } //end if
- if (forum.Applytopictype==1 && forum.Viewbytopictype==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(topictypeselectlink.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="rewardmenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=rewarding">进行中的悬赏</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&filter=rewarded">已结束的悬赏</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" <div class="threadlist" style="position:relative">rn");
- templateBuilder.Append(" <form id="moderate" name="moderate" method="post" action="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("topicadmin.aspx?action=moderate&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&infloat=1">rn");
- templateBuilder.Append(" <table summary="");
- templateBuilder.Append(forum.Fid.ToString().Trim());
- templateBuilder.Append("" id="threadlist" cellspacing="0" cellpadding="0">rn");
- templateBuilder.Append(" <thead class="category">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="folder"> </td>rn");
- templateBuilder.Append(" <td class="icon"> </td>rn");
- templateBuilder.Append(" <th>标题</th>rn");
- templateBuilder.Append(" <td class="author">作者</td>rn");
- templateBuilder.Append(" <td class="nums">回复/查看</td>rn");
- templateBuilder.Append(" <td class="lastpost"><cite>最后发表</cite></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- int announcement__loop__id=0;
- foreach(DataRow announcement in announcementlist.Rows)
- {
- announcement__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/announcement.gif" alt="announcement" /></td>rn");
- templateBuilder.Append(" <td> </td>rn");
- templateBuilder.Append(" <th class="subject">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("announcement.aspx#" + announcement["id"].ToString().Trim() + "">" + announcement["title"].ToString().Trim() + "</a>rn");
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <cite>rn");
- if (Utils.StrToInt(announcement["posterid"].ToString().Trim(), 0)==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(announcement["posterid"].ToString().Trim());
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">" + announcement["poster"].ToString().Trim() + "</a>rn");
- } //end if
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>-</td>rn");
- templateBuilder.Append(" <td>-</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- string tdivimg = "";
-
- int toptopic__loop__id=0;
- foreach(TopicInfo toptopic in toptopiclist)
- {
- toptopic__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="folder">rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(toptopic.Tid,0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/t_top");
- templateBuilder.Append(toptopic.Displayorder.ToString().Trim());
- templateBuilder.Append(".gif"/></a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="icon">rn");
- if (toptopic.Special==0)
- {
- if (toptopic.Iconid!=0)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("images/posticons/");
- templateBuilder.Append(toptopic.Iconid.ToString().Trim());
- templateBuilder.Append(".gif" alt="listicon" />rn");
- }
- else
- {
- templateBuilder.Append(" rn");
- } //end if
- } //end if
- //特殊帖图标
- if (toptopic.Special==1)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/pollsmall.gif" alt="投票" />rn");
- } //end if
- if (toptopic.Special==2)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/bonus.gif" alt="悬赏"/>rn");
- } //end if
- if (toptopic.Special==3)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/rewardsmallend.gif" alt="悬赏已结束"/>rn");
- } //end if
- if (toptopic.Special==4)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/debatesmall.gif" alt="辩论"/>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <th class="subject hot">rn");
- if (toptopic.Digest>0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/digest");
- templateBuilder.Append(toptopic.Digest.ToString().Trim());
- templateBuilder.Append(".gif" alt="digtest"/></label>rn");
- } //end if
- if (toptopic.Rate>0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/agree.gif" alt="正分"/></label>rn");
- } //end if
- if (toptopic.Rate<0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/disagree.gif" alt="负分"/></label>rn");
- } //end if
- if (useradminid>0 && ismoder)
- {
- if (toptopic.Fid==forum.Fid && toptopic.Closed<=1)
- {
- templateBuilder.Append(" <input type="checkbox" name="topicid" value="");
- templateBuilder.Append(toptopic.Tid.ToString().Trim());
- templateBuilder.Append("" onclick="modclick(this);"/>rn");
- }
- else
- {
- templateBuilder.Append(" <input type="checkbox" disabled />rn");
- } //end if
- } //end if
- if (forum.Applytopictype==1 && forum.Topictypeprefix==1)
- {
- if (forum.Viewbytopictype==1 && toptopic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[<a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(toptopic.Fid.ToString().Trim());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(toptopic.Typeid.ToString().Trim());
- templateBuilder.Append("" >");
- templateBuilder.Append(toptopic.Topictypename.ToString().Trim());
- templateBuilder.Append("</a>]</em>rn");
- }
- else if (toptopic.Topictypename!="")
- {
- templateBuilder.Append(" <em>[");
- templateBuilder.Append(toptopic.Topictypename.ToString().Trim());
- templateBuilder.Append("]</em>rn");
- } //end if
- } //end if
- aspxrewriteurl = this.ShowTopicAspxRewrite(toptopic.Tid,0);
-
- if (toptopic.Special==3)
- {
- aspxrewriteurl = this.ShowBonusAspxRewrite(toptopic.Tid,0);
-
- } //end if
- if (toptopic.Special==4)
- {
- aspxrewriteurl = this.ShowDebateAspxRewrite(toptopic.Tid);
-
- } //end if
- int ishtmltitle = Topics.GetMagicValue(toptopic.Magic, MagicType.HtmlTitle);
-
- if (ishtmltitle==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(Topics.GetHtmlTitle(toptopic.Tid).ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(toptopic.Title.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (toptopic.Attachment==1)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/attachment.gif" alt="附件"/>rn");
- }
- else if (toptopic.Attachment==2)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/attachment_image.gif" alt="图片附件"/>rn");
- } //end if
- if (toptopic.Special==2)
- {
- templateBuilder.Append(" - [悬赏 ");
- templateBuilder.Append(bonusextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" <span class="bold">");
- templateBuilder.Append(toptopic.Price.ToString().Trim());
- templateBuilder.Append("</span> ");
- templateBuilder.Append(bonusextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("] rn");
- }
- else if (toptopic.Special==3)
- {
- templateBuilder.Append(" - [悬赏已结束]rn");
- }
- else if (toptopic.Special==0)
- {
- if (toptopic.Price>0)
- {
- templateBuilder.Append(" - [售价 ");
- templateBuilder.Append(topicextcreditsinfo.Name.ToString().Trim());
- templateBuilder.Append(" <span class="bold">");
- templateBuilder.Append(toptopic.Price.ToString().Trim());
- templateBuilder.Append("</span> ");
- templateBuilder.Append(topicextcreditsinfo.Unit.ToString().Trim());
- templateBuilder.Append("] rn");
- } //end if
- } //end if
- if (toptopic.Readperm>0)
- {
- templateBuilder.Append(" - [阅读权限 <span class="bold">");
- templateBuilder.Append(toptopic.Readperm.ToString().Trim());
- templateBuilder.Append("</span>] rn");
- } //end if
- if (toptopic.Replies/ppp>0)
- {
- templateBuilder.Append(" <span class="threadpages"><script type="text/javascript">getpagenumbers("");
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("",");
- templateBuilder.Append(toptopic.Replies.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(ppp.ToString());
- templateBuilder.Append(",0,"",");
- templateBuilder.Append(toptopic.Tid.ToString().Trim());
- templateBuilder.Append(",1, "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("", aspxrewrite);</");
- templateBuilder.Append("script></span> rn");
- } //end if
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td class="author">rn");
- templateBuilder.Append(" <cite>rn");
- if (toptopic.Posterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- aspxrewriteurl = this.UserInfoAspxRewrite(toptopic.Posterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(toptopic.Poster.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append("</cite>rn");
- templateBuilder.Append(" <em>rn");
- templateBuilder.Append(Convert.ToDateTime(toptopic.Postdatetime).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</em>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="nums"><em>");
- templateBuilder.Append(toptopic.Replies.ToString().Trim());
- templateBuilder.Append("</em> / ");
- templateBuilder.Append(toptopic.Views.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="lastpost">rn");
- templateBuilder.Append(" <cite>rn");
- if (toptopic.Lastposterid==-1)
- {
- templateBuilder.Append(" 游客rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(UserInfoAspxRewrite(toptopic.Lastposterid).ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(toptopic.Lastposter.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <em><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showtopic.aspx?topicid=");
- templateBuilder.Append(toptopic.Tid.ToString().Trim());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("&page=end#lastpost">rn");
- templateBuilder.Append(Convert.ToDateTime(toptopic.Lastpost).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</a></em>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- if (toptopiclist.Count>0 && topiclist.Count>0)
- {
- templateBuilder.Append(" <tbody class="separation">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="folder"> </td>rn");
- templateBuilder.Append(" <td class="icon"> </td>rn");
- templateBuilder.Append(" <th>版块主题</th>rn");
- templateBuilder.Append(" <td class="author"> </td>rn");
- templateBuilder.Append(" <td class="nums"> </td>rn");
- templateBuilder.Append(" <td class="lastpost"> </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end if
- int topic__loop__id=0;
- foreach(TopicInfo topic in topiclist)
- {
- topic__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="folder">rn");
- if (topic.Folder!="")
- {
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("" target="_blank"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/folder_");
- templateBuilder.Append(topic.Folder.ToString().Trim());
- templateBuilder.Append(".gif" alt="topicicon" /></a>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="icon">rn");
- if (topic.Special==0)
- {
- if (topic.Iconid!=0)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("images/posticons/");
- templateBuilder.Append(topic.Iconid.ToString().Trim());
- templateBuilder.Append(".gif" alt="listicon" />rn");
- }
- else
- {
- templateBuilder.Append(" rn");
- } //end if
- } //end if
- /*特殊帖图标*/
- if (topic.Special==1)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/pollsmall.gif" alt="投票" />rn");
- } //end if
- if (topic.Special==2)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/bonus.gif" alt="悬赏"/>rn");
- } //end if
- if (topic.Special==3)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/rewardsmallend.gif" alt="悬赏已结束"/>rn");
- } //end if
- if (topic.Special==4)
- {
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/debatesmall.gif" alt="辩论"/>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <th class="subject">rn");
- if (topic.Digest>0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/digest");
- templateBuilder.Append(topic.Digest.ToString().Trim());
- templateBuilder.Append(".gif" alt="精华"/></label>rn");
- } //end if
- if (topic.Rate>0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/agree.gif" alt="正分"/></label>rn");
- } //end if
- if (topic.Rate<0)
- {
- templateBuilder.Append(" <label class="right"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/disagree.gif" alt="负分"/></label>rn");
- } //end if
- if (useradminid>0 && ismoder)
- {
- if (topic.Closed<=1)
- {
- templateBuilder.Append(" <input type="checkbox" name="topicid" value="");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" onclick="modclick(this);"/>rn");
- }
- else
- {
- templateBuilder.Append(" <input type="checkbox" disabled />rn");
- } //end if
- } //end if
- if (pageid<3 && forum.Allowthumbnail==1)
- {
- if (topic.Attachment==2)
- {
- templateBuilder.Append(" <span id="t_thumbnail_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" onmouseover="showMenu(this.id, 0, 0, 1, 0)">rn");
- if (forum.Applytopictype==1 && forum.Topictypeprefix==1)
- {
- templateBuilder.Append(" <em>rn");
- if (forum.Viewbytopictype==1 && topic.Topictypename!="")
- {
- templateBuilder.Append(" [<a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("&typeid=");
- templateBuilder.Append(topic.Typeid.ToString().Trim());
- templateBuilder.Append("" >");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("</a>]rn");
- }
- else if (topic.Topictypename!="")
- {
- templateBuilder.Append(" [");
- templateBuilder.Append(topic.Topictypename.ToString().Trim());
- templateBuilder.Append("]rn");
- } //end if
- templateBuilder.Append(" </em>rn");
- } //end if
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- if (topic.Special==3)
- {
- aspxrewriteurl = this.ShowBonusAspxRewrite(topic.Tid,0);
-
- } //end if
- if (topic.Special==4)
- {
- aspxrewriteurl = this.ShowDebateAspxRewrite(topic.Tid);
-
- } //end if
- int ishtmltitle = Topics.GetMagicValue(topic.Magic, MagicType.HtmlTitle);
-
- if (ishtmltitle==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");
- templateBuilder.Append(pageid.ToString());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("">");
- templateBuilder.Append(Topics.GetHtmlTitle(topic.Tid).ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("&forumpage=");