showdebate.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:95k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.showdebate" %>
- <%@ 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:47.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:47.
- */
- 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">rn");
- templateBuilder.Append("var templatepath = "");
- templateBuilder.Append(templatepath.ToString());
- 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 forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("var ismoder = ");
- templateBuilder.Append(ismoder.ToString());
- templateBuilder.Append(";rn");
- templateBuilder.Append("var userid = parseInt('");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("');rn");
- templateBuilder.Append("var forumallowhtml =true;rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- if (enabletag)
- {
- templateBuilder.Append("<script type="text/javascript" src="cache/tag/closedtags.txt"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="cache/tag/colorfultags.txt"></");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_showtopic.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/bbcode.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/post.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_debate.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/post_editor.js"></");
- templateBuilder.Append("script>rn");
- if (page_err==0)
- {
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- 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(ShowForumAspxRewrite(forum.Pathlist.Trim(),forumid,forumpageid).ToString().Trim());
- templateBuilder.Append("rn");
- int ishtmltitle = Topics.GetMagicValue(topic.Magic, MagicType.HtmlTitle);
-
- if (ishtmltitle==1)
- {
- templateBuilder.Append(" » <strong>");
- templateBuilder.Append(Topics.GetHtmlTitle(topic.Tid).ToString().Trim());
- templateBuilder.Append("</strong>rn");
- }
- else
- {
- templateBuilder.Append(" » <strong>");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</strong>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(Caches.GetForumListMenuDivCache(usergroupid,userid,config.Extname).ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("<div class="wrap s_clear thread" id="wrap">rn");
- templateBuilder.Append("<div class="main viewthread">rn");
- templateBuilder.Append(" <div id="forumheader" class="s_clear">rn");
- templateBuilder.Append(" <h1>rn");
- if (forum.Applytopictype==1 && forum.Topictypeprefix==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(topictypes.ToString());
- templateBuilder.Append(" rn");
- } //end if
- templateBuilder.Append("辩论主题rn");
- templateBuilder.Append(" </h1>rn");
- templateBuilder.Append(" <p class="channelinfo f_clear">开始时间 <em>rn");
- templateBuilder.Append(Convert.ToDateTime(debatepost.Postdatetime).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</em> -- 结束时间 <em>rn");
- templateBuilder.Append(Convert.ToDateTime(debateexpand.Terminaltime).ToString(" yyyy-MM-dd HH:mm"));
- templateBuilder.Append("</em></p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="postsContainer">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="辩论主题" class="topic_table"> rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="postauthor">rn");
- if (debatepost.Posterid!=-1)
- {
- templateBuilder.Append(" <!-- member menu -->rn");
- templateBuilder.Append(" <div class="popupmenu_popup userinfopanel" id="");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("" style="display:none; clip: rect(auto auto auto auto); position absolute;" initialized ctrlkey="userinfo2">rn");
- templateBuilder.Append(" <div class="popavatar">rn");
- templateBuilder.Append(" <div id="");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("_ma"></div>rn");
- templateBuilder.Append(" <ul class="profile_side">rn");
- templateBuilder.Append(" <li class="post_pm"><a href="usercppostpm.aspx?msgtoid=");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("" onclick="floatwin('open_postpm', this.href, 600, 410, '600,0');doane(event);" target="_blank">发送短消息</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="popuserinfo">rn");
- templateBuilder.Append(" <dl class="s_clear">rn");
- templateBuilder.Append(" <dt>UID</dt><dd>");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("</dd>rn");
- templateBuilder.Append(" <dt>精华</dt><dd>rn");
- if (debatepost.Digestposts>0)
- {
- templateBuilder.Append("<a href="search.aspx?posterid=");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("&type=digest">");
- templateBuilder.Append(debatepost.Digestposts.ToString().Trim());
- templateBuilder.Append("</a>rn");
- }
- else
- {
- templateBuilder.Append(debatepost.Digestposts.ToString().Trim());
- templateBuilder.Append("rn");
- } //end if
- templateBuilder.Append("</dd>rn");
- if (score[1].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[1].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits1.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[1].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[2].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[2].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits2.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[2].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[3].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[3].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits3.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[3].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[4].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[4].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits4.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[4].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[5].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[5].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits5.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[5].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[6].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[6].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits6.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[6].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[7].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[7].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits7.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[7].ToString().Trim() + "</dd>rn");
- } //end if
- if (score[8].ToString().Trim()!="")
- {
- templateBuilder.Append(" <dt>" + score[8].ToString().Trim() + "</dt><dd>");
- templateBuilder.Append(debatepost.Extcredits8.ToString().Trim());
- templateBuilder.Append(" " + scoreunit[8].ToString().Trim() + "</dd>rn");
- } //end if
- if (debatepost.Location!="")
- {
- templateBuilder.Append(" <dt>来自</dt><dd>");
- templateBuilder.Append(debatepost.Location.ToString().Trim());
- templateBuilder.Append("</dd>rn");
- } //end if
- templateBuilder.Append(" </dl>rn");
- templateBuilder.Append(" <div class="imicons s_clear">rn");
- if (debatepost.Msn!="")
- {
- templateBuilder.Append(" <a href="mailto:");
- templateBuilder.Append(debatepost.Msn.ToString().Trim());
- templateBuilder.Append("" target="_blank" class="msn">");
- templateBuilder.Append(debatepost.Msn.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (debatepost.Skype!="")
- {
- templateBuilder.Append(" <a href="skype:");
- templateBuilder.Append(debatepost.Skype.ToString().Trim());
- templateBuilder.Append("" target="_blank" class="skype">");
- templateBuilder.Append(debatepost.Skype.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (debatepost.Icq!="")
- {
- templateBuilder.Append(" <a href="http://wwp.icq.com/scripts/search.dll?to=");
- templateBuilder.Append(debatepost.Icq.ToString().Trim());
- templateBuilder.Append("" target="_blank" class="icq">");
- templateBuilder.Append(debatepost.Icq.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (debatepost.Qq!="")
- {
- templateBuilder.Append(" <a href="http://wpa.qq.com/msgrd?V=1&Uin=");
- templateBuilder.Append(debatepost.Qq.ToString().Trim());
- templateBuilder.Append("&Site=");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("&Menu=yes" target="_blank" class="qq">");
- templateBuilder.Append(debatepost.Qq.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- if (debatepost.Yahoo!="")
- {
- templateBuilder.Append(" <a href="http://edit.yahoo.com/config/send_webmesg?.target=");
- templateBuilder.Append(debatepost.Yahoo.ToString().Trim());
- templateBuilder.Append("&.src=pg" target="_blank" class="yahoo">");
- templateBuilder.Append(debatepost.Yahoo.ToString().Trim());
- templateBuilder.Append("</a>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="imicons s_clear">rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(debatepost.Posterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank" class="public_info">查看公共资料</a>rn");
- templateBuilder.Append(" <a href="search.aspx?posterid=");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("" class="all_topic">搜索帖子</a>rn");
- if (useradminid>0)
- {
- if (admininfo.Allowviewip==1)
- {
- templateBuilder.Append(" <a onclick="floatwin('open_getip', this.href, 400, 170, '600,0');doane(event);" href="getip.aspx?pid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" title="查看IP" class="ip">查看IP</a>rn");
- } //end if
- if (admininfo.Allowbanuser==1)
- {
- templateBuilder.Append(" <a href="useradmin.aspx?action=banuser&uid=");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("" onclick="floatwin('open_mods', this.href, 250, 270, '600,0');doane(event);" title="禁止用户" class="forbid_user">禁止用户</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!-- member menu -->rn");
- } //end if
- if (debatepost.Posterid!=-1)
- {
- templateBuilder.Append(" <cite>rn");
- templateBuilder.Append(" <span rn");
- if (debatepost.Onlinestate==1)
- {
- templateBuilder.Append("class="onlineyes" title="在线"rn");
- }
- else
- {
- templateBuilder.Append("class="onlineno" title="未在线"rn");
- } //end if
- templateBuilder.Append(">");
- templateBuilder.Append(debatepost.Poster.ToString().Trim());
- templateBuilder.Append("</span>rn");
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <div id="");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append("_a">rn");
- if (config.Showavatars==1)
- {
- templateBuilder.Append(" <div class="avatar">rn");
- string avatarurl = Avatars.GetAvatarUrl(debatepost.Posterid);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_medium.gif';" onmouseover="showauthor(this,");
- templateBuilder.Append(debatepost.Posterid.ToString().Trim());
- templateBuilder.Append(")"/>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (debatepost.Nickname!="")
- {
- templateBuilder.Append(" <p>昵称<em>:");
- templateBuilder.Append(debatepost.Nickname.ToString().Trim());
- templateBuilder.Append("</em></p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" ShowStars(");
- templateBuilder.Append(debatepost.Stars.ToString().Trim());
- templateBuilder.Append(", ");
- templateBuilder.Append(config.Starthreshold.ToString().Trim());
- templateBuilder.Append(");rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <ul class="otherinfo">rn");
- if (config.Userstatusby==1)
- {
- templateBuilder.Append(" <li><label>组别</label>");
- templateBuilder.Append(debatepost.Status.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- templateBuilder.Append(" <li><label>性别</label><script type="text/javascript">document.write(displayGender(");
- templateBuilder.Append(debatepost.Gender.ToString().Trim());
- templateBuilder.Append("));</");
- templateBuilder.Append("script></span></li>rn");
- if (debatepost.Bday!="")
- {
- templateBuilder.Append(" <li><label>生日</label>");
- templateBuilder.Append(debatepost.Bday.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- templateBuilder.Append(" <li><label>来自</label>");
- templateBuilder.Append(debatepost.Location.ToString().Trim());
- templateBuilder.Append("</li>rn");
- templateBuilder.Append(" <li><label>积分</label>");
- templateBuilder.Append(debatepost.Credits.ToString().Trim());
- templateBuilder.Append("</li>rn");
- templateBuilder.Append(" <li><label>帖子</label>");
- templateBuilder.Append(debatepost.Posts.ToString().Trim());
- templateBuilder.Append("</li>rn");
- templateBuilder.Append(" <li><label>注册时间</label>rn");
- if (debatepost.Joindate!="")
- {
- templateBuilder.Append(Convert.ToDateTime(debatepost.Joindate).ToString("yyyy-MM-dd"));
- } //end if
- templateBuilder.Append("</li>rn");
- templateBuilder.Append(" </ul>rn");
- if (debatepost.Medals!="")
- {
- templateBuilder.Append(" <div class="medals">");
- templateBuilder.Append(debatepost.Medals.ToString().Trim());
- templateBuilder.Append("</div>rn");
- } //end if
- }
- else
- {
- templateBuilder.Append(" <cite><span>");
- templateBuilder.Append(debatepost.Poster.ToString().Trim());
- templateBuilder.Append("</span> ");
- templateBuilder.Append(debatepost.Ip.ToString().Trim());
- templateBuilder.Append("rn");
- if (useradminid>0 && admininfo.Allowviewip==1)
- {
- templateBuilder.Append(" <a href="getip.aspx?pid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("&topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" onclick="floatwin('open_getip', this.href, 400, 170, '600,0');doane(event);" title="查看IP"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/ip.gif" alt="查看IP"/></a>rn");
- } //end if
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <p><em>未注册</em></p>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="postcontent">rn");
- templateBuilder.Append(" <div class="postinfo">rn");
- if (ismoder==1)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("">编辑</a>|rn");
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("" onclick="return confirm('确定要删除吗?');">删除</a> rn");
- if (debatepost.Posterid!=-1)
- {
- if (debatepost.Ratetimes>0)
- {
- templateBuilder.Append(" <a href="###" onclick="action_onchange('cancelrate',$('moderate'),'");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("');">撤销</a>rn");
- } //end if
- } //end if
- if (debatepost.Layer==0 && topic.Special==4)
- {
- if (isenddebate==true && userid==debatepost.Posterid)
- {
- templateBuilder.Append(" <a href="###" onClick="showMenu(this.id)" id="commentdebates" name="commentdebates">点评</a>|rn");
- } //end if
- } //end if
- }
- else
- {
- if (debatepost.Posterid!=-1 && userid==debatepost.Posterid)
- {
- if (topic.Closed==0)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("">编辑</a>|rn");
- } //end if
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("" onclick="return confirm('确定要删除吗?');">删除</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="postmessage defaultpost">rn");
- templateBuilder.Append(" <h2>");
- templateBuilder.Append(debatepost.Title.ToString().Trim());
- templateBuilder.Append(" </h2>rn");
- templateBuilder.Append(" <div class="t_msgfont">rn");
- if (debatepost.Id==1)
- {
- templateBuilder.Append(" <div id="firstpost">rn");
- templateBuilder.Append(" <div id="topictag"></div>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(debatepost.Message.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <div class="debate_show">rn");
- templateBuilder.Append(" <p>正方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Positiveopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <p>反方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Negativeopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- if (debatepost.Id==1)
- {
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- if (enabletag)
- {
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function forumhottag_callback(data)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" tags = data;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="cache/hottags_forum_cache_jsonp.txt"></");
- templateBuilder.Append("script>rn");
- int hastag = Topics.GetMagicValue(topic.Magic, MagicType.TopicTag);
-
- if (hastag==1)
- {
- templateBuilder.Append(" <script type="text/javascript">getTopicTags(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(");</");
- templateBuilder.Append("script>rn");
- }
- else
- {
- templateBuilder.Append(" <script type="text/javascript">parsetag();</");
- templateBuilder.Append("script>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div> rn");
- templateBuilder.Append(" <div class="useraction s_clear">rn");
- templateBuilder.Append(" <a href="favorites.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="ajax_favorite">收藏</a>rn");
- templateBuilder.Append(" <a href="javascript:void(0);" id="share">分享</a>rn");
- if (ismoder==1)
- {
- if (debatepost.Posterid!=-1)
- {
- templateBuilder.Append(" <a href="###" onclick="action_onchange('rate',$('moderate'),'");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("');">评分</a>rn");
- } //end if
- }
- else
- {
- if (usergroupinfo.Raterange!="" && debatepost.Posterid!=-1)
- {
- templateBuilder.Append(" <a href="###" onclick="action_onchange('rate',$('moderate'),'");
- templateBuilder.Append(debatepost.Pid.ToString().Trim());
- templateBuilder.Append("');">评分</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="postauthor"> </td>rn");
- templateBuilder.Append(" <td class="postcontent postactions">rn");
- if (userid!=-1)
- {
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" show_report_button(");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append(");rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("|rn");
- } //end if
- templateBuilder.Append(" <a href="#" onclick="window.scrollTo(0,0)">TOP</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr class="threadad">rn");
- templateBuilder.Append(" <td class="postauthor"></td>rn");
- templateBuilder.Append(" <td class="adcontent">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" <div id="commentdebates_menu" style="display: none; width:270px;" class="popupmenu_popup">rn");
- templateBuilder.Append(" <form id="commentform" >rn");
- templateBuilder.Append(" <table border="0" cellpadding="0" cellspacing="0">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><textarea name="commentdebatesmsg" cols="43" rows="6" id="commentdebatesmsg"></textarea></td>rn");
- templateBuilder.Append(" </tr> rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><input type="button" value="提交" onclick="commentdebates(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",'firstpost')"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div id="ajaxdebateposts">rn");
- templateBuilder.Append(" <h1>rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- templateBuilder.Append(" 辩论详情 <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" style="font-size:12px;text-decoration:underline;">普通模式</a>rn");
- templateBuilder.Append(" </h1>rn");
- templateBuilder.Append(" <div class="debatebox s_clear">rn");
- templateBuilder.Append(" <div class="specialtitle">rn");
- templateBuilder.Append(" <div class="squaretitle">rn");
- templateBuilder.Append(" <p>正方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Positiveopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="sidetitle right">rn");
- templateBuilder.Append(" <p>反方观点</p>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(debateexpand.Negativeopinion.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="balance">rn");
- templateBuilder.Append(" <span class="scalevalue1"><b id="positivediggs">");
- templateBuilder.Append(debateexpand.Positivediggs.ToString().Trim());
- templateBuilder.Append("</b></span>rn");
- templateBuilder.Append(" <span class="scalevalue"><b id="negativediggs">");
- templateBuilder.Append(debateexpand.Negativediggs.ToString().Trim());
- templateBuilder.Append("</b></span>rn");
- templateBuilder.Append(" <div id="positivepercent" class="squareboll" style="width:");
- templateBuilder.Append(positivepercent.ToString());
- templateBuilder.Append("%;"></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="talkinner f_clear">rn");
- templateBuilder.Append(" <div class="squarebox">rn");
- if (!isenddebate)
- {
- templateBuilder.Append(" <div class="buttoncontrol"><button onclick="$('positivepostform').style.display='';this.style.display='none';">加入正方</button></div>rn");
- templateBuilder.Append(" <div id="positivepostform" style="display: none;">rn");
- templateBuilder.Append(" <form method="post" name="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" action="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return fastvalidate(this);" >rn");
- templateBuilder.Append(" <input type="hidden" id="title" name="title" size="84" tabindex="1" value="" />rn");
- templateBuilder.Append(" <input type="hidden" id="postid" name="postid" value="-1" />rn");
- templateBuilder.Append(" <input type="hidden" name="debateopinion" value="1" />rn");
- templateBuilder.Append(" <input type="hidden" name="parseurloff" value="");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="smileyoff" value="");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="bbcodeoff" value="");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="usesig" value="0" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="正方观点">rn");
- templateBuilder.Append(" <tr><td>我的意见:</td></tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <textarea name="message" cols="50" rows="4" class="autosave txtarea" id="message" tabindex="2" onkeydown="debatequickreply(event, this.form);" onfocus="textareachange(this.form.id)";></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (isseccode)
- {
- templateBuilder.Append("<div id="debate_vcode" name="debate_vcode"><span 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("</span></div>rn");
- } //end if
- templateBuilder.Append(" <button type="submit" name="replysubmit">我要发表</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="buttoncontrol"></div>rn");
- } //end if
- if (positivepostlist.Count>0)
- {
- templateBuilder.Append(" <div id="positive_pagenumbers_top" class="debatepages">");
- templateBuilder.Append(positivepagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <div id="positivepage_owner">rn");
- int positivepost__loop__id=0;
- foreach(ShowtopicPagePostInfo positivepost in positivepostlist)
- {
- positivepost__loop__id++;
- templateBuilder.Append(" <div class="square">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="正方观点">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="supportbox">rn");
- templateBuilder.Append(" <p>支持度rn");
- templateBuilder.Append(" <span class="talknum" id="diggs");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(positivepost.Diggs.ToString().Trim());
- templateBuilder.Append("</span>rn");
- if (!isenddebate && positivepost.Posterid!=userid)
- {
- if (!positivepost.Digged)
- {
- templateBuilder.Append(" <span class="cliktalk" id="cliktalk");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append(""><a href="###" onclick="digg(");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",1)">支持</a></span>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="comment">rn");
- templateBuilder.Append(" <h3>发表者:<a id="poster");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("" href="");
- templateBuilder.Append(UserInfoAspxRewrite(positivepost.Posterid).ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(positivepost.Poster.ToString().Trim());
- templateBuilder.Append("</a> 时间:rn");
- templateBuilder.Append(Convert.ToDateTime(positivepost.Postdatetime).ToString("yyyy-MM-dd HH:mm"));
- templateBuilder.Append(" <span>rn");
- if (ismoder==1)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("&debate=1">编辑</a>|rn");
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("&opinion=1" onclick="return confirm('确定要删除吗?');">删除</a>rn");
- }
- else
- {
- if (positivepost.Posterid!=-1 && userid==positivepost.Posterid)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("&debate=1">编辑</a>|rn");
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("&opinion=1" onclick="return confirm('确定要删除吗?');">删除</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="debatemessage" id="message");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(positivepost.Message.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- if (!isenddebate && positivepost.Posterid!=userid)
- {
- templateBuilder.Append(" <input name="hiddendpid");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("" type="hidden" id="hiddendpid");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("" value="");
- templateBuilder.Append(positivepost.Ubbmessage.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <p class="othertalk"><a id="reply_btn_");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append("" href="###" onclick="showDebatReplyBox(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(", ");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append(", 2, ");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(Processtime.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append(");this.style.display='none';">我不同意</a><div id="reply_box_owner_");
- templateBuilder.Append(positivepost.Pid.ToString().Trim());
- templateBuilder.Append(""></div>rn");
- templateBuilder.Append(" </p>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="positive_pagenumbers_buttom" class="debatepages">");
- templateBuilder.Append(positivepagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- if (!isenddebate)
- {
- templateBuilder.Append(" <div class="buttoncontrol"><button onclick="$('positivepostform2').style.display='';this.style.display='none';">加入正方</button></div>rn");
- templateBuilder.Append(" <div id="positivepostform2" style="display:none;">rn");
- templateBuilder.Append(" <form method="post" name="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="Form1" action="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return fastvalidate(this);" >rn");
- templateBuilder.Append(" <input type="hidden" id="Hidden1" name="title" size="84" tabindex="1" value="" />rn");
- templateBuilder.Append(" <input type="hidden" id="Hidden2" name="postid" value="-1" />rn");
- templateBuilder.Append(" <input type="hidden" name="debateopinion" value="1" />rn");
- templateBuilder.Append(" <input type="hidden" name="parseurloff" value="");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="smileyoff" value="");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="bbcodeoff" value="");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="usesig" value="0" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="正方观点">rn");
- templateBuilder.Append(" <tr><td>我的意见:</td></tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <textarea name="message" cols="50" rows="4" class="autosave txtarea" id="Textarea1" tabindex="2" onkeydown="debatequickreply(event, this.form);" onfocus="textareachange(this.form.id)";></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (isseccode)
- {
- templateBuilder.Append("<div id="Div1" name="debate_vcode"><span 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("</span></div>rn");
- } //end if
- templateBuilder.Append(" <button type="submit" name="replysubmit">我要发表</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="oppositionbox right">rn");
- if (!isenddebate)
- {
- templateBuilder.Append(" <div class="buttoncontrol"><button onclick="$('negativepostform').style.display='';this.style.display='none';">加入反方</button></div>rn");
- templateBuilder.Append(" <div id="negativepostform" style="display: none;" >rn");
- templateBuilder.Append(" <form method="post" name="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" action="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return fastvalidate(this);" >rn");
- templateBuilder.Append(" <input type="hidden" id="title" name="title" size="84" tabindex="1" value=""/>rn");
- templateBuilder.Append(" <input type="hidden" id="postid" name="postid" value="-1" />rn");
- templateBuilder.Append(" <input type="hidden" name="debateopinion" value="2" />rn");
- templateBuilder.Append(" <input type="hidden" name="parseurloff" value="");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="smileyoff" value="");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="bbcodeoff" value="");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="usesig" value="0" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="反方观点">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>我的意见:</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <textarea name="message" cols="50" rows="4" class="autosave txtarea" id="message" tabindex="2" onkeydown="debatequickreply(event, this.form);" onfocus="textareachange(this.form.id);"></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (isseccode)
- {
- templateBuilder.Append("<div id="debate_vcode" name="debate_vcode"><span 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("</span></div>rn");
- } //end if
- templateBuilder.Append("<button type="submit" name="replysubmit"/>我要发表</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="buttoncontrol"></div>rn");
- } //end if
- if (negativepostlist.Count>0)
- {
- templateBuilder.Append(" <div id="negative_pagenumbers_top" class="debatepages">");
- templateBuilder.Append(negativepagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <div id="negativepage_owner">rn");
- int negativepost__loop__id=0;
- foreach(ShowtopicPagePostInfo negativepost in negativepostlist)
- {
- negativepost__loop__id++;
- templateBuilder.Append(" <div class="square s_clear">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="反方观点">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="supportbox">rn");
- templateBuilder.Append(" <p>支持度rn");
- templateBuilder.Append(" <span class="talknum" id="diggs");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(negativepost.Diggs.ToString().Trim());
- templateBuilder.Append("</span>rn");
- if (!isenddebate && negativepost.Posterid!=userid)
- {
- if (!negativepost.Digged)
- {
- templateBuilder.Append(" <span class="cliktalk" id="cliktalk");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append(""><a href="###" onclick="digg(");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",2)">支持</a></span>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="comment">rn");
- templateBuilder.Append(" <h3></span>发表者:<a id="poster");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("" href="");
- templateBuilder.Append(UserInfoAspxRewrite(negativepost.Posterid).ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(negativepost.Poster.ToString().Trim());
- templateBuilder.Append("</a> 时间:rn");
- templateBuilder.Append(Convert.ToDateTime(negativepost.Postdatetime).ToString("yyyy-MM-dd HH:mm"));
- templateBuilder.Append(" <span>rn");
- if (ismoder==1)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("&debate=1">编辑</a>|rn");
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("&opinion=2" onclick="return confirm('确定要删除吗?');">删除</a>rn");
- }
- else
- {
- if (negativepost.Posterid!=-1 && userid==negativepost.Posterid)
- {
- templateBuilder.Append(" <a href="editpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("&debate=1">编辑</a>|rn");
- templateBuilder.Append(" <a href="delpost.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("&postid=");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("&opinion=2" onclick="return confirm('确定要删除吗?');">删除</a>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="debatemessage" id="message");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(negativepost.Message.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- if (!isenddebate && negativepost.Posterid!=userid)
- {
- templateBuilder.Append(" <input name="hiddendpid");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("" type="hidden" id="hiddendpid");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("" value="");
- templateBuilder.Append(negativepost.Ubbmessage.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <p class="othertalk"><a href="###" id="reply_btn_");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append("" onclick="showDebatReplyBox(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(", ");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append(", 1, ");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(Processtime.ToString());
- templateBuilder.Append(", ");
- templateBuilder.Append(olid.ToString());
- templateBuilder.Append(");this.style.display='none';">我不同意</a><div id="reply_box_owner_");
- templateBuilder.Append(negativepost.Pid.ToString().Trim());
- templateBuilder.Append(""></div>rn");
- templateBuilder.Append(" </p>rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="negative_pagenumbers_buttom" class="debatepages">");
- templateBuilder.Append(negativepagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- if (!isenddebate)
- {
- templateBuilder.Append(" <div class="buttoncontrol">rn");
- templateBuilder.Append(" <button onclick="$('negativepostform2').style.display='';this.style.display='none';">加入反方</button></div>rn");
- templateBuilder.Append(" <div id="negativepostform2" style="display:none;">rn");
- templateBuilder.Append(" <form method="post" name="postform_");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" id="Form2" action="postreply.aspx?topicid=");
- templateBuilder.Append(topicid.ToString());
- templateBuilder.Append("" enctype="multipart/form-data" onsubmit="return fastvalidate(this);" >rn");
- templateBuilder.Append(" <input type="hidden" id="Hidden3" name="title" size="84" tabindex="1" value=""/>rn");
- templateBuilder.Append(" <input type="hidden" id="Hidden4" name="postid" value="-1" />rn");
- templateBuilder.Append(" <input type="hidden" name="debateopinion" value="2" />rn");
- templateBuilder.Append(" <input type="hidden" name="parseurloff" value="");
- templateBuilder.Append(parseurloff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="smileyoff" value="");
- templateBuilder.Append(smileyoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="bbcodeoff" value="");
- templateBuilder.Append(bbcodeoff.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="usesig" value="0" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" summary="反方观点">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>我的意见:</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <textarea name="message" cols="50" rows="4" class="autosave txtarea" id="Textarea2" tabindex="2" onkeydown="debatequickreply(event, this.form);" onfocus="textareachange(this.form.id);"></textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (isseccode)
- {
- templateBuilder.Append("<div id="Div2" name="debate_vcode"><span 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("</span></div>rn");
- } //end if
- templateBuilder.Append("<button type="submit" name="replysubmit"/>我要发表</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- templateBuilder.Append("<div class="wrap s_clear" id="wrap">rn");
- templateBuilder.Append("<div class="main">rn");
- templateBuilder.Append(" <div class="msgbox">rn");
- templateBuilder.Append(" <h1>出现了");
- templateBuilder.Append(page_err.ToString());
- templateBuilder.Append("个错误</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner error_msg">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <p class="errorback">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" if(");
- templateBuilder.Append(msgbox_showbacklink.ToString());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" document.write("<a href=\"");
- templateBuilder.Append(msgbox_backlink.ToString());
- templateBuilder.Append("\">返回上一步</a> |   ");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <a href="forumindex.aspx">论坛首页</a>rn");
- if (usergroupid==7)
- {
- templateBuilder.Append(" | <a href="login.aspx">登录</a> | <a href="register.aspx">注册</a>rn");
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- if (config.Forumjump==1)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(navhomemenu.ToString());
- templateBuilder.Append("rn");
- } //end if
- if (floatad!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(floatad.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</");
- templateBuilder.Append("script>rn");
- }
- else if (doublead!="")
- {
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_floatadv.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(doublead.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <script type="text/javascript">theFloaters.play();</");
- templateBuilder.Append("script>rn");
- } //end if
- if (infloat!=1)
- {
- if (pagename=="website.aspx")
- {
- templateBuilder.Append(" <div id="websitebottomad"></div>rn");
- }
- else if (footerad!="")
- {
- templateBuilder.Append(" <div id="ad_footerbanner">");
- templateBuilder.Append(footerad.ToString());
- templateBuilder.Append("</div> rn");
- } //end if
- if (headerad!="")
- {
- templateBuilder.Append("<div id="ad_headerbanner_nodisplay" style="display:none">");
- templateBuilder.Append(headerad.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("$('ad_headerbanner').innerHTML = $('ad_headerbanner_nodisplay').innerHTML;rn");
- templateBuilder.Append("$('ad_headerbanner_nodisplay').parentNode.removeChild($('ad_headerbanner_nodisplay'));rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append("<div id="footer">rn");
- templateBuilder.Append(" <div class="wrap">rn");
- templateBuilder.Append(" <div id="footlinks">rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(config.Weburl.ToString().Trim());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(config.Webtitle.ToString().Trim());
- templateBuilder.Append("</a> - ");
- templateBuilder.Append(config.Linktext.ToString().Trim());
- templateBuilder.Append(" - <a target="_blank" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("stats.aspx">统计</a> - rn");
- if (config.Sitemapstatus==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("tools/sitemap.aspx" target="_blank" title="百度论坛收录协议">Sitemap</a>rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Statcode.ToString().Trim());
- templateBuilder.Append(config.Icp.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <div>rn");
- templateBuilder.Append(" <a href="http://www.comsenz.com/" target="_blank">Comsenz Technology Ltd</a>rn");
- templateBuilder.Append(" - <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("archiver/index.aspx" target="_blank">简洁版本</a>rn");
- if (config.Stylejump==1)
- {
- if (userid!=-1 || config.Guestcachepagetimeout<=0)
- {
- templateBuilder.Append(" - <span id="styleswitcher" class="drop" onmouseover="showMenu(this.id)" onclick="window.location.href='");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("showtemplate.aspx'">界面风格</span>rn");
- templateBuilder.Append(" <ul id="styleswitcher_menu" class="popupmenu_popup s_clear" style="display: none;">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(templatelistboxoptions.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- } //end if
- } //end if
- templateBuilder.Append(" - <span class="scrolltop" onclick="window.scrollTo(0,0);">TOP</span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <a title="Powered by Discuz!NT" target="_blank" href="http://nt.discuz.net"><img border="0" alt="Discuz!NT" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/discuznt_logo.gif"/></a>rn");
- templateBuilder.Append(" <p id="copyright">rn");
- templateBuilder.Append(" Powered by <strong><a href="http://nt.discuz.net" target="_blank" title="Discuz!NT 3.1.0 (.NET Framework 2.0/3.x)">Discuz!NT</a></strong> <em class="f_bold">3.1.0</em>rn");
- if (config.Licensed==1)
- {
- templateBuilder.Append(" (<a href="" onclick="this.href='http://nt.discuz.net/certificate/?host='+location.href.substring(0, location.href.lastIndexOf('/'))" target="_blank">Licensed</a>)rn");
- } //end if
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Forumcopyright.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p id="debuginfo" class="grayfont">rn");
- if (config.Debug!=0)
- {
- templateBuilder.Append(" Processed in ");
- templateBuilder.Append(this.Processtime.ToString().Trim());
- templateBuilder.Append(" second(s)rn");
- if (isguestcachepage==1)
- {
- templateBuilder.Append(" (Cached).rn");
- }
- else if (querycount>1)
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" queries.rn");
- }
- else
- {
- templateBuilder.Append(" , ");
- templateBuilder.Append(querycount.ToString());
- templateBuilder.Append(" query.rn");
- } //end if
- } //end if
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<ul id="quicksearch_menu" class="popupmenu_popup" style="display: none;">rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='0';$('quicksearch').innerHTML='帖子标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">帖子标题</li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='2';$('quicksearch').innerHTML='空间日志';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">空间日志</li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li onclick="$('keywordtype').value='3';$('quicksearch').innerHTML='相册标题';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">相册标题</li>rn");
- } //end if
- templateBuilder.Append(" <li onclick="$('keywordtype').value='8';$('quicksearch').innerHTML='作者';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">作者</li>rn");
- templateBuilder.Append(" <li onclick="$('keywordtype').value='9';$('quicksearch').innerHTML='版块';$('quicksearch_menu').style.display='none';" onmouseover="MouseCursor(this);">版块</li>rn");
- templateBuilder.Append("</ul>rn");
- templateBuilder.Append("<ul class="popupmenu_popup" id="viewpro_menu" style="display: none">rn");
- templateBuilder.Append(" <li style="text-align:center;"><img src="");
- templateBuilder.Append(useravatar.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';" /></li>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(userid);
-
- templateBuilder.Append(" <li class="popuser"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">我的资料</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li class="poplink"><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- templateBuilder.Append("</ul>rn");
- int prentid__loop__id=0;
- foreach(string prentid in mainnavigationhassub)
- {
- prentid__loop__id++;
- templateBuilder.Append("<ul class="popupmenu_popup headermenu_popup" id="menu_");
- templateBuilder.Append(prentid.ToString());
- templateBuilder.Append("_menu" style="display: none">rn");
- int subnav__loop__id=0;
- foreach(DataRow subnav in subnavigation.Rows)
- {
- subnav__loop__id++;
- bool isoutput = false;
-
- if (subnav["parentid"].ToString().Trim()==prentid)
- {
- if (subnav["level"].ToString().Trim()=="0")
- {
- isoutput = true;
-
- }
- else
- {
- if (subnav["level"].ToString().Trim()=="1" && userid!=-1)
- {
- isoutput = true;
-
- }
- else
- {
- bool leveluseradmindi = true;
-
- leveluseradmindi = (useradminid==3 || useradminid==1 || useradminid==2);
-
- if (subnav["level"].ToString().Trim()=="2" && leveluseradmindi)
- {
- isoutput = true;
-
- } //end if
- if (subnav["level"].ToString().Trim()=="3" && useradminid==1)
- {
- isoutput = true;
-
- } //end if
- } //end if
- } //end if
- } //end if
- if (isoutput)
- {
- if (subnav["id"].ToString().Trim()=="11" || subnav["id"].ToString().Trim()=="12")
- {
- if (config.Statstatus==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="18")
- {
- if (config.Oltimespan>0)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="24")
- {
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="25")
- {
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- if (subnav["id"].ToString().Trim()=="26")
- {
- if (config.Enablemall>=1)
- {
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- continue;
- }
- else
- {
- continue;
- } //end if
- } //end if
- templateBuilder.Append(" " + subnav["nav"].ToString().Trim() + "rn");
- } //end if
- } //end loop
- templateBuilder.Append("</ul>rn");
- } //end loop
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>