topicadmin.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:72k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.topicadmin" %>
- <%@ 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:51.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:51.
- */
- 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
- if (!issubmit)
- {
- if (page_err==0)
- {
- templateBuilder.Append(" <div class="float" id="floatlayout_mods">rn");
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <!--操作标题开始-->rn");
- templateBuilder.Append(" <em id="return_mods">");
- templateBuilder.Append(operationtitle.ToString());
- templateBuilder.Append("</em>rn");
- templateBuilder.Append(" <!--操作标题结束-->rn");
- templateBuilder.Append(" <span>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="floatwin('close_mods')" title="关闭">关闭</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="gateform">rn");
- if (infloat==1)
- {
- templateBuilder.Append(" <form id="moderate_admin" name="moderate_admin" method="post" onsubmit="ajaxpost('moderate_admin', 'return_mods', 'return_mods', 'onerror');return false;" action="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("topicadmin.aspx?action=moderate&operation=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("&infloat=1">rn");
- }
- else
- {
- templateBuilder.Append(" <form id="moderate_admin" name="moderate_admin" method="post" action="topicadmin.aspx?action=moderate&operation=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("">rn");
- } //end if
- templateBuilder.Append(" <input type="hidden" name="topicid" value="");
- templateBuilder.Append(topiclist.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" name="forumid" value="");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" />rn");
- if (config.Aspxrewrite==1)
- {
- templateBuilder.Append(" <input type="hidden" id="referer" name="referer" value="showforum-");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append(config.Extname.ToString().Trim());
- templateBuilder.Append("" />rn");
- }
- else
- {
- templateBuilder.Append(" <input type="hidden" id="referer" name="referer" value="showforum.aspx?forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">rn");
- } //end if
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var re = getQueryString("referer");rn");
- templateBuilder.Append(" if (re != "")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $("referer").value = unescape(re);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script> rn");
- templateBuilder.Append(" <!--操作面板开始-->rn");
- templateBuilder.Append(" <div class="postbox">rn");
- if (operation=="highlight")
- {
- templateBuilder.Append(" <!--高亮开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow detailopt">rn");
- templateBuilder.Append(" <span class="hasdropdownbtn">rn");
- templateBuilder.Append(" <input type="hidden" id="highlight_color" name="highlight_color" value="" />rn");
- templateBuilder.Append(" <span style="display:none">rn");
- templateBuilder.Append(" <input type="checkbox" id="highlight_style_b" name="highlight_style_b" value="B" />rn");
- templateBuilder.Append(" <input type="checkbox" id="highlight_style_i" name="highlight_style_i" value="I" />rn");
- templateBuilder.Append(" <input type="checkbox" id="highlight_style_u" name="highlight_style_u" value="U" />rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <input id="color_bg" type="text" class="txt" readonly="readonly" />rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="display('color_menu')" class="dropdownbtn">^</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" <div id="color_menu" class="color_menu" style="display: none">rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" title="取消高亮" style="background:#000;text-indent:0;color:#F00;text-decoration:none;">X</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#EE1B2E;color:#EE1B2E;">#EE1B2E</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#EE5023;color:#EE5023;">#EE5023</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#996600;color:#996600;">#996600</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#3C9D40;color:#3C9D40;">#3C9D40</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#2897C5;color:#2897C5;">#2897C5</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#2B65B7;color:#2B65B7;">#2B65B7</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#8F2A90;color:#8F2A90;">#8F2A90</a>rn");
- templateBuilder.Append(" <a href="javascript:;" onclick="switchhl(1,this,0)" style="background:#EC1282;color:#EC1282;">#EC1282</a>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <a title="粗体" style="text-indent: 0pt; text-decoration: none; font-weight: 700;" class="detailopt_bold" onclick="switchhl(2, this, 'b')" id="highlight_op_1" href="javascript:;">B</a>rn");
- templateBuilder.Append(" <a title="斜体" style="text-indent: 0pt; text-decoration: none; font-style: italic;" class="detailopt_italic" onclick="switchhl(2, this, 'i')" id="highlight_op_2" href="javascript:;">I</a>rn");
- templateBuilder.Append(" <a title="下划线" style="text-indent: 0pt; text-decoration: underline;" class="detailopt_underline" onclick="switchhl(2, this, 'u')" id="highlight_op_3" href="javascript:;">U</a>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function switchhl(op, obj, v)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (op == 1)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('highlight_color').value = obj.style.backgroundColor;rn");
- templateBuilder.Append(" $('color_bg').style.backgroundColor = obj.style.backgroundColor;rn");
- templateBuilder.Append(" $('color_menu').style.display = 'none';rn");
- templateBuilder.Append(" } else if (op == 2)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if ($('highlight_style_' + v).checked)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('highlight_style_' + v).checked = false;rn");
- templateBuilder.Append(" obj.className = obj.className.replace(/ current/, '');rn");
- templateBuilder.Append(" } elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('highlight_style_' + v).checked = true;rn");
- templateBuilder.Append(" obj.className += ' current';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--高亮结束-->rn");
- } //end if
- if (operation=="displayorder")
- {
- templateBuilder.Append(" <!--置顶开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <ul class="inlinelist">rn");
- if (displayorder>0)
- {
- templateBuilder.Append("<li class="wide"><label><input type="radio" value="0" name="level" class="radio"/> 解除置顶</label></li>rn");
- } //end if
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="1" name="level" class="radio"rn");
- if (displayorder<=1)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 本版置顶</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="2" name="level" class="radio"rn");
- if (displayorder==2)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 分类置顶</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="3" name="level" class="radio"rn");
- if (displayorder==3)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 全局置顶</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--置顶结束-->rn");
- } //end if
- if (operation=="digest")
- {
- templateBuilder.Append(" <!--精华开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <ul class="inlinelist">rn");
- if (digest>0)
- {
- templateBuilder.Append("<li class="wide"><label><input type="radio" value="0" name="level" class="radio"/> 解除精华</label></li>rn");
- } //end if
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="1" name="level" class="radio"rn");
- if (digest<=1)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 一级精华</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="2" name="level" class="radio"rn");
- if (digest==2)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 二级精华</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="3" name="level" class="radio"rn");
- if (digest==3)
- {
- templateBuilder.Append(" checked="checked"rn");
- } //end if
- templateBuilder.Append("/> 三级精华</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--精华结束-->rn");
- } //end if
- if (operation=="move")
- {
- templateBuilder.Append(" <!--移动开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <p class="tah_body tah_fixiesel">rn");
- templateBuilder.Append(" <label for="moveto">目标版块:</label> <select onchange="if(this.value) $('moveext').style.display=''; else $('moveext').style.display='none';" name="moveto" id="moveto">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumlist.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <p class="tah_body"></p>rn");
- templateBuilder.Append(" <ul style="margin: 5px 0pt;display: none;" id="moveext" class="inlinelist">rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" checked="checked" value="normal" name="type" class="radio"/> 移动主题</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="redirect" name="type" class="radio"/> 保留转向</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--移动结束-->rn");
- } //end if
- if (operation=="close")
- {
- templateBuilder.Append(" <!--关闭开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <ul style="margin: 5px 0pt;" class="inlinelist">rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" checked="checked" value="0" name="close" class="radio"/> 打开主题</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input type="radio" value="1" name="close" class="radio"/> 关闭主题</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--关闭结束-->rn");
- } //end if
- if (operation=="banpost")
- {
- templateBuilder.Append(" <!--屏蔽开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <ul style="margin: 5px 0pt;" class="inlinelist">rn");
- templateBuilder.Append(" <input type="hidden" size="10" name="postid" id="postid" value="");
- templateBuilder.Append(postidlist.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <li class="wide"><label><input id="banpost1" type="radio" value="0" name="banpost" class="radio" checked="checked"/> 取消屏蔽</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input id="banpost2" type="radio" value="-2" name="banpost" class="radio"/> 屏蔽帖子</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var status = getQueryString("banstatus");rn");
- templateBuilder.Append(" if (status == "0") {rn");
- templateBuilder.Append(" $("banpost1").checked = true;rn");
- templateBuilder.Append(" $("banpost2").checked = false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else {rn");
- templateBuilder.Append(" $("banpost2").checked = true;rn");
- templateBuilder.Append(" $("banpost1").checked = false;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--屏蔽结束-->rn");
- } //end if
- if (operation=="bump")
- {
- templateBuilder.Append(" <!--提升开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <ul style="margin: 5px 0pt;" class="inlinelist">rn");
- templateBuilder.Append(" <li class="wide"><label><input id="bumptype1" type="radio" checked="checked" value="1" name="bumptype" class="radio"/>提升</label></li>rn");
- templateBuilder.Append(" <li class="wide"><label><input id="bumptype2" type="radio" value="-1" name="bumptype" class="radio"/>下沉</label></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--提升结束-->rn");
- } //end if
- if (operation=="copy")
- {
- templateBuilder.Append(" <!--拷贝开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <p class="tah_body tah_fixiesel">rn");
- templateBuilder.Append(" <label for="copyto">目标论坛/分类: </label><br />rn");
- templateBuilder.Append(" <select name="copyto">");
- templateBuilder.Append(forumlist.ToString());
- templateBuilder.Append("</select>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--拷贝结束-->rn");
- } //end if
- if (operation=="split")
- {
- templateBuilder.Append(" <!--分割开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <p class="tah_body tah_fixiesel">rn");
- templateBuilder.Append(" <label for="subject">新主题的标题:</label> <br />rn");
- templateBuilder.Append(" <input type="text" name="subject" size="32" value="" class="txt"/>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p>选择内容: rn");
- templateBuilder.Append(" <div style="width:218px;height:60px;overflow:hidden;overflow-y:auto;">rn");
- int post__loop__id=0;
- foreach(DataRow post in postlist.Rows)
- {
- post__loop__id++;
- templateBuilder.Append("<input name="postid" type="checkbox" value="" + post["pid"].ToString().Trim() + "" /><strong>" + post["poster"].ToString().Trim() + "</strong><br />rn");
- templateBuilder.Append(" " + post["message"].ToString().Trim() + "<br />rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <!--分割结束-->rn");
- } //end if
- if (operation=="merge")
- {
- templateBuilder.Append(" <!--合并开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" style="width:100%">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><label for="othertid">合并 →</label></td>rn");
- templateBuilder.Append(" <td>填写目标主题 ID (tid)</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td></td>rn");
- templateBuilder.Append(" <td><input size="10" name="othertid" id="othertid" class="txt" title="rn");
- if (config.Aspxrewrite==1)
- {
- templateBuilder.Append("即将与这个主题合并的主题id,如showtopic-22.aspx,tid 为 22rn");
- }
- else
- {
- templateBuilder.Append(">即将与这个主题合并的主题id,<br />如showtopic.aspx?topicid=22,tid 为 22rn");
- } //end if
- templateBuilder.Append("" /></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table> rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--合并结束-->rn");
- } //end if
- if (operation=="type")
- {
- templateBuilder.Append(" <!--分类开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- templateBuilder.Append(" <p><label for="typeid">分类:</label> <select id="typeid" name="typeid">");
- templateBuilder.Append(topictypeselectoptions.ToString());
- templateBuilder.Append("</select></p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--分类结束-->rn");
- } //end if
- if (operation=="rate")
- {
- templateBuilder.Append(" <!--评分开始-->rn");
- templateBuilder.Append(" <input type="hidden" name="postid" id="postid" value="");
- templateBuilder.Append(postidlist.ToString());
- templateBuilder.Append("" class="txt" />rn");
- templateBuilder.Append(" <div class="rateopt">rn");
- int score__loop__id=0;
- foreach(DataRow score in scorelist.Rows)
- {
- score__loop__id++;
- templateBuilder.Append(" <div class="hasdropdownbtn ratelist s_clear">rn");
- templateBuilder.Append(" <label title="今日还能评分 " + score["MaxInDay"].ToString().Trim() + " " for="score" + score__loop__id.ToString() + ""> " + score["ScoreName"].ToString().Trim() + "</label>rn");
- templateBuilder.Append(" <input type="text" class="txt" value="0" name="score" id="score" + score__loop__id.ToString() + ""/>rn");
- templateBuilder.Append(" <input type="hidden" value="" + score["ScoreCode"].ToString().Trim() + "" name="extcredits" />rn");
- templateBuilder.Append(" <a onclick="InFloat='floatlayout_rate';showselect(this, 'score" + score__loop__id.ToString() + "', 'scoreoption" + score__loop__id.ToString() + "')" class="dropdownbtn" href="javascript:;">^</a>rn");
- templateBuilder.Append(" <ul style="display: none;" id="scoreoption" + score__loop__id.ToString() + "">" + score["options"].ToString().Trim() + "</ul>rn");
- templateBuilder.Append(" </div>rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--评分结束-->rn");
- } //end if
- if (operation=="cancelrate")
- {
- templateBuilder.Append(" <!--取消评分开始-->rn");
- templateBuilder.Append(" <input type="hidden" name="postid" id="postid" value="");
- templateBuilder.Append(postidlist.ToString());
- templateBuilder.Append("" class="txt" />rn");
- templateBuilder.Append(" <div class="floatwrap">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="list">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td style="width:30px;"> </td>rn");
- templateBuilder.Append(" <td style="width:100px;">用户名</td>rn");
- templateBuilder.Append(" <td style="width:150px;">时间</td>rn");
- templateBuilder.Append(" <td style="width:80px;">积分</td>rn");
- templateBuilder.Append(" <td style="text-align:center;">理由</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <tbody>rn");
- int rateloginfo__loop__id=0;
- foreach(DataRow rateloginfo in ratelog.Rows)
- {
- rateloginfo__loop__id++;
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td><input name="ratelogid" type="checkbox" value="" + rateloginfo["id"].ToString().Trim() + "" /></td>rn");
- templateBuilder.Append(" <td><a href="rn");
- if (config.Aspxrewrite!=1)
- {
- templateBuilder.Append("userinfo.aspx?userid=" + rateloginfo["uid"].ToString().Trim() + "rn");
- }
- else
- {
- templateBuilder.Append("userinfo-" + rateloginfo["uid"].ToString().Trim() + ".aspxrn");
- } //end if
- templateBuilder.Append("">" + rateloginfo["username"].ToString().Trim() + "</a></td>rn");
- templateBuilder.Append(" <td><span class="time">" + rateloginfo["postdatetime"].ToString().Trim() + "</span></td>rn");
- templateBuilder.Append(" <td>" + rateloginfo["extcreditname"].ToString().Trim() + " <span class="bold">rn");
- if (!rateloginfo["score"].ToString().Trim().StartsWith("-"))
- {
- templateBuilder.Append("+" + rateloginfo["score"].ToString().Trim() + "rn");
- }
- else
- {
- templateBuilder.Append("" + rateloginfo["score"].ToString().Trim() + "rn");
- } //end if
- templateBuilder.Append("</span></td>rn");
- templateBuilder.Append(" <td>" + rateloginfo["reason"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" </tr> rn");
- } //end loop
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--取消评分结束-->rn");
- } //end if
- if (operation=="identify")
- {
- templateBuilder.Append(" <!--鉴定开始-->rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(identifyjsarray.ToString());
- templateBuilder.Append(" rn");
- templateBuilder.Append(" <div>rn");
- templateBuilder.Append(" <p>鉴定: rn");
- templateBuilder.Append(" <select name="selectidentify" id="selectidentify" onchange="changeindentify(this.value)">rn");
- templateBuilder.Append(" <option value="0" selected="selected">请选择</option>rn");
- templateBuilder.Append(" <option value="-1">* 取消鉴定 *</option>rn");
- int identify__loop__id=0;
- foreach(TopicIdentify identify in identifylist)
- {
- identify__loop__id++;
- templateBuilder.Append(" <option value="");
- templateBuilder.Append(identify.Identifyid.ToString().Trim());
- templateBuilder.Append(""rn");
- if (identify__loop__id==1)
- {
- templateBuilder.Append(" selected="selected"rn");
- } //end if
- templateBuilder.Append(">");
- templateBuilder.Append(identify.Name.ToString().Trim());
- templateBuilder.Append("</option> rn");
- } //end loop
- templateBuilder.Append(" </select> rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <p style="text-align:center;padding:2px;"><img id="identify_preview" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("images/identify/zc.gif" onerror="changeindentify($('selectidentify').options[2].value)" /></p>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function changeindentify(imgid)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (imgid != "0" && imgid != "-1")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $("identify_preview").src = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("images/identify/" + topicidentify[imgid];rn");
- templateBuilder.Append(" $("identify_preview").style.display = "";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $("identify_preview").style.display = "none";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" changeindentify($('selectidentify').options[2].value);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script> rn");
- templateBuilder.Append(" <!--鉴定结束-->rn");
- } //end if
- if (operation=="delete" || operation=="delposts")
- {
- templateBuilder.Append(" <!--删除帖子开始-->rn");
- templateBuilder.Append(" <div class="topicadminlow">rn");
- if (operation=="delposts")
- {
- templateBuilder.Append(" <input type="hidden" size="10" name="postid" id="postid" value="");
- templateBuilder.Append(postidlist.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input type="hidden" size="10" name="opinion" id="opinion" value="");
- templateBuilder.Append(opinion.ToString());
- templateBuilder.Append("" />rn");
- } //end if
- templateBuilder.Append(" <ul class="inlinelist">rn");
- templateBuilder.Append(" <p>您确认要 <strong>删除</strong> 选择的主题么?</p>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--删除帖子结束-->rn");
- } //end if
- if (operation!="identify"&&operation!="bonus"&&operation!="cancelrate")
- {
- templateBuilder.Append(" <!--操作说明开始-->rn");
- templateBuilder.Append(" <div class="topicadminlog">rn");
- templateBuilder.Append(" <h4>rn");
- templateBuilder.Append(" <span class="hasdropdownbtn right"><a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'reason', 'reasonselect')">^</a></span>rn");
- templateBuilder.Append(" 操作说明:rn");
- templateBuilder.Append(" </h4>rn");
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <textarea onkeyup="seditor_ctlent(event, '$(\'moderateform\').submit()')" class="txtarea" name="reason" id="reason" onkeydown="if(this.value.length>200){ alert('操作原因不能多于200个字符');return false; }"></textarea>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <ul style="display: none;" id="reasonselect">rn");
- templateBuilder.Append(" <li>广告/SPAM</li>rn");
- templateBuilder.Append(" <li>恶意灌水</li>rn");
- templateBuilder.Append(" <li>违规内容</li>rn");
- templateBuilder.Append(" <li>文不对题</li>rn");
- templateBuilder.Append(" <li>重复发帖</li>rn");
- templateBuilder.Append(" <li></li>rn");
- templateBuilder.Append(" <li>我很赞同</li>rn");
- templateBuilder.Append(" <li>精品文章</li>rn");
- templateBuilder.Append(" <li>原创内容</li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--操作说明结束-->rn");
- } //end if
- if (operation=="bonus")
- {
- templateBuilder.Append(" <!--结帖开始-->rn");
- templateBuilder.Append(" <div style="position: relative;">rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" var reg = /^\d+$/i;rn");
- templateBuilder.Append(" $('moderate').onsubmit = function (){rn");
- templateBuilder.Append(" if (getCostBonus() != ");
- templateBuilder.Append(topicinfo.Price.ToString().Trim());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" alert('分数总和与悬赏总分不相符');rn");
- templateBuilder.Append(" return false;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return true;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function getCostBonus()rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var bonusboxs = document.getElementsByName('postbonus');rn");
- templateBuilder.Append(" var costbonus = 0;rn");
- templateBuilder.Append(" for (var i = 0; i < bonusboxs.length ; i ++ )rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" var bonus = isNaN(parseInt(bonusboxs[i].value)) ? 0 : parseInt(bonusboxs[i].value);rn");
- templateBuilder.Append(" costbonus += bonus;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return costbonus;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function checkInt(obj)rn");
- templateBuilder.Append(" { rn");
- templateBuilder.Append(" if (!reg.test(obj.value))rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" obj.value = 0;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function bonushint(obj)rn");
- templateBuilder.Append(" { rn");
- templateBuilder.Append(" var costbonus = getCostBonus();rn");
- templateBuilder.Append(" var leftbonus = ");
- templateBuilder.Append(topicinfo.Price.ToString().Trim());
- templateBuilder.Append(" - costbonus;rn");
- templateBuilder.Append(" $('bonus_menu').innerHTML = '总悬赏分: ' + ");
- templateBuilder.Append(topicinfo.Price.ToString().Trim());
- templateBuilder.Append(" + '<br />当前可用: ' + leftbonus;rn");
- templateBuilder.Append(" $('bonus_menu').style.left = obj.offsetLeft + obj.offsetWidth/2 + 'px';rn");
- templateBuilder.Append(" $('bonus_menu').style.top = obj.offsetTop + obj.offsetHeight + 'px';rn");
- templateBuilder.Append(" $('bonus_menu').style.display = '';rn");
- templateBuilder.Append(" obj.focus();rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function closebonushint(obj)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('bonus_menu').style.display = 'none';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var originalColor = '';rn");
- templateBuilder.Append(" var valuableColor = '#cce2f8';rn");
- templateBuilder.Append(" var bestColor = '#ff9d25';rn");
- templateBuilder.Append(" function rgbToColor(forecolor) {rn");
- templateBuilder.Append(" if(forecolor == null) {rn");
- templateBuilder.Append(" forecolor = '';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(!is_moz && !is_opera) {rn");
- templateBuilder.Append(" if (forecolor.indexOf('#') == 0)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" forecolor = forecolor.replace('#', '0x'); rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return rgbhexToColor(((forecolor >> 16) & 0xFF).toString(16), ((forecolor >> 8) & 0xFF).toString(16), (forecolor & 0xFF).toString(16));rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(forecolor.toLowerCase().indexOf('rgb') == 0) {rn");
- templateBuilder.Append(" var matches = forecolor.match(/^rgb\s*\(([0-9]+),\s*([0-9]+),\s*([0-9]+)\)$/);rn");
- templateBuilder.Append(" if(matches) {rn");
- templateBuilder.Append(" return rgbhexToColor((matches[1] & 0xFF).toString(16), (matches[2] & 0xFF).toString(16), (matches[3] & 0xFF).toString(16));rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" return rgbToColor(null);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" return forecolor;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function rgbhexToColor(r, g, b) {rn");
- templateBuilder.Append(" var coloroptions = {'#000000' : 'Black', '#a0522d' : 'Sienna', '#556b2f' : 'DarkOliveGreen', '#006400' : 'DarkGreen', '#483d8b' : 'DarkSlateBlue', '#000080' : 'Navy', '#4b0082' : 'Indigo', '#2f4f4f' : 'DarkSlateGray', '#8b0000' : 'DarkRed', '#ff8c00' : 'DarkOrange', '#808000' : 'Olive', '#008000' : 'Green', '#008080' : 'Teal', '#0000ff' : 'Blue', '#708090' : 'SlateGray', '#696969' : 'DimGray', '#ff0000' : 'Red', '#f4a460' : 'SandyBrown', '#9acd32' : 'YellowGreen', '#2e8b57' : 'SeaGreen', '#48d1cc' : 'MediumTurquoise', '#4169e1' : 'RoyalBlue', '#800080' : 'Purple', '#808080' : 'Gray', '#ff00ff' : 'Magenta', '#ffa500' : 'Orange', '#ffff00' : 'Yellow', '#00ff00' : 'Lime', '#00ffff' : 'Cyan', '#00bfff' : 'DeepSkyBlue', '#9932cc' : 'DarkOrchid', '#c0c0c0' : 'Silver', '#ffc0cb' : 'Pink', '#f5deb3' : 'Wheat', '#fffacd' : 'LemonChiffon', '#98fb98' : 'PaleGreen', '#afeeee' : 'PaleTurquoise', '#add8e6' : 'LightBlue', '#dda0dd' : 'Plum', '#ffffff' : 'White'};rn");
- templateBuilder.Append(" var color = '#' + (str_pad(r, 2, 0) + str_pad(g, 2, 0) + str_pad(b, 2, 0));rn");
- templateBuilder.Append(" return coloroptions[color] ? coloroptions[color] : color;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function str_pad(text, length, padstring) {rn");
- templateBuilder.Append(" text += '';rn");
- templateBuilder.Append(" padstring += '';rn");
- templateBuilder.Append(" if(text.length < length) {rn");
- templateBuilder.Append(" padtext = padstring;rn");
- templateBuilder.Append(" while(padtext.length < (length - text.length)) {rn");
- templateBuilder.Append(" padtext += padstring;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" text = padtext.substr(0, (length - text.length)) + text;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" return text;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function setValuableOrBestAnswer(obj, pid)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" switch (rgbToColor(obj.style.backgroundColor))rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" case valuableColor: rn");
- templateBuilder.Append(" var valuableAnswers = $('valuableAnswers').value.split(',');rn");
- templateBuilder.Append(" $('valuableAnswers').value = '';rn");
- templateBuilder.Append(" for (var i = 0; i < valuableAnswers.length ; i++)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (valuableAnswers[i] != pid && valuableAnswers[i] != '')rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('valuableAnswers').value += ',' + valuableAnswers[i];rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var options = document.getElementsByName('answeroption');rn");
- templateBuilder.Append(" for (var i = 0; i < options.length ; i++ )rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" if (options[i].style.backgroundColor == bestColor)rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" options[i].style.backgroundColor = valuableColor;rn");
- templateBuilder.Append(" $('valuableAnswers').value += ',' + $('bestAnswer').value;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" obj.style.backgroundColor = bestColor;rn");
- templateBuilder.Append(" $('bestAnswer').value = pid;rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case bestColor:rn");
- templateBuilder.Append(" obj.style.backgroundColor = originalColor;rn");
- templateBuilder.Append(" $('bestAnswer').value= '';rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" default:rn");
- templateBuilder.Append(" obj.style.backgroundColor = valuableColor;rn");
- templateBuilder.Append(" if (!in_array(pid, $('valuableAnswers').value.split(',')))rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" $('valuableAnswers').value += ',' + pid;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" } rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" 提示: 每次点击答案可以切换"最佳答案"与"有价值的答案"的颜色状态. 颜色含义:rn");
- templateBuilder.Append(" <span id="colorSpan"></span>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" $("colorSpan").innerHTML = '<span style="padding: 3px; color: #fff;background-color: ' + bestColor + ';">最佳答案</span>'rn");
- templateBuilder.Append(" + '<span style="margin-left: 3px;padding: 3px; color: #fff;background-color: ' + valuableColor + ';">有价值的答案</span><br /><br />';rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <input type="hidden" id="bestAnswer" name="bestAnswer" value="" />rn");
- templateBuilder.Append(" <input type="hidden" id="valuableAnswers" name="valuableAnswers" value="" />rn");
- templateBuilder.Append(" <div style="width: 365px; height: 240px; overflow-x: hidden; overflow-y: auto;">rn");
- int post__loop__id=0;
- foreach(DataRow post in postlist.Rows)
- {
- post__loop__id++;
- templateBuilder.Append(" <div name="answeroption" rn");
- if (Utils.StrToInt(post["posterid"].ToString().Trim(), 0)!=topicinfo.Posterid)
- {
- templateBuilder.Append("onclick="setValuableOrBestAnswer(this, " + post["pid"].ToString().Trim() + ");" rn");
- templateBuilder.Append(" style="cursor: pointer; width: 100%;"rn");
- } //end if
- templateBuilder.Append(">rn");
- templateBuilder.Append(" <strong>" + post["poster"].ToString().Trim() + "</strong> rn");
- if (Utils.StrToInt(post["posterid"].ToString().Trim(), 0)!=topicinfo.Posterid)
- {
- templateBuilder.Append("得分: rn");
- templateBuilder.Append(" <input name="postbonus" id="bonus_" + post["pid"].ToString().Trim() + "" type="text" value="0" size="3" maxlength="9" onblur="checkInt(this);" rn");
- templateBuilder.Append(" onmouseover="bonushint(this);" onmouseout="closebonushint(this);" />rn");
- templateBuilder.Append(" <input name="addons" type="hidden" value="" + post["posterid"].ToString().Trim() + "|" + post["pid"].ToString().Trim() + "|" + post["poster"].ToString().Trim() + "" />rn");
- }
- else
- {
- templateBuilder.Append("不能给自己分rn");
- } //end if
- templateBuilder.Append("<br />rn");
- templateBuilder.Append(" " + post["message"].ToString().Trim() + "<br />rn");
- templateBuilder.Append(" </div><br />rn");
- } //end loop
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="bonus_menu" style="position: absolute; z-index: 50; background: yellow;"></div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--结帖结束-->rn");
- } //end if
- templateBuilder.Append(" <!--短消息通知开始-->rn");
- if (operation!="cancelrate")
- {
- templateBuilder.Append(" <p>rn");
- templateBuilder.Append(" <input type="submit" value="确定" name="modsubmit"/>rn");
- if (operation=="delete" || operation=="delposts")
- {
- templateBuilder.Append(" <!--保留附件开始-->rn");
- templateBuilder.Append(" <input name="reserveattach" type="checkbox" value="1" /> <label for="reserveattach">保留附件</label>rn");
- templateBuilder.Append(" <!--保留附件结束-->rn");
- } //end if
- if (issendmessage)
- {
- templateBuilder.Append(" <input type="checkbox" disabled checked="checked"/>rn");
- templateBuilder.Append(" <input name="sendmessage" type="hidden" id="sendmessage" value="1"/>rn");
- }
- else
- {
- templateBuilder.Append(" <input name="sendmessage" type="checkbox" id="sendmessage" value="1"/>rn");
- } //end if
- templateBuilder.Append(" <label for="sendmessage">通知作者</label>rn");
- templateBuilder.Append(" </p>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="topic_msg">rn");
- templateBuilder.Append(" <p style="float: right;">rn");
- templateBuilder.Append(" <input type="checkbox" class="checkbox" id="sendmessage" name="sendmessage"/> <label for="sendreasonpm">通知作者</label> rn");
- templateBuilder.Append(" 操作说明: <input class="txt" name="reason"/>rn");
- templateBuilder.Append(" </p>rn");
- templateBuilder.Append(" <label><input name="chkall" type="checkbox" onclick="checkall(this.form, 'ratelogid')" /> 全选</label>rn");
- templateBuilder.Append(" <button name="ratesubmit" value="true" type="submit" class="submit">提交</button>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--短消息通知结束-->rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <!--操作面板结束-->rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- if (infloat==1)
- {
- if (titlemessage)
- {
- templateBuilder.Append(" ");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("rn");
- }
- else
- {
- templateBuilder.Append(" <div class="float" id="floatlayout_mods">rn");
- templateBuilder.Append(" <h3 class="float_ctrl">rn");
- templateBuilder.Append(" <em id="em1">");
- templateBuilder.Append(operationtitle.ToString());
- templateBuilder.Append("</em>rn");
- templateBuilder.Append(" <span>rn");
- templateBuilder.Append(" <a href="javascript:;" class="float_close" onclick="floatwin('close_mods')" title="关闭">关闭</a>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </h3>rn");
- templateBuilder.Append(" <div class="float_message">");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" <br /><br /><button type="button" onclick="floatwinreset = 1;floatwin('close_mods');">关闭</button>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- }
- 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
- } //end if
- }
- else
- {
- if (infloat==1)
- {
- templateBuilder.Append(" <script type="text/javascript" reload="1">rn");
- templateBuilder.Append(" location.href = '");
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("'; rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>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(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" 提示信息</h1>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="msg_inner">rn");
- templateBuilder.Append(" <p>");
- templateBuilder.Append(msgbox_text.ToString());
- templateBuilder.Append("</p>rn");
- if (msgbox_url!="")
- {
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(msgbox_url.ToString());
- templateBuilder.Append("">如果浏览器没有转向, 请点击这里.</a></p>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- } //end if
- } //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>