modcp.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:112k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.modcp" %>
- <%@ 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:49.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:49.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body onkeydown="if(event.keyCode==27) return false;">rn");
- templateBuilder.Append("<div id="append_parent"></div><div id="ajaxwaitid"></div>rn");
- templateBuilder.Append("<div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- templateBuilder.Append(" <form method="post" action="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("search.aspx" target="_blank" onsubmit="bind_keyword(this);;" class="right">rn");
- templateBuilder.Append(" <input type="hidden" name="poster" />rn");
- templateBuilder.Append(" <input type="hidden" name="keyword" />rn");
- templateBuilder.Append(" <input type="hidden" name="type" value="" />rn");
- templateBuilder.Append(" <input id="keywordtype" type="hidden" name="keywordtype" value="0" />rn");
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="quicksearch" onclick="showMenu(this.id, false);" onmouseover="MouseCursor(this);">快速搜索</a>rn");
- templateBuilder.Append(" <input type="text" name="keywordf" value="输入搜索关键字" onblur="if(this.value=='')this.value=defaultValue" onclick="if(this.value==this.defaultValue)this.value = ''" onkeydown="if(this.value==this.defaultValue)this.value = ''" class="txt"/>rn");
- templateBuilder.Append(" <input name="searchsubmit" type="submit" value="" class="btnsearch"/>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function bind_keyword(form) {rn");
- templateBuilder.Append(" if (form.keywordtype.value == '9') {rn");
- templateBuilder.Append(" form.action = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("forumsearch.aspx?q=' + escape(form.keywordf.value);rn");
- templateBuilder.Append(" } else if (form.keywordtype.value == '8') {rn");
- templateBuilder.Append(" form.keyword.value = '';rn");
- templateBuilder.Append(" form.poster.value = form.keywordf.value;rn");
- templateBuilder.Append(" } else {rn");
- templateBuilder.Append(" form.poster.value = '';rn");
- templateBuilder.Append(" form.keyword.value = form.keywordf.value;rn");
- templateBuilder.Append(" if (form.keywordtype.value == '2')rn");
- templateBuilder.Append(" form.type.value = 'spacepost';rn");
- templateBuilder.Append(" if (form.keywordtype.value == '3')rn");
- templateBuilder.Append(" form.type.value = 'album';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <span class="avataonline right">rn");
- if (userid==-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("login.aspx" onClick="floatwin('open_login', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("login.aspx', 600, 410);return false;">[登录]</a>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("register.aspx" onClick="floatwin('open_register', '");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("register.aspx', 600, 410);return false;">[注册]</arn");
- templateBuilder.Append(" >rn");
- }
- else
- {
- templateBuilder.Append(" 欢迎<a class="drop" id="viewpro" onMouseOver="showMenu(this.id)">");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("">退出</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" </span>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpinbox.aspx" class="inbox" title="");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("条新短消息">收件箱</a>rn");
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpnotice.aspx?filter=all" class="notice">通知</a>rn");
- if (oluserinfo.Newnotices>0)
- {
- templateBuilder.Append("<cite>");
- templateBuilder.Append(oluserinfo.Newnotices.ToString().Trim());
- templateBuilder.Append("</cite>rn");
- } //end if
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercp.aspx" class="usercp">用户中心</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("admin/index.aspx" target="_blank" class="systemmanage">系统设置</a>rn");
- templateBuilder.Append(" <span class="pipe">|</span>rn");
- } //end if
- templateBuilder.Append(" <a href="javascript:void(0);" class="drop" id="mymenu" onMouseOver="showMenu(this.id, false);" >我的</a>rn");
- templateBuilder.Append(" <ul class="popupmenu_popup headermenu_popup" id="mymenu_menu" style="display: none">rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("mytopics.aspx">我的主题</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myposts.aspx">我的帖子</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("search.aspx?posterid=current&type=digest">我的精华</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("myattachment.aspx">我的附件</a></li>rn");
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpsubscribe.aspx">我的收藏</a></li>rn");
- if (config.Enablespace==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("space/">我的空间</a></li>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("showalbumlist.aspx?uid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("">我的相册</a></li>rn");
- } //end if
- if (config.Enablemall==1)
- {
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("usercpmygoods.aspx">我的商品</a></li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- } //end if
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div id="header">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <h2><a href="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("index.aspx" title="Discuz!NT|BBS|论坛"><img src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/logo.gif" alt="Discuz!NT|BBS|论坛"/></a></h2>rn");
- if (headerad!="")
- {
- templateBuilder.Append(" <div id="ad_headerbanner"></div>rn");
- } //end if
- templateBuilder.Append(" <ul id="menu">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(mainnavigation.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- Response.Clear();
- Response.ContentType = "Text/XML";
- Response.Expires = 0;
- Response.Cache.SetNoStore();
-
- templateBuilder.Append("<?xml version="1.0" encoding="utf-8"?><root><![CDATA[rn");
- } //end if
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("javascript/template_modcp.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("javascript/template_quickreply.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="nav">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(config.Forumurl.ToString().Trim());
- templateBuilder.Append("" class="title">");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</a> » <strong>管理面板</strong>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- if (page_err==0)
- {
- if (ispost && editusersubmit||banusersubmit||editannouncement||deleteannoucement)
- {
- 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");
- }
- else
- {
- templateBuilder.Append("<div class="wrap with_side s_clear" id="wrap">rn");
- templateBuilder.Append(" <div class="side">rn");
- if (admingroupinfo.Allowpostannounce==1)
- {
- templateBuilder.Append(" <h2>公告管理</h2>rn");
- templateBuilder.Append(" <div class="sideinner">rn");
- templateBuilder.Append(" <ul class="tabs">rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=addannouncements&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">添加公告</a>rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=list&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">管理公告</a>rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <h2>用户管理</h2>rn");
- templateBuilder.Append(" <div class="sideinner">rn");
- templateBuilder.Append(" <ul>rn");
- if (admingroupinfo.Allowedituser==1)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=edituser&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">编辑用户</a> rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- if (admingroupinfo.Allowbanuser==1)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=banusersearch&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">禁止用户</a>rn");
- templateBuilder.Append(" </li> rn");
- } //end if
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=forumaccesslist&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">用户权限</a> rn");
- templateBuilder.Append(" </li>rn");
- if (admingroupinfo.Allowbanip==1)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=showbannedlist&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">禁止 IP</a> rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <h2>版块管理</h2>rn");
- templateBuilder.Append(" <div class="sideinner">rn");
- templateBuilder.Append(" <ul>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=editforum&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">版块编辑</a> rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <h2>主题管理</h2>rn");
- templateBuilder.Append(" <div class="sideinner">rn");
- templateBuilder.Append(" <ul>rn");
- if (admingroupinfo.Allowmodpost==1)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=audittopic&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">审核主题</a> rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=auditpost&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">审核回复</a>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- if (useradminid==1 || useradminid==2)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=attention&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">批量删帖</a> rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="modcp.aspx?operation=attention&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">主题关注</a> rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <h2>其他</h2>rn");
- templateBuilder.Append(" <div class="sideinner">rn");
- templateBuilder.Append(" <ul>rn");
- if (admingroupinfo.Allowviewlog==1)
- {
- templateBuilder.Append("<li><a href="modcp.aspx?operation=logs&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">管理日志</a></li>rn");
- } //end if
- templateBuilder.Append(" <li><a href="modcp.aspx?operation=userout&forumid=");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">返回论坛</a></li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="cpmain">rn");
- templateBuilder.Append(" <div class="cpcontent">rn");
- if (operation=="login")
- {
- templateBuilder.Append(" <h1>管理登录</h1>rn");
- templateBuilder.Append(" <form action="" method="post">rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="管理登录">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="cpname">用户名</label></th><td><input type="text" name="cpname" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="cppwd">密码</label></th><td><input type="password" name="cppwd" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th><td><button type="submit" id="Submit1" name="Submit">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <div class="hintinfo">当您首次进入管理面板或者长时间没有管理动作时,您需要输入密码才能进入。如果密码输入错误超过 3 次,管理面板将会锁定。30 分钟或者更长时间后,管理面板才能解除锁定。rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--批量删帖-->rn");
- if (operation=="deleteuserpost")
- {
- templateBuilder.Append(" <h1>批量删帖</h1>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="管理登录">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <form action="modcp.aspx?operation=deleteuserpost" method="post">rn");
- templateBuilder.Append(" <input type="hidden" value="topics" name="deletetype"/>rn");
- templateBuilder.Append(" 删除该用户<select name="delTopicDate">rn");
- templateBuilder.Append(" <option value="1">1</option>rn");
- templateBuilder.Append(" <option value="2">2</option>rn");
- templateBuilder.Append(" <option value="3">3</option>rn");
- templateBuilder.Append(" <option value="4">4</option>rn");
- templateBuilder.Append(" <option value="5">5</option>rn");
- templateBuilder.Append(" <option value="6">6</option>rn");
- templateBuilder.Append(" <option value="7">7</option>rn");
- templateBuilder.Append(" <option value="8">8</option>rn");
- templateBuilder.Append(" <option value="9">9</option>rn");
- templateBuilder.Append(" <option value="10">10</option>rn");
- templateBuilder.Append(" </select>天内的主题<button type="submit" id="Submit1" name="Submit">提交</button>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <form action="modcp.aspx?operation=deleteuserpost" method="post">rn");
- templateBuilder.Append(" <input type="hidden" value="posts" name="deletetype"/>rn");
- templateBuilder.Append(" 删除该用户<select name="delTopicDate">rn");
- templateBuilder.Append(" <option value="1">1</option>rn");
- templateBuilder.Append(" <option value="2">2</option>rn");
- templateBuilder.Append(" <option value="3">3</option>rn");
- templateBuilder.Append(" <option value="4">4</option>rn");
- templateBuilder.Append(" <option value="5">5</option>rn");
- templateBuilder.Append(" <option value="6">6</option>rn");
- templateBuilder.Append(" <option value="7">7</option>rn");
- templateBuilder.Append(" <option value="8">8</option>rn");
- templateBuilder.Append(" <option value="9">9</option>rn");
- templateBuilder.Append(" <option value="10">10</option>rn");
- templateBuilder.Append(" </select>天内的回帖<button type="submit" id="Submit1" name="Submit">提交</button>rn");
- templateBuilder.Append(" </form> rn");
- templateBuilder.Append(" </td> rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- } //end if
- templateBuilder.Append(" <!--添加公告-->rn");
- if (operation=="addannouncements" && admingroupinfo.Allowpostannounce==1)
- {
- templateBuilder.Append(" <h1>添加公告</h1>rn");
- templateBuilder.Append(" <form action="modcp.aspx?operation=add" method="post">rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value="0" name="displayorder"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="添加公告">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>标题</th><td><input type="text" size="80" id="subject" name="subject" value="" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>起始时间</th><td><input type="text" style="cursor:default" onClick="showcalendar(event, 'starttime', 'cal_startdate1', 'cal_enddate1', '");
- templateBuilder.Append(nowdatetime.ToString());
- templateBuilder.Append("');" name="starttime" value='");
- templateBuilder.Append(starttime.ToString());
- templateBuilder.Append("' id="starttime" class="txt"/>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate1" id="cal_startdate1" size="10" value="1900-01-01" />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate1" id="cal_enddate1" size="10" value="2099-01-01" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>结束时间</th><td><input type="text" style="cursor:default" onClick="showcalendar(event, 'endtime', 'cal_startdate2', 'cal_enddate2', 'nowdatetime');" name="endtime" value='");
- templateBuilder.Append(endtime.ToString());
- templateBuilder.Append("' id="endtime" class="txt"/>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate2" id="cal_startdate2" size="10" value="1900-01-01" />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate2" id="cal_enddate2" size="10" value="2099-01-01" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>内容</th><td><textarea cols="80" rows="10" id="message" name="message" class="txtarea" ></textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th><td><button type="submit" id="addannouncement_Submit" name="Submit">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_calendar.js"></");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <!--编辑公告-->rn");
- if (operation=="editannouncements")
- {
- templateBuilder.Append(" <h1>编辑公告</h1>rn");
- templateBuilder.Append(" <form action="modcp.aspx?operation=updateannouncements" method="post">rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(id.ToString());
- templateBuilder.Append(" name="id"/>rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(displayorder.ToString());
- templateBuilder.Append(" name="displayorder"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="编辑公告">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>标题</th><td><input type="text" size="80" id="subject" name="subject" value=");
- templateBuilder.Append(subject.ToString());
- templateBuilder.Append(" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>起始时间</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="text" style="cursor:default" onClick="showcalendar(event, 'starttime', 'cal_startdate1', 'cal_enddate1', '");
- templateBuilder.Append(nowdatetime.ToString());
- templateBuilder.Append("');" name="starttime" value="");
- templateBuilder.Append(starttime.ToString());
- templateBuilder.Append("" id="starttime" class="txt"/>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate1" id="cal_startdate1" size="10" value="1900-01-01" />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate1" id="cal_enddate1" size="10" value="2099-01-01" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>结束时间</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="text" style="cursor:default" onClick="showcalendar(event, 'endtime', 'cal_startdate2', 'cal_enddate2', 'nowdatetime');" name="endtime" value="");
- templateBuilder.Append(endtime.ToString());
- templateBuilder.Append("" id="endtime" class="txt"/>rn");
- templateBuilder.Append(" <input type="hidden" name="cal_startdate2" id="cal_startdate2" size="10" value="1900-01-01" />rn");
- templateBuilder.Append(" <input type="hidden" name="cal_enddate2" id="cal_enddate2" size="10" value="2099-01-01" />rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>内容</th><td><textarea cols="80" rows="10" id="message" name="message" class="txtarea" >");
- templateBuilder.Append(message.ToString());
- templateBuilder.Append("</textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td><button type="submit" id="editannoucementsubmit" name="editannoucementsubmit">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_calendar.js"></");
- templateBuilder.Append("script>rn");
- } //end if
- templateBuilder.Append(" <!--公告列表-->rn");
- if (operation=="list")
- {
- templateBuilder.Append(" <form action="modcp.aspx?operation=manage&op=delannouncements" method="post" class="datalist">rn");
- templateBuilder.Append(" <h1>公告列表</h1>rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append(" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(op.ToString());
- templateBuilder.Append(" name="op"/>rn");
- templateBuilder.Append(" <table border="0" cellspacing="0" cellpadding="0" class="datatable">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr class="colplural">rn");
- templateBuilder.Append(" <th width="8%"><input type="checkbox" onclick="checkall(this.form)" name="chkall" id="chkall"/>删除</th>rn");
- templateBuilder.Append(" <th width="5%">顺序</th>rn");
- templateBuilder.Append(" <th width="12%">作者</th>rn");
- templateBuilder.Append(" <th>标题</th>rn");
- templateBuilder.Append(" <th width="15%">起始时间</th>rn");
- templateBuilder.Append(" <th width="15%">结束时间</th>rn");
- templateBuilder.Append(" <th width="8%">操作</th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- if (counts<=0)
- {
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="7">暂无公告</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- }
- else
- {
- int announcement__loop__id=0;
- foreach(DataRow announcement in announcementlist.Rows)
- {
- announcement__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (username=="admin"||username==announcement["poster"].ToString().Trim())
- {
- templateBuilder.Append(" <input type="checkbox" name='aidlist' id='aidlist' value="" + announcement["id"].ToString().Trim() + "" class="checkbox"/>rn");
- }
- else
- {
- templateBuilder.Append(" <input type="checkbox" name='aidlist' id='aidlist' disabled="disabled" value="" + announcement["id"].ToString().Trim() + "" class="checkbox"/> rn");
- } //end if
- templateBuilder.Append("</td> rn");
- templateBuilder.Append(" <td>rn");
- if (username=="admin"||username==announcement["poster"].ToString().Trim())
- {
- templateBuilder.Append(" <input type="text" size="3" id="displayorder" name="displayorder" value=" + announcement["displayorder"].ToString().Trim() + " class="txt"/>rn");
- }
- else
- {
- templateBuilder.Append("<input type="text" size="3" readonly="readonly" disabled id="displayorder" name="displayorder" value=" + announcement["displayorder"].ToString().Trim() + " class="txt"/>rn");
- } //end if
- templateBuilder.Append(" <input type="hidden" name="hid" id="hid" size="10" value="" + announcement["id"].ToString().Trim() + "" />rn");
- templateBuilder.Append(" </td> rn");
- templateBuilder.Append(" <td>" + announcement["poster"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" <td class="datatitle">" + announcement["title"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" <td class="time">" + announcement["starttime"].ToString().Trim() + " </td>rn");
- templateBuilder.Append(" <td class="time">" + announcement["endtime"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" <td>rn");
- if (username=="admin"||(username==announcement["poster"].ToString().Trim()))
- {
- templateBuilder.Append(" <a href="modcp.aspx?operation=editannouncements&id=" + announcement["id"].ToString().Trim() + "">编辑rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- } //end if
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <span class="left">rn");
- templateBuilder.Append(" <button type="submit" name="operationsubmit" id="operationsubmit" name="Submit"/>提交</button>rn");
- templateBuilder.Append(" </span>rn");
- templateBuilder.Append(" </div>rn");
- if (tip=="add")
- {
- templateBuilder.Append("<div class="hintinfo">公告添加完毕,请继续操作</div>rn");
- } //end if
- if (tip=="delsuccessful")
- {
- templateBuilder.Append("<div class="hintinfo">选定公告删除完毕,请继续操作</div>rn");
- } //end if
- templateBuilder.Append(" </form>rn");
- } //end if
- templateBuilder.Append(" <!--编辑用户-->rn");
- if (operation=="edituser")
- {
- templateBuilder.Append(" <h1>编辑用户 - 搜索</h1>rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=edituser&op=edit">rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(op.ToString());
- templateBuilder.Append("" name="op"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="编辑用户 - 搜索">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">用户名</label></th><td><input name="username" value="" size="20" type="text" class="txt" ></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="uid">UID</label></th><td><input name="uid" value="" size="20" type="text" class="txt"> [可选]</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th><td><input type="submit" id="editusersubmit" value="提交" name="editusersubmit"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- if (op!="edit")
- {
- templateBuilder.Append(" <div class="hintinfo">rn");
- templateBuilder.Append(" 请首先输入用户名或者 UID 搜索用户,然后进行下一步。搜索 UID 比搜索用户名速度更快且准确rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- if (op=="edit" &&uid>0)
- {
- templateBuilder.Append(" <h1>编辑用户 - ");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("</h1>rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=updateuser">rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append(" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value="updateuser" name="op"/>rn");
- templateBuilder.Append(" <input type="hidden" name="username" value=");
- templateBuilder.Append(uname.ToString());
- templateBuilder.Append(">rn");
- templateBuilder.Append(" <input type="hidden" name="uid" value=");
- templateBuilder.Append(uid.ToString());
- templateBuilder.Append(">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="编辑用户 - ");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th>rn");
- templateBuilder.Append(" <td>rn");
- string avatarurl = Avatars.GetAvatarUrl(uid);
-
- templateBuilder.Append(" <img src="t");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_medium.gif';" />rn");
- if (allowdeleteavatar)
- {
- templateBuilder.Append(" <input type="checkbox" name="delavatar" value="1" onclick="if(this.checked) this.checked=confirm('您确认要在提交后删除该用户的头像吗?');" />删除头像rn");
- } //end if
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">用户名</label></th>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(uname.ToString());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">Uid</label></th><td>");
- templateBuilder.Append(uid.ToString());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="locationnew">来自</label></th><td><input type="text" name="locationnew" value="");
- templateBuilder.Append(location.ToString());
- templateBuilder.Append("" size="40"></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="bionew">自我介绍</label></th><td><textarea name="bionew" rows="4" cols="80">");
- templateBuilder.Append(bio.ToString());
- templateBuilder.Append("</textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="bionew">签名</label></th><td><textarea name="signaturenew" rows="4" cols="80">");
- templateBuilder.Append(signature.ToString());
- templateBuilder.Append("</textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td><button type="submit" class="submit" name="editsubmit" id="editsubmit" value="true">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">rn");
- templateBuilder.Append(" 该用户不存在,请重新输入 rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- } //end if
- templateBuilder.Append(" <!--禁止用户-->rn");
- if (operation=="banusersearch")
- {
- templateBuilder.Append(" <h1>禁止用户 - 搜索</h1>rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=banusersearch&op=ban">rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(op.ToString());
- templateBuilder.Append("" name="op"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="禁止用户 - 搜索">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="username">用户名</label></th><td><input name="username" value="" size="20" type="text" class="txt"></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="Uid">UID</label></th><td><input name="uid" value="" size="20" type="text" class="txt"> [可选]</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th><td><input type="submit" id="Submit1" value="提交" name="Submit"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- if (op!="ban")
- {
- templateBuilder.Append(" <div class="hintinfo">rn");
- templateBuilder.Append(" 请首先输入用户名或者 UID 搜索用户,然后进行下一步。搜索 UID 比搜索用户名速度更快且准确rn");
- templateBuilder.Append(" </div>rn");
- }
- else
- {
- if (uid>0)
- {
- templateBuilder.Append(" <h3>禁止用户 - ");
- templateBuilder.Append(uname.ToString());
- templateBuilder.Append("</h3>rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=banuser">rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append(" name="operation"/>rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(uname.ToString());
- templateBuilder.Append(" name="username" >rn");
- templateBuilder.Append(" <input type="hidden" value=");
- templateBuilder.Append(uid.ToString());
- templateBuilder.Append(" name="uid"/>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="禁止用户 - ");
- templateBuilder.Append(username.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="uname">用户名</label></th><td>");
- templateBuilder.Append(uname.ToString());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="Uid">UID</label></th><td>");
- templateBuilder.Append(uid.ToString());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="curstatus">当前状态</label></th>rn");
- templateBuilder.Append(" <td>rn");
- if (curstatus=="禁止发言"||curstatus=="禁止访问")
- {
- templateBuilder.Append(grouptitle.ToString());
- templateBuilder.Append(" (有效期至 ");
- templateBuilder.Append(groupexpiry.ToString());
- templateBuilder.Append(")rn");
- }
- else
- {
- templateBuilder.Append("正常状态rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="bannew">变更为</label></th><td>rn");
- if (grouptitle=="禁止发言")
- {
- templateBuilder.Append(" <input name="bannew" value="4" type="radio" checked/> 禁止发言rn");
- }
- else
- {
- templateBuilder.Append("<input name="bannew" value="4" type="radio"/>禁止发言rn");
- } //end if
- if (grouptitle=="禁止访问")
- {
- templateBuilder.Append("<input name="bannew" value="5" type="radio" checked/>禁止访问rn");
- }
- else
- {
- templateBuilder.Append("<input name="bannew" value="5" type="radio"/>禁止访问rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="banexpirynew">期限</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="banexpirynew" id="banexpirynew">rn");
- templateBuilder.Append(" <option value="0">永 久</option>rn");
- templateBuilder.Append(" <option value="1">1天</option>rn");
- templateBuilder.Append(" <option value="3">3天</option>rn");
- templateBuilder.Append(" <option value="5">5天</option>rn");
- templateBuilder.Append(" <option value="7">7天</option>rn");
- templateBuilder.Append(" <option value="14">14天</option>rn");
- templateBuilder.Append(" <option value="30">1个月</option>rn");
- templateBuilder.Append(" <option value="90">3个月</option>rn");
- templateBuilder.Append(" <option value="180">半年</option>rn");
- templateBuilder.Append(" <option value="365">1年</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("banexpirynew");</");
- templateBuilder.Append("script>期限设置仅对禁止发言和禁止访问的操作有效rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="reason">理由</label></th><td><textarea name="reason" rows="4" cols="80" class="txtarea">");
- templateBuilder.Append(reason.ToString());
- templateBuilder.Append("</textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td><button type="submit" class="submit" name="banusersubmit" id="banusersubmit">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">rn");
- templateBuilder.Append(" 该用户不存在,请重新输入 rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- } //end if
- } //end if
- templateBuilder.Append(" <!--用户权限-->rn");
- if (operation=="forumaccesslist")
- {
- templateBuilder.Append(" <h1>特殊用户</h1>rn");
- templateBuilder.Append(" <div class="datalist">rn");
- templateBuilder.Append(" <table summary="" cellpadding="0" cellspacing="0" class="datatable">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr class="colplural">rn");
- templateBuilder.Append(" <td width="15%">会员</td>rn");
- templateBuilder.Append(" <td width="15%">版块</td>rn");
- templateBuilder.Append(" <th width="8%">浏览主题</th>rn");
- templateBuilder.Append(" <th width="8%">发表主题</th>rn");
- templateBuilder.Append(" <th width="8%">回复主题</th>rn");
- templateBuilder.Append(" <th width="8%">上传附件</th>rn");
- templateBuilder.Append(" <th width="8%">下载附件</th>rn");
- templateBuilder.Append(" <td width="15%">版主</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- if (foruminfolist.Count>0)
- {
- int filist__loop__id=0;
- foreach(ForumInfo filist in foruminfolist)
- {
- filist__loop__id++;
- int t__loop__id=0;
- foreach(string t in filist.Permuserlist.Split('|'))
- {
- t__loop__id++;
- templateBuilder.Append(" <tr>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(t.Split(',')[1].ToString().Trim());
-
- templateBuilder.Append(" <td><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">" + t.Split(',')[0].ToString().Trim() + "</a></td>rn");
- string aspxforumrewriteurl = this.ShowForumAspxRewrite(filist.Fid,0,filist.Rewritename);
-
- templateBuilder.Append(" <td><a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxforumrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(filist.Name.ToString().Trim());
- templateBuilder.Append("</a></td>rn");
- int power = Convert.ToInt32(t.Split(',')[2].ToString().Trim());
-
- string viewpowerimg = GetPowerImg(power,Discuz.Entity.ForumSpecialUserPower.ViewByUser);
-
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/");
- templateBuilder.Append(viewpowerimg.ToString());
- templateBuilder.Append("" /></td>rn");
- string postpowerimg = GetPowerImg(power,Discuz.Entity.ForumSpecialUserPower.PostByUser);
-
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/");
- templateBuilder.Append(postpowerimg.ToString());
- templateBuilder.Append("" /></td>rn");
- string replypowerimg = GetPowerImg(power,Discuz.Entity.ForumSpecialUserPower.ReplyByUser);
-
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/");
- templateBuilder.Append(replypowerimg.ToString());
- templateBuilder.Append("" /></td>rn");
- string downloadpowerimg = GetPowerImg(power,Discuz.Entity.ForumSpecialUserPower.DownloadAttachByUser);
-
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/");
- templateBuilder.Append(downloadpowerimg.ToString());
- templateBuilder.Append("" /></td>rn");
- string postattachpowerimg = GetPowerImg(power,Discuz.Entity.ForumSpecialUserPower.PostAttachByUser);
-
- templateBuilder.Append(" <td><img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/");
- templateBuilder.Append(postattachpowerimg.ToString());
- templateBuilder.Append("" /></td>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(filist.Moderators.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end loop
- } //end loop
- }
- else
- {
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="9" align="left">rn");
- templateBuilder.Append(" 当前没有特殊权限用户rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end if
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="9">rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=forumaccesslist" class="right">rn");
- templateBuilder.Append(" <input name="formhash" value="5ff4e742" type="hidden">rn");
- templateBuilder.Append(" 用户名: <input name="suser" value="" onclick="this.value='';" type="text" class="txt">rn");
- templateBuilder.Append(" <select name="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" rn");
- templateBuilder.Append(" <button type="submit" id="Submit1" name="Submit">搜索</button>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" function chkallaccess(obj) {rn");
- templateBuilder.Append(" $('new_post').checkedrn");
- templateBuilder.Append(" = $('new_post').disabledrn");
- templateBuilder.Append(" = $('new_reply').checkedrn");
- templateBuilder.Append(" = $('new_reply').disabledrn");
- templateBuilder.Append(" = $('new_postattach').checkedrn");
- templateBuilder.Append(" = $('new_postattach').disabledrn");
- templateBuilder.Append(" = $('new_getattach').checkedrn");
- templateBuilder.Append(" = $('new_getattach').disabledrn");
- templateBuilder.Append(" = obj.checked;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function disallaccess(obj) {rn");
- templateBuilder.Append(" $('new_view').checkedrn");
- templateBuilder.Append(" = $('new_post').checkedrn");
- templateBuilder.Append(" = $('new_post').checkedrn");
- templateBuilder.Append(" = $('new_reply').checkedrn");
- templateBuilder.Append(" = $('new_postattach').checkedrn");
- templateBuilder.Append(" = $('new_getattach').checkedrn");
- templateBuilder.Append(" = false;rn");
- templateBuilder.Append(" $('customaccess').disabledrn");
- templateBuilder.Append(" = $('new_view').disabledrn");
- templateBuilder.Append(" = $('new_view').disabledrn");
- templateBuilder.Append(" = $('new_post').disabledrn");
- templateBuilder.Append(" = $('new_post').disabledrn");
- templateBuilder.Append(" = $('new_reply').disabledrn");
- templateBuilder.Append(" = $('new_postattach').disabledrn");
- templateBuilder.Append(" = $('new_getattach').disabledrn");
- templateBuilder.Append(" = obj.checked;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=forumaccessupdate">rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <h1>编辑用户权限</h1>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="编辑用户权限">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="forumid">版块选择</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="forumid" id="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="new_user">用户名</label></th>rn");
- templateBuilder.Append(" <td><input size="25" value="" id="new_user" name="new_user" type="text" class="txt"></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="deleteaccess">权限变更</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input value="0" name="deleteaccess" id="deleteaccess" onclick="disallaccess(this)" type="checkbox"> 恢复默认rn");
- templateBuilder.Append(" <span id="customaccess" style="border: 0px solid rgb(221, 221, 221); padding: 0px;">rn");
- templateBuilder.Append(" <input value="1" name="new_view" id="new_view" onclick="chkallaccess(this)" type="checkbox"> 禁止查看主题 rn");
- templateBuilder.Append(" <input value="2" name="new_post" id="new_post" type="checkbox"> 禁止发表主题rn");
- templateBuilder.Append(" <input value="4" name="new_reply" id="new_reply" type="checkbox"> 禁止发表回复rn");
- templateBuilder.Append(" <input value="8" name="new_postattach" id="new_postattach" type="checkbox"> 禁止上传附件rn");
- templateBuilder.Append(" <input value="16" name="new_getattach" id="new_getattach" type="checkbox"> 禁止下载附件rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td><input type="submit" id="Submit1" value="提交" name="Submit"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td>rn");
- if (tip=="access_successful")
- {
- templateBuilder.Append("用户权限更新成功, 请继续操作rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <div class="hintinfo">rn");
- templateBuilder.Append(" 通常情况下,用户在版块的权限是根据他的用户组决定的,此处您可以限制某个用户在某版块的权限。<br>注意: 看帖是基本权限,一旦禁止, 其他权限会同时进行禁止。<br>图例说明: <img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/access_normal.gif"> 默认权限 <img src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/access_allow.gif"> 强制允许rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--禁止IP--> rn");
- if (operation=="showbannedlist")
- {
- templateBuilder.Append(" <form method="post" action="modcp.aspx?operation=ipban" class="datalist">rn");
- templateBuilder.Append(" <h1>禁止 IP</h1>rn");
- templateBuilder.Append(" <input type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" name="operation"/>rn");
- templateBuilder.Append(" <table cellpadding="0" cellspacing="0" class="datatable">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr class="colplural">rn");
- templateBuilder.Append(" <th width="8%"><input class="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" type="checkbox">删除</th>rn");
- templateBuilder.Append(" <th>IP 地址</th>rn");
- templateBuilder.Append(" <th width="20%">地理位置</th>rn");
- templateBuilder.Append(" <th width="10%">操作者</th>rn");
- templateBuilder.Append(" <th width="15%">起始时间</th>rn");
- templateBuilder.Append(" <th width="15%">结束时间</th>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- if (counts>0)
- {
- templateBuilder.Append(" <tbody>rn");
- int showbannedip__loop__id=0;
- foreach(IpInfo showbannedip in showbannediplist)
- {
- showbannedip__loop__id++;
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>rn");
- if (showbannedip.Username!=username)
- {
- templateBuilder.Append("<input class="checkbox" id="chkbanip" name="chkbanip" disabled="disabled" value=");
- templateBuilder.Append(showbannedip.Id.ToString().Trim());
- templateBuilder.Append(" type="checkbox">rn");
- }
- else
- {
- templateBuilder.Append("<input class="checkbox" id="chkbanip" name="chkbanip" value=");
- templateBuilder.Append(showbannedip.Id.ToString().Trim());
- templateBuilder.Append(" type="checkbox">rn");
- } //end if
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(showbannedip.Ip1.ToString().Trim());
- templateBuilder.Append(".");
- templateBuilder.Append(showbannedip.Ip2.ToString().Trim());
- templateBuilder.Append(".");
- templateBuilder.Append(showbannedip.Ip3.ToString().Trim());
- templateBuilder.Append(".");
- templateBuilder.Append(showbannedip.Ip4.ToString().Trim());
- templateBuilder.Append("</th>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(showbannedip.Location.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td>");
- templateBuilder.Append(showbannedip.Username.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="time">");
- templateBuilder.Append(showbannedip.Dateline.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td><input type="text" name="expiration" id="expiration" size="15" value=");
- templateBuilder.Append(showbannedip.Expiration.ToString().Trim());
- templateBuilder.Append("></input><input type="hidden" name ="hiddenexpiration" id ="hiddenexpiration" value=");
- templateBuilder.Append(showbannedip.Expiration.ToString().Trim());
- templateBuilder.Append("><input type="hidden" name ="hiddenid" id ="hiddenid" value=");
- templateBuilder.Append(showbannedip.Id.ToString().Trim());
- templateBuilder.Append("></td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end loop
- templateBuilder.Append(" </tbody>rn");
- } //end if
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <h1>新增要禁止IP</h1>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="新增要禁止IP">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td width="300">ip地址:<input name="ip1new" value="" size="1" maxlength="10" type="text" class="txt"> .rn");
- templateBuilder.Append(" <input name="ip2new" value="" size="1" maxlength="10" type="text" class="txt"> .rn");
- templateBuilder.Append(" <input name="ip3new" value="" size="1" maxlength="10" type="text" class="txt"> .rn");
- templateBuilder.Append(" <input name="ip4new" value="" size="1" maxlength="10" type="text" class="txt">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td>期限:<input name="validitynew" value="30" size="3" type="text" class="txt"> 天</td>rn");
- templateBuilder.Append(" <td><input type="submit" id="Submit1" value="提交" name="Submit"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- } //end if
- templateBuilder.Append(" <!--审核回复--> rn");
- if (operation=="auditpost" && admingroupinfo.Allowmodpost==1)
- {
- templateBuilder.Append(" <h1>审核回复范围选择</h1>rn");
- templateBuilder.Append(" <form action="" method="get">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="审核回复范围选择">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="forumid">版块选择</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="forumid" id="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" <select name="tablelist" id="tablelist">rn");
- templateBuilder.Append(" <option value=""></option>rn");
- int table__loop__id=0;
- foreach(DataRow table in posttablelist.Rows)
- {
- table__loop__id++;
- templateBuilder.Append(" <option value="" + table["id"].ToString().Trim() + "" rn");
- if (tableid.ToString()==table["id"].ToString().Trim())
- {
- templateBuilder.Append("selected="selected"rn");
- } //end if
- templateBuilder.Append(">分表" + table["id"].ToString().Trim() + "</option>rn");
- } //end loop
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="filter">帖子范围</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="filter" id="filter">rn");
- templateBuilder.Append(" <option value="1" rn");
- if (filter==1)
- {
- templateBuilder.Append("selected="selected"rn");
- } //end if
- templateBuilder.Append(">未审核的回复</option>rn");
- templateBuilder.Append(" <option value="-3" rn");
- if (filter==-3)
- {
- templateBuilder.Append("selected="selected"rn");
- } //end if
- templateBuilder.Append(">已忽略的回复</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("filter");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th/><th><input type="submit" value="提交"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- if (counts!=0)
- {
- templateBuilder.Append(" <form action="" method="post" name="auditpost_form" id="auditpost_form">rn");
- templateBuilder.Append(" <input name="tableid" type="hidden" value="");
- templateBuilder.Append(tableid.ToString());
- templateBuilder.Append("" />rn");
- int post__loop__id=0;
- foreach(PostInfo post in postlist)
- {
- post__loop__id++;
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" /> rn");
- templateBuilder.Append(" <input name="pidlist" type="hidden" value="");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="tidlist" type="hidden" value="");
- templateBuilder.Append(post.Tid.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="fidlist" type="hidden" value="");
- templateBuilder.Append(post.Fid.ToString().Trim());
- templateBuilder.Append("" />rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(post.Tid,0);
-
- string aspxuserrewriteurl = this.UserInfoAspxRewrite(post.Posterid);
-
- templateBuilder.Append(" <h1><span class="headactions"><a href="");
- templateBuilder.Append(aspxuserrewriteurl.ToString());
- templateBuilder.Append("" title="");
- templateBuilder.Append(post.Forumname.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(post.Poster.ToString().Trim());
- templateBuilder.Append("</a> 发表于 <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" title="");
- templateBuilder.Append(post.Forumname.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(post.Postdatetime.ToString().Trim());
- templateBuilder.Append("</a></span>");
- templateBuilder.Append(forumnav.ToString());
- templateBuilder.Append("»<b>");
- templateBuilder.Append(post.Title.ToString().Trim());
- templateBuilder.Append("</b></h1>rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="审核回复范围选择">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="2">rn");
- templateBuilder.Append(" <div style="overflow-y: auto; overflow-x: hidden; height: 120px; width: 100%;">");
- templateBuilder.Append(post.Message.ToString().Trim());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="pm_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("">理由</label></th><td><input type="text" size="80" value="" name="pm_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" id="pm_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" class="txt"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("">操作</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input type="radio" id="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" value="validate" name="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" class="radio"/>通过rn");
- templateBuilder.Append(" <input type="radio" class="radio" value="ignore" id="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" name="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" checked="" />忽略rn");
- templateBuilder.Append(" <input type="radio" id="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" value="delete" name="mod_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" class="radio"/>删除rn");
- templateBuilder.Append(" <input value="单条操作" id="modbutton_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" name="modbutton_");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append("" class="submit" type="button" onclick="auditpost(");
- templateBuilder.Append(post.Pid.ToString().Trim());
- templateBuilder.Append(",this.form.id,");
- templateBuilder.Append(post.Tid.ToString().Trim());
- templateBuilder.Append(",");
- templateBuilder.Append(tableid.ToString());
- templateBuilder.Append(")">rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- } //end loop
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <span class="postbtn"><input type="submit" value="批量审核" /></span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form> rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">对不起,没有找到需要审核的回复。</div>rn");
- } //end if
- } //end if
- templateBuilder.Append("<!--审核主题-->rn");
- if (operation=="audittopic" && admingroupinfo.Allowmodpost==1)
- {
- templateBuilder.Append(" <h1>审核主题范围选择</h1>rn");
- templateBuilder.Append(" <form action="" method="get">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="审核主题范围选择">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="forumid">版块选择</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="forumid" id="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="filter">帖子范围</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="filter" id="filter">rn");
- templateBuilder.Append(" <option value="-2" rn");
- if (filter==-2)
- {
- templateBuilder.Append("selected="selected"rn");
- } //end if
- templateBuilder.Append(">未审核的主题</option>rn");
- templateBuilder.Append(" <option value="-3" rn");
- if (filter==-3)
- {
- templateBuilder.Append("selected="selected"rn");
- } //end if
- templateBuilder.Append(">已忽略的主题</option> rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("filter");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th/><th><input type="submit" value="提交"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- if (counts!=0)
- {
- templateBuilder.Append(" <form action="#" method="post" name="audittopic_form" id="audittopic_form">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <h1><a href="");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(forumname.ToString());
- templateBuilder.Append("</a></h1>rn");
- templateBuilder.Append(" <div class="threadlist">rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" id="110" summary="110">rn");
- templateBuilder.Append(" <thead class="category">rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td>标题</td>rn");
- templateBuilder.Append(" <td class="author">作者</td>rn");
- templateBuilder.Append(" <td class="nums">回复/查看</td>rn");
- templateBuilder.Append(" <td class="lastpost">最后发表</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead> rn");
- int topic__loop__id=0;
- foreach(TopicInfo topic in topiclist)
- {
- topic__loop__id++;
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="common">rn");
- templateBuilder.Append(" <input name="topicidlist" type="hidden" value="");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="fidlist" type="hidden" value="");
- templateBuilder.Append(topic.Fid.ToString().Trim());
- templateBuilder.Append("" />rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- templateBuilder.Append(" <a href="javascript:void(0);" onclick="getpostinfo(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(")" title="");
- templateBuilder.Append(topic.Forumname.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="author">rn");
- templateBuilder.Append(" <cite>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(topic.Posterid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Poster.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" <em> ");
- templateBuilder.Append(topic.Postdatetime.ToString().Trim());
- templateBuilder.Append("</em>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td class="nums"><strong>");
- templateBuilder.Append(topic.Replies.ToString().Trim());
- templateBuilder.Append("</strong> / <em>");
- templateBuilder.Append(topic.Views.ToString().Trim());
- templateBuilder.Append("</em></td>rn");
- templateBuilder.Append(" <td class="lastpost"> rn");
- templateBuilder.Append(" <em>rn");
- templateBuilder.Append(" <a href="showtopic.aspx?topicid=");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("&page=end#lastpost">");
- templateBuilder.Append(topic.Lastpost.ToString().Trim());
- templateBuilder.Append("</a></em>rn");
- templateBuilder.Append(" <cite>byrn");
- aspxrewriteurl = this.UserInfoAspxRewrite(topic.Lastposterid);
-
- templateBuilder.Append(" <a target="_blank" href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">");
- templateBuilder.Append(topic.Lastposter.ToString().Trim());
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </cite>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody id="msgtbody_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" style="display:none">rn");
- templateBuilder.Append(" <tr><td colspan=5><div id="msg_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(""></div></td></tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td colspan="5" style="padding:0;">rn");
- templateBuilder.Append(" <div class="footoperation" style="border: 0pt none; padding-left:4px;">rn");
- templateBuilder.Append(" <b>理由: </b><input type="text" name="pm_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" size="80" id="pm_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" class="txt"/> rn");
- templateBuilder.Append(" <b>操作: </b><input type="radio" class="radio" value="validate" id="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" name="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(""/>通过rn");
- templateBuilder.Append(" <input type="radio" class="radio" value="ignore" id="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" name="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" checked=""/>忽略rn");
- templateBuilder.Append(" <input type="radio" class="radio" name="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" value="delete" id="mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(""/>删除rn");
- templateBuilder.Append(" <input value="单条操作" id="modbutton_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" name="modbutton_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("" type="button" onclick="javascript:audittopic(");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(",getradiovalue('mod_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("'),this.form.id,$('pm_");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append("').value)">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- } //end loop
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div> rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" <span class="postbtn"><input type="submit" value="批量审核" /></span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form>rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">对不起,没有找到需要审核的主题。</div>rn");
- } //end if
- } //end if
- if (operation=="editforum")
- {
- templateBuilder.Append(" <h1>论坛版块选择</h1>rn");
- templateBuilder.Append(" <form method="get" action="">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="论坛版块选择">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>版块</th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="forumid" id="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" <td><input type="submit" id="Submit1" value="提交"/></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- if (forumid!=0)
- {
- templateBuilder.Append(" <h1>版块编辑 - ");
- templateBuilder.Append(foruminfo.Name.ToString().Trim());
- templateBuilder.Append("</h1>rn");
- templateBuilder.Append(" <form method="post" action="?operation=updateforum">rn");
- templateBuilder.Append(" <input name="forumid" type="hidden" value="");
- templateBuilder.Append(foruminfo.Fid.ToString().Trim());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="版块编辑">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- aspxrewriteurl = this.ShowForumAspxRewrite(foruminfo.Fid,0);
-
- templateBuilder.Append(" <th>版块</th><td>");
- templateBuilder.Append(foruminfo.Name.ToString().Trim());
- templateBuilder.Append(" [<a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">查看</a>]</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>版块描述<br>rn");
- templateBuilder.Append(" <br>Html 代码 <b>支持</b><br>不支持自定义 Discuz! 代码<br><br>rn");
- templateBuilder.Append(" <a href="###" onclick="javascript:$('descpreview').innerHTML=$('descnew').value">预览</a>rn");
- templateBuilder.Append(" </th>rn");
- templateBuilder.Append(" <td><div id="descpreview"></div><textarea id="descnew" name="descnew" rows="8" cols="80" class="txtarea">");
- templateBuilder.Append(foruminfo.Description.ToString().Trim());
- templateBuilder.Append("</textarea>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>本版规则<br><br>Html 代码 <b>支持</b><br>不支持自定义 Discuz! 代码<br><br><a href="###" onclick="javascript:$('rulespreview').innerHTML=$('rulesnew').value">预览</a></th>rn");
- templateBuilder.Append(" <td><div id="rulespreview"></div>rn");
- if (alloweditrules)
- {
- templateBuilder.Append(" <textarea id="rulesnew" name="rulesnew" rows="8" cols="80" class="txtarea">rn");
- }
- else
- {
- templateBuilder.Append(" <textarea id="rulesnew" name="rulesnew" rows="8" cols="80" disabled readonly class="txtarea">rn");
- } //end if
- templateBuilder.Append(foruminfo.Rules.ToString().Trim());
- templateBuilder.Append("</textarea></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th></th><td><button type="submit" id="Submit1">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- } //end if
- } //end if
- if (operation=="logs" && admingroupinfo.Allowviewlog==1)
- {
- templateBuilder.Append(" <h1>管理日志搜索</h1>rn");
- templateBuilder.Append(" <form method="get" action="">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable" summary="版块编辑">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th>关键字</label>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <input name="keyword" value="" size="60" type="text" class="txt">每页显示条数rn");
- templateBuilder.Append(" <input name="lpp" value="20" size="4" type="text" class="txt">rn");
- templateBuilder.Append(" <button type="submit" id="searchsubmit" value="true">提交</button>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <h1>管理日志列表</h1>rn");
- templateBuilder.Append(" <div class="datalist">rn");
- templateBuilder.Append(" <table summary="" cellpadding="0" cellspacing="0" class="datatable">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr class="colplural">rn");
- templateBuilder.Append(" <th width="15%">时间</th>rn");
- templateBuilder.Append(" <th width="15%">用户名</th>rn");
- templateBuilder.Append(" <th width="10%">管理组</th>rn");
- templateBuilder.Append(" <td width="10%">IP</td>rn");
- templateBuilder.Append(" <th width="10%">操作</th>rn");
- templateBuilder.Append(" <td width="15%">版块</td>rn");
- templateBuilder.Append(" <td width="5%">其他</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <tbody>rn");
- int logs__loop__id=0;
- foreach(DataRow logs in moderatorLogs.Rows)
- {
- logs__loop__id++;
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="time">" + logs["postdatetime"].ToString().Trim() + "</td>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(logs["moderatoruid"].ToString().Trim());
-
- templateBuilder.Append(" <td><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank"><b>" + logs["moderatorname"].ToString().Trim() + "</b></a></td>rn");
- templateBuilder.Append(" <td>" + logs["grouptitle"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" <td>" + logs["ip"].ToString().Trim() + "</td>rn");
- templateBuilder.Append(" <td>" + logs["actions"].ToString().Trim() + "</td>rn");
- aspxrewriteurl = this.ShowForumAspxRewrite(logs["fid"].ToString().Trim(),0);
-
- templateBuilder.Append(" <td><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">" + logs["fname"].ToString().Trim() + "</a></td>rn");
- templateBuilder.Append(" <td><a href="###" rn");
- if (logs["reason"].ToString().Trim()!="")
- {
- templateBuilder.Append("onmouseover="showMenu(this.id)"rn");
- } //end if
- templateBuilder.Append(" id="" + logs__loop__id.ToString() + "">详情</a></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <div id="" + logs__loop__id.ToString() + "_menu" class="popupmenu_popup" style="display: none;">rn");
- templateBuilder.Append(" <ul>rn");
- templateBuilder.Append(" " + logs["reason"].ToString().Trim() + "rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- } //end loop
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <!--主题关注-->rn");
- if (operation=="attention")
- {
- templateBuilder.Append(" <h1>论坛版块选择</h1>rn");
- templateBuilder.Append(" <form action="" method="get">rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <table cellspacing="0" cellpadding="0" class="formtable">rn");
- templateBuilder.Append(" <tbody>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="keyword">关键字</label></th><td><input name="keyword" value="" size="45" type="text" class="txt"></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th><label for="forumid">版块选择</label></th>rn");
- templateBuilder.Append(" <td>rn");
- templateBuilder.Append(" <select name="forumid" id="forumid">rn");
- templateBuilder.Append(" <option value="0">全部</option>rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(forumliststr.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <th> </th><td><button type="submit" value="提交">提交</button></td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </form>rn");
- if (counts>0)
- {
- templateBuilder.Append(" <form action="" method="post">rn");
- templateBuilder.Append(" <h1>主题关注列表</h1>rn");
- templateBuilder.Append(" <input name="forumid" type="hidden" value="");
- templateBuilder.Append(forumid.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <input name="operation" type="hidden" value="");
- templateBuilder.Append(operation.ToString());
- templateBuilder.Append("" />rn");
- templateBuilder.Append(" <div class="datalist">rn");
- templateBuilder.Append(" <table summary="" cellpadding="0" cellspacing="0" class="datatable">rn");
- templateBuilder.Append(" <thead>rn");
- templateBuilder.Append(" <tr class="colplural">rn");
- templateBuilder.Append(" <th style="text-align:left;"><input type="checkbox" name="chkall" onclick="checkall(this.form, 'topicid')"/>标题</th>rn");
- templateBuilder.Append(" <th width="10%">作者</th>rn");
- templateBuilder.Append(" <th width="20%">发布时间</th>rn");
- templateBuilder.Append(" <td width="20%">最后发表</td>rn");
- templateBuilder.Append(" </tr>rn");
- templateBuilder.Append(" </thead>rn");
- templateBuilder.Append(" <tbody>rn");
- int topic__loop__id=0;
- foreach(TopicInfo topic in topiclist)
- {
- topic__loop__id++;
- templateBuilder.Append(" <tr>rn");
- templateBuilder.Append(" <td class="datatitle">rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(topic.Tid,0);
-
- templateBuilder.Append(" <input type="checkbox" id="topicid" name="topicid" value="");
- templateBuilder.Append(topic.Tid.ToString().Trim());
- templateBuilder.Append(""/><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(topic.Title.ToString().Trim());
- templateBuilder.Append("</a></td>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(topic.Posterid);
-
- templateBuilder.Append(" <td><a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="_blank">");
- templateBuilder.Append(topic.Poster.ToString().Trim());
- templateBuilder.Append("</a></td>rn");
- templateBuilder.Append(" <td class="time">");
- templateBuilder.Append(topic.Postdatetime.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" <td class="time">");
- templateBuilder.Append(topic.Lastpost.ToString().Trim());
- templateBuilder.Append("</td>rn");
- templateBuilder.Append(" </tr>rn");
- } //end loop
- templateBuilder.Append(" </tbody>rn");
- templateBuilder.Append(" </table>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="pages_btns">rn");
- templateBuilder.Append(" <div class="pages">rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="float_typeid">rn");
- templateBuilder.Append(" <select name="disattentiontype" id="disattentiontype">rn");
- templateBuilder.Append(" <option value="0" selected="selected">所选主题</option>rn");
- templateBuilder.Append(" <option value="7">一星期前</option>rn");
- templateBuilder.Append(" <option value="30">一月前</option>rn");
- templateBuilder.Append(" <option value="365">一年前</option>rn");
- templateBuilder.Append(" </select>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <script type="text/javascript">loadselect("disattentiontype");</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <input type="submit" value="取消关注">rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" </form> rn");
- }
- else
- {
- templateBuilder.Append(" <div class="hintinfo">对不起,没有找到需要关注的主题。</div>rn");
- } //end if
- } //end if
- templateBuilder.Append(" </div>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
- 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>