forumlist.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:31k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Web.forumlist" %>
- <%@ Import namespace="System.Data" %>
- <%@ Import namespace="Discuz.Common" %>
- <%@ Import namespace="Discuz.Forum" %>
- <%@ Import namespace="Discuz.Entity" %>
- <script runat="server">
- override protected void OnInit(EventArgs e)
- {
- /*
- This page was created by Discuz!NT Template Engine at 2010/2/8 15:43:58.
- 本页面代码由Discuz!NT模板引擎生成于 2010/2/8 15:43:58.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- if (infloat!=1)
- {
- templateBuilder.Append("<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">rn");
- templateBuilder.Append("<html xmlns="http://www.w3.org/1999/xhtml">rn");
- templateBuilder.Append("<head>rn");
- templateBuilder.Append("<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />rn");
- if (pagetitle=="首页")
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- }
- else
- {
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- } //end if
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<meta name="generator" content="Discuz!NT 3.1.0" />rn");
- templateBuilder.Append("<meta name="author" content="Discuz!NT Team and Comsenz UI Team" />rn");
- templateBuilder.Append("<meta name="copyright" content="2001-2010 Comsenz Inc." />rn");
- templateBuilder.Append("<meta http-equiv="x-ua-compatible" content="ie=7" />rn");
- templateBuilder.Append("<link rel="icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/dnt.css" type="text/css" media="all" />rn");
- templateBuilder.Append("<link rel="stylesheet" href="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/float.css" type="text/css" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append("var creditnotice='");
- templateBuilder.Append(Scoresets.GetValidScoreNameAndId().ToString().Trim());
- templateBuilder.Append("'; rn");
- templateBuilder.Append("var forumpath = "");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var aspxrewrite = ");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(";rn");
- templateBuilder.Append(" var IMGDIR = '");
- templateBuilder.Append(forumurl.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images'rn");
- templateBuilder.Append(" var allowfloatwin = ");
- templateBuilder.Append(config.Allowfloatwin.ToString().Trim());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var rooturl="");
- templateBuilder.Append(rooturl.ToString());
- templateBuilder.Append("";rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<style>rn");
- templateBuilder.Append("body{rn");
- templateBuilder.Append(" text-align:left;background:#F5FAFD;rn");
- templateBuilder.Append("}rn");
- templateBuilder.Append(".collapse,.expand{position: absolute;background-image:url(templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/collapse.gif);background-repeat:no-repeat;background-position:50% 50%;width:6px; height:50px;}rn");
- templateBuilder.Append(".expand {background-image:url(templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/expand.gif);}rn");
- templateBuilder.Append("</style>rn");
- templateBuilder.Append("<body onLoad="window_load();">rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript">rn");
- templateBuilder.Append(" var NoUser = ");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append(" == -1 ? true : false;rn");
- templateBuilder.Append(" var lastA = null; rn");
- templateBuilder.Append(" function window_load(){rn");
- templateBuilder.Append(" documentbody = document.documentElement.clientHeight > document.body.clientHeight ? document.documentElement : document.body;rn");
- templateBuilder.Append(" var leftbar = document.getElementById('leftbar')rn");
- templateBuilder.Append(" leftbar.style.height = documentbody.clientHeight +'px';rn");
- templateBuilder.Append(" leftbar.style.left = 0; //document.body.clientWidth - 6;rn");
- templateBuilder.Append(" leftbar.style.top = documentbody.scrollTop + 'px'; //document.body.clientWidth - 6;rn");
- templateBuilder.Append(" document.onscroll = function(){ rn");
- templateBuilder.Append(" leftbar.style.height=documentbody.clientHeight +'px';rn");
- templateBuilder.Append(" leftbar.style.top=documentbody.scrollTop + 'px'; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" document.onresize = function(){ rn");
- templateBuilder.Append(" leftbar.style.height=documentbody.clientHeight +'px';rn");
- templateBuilder.Append(" leftbar.style.top=documentbody.scrollTop + 'px'; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function resizediv_onClick(){rn");
- templateBuilder.Append(" if (document.getElementById('menubar').style.display != 'none'){rn");
- templateBuilder.Append(" top.document.getElementsByTagName('FRAMESET')[0].cols = "6,*";rn");
- templateBuilder.Append(" document.getElementById('menubar').style.display = 'none';rn");
- templateBuilder.Append(" document.getElementById('leftbar').className = "expand";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" top.document.getElementsByTagName('FRAMESET')[0].cols = "210,*";rn");
- templateBuilder.Append(" document.getElementById('leftbar').className = "collapse";rn");
- templateBuilder.Append(" document.getElementById('menubar').style.display = '';rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" //↓----------获得版块的树形列表相关脚本-------------------------rn");
- templateBuilder.Append(" function changeExtImg(objImg){rn");
- templateBuilder.Append(" if (!objImg){ return; } rn");
- templateBuilder.Append(" var fileName = objImg.src.toLowerCase().substring(objImg.src.lastIndexOf("/"));rn");
- templateBuilder.Append(" switch(fileName){rn");
- templateBuilder.Append(" case "/p0.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/m0.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/p1.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/m1.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/p2.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/m2.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/p3.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/m3.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/m0.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/p0.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/m1.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/p1.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/m2.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/p2.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/m3.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/p3.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function changeFolderImg(objImg){rn");
- templateBuilder.Append(" if (!objImg){ return; } rn");
- templateBuilder.Append(" var fileName = objImg.src.toLowerCase().substring(objImg.src.lastIndexOf("/"));rn");
- templateBuilder.Append(" switch(fileName){rn");
- templateBuilder.Append(" case "/folder.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/folderopen.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" case "/folderopen.gif":rn");
- templateBuilder.Append(" objImg.src = "images/tree/folder.gif";rn");
- templateBuilder.Append(" break;rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function a_click(objA){rn");
- templateBuilder.Append(" if (lastA){rn");
- templateBuilder.Append(" lastA.className=''; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" objA.className='bold'; rn");
- templateBuilder.Append(" lastA = objA; rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function writesubforum(objreturn,fid,AtEnd){rn");
- templateBuilder.Append(" var process = document.getElementById("process_" + fid);rn");
- templateBuilder.Append(" var forum = document.getElementById("forum_" + fid);rn");
- templateBuilder.Append(" var dataArray = objreturn.getElementsByTagName('forum');rn");
- templateBuilder.Append(" var dataArrayLen = dataArray.length;rn");
- templateBuilder.Append(" changeExtImg(document.getElementById("forumExt_" + fid));rn");
- templateBuilder.Append(" changeFolderImg(document.getElementById("forumFolder_" + fid));rn");
- templateBuilder.Append(" for (i=0;i<dataArrayLen;i++){rn");
- templateBuilder.Append(" var thisfid = dataArray[i].getAttribute("fid");rn");
- templateBuilder.Append(" var subforumcount = dataArray[i].getAttribute("subforumcount");rn");
- templateBuilder.Append(" var thisEnd = i==dataArrayLen-1;rn");
- templateBuilder.Append(" var layer = dataArray[i].getAttribute("layer");rn");
- templateBuilder.Append(" //显示树型线rn");
- templateBuilder.Append(" list = "";rn");
- templateBuilder.Append(" for (l=1;l<=layer;l++){rn");
- templateBuilder.Append(" if (AtEnd && NoUser){rn");
- templateBuilder.Append(" list += "<nobr><img src = \"images/tree/L5.gif\" align=\"absmiddle\" />";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" list += "<img src = \"images/tree/L4.gif\" align=\"absmiddle\" />";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (subforumcount>0){rn");
- templateBuilder.Append(" folder = "folder.gif";rn");
- templateBuilder.Append(" if (layer==0 && thisEnd){rn");
- templateBuilder.Append(" if (NoUser){rn");
- templateBuilder.Append(" src = "p2.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" src = "p1.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" if (thisEnd && layer>0){rn");
- templateBuilder.Append(" src = "P2.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" //if (i==0 && layer==0){rn");
- templateBuilder.Append(" // src = "P0.gif";rn");
- templateBuilder.Append(" //}rn");
- templateBuilder.Append(" //else{rn");
- templateBuilder.Append(" src = "P1.gif";rn");
- templateBuilder.Append(" //}rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" folder = "file.gif";rn");
- templateBuilder.Append(" if (layer==0 && thisEnd){rn");
- templateBuilder.Append(" if (NoUser){rn");
- templateBuilder.Append(" src = "m2.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" src = "m1.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" if (thisEnd){rn");
- templateBuilder.Append(" src = "L2.gif";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" //if (i==0 && layer==0){rn");
- templateBuilder.Append(" // src = "L0.gif";rn");
- templateBuilder.Append(" //}rn");
- templateBuilder.Append(" //else{rn");
- templateBuilder.Append(" src = "L1.gif";rn");
- templateBuilder.Append(" //}rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if(");
- templateBuilder.Append(config.Aspxrewrite.ToString().Trim());
- templateBuilder.Append(")rn");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" list += "<img id=\"forumExt_" + thisfid + "\" src = \"images/tree/" + src + "\" align=\"absmiddle\" /><img id=\"forumFolder_" + thisfid + "\" src = \"images/tree/" + folder + "\" align=\"absmiddle\" /> <a href=\"showforum-" + thisfid + ".aspx\" target=\"main\" title=\"" + dataArray[i].getAttribute("name") + "\" onclick=\"a_click(this);\">" + dataArray[i].getAttribute("name") + "</a></nobr>";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" elsern");
- templateBuilder.Append(" {rn");
- templateBuilder.Append(" list += "<img id=\"forumExt_" + thisfid + "\" src = \"images/tree/" + src + "\" align=\"absmiddle\" /><img id=\"forumFolder_" + thisfid + "\" src = \"images/tree/" + folder + "\" align=\"absmiddle\" /> <a href=\"showforum.aspx?forumid=" + thisfid + "\" target=\"main\" title=\"" + dataArray[i].getAttribute("name") + "\" onclick=\"a_click(this);\">" + dataArray[i].getAttribute("name") + "</a></nobr>";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" var div_forumtitle = document.createElement("DIV");rn");
- templateBuilder.Append(" div_forumtitle.id = "forumtitle_" + thisfid;rn");
- templateBuilder.Append(" div_forumtitle.className = "tree_forumtitle";rn");
- templateBuilder.Append(" if (subforumcount>0){rn");
- templateBuilder.Append(" div_forumtitle.onclick = new Function("getsubforum(" + thisfid + "," + thisEnd + ");");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" div_forumtitle.innerHTML = list;rn");
- templateBuilder.Append(" forum.appendChild(div_forumtitle);rn");
- templateBuilder.Append(" var div_forum = document.createElement("DIV");rn");
- templateBuilder.Append(" div_forum.id = "forum_" + thisfid;rn");
- templateBuilder.Append(" div_forum.className = "tree_forum";rn");
- templateBuilder.Append(" forum.appendChild(div_forum);rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" process.style.display="none";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" function getsubforum(fid,AtEnd){rn");
- templateBuilder.Append(" if (!document.getElementById("forum_" + fid)){rn");
- templateBuilder.Append(" document.writeln("<div id=\"forum_" + fid + "\"></div>");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" if (!document.getElementById("process_" + fid)){rn");
- templateBuilder.Append(" var div = document.createElement("DIV");rn");
- templateBuilder.Append(" div.id = "process_" + fid;rn");
- templateBuilder.Append(" div.className = "tree_process";rn");
- templateBuilder.Append(" div.innerHTML = "<img src='images/common/loading.gif' />载入中...";rn");
- templateBuilder.Append(" document.getElementById("forum_" + fid).appendChild(div);rn");
- templateBuilder.Append(" ajaxRead("tools/ajax.aspx?t=forumtree&fid=" + fid, "writesubforum(obj," + fid+ "," + AtEnd + ");");rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{rn");
- templateBuilder.Append(" changeExtImg(document.getElementById("forumExt_" + fid));rn");
- templateBuilder.Append(" changeFolderImg(document.getElementById("forumFolder_" + fid));rn");
- templateBuilder.Append(" if (document.getElementById("forum_" + fid).style.display == "none"){rn");
- templateBuilder.Append(" document.getElementById("forum_" + fid).style.display = "block";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" else{ rn");
- templateBuilder.Append(" document.getElementById("forum_" + fid).style.display = "none";rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" }rn");
- templateBuilder.Append(" //↑----------获得版块的树形列表相关脚本-------------------------rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<div id="leftbar" class="collapse" onmouseover="this.style.backgroundColor='#A7E8F3';" onmouseout="this.style.backgroundColor = '';" onclick="resizediv_onClick()" style="width:6px; cursor:pointer" title="打开/关闭导航"></div>rn");
- templateBuilder.Append("<div id="menubar" style="white-space:nowrap;">rn");
- templateBuilder.Append(" <div id="frameback">rn");
- templateBuilder.Append(" <A href="###" onClick="resizediv_onClick()" class="hideside">隐藏侧栏</a><A href="forumindex.aspx?f=0" target="_top" class="back">平板模式</a>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="framemenu">rn");
- templateBuilder.Append(" <ul>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <li>欢迎访问");
- templateBuilder.Append(config.Forumtitle.ToString().Trim());
- templateBuilder.Append("</li>rn");
- templateBuilder.Append(" <li>rn");
- aspxrewriteurl = this.UserInfoAspxRewrite(userinfo.Uid);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("" target="main" class="lightlink">");
- templateBuilder.Append(userinfo.Username.ToString().Trim());
- templateBuilder.Append("</a> [ <a href="logout.aspx?userkey=");
- templateBuilder.Append(userkey.ToString());
- templateBuilder.Append("&reurl=index.aspx" target="main">退出</a> ]</li>rn");
- templateBuilder.Append(" <li>积分: <span class="lightlink">");
- templateBuilder.Append(userinfo.Credits.ToString().Trim());
- templateBuilder.Append("</span> [<span id="creditlist" onMouseOver="showMenu(this.id, false);" style="CURSOR:pointer">详细积分</span>]</li>rn");
- templateBuilder.Append(" <li>头衔: ");
- templateBuilder.Append(usergroupinfo.Grouptitle.ToString().Trim());
- templateBuilder.Append("rn");
- if (useradminid==1)
- {
- templateBuilder.Append(" | <a href="admin/index.aspx" target="_blank">系统设置</a>rn");
- } //end if
- templateBuilder.Append(" </li>rn");
- }
- else
- {
- templateBuilder.Append(" <li>头衔: 游客rn");
- templateBuilder.Append(" [<a href="register.aspx" target="main">注册</a>] rn");
- templateBuilder.Append(" [<a href="login.aspx?reurl=index.aspx" target="main">登录</a>]rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- if (oluserinfo.Newpms>0)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" 新的短消息<a href="usercpinbox.aspx" target="main"><span id="newpmcount" class="lightlink">");
- templateBuilder.Append(oluserinfo.Newpms.ToString().Trim());
- templateBuilder.Append("</span></a>条rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- templateBuilder.Append(" <li><hr class="solidline"/></li>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/home.gif">rn");
- templateBuilder.Append(" <a href="forumindex.aspx" target="main">论坛首页</a>rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <img src="images/tree/L1.gif" width="20" height="20" /><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/folder_new.gif" width="20" height="20" />rn");
- templateBuilder.Append(" <a href="showtopiclist.aspx?type=newtopic&newtopic=");
- templateBuilder.Append(newtopicminute.ToString());
- templateBuilder.Append("&forums=all" target="main">查看新帖</a>rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <img src="images/tree/L1.gif" width="20" height="20"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/showdigest.gif" width="20" height="20" />rn");
- templateBuilder.Append(" <a href="showtopiclist.aspx?type=digest&forums=all" target="main">精华帖区</a>rn");
- templateBuilder.Append(" </li>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" <script type="text/javascript">rn");
- templateBuilder.Append(" //生成版块列表rn");
- templateBuilder.Append(" getsubforum(0);rn");
- templateBuilder.Append(" </");
- templateBuilder.Append("script>rn");
- if (userid!=-1)
- {
- templateBuilder.Append(" <div onClick="getsubforum(-1,true);">rn");
- templateBuilder.Append(" <img id="forumExt_-1" src="images/tree/M2.gif" width="20" height="20" /><img id="forumFolder_-1" src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/mytopic.gif" /><span class="cursor">用户功能区</span>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div id="process_-1"></div>rn");
- templateBuilder.Append(" <div id="forum_-1" style="display:block;">rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L1.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/folder_mytopic.gif" width="16" height="16">rn");
- templateBuilder.Append(" <a href="mytopics.aspx" target="main">我的主题</a></div>rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L1.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/folder_s.gif" width="16" height="16">rn");
- templateBuilder.Append(" <a href="myposts.aspx" target="main">我的帖子</a></div>rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L1.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/digest.gif">rn");
- templateBuilder.Append(" <a href="search.aspx?posterid=");
- templateBuilder.Append(userid.ToString());
- templateBuilder.Append("&type=digest" target="main">我的精华</a></div>rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L1.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/favorite.gif">rn");
- templateBuilder.Append(" <a href="usercpsubscribe.aspx" target="main">我的收藏</a></div>rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L1.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/usericon.gif">rn");
- templateBuilder.Append(" <a href="usercp.aspx" target="main">用户中心</a></div>rn");
- templateBuilder.Append(" <div><img src="images/tree/L5.gif" width="20" height="20" border="0"><img src="images/tree/L2.gif" width="20" height="20" border="0"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/pm_1.gif" width="16" height="16">rn");
- templateBuilder.Append(" <a href="usercppostpm.aspx" target="main">撰写短消息</a></div>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <hr class="solidline"/>rn");
- templateBuilder.Append(" <div class="framemenu">rn");
- templateBuilder.Append(" <ul>rn");
- templateBuilder.Append(" <li>在线用户: </li>rn");
- templateBuilder.Append(" <li>");
- templateBuilder.Append(totalonline.ToString());
- templateBuilder.Append("人在线 (");
- templateBuilder.Append(totalonlineuser.ToString());
- templateBuilder.Append("位会员) </li>rn");
- if (config.Rssstatus!=0)
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="tools/rss.aspx" target="_blank"><img src="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/rss2.gif" alt="RSS订阅全部论坛"></a>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</body>rn");
- templateBuilder.Append("</html>rn");
- }
- else
- {
- templateBuilder.Append("]]></root>rn");
- } //end if
- templateBuilder.Append("<ul id="creditlist_menu" class="popupmenu_popup" style="display:none;">rn");
- if (score[1].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[1].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits1.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[2].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[2].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits2.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[3].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[3].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits3.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[4].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[4].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits4.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[5].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[5].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits5.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[6].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[6].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits6.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[7].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[7].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits7.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- if (score[8].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>" + score[8].ToString().Trim() + ": ");
- templateBuilder.Append(userinfo.Extcredits8.ToString().Trim());
- templateBuilder.Append("</li>rn");
- } //end if
- templateBuilder.Append("</ul>rn");
- Response.Write(templateBuilder.ToString());
- }
- </script>