spaceindex.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:28k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Space.Pages.spaceindex" %>
- <%@ 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 2009-9-22 17:25:02.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:25:02.
- */
- base.OnInit(e);
- templateBuilder.Capacity = 220000;
- 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");
- templateBuilder.Append(meta.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<title>");
- templateBuilder.Append(pagetitle.ToString());
- templateBuilder.Append(" ");
- templateBuilder.Append(config.Seotitle.ToString().Trim());
- templateBuilder.Append(" - ");
- templateBuilder.Append(config.Spacename.ToString().Trim());
- templateBuilder.Append(" - Powered by Discuz!NT</title>rn");
- templateBuilder.Append("<link rel="icon" href="favicon.ico" type="image/x-icon" />rn");
- templateBuilder.Append("<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> rn");
- templateBuilder.Append("<!-- 调用样式表 -->rn");
- templateBuilder.Append("<link rel="stylesheet" href="templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/space/space.css" type="text/css" media="all" />rn");
- templateBuilder.Append(link.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_report.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/template_utils.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/common.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type="text/javascript" src="javascript/menu.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("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(script.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append("</head>rn");
- templateBuilder.Append("<body>rn");
- templateBuilder.Append("<div id="container">rn");
- templateBuilder.Append(" <div id="submenu">rn");
- templateBuilder.Append(" <div class="wrap s_clear">rn");
- if (usergroupinfo.Allowsearch>0)
- {
- } //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">");
- templateBuilder.Append(headerad.ToString());
- templateBuilder.Append("</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");
- 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)
- {
- templateBuilder.Append("<div class="wrap">rn");
- templateBuilder.Append("<div class="left space_main s_clear">rn");
- templateBuilder.Append(" <div class="modulebox hot_blog">rn");
- templateBuilder.Append(" <h2>推荐日志</h2>rn");
- templateBuilder.Append(" <ul class="space_list s_clear">rn");
- int __spacepostrecommend__loop__id=0;
- foreach(SpaceShortPostInfo __spacepostrecommend in spacepostlist)
- {
- __spacepostrecommend__loop__id++;
- if (__spacepostrecommend.Author!="")
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <cite><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=");
- templateBuilder.Append(__spacepostrecommend.Uid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(__spacepostrecommend.Author.ToString().Trim());
- templateBuilder.Append("</a></cite>rn");
- templateBuilder.Append(" <cite>rn");
- templateBuilder.Append(Convert.ToDateTime(__spacepostrecommend.Postdatetime).ToString("yyyy-MM-dd"));
- templateBuilder.Append("</cite>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=");
- templateBuilder.Append(__spacepostrecommend.Postid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__spacepostrecommend.Title),70,"..."));
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="f_clear"></div>rn");
- templateBuilder.Append(" <div class="modulebox browser_blog">rn");
- templateBuilder.Append(" <h2>最多浏览文章</h2>rn");
- templateBuilder.Append(" <ul class="space_list s_clear">rn");
- int __spacepostbyviews__loop__id=0;
- foreach(DataRow __spacepostbyviews in topspacepostviews.Rows)
- {
- __spacepostbyviews__loop__id++;
- if (__spacepostbyviews["commentcount"].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <cite>( " + __spacepostbyviews["views"].ToString().Trim() + " )</cite>rn");
- templateBuilder.Append(" · <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __spacepostbyviews["postid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__spacepostbyviews["title"].ToString().Trim()),40,"..."));
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="modulebox comment_blog">rn");
- templateBuilder.Append(" <h2>最多评论文章</h2>rn");
- templateBuilder.Append(" <ul class="space_list s_clear">rn");
- int __spacepostbycomment__loop__id=0;
- foreach(DataRow __spacepostbycomment in topspacepostcommentcount.Rows)
- {
- __spacepostbycomment__loop__id++;
- if (__spacepostbycomment["commentcount"].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <cite>( " + __spacepostbycomment["commentcount"].ToString().Trim() + " )</cite>rn");
- templateBuilder.Append(" · <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __spacepostbycomment["postid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__spacepostbycomment["title"].ToString().Trim()),40,"..."));
- templateBuilder.Append("</a>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="f_clear"></div>rn");
- templateBuilder.Append(" <div class="modulebox hot_space">rn");
- templateBuilder.Append(" <h2>推荐空间</h2>rn");
- templateBuilder.Append(" <ul>rn");
- int __spaceconfig__loop__id=0;
- foreach(SpaceConfigInfoExt __spaceconfig in spaceconfigs)
- {
- __spaceconfig__loop__id++;
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=");
- templateBuilder.Append(__spaceconfig.Userid.ToString().Trim());
- templateBuilder.Append("" target="_blank">rn");
- string avatarurl = Avatars.GetAvatarUrl(__spaceconfig.Userid,AvatarSize.Small);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';"/>rn");
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" <h3><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=");
- templateBuilder.Append(__spaceconfig.Userid.ToString().Trim());
- templateBuilder.Append("" target="_blank">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(__spaceconfig.Spacetitle,35,"..."));
- templateBuilder.Append("</a></h3>rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=");
- templateBuilder.Append(__spaceconfig.Postid.ToString().Trim());
- templateBuilder.Append("">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__spaceconfig.Posttitle),35,"..."));
- templateBuilder.Append("</a></p>rn");
- templateBuilder.Append(" <p>日志: <em>");
- templateBuilder.Append(__spaceconfig.Postcount.ToString().Trim());
- templateBuilder.Append("</em> rn");
- if (config.Enablealbum==1)
- {
- templateBuilder.Append("相册: <em>");
- templateBuilder.Append(__spaceconfig.Albumcount.ToString().Trim());
- templateBuilder.Append("</em>rn");
- } //end if
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" </li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="modulebox hot_space">rn");
- templateBuilder.Append(" <h2>最多评论空间</h2>rn");
- templateBuilder.Append(" <ul>rn");
- int __topcommentcountspaceinfo__loop__id=0;
- foreach(DataRow __topcommentcountspaceinfo in topspacelistbycommentcount.Rows)
- {
- __topcommentcountspaceinfo__loop__id++;
- if (__topcommentcountspaceinfo["userid"].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=" + __topcommentcountspaceinfo["userid"].ToString().Trim() + "" target="_blank">rn");
- string avatarurl = Avatars.GetAvatarUrl(TypeConverter.ObjectToInt(__topcommentcountspaceinfo["userid"]),AvatarSize.Small);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';"/>rn");
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" <h3><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=" + __topcommentcountspaceinfo["userid"].ToString().Trim() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__topcommentcountspaceinfo["spacetitle"].ToString().Trim()),35,"..."));
- templateBuilder.Append("</a></h3>rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __topcommentcountspaceinfo["postid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__topcommentcountspaceinfo["posttitle"].ToString().Trim()),35,"..."));
- templateBuilder.Append("</a></p>rn");
- templateBuilder.Append(" <p>日志:<em>" + __topcommentcountspaceinfo["postcount"].ToString().Trim() + "</em> 最后更新:<em>rn");
- templateBuilder.Append(Convert.ToDateTime(__topcommentcountspaceinfo["updatedatetime"].ToString().Trim()).ToString("yyyy-MM-dd"));
- templateBuilder.Append("</em></p>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="modulebox hot_space">rn");
- templateBuilder.Append(" <h2>最多访问空间</h2>rn");
- templateBuilder.Append(" <ul>rn");
- int __topvisitedtimesspaceinfo__loop__id=0;
- foreach(DataRow __topvisitedtimesspaceinfo in topspacelistbyvisitedtimes.Rows)
- {
- __topvisitedtimesspaceinfo__loop__id++;
- if (__topvisitedtimesspaceinfo["userid"].ToString().Trim()!="")
- {
- templateBuilder.Append(" <li>rn");
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=" + __topvisitedtimesspaceinfo["userid"].ToString().Trim() + "" target="_blank">rn");
- string avatarurl = Avatars.GetAvatarUrl(TypeConverter.ObjectToInt(__topvisitedtimesspaceinfo["userid"]),AvatarSize.Small);
-
- templateBuilder.Append(" <img src="");
- templateBuilder.Append(avatarurl.ToString());
- templateBuilder.Append("" onerror="this.onerror=null;this.src='");
- templateBuilder.Append(forumpath.ToString());
- templateBuilder.Append("templates/");
- templateBuilder.Append(templatepath.ToString());
- templateBuilder.Append("/images/noavatar_small.gif';"/>rn");
- templateBuilder.Append(" </a>rn");
- templateBuilder.Append(" <h3><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=" + __topvisitedtimesspaceinfo["userid"].ToString().Trim() + "" target="_blank">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__topvisitedtimesspaceinfo["spacetitle"].ToString().Trim()),35,"..."));
- templateBuilder.Append("</a></h3>rn");
- templateBuilder.Append(" <p><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __topvisitedtimesspaceinfo["postid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__topvisitedtimesspaceinfo["posttitle"].ToString().Trim()),35,"..."));
- templateBuilder.Append("</a></p>rn");
- templateBuilder.Append(" <p>日志:<em>" + __topvisitedtimesspaceinfo["postcount"].ToString().Trim() + "</em> 最后更新:<em>rn");
- templateBuilder.Append(Convert.ToDateTime(__topvisitedtimesspaceinfo["updatedatetime"].ToString().Trim()).ToString("yyyy-MM-dd"));
- templateBuilder.Append("</em></p>rn");
- templateBuilder.Append(" </li>rn");
- } //end if
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div class="right space_side s_clear">rn");
- if (rotatepicdata!=null && rotatepicdata!="")
- {
- templateBuilder.Append("<div class="sidebox" style="padding:1px;">rn");
- templateBuilder.Append("<script type='text/javascript'>rn");
- templateBuilder.Append("var imgwidth = 228;rn");
- templateBuilder.Append("var imgheight = 127;rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script> rn");
- templateBuilder.Append("<!--图片轮换代码开始-->rn");
- templateBuilder.Append("<script type='text/javascript' src='javascript/template_rotatepic.js'></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<script type='text/javascript'>rn");
- templateBuilder.Append(" var data = { };rn");
- templateBuilder.Append(" ");
- templateBuilder.Append(rotatepicdata.ToString());
- templateBuilder.Append("rn");
- templateBuilder.Append(" var ri = new MzRotateImage();rn");
- templateBuilder.Append(" ri.dataSource = data;rn");
- templateBuilder.Append(" ri.width = 228;rn");
- templateBuilder.Append(" ri.height = 127;rn");
- templateBuilder.Append(" ri.interval = 3000;rn");
- templateBuilder.Append(" ri.duration = 2000;rn");
- templateBuilder.Append(" document.write(ri.render());rn");
- templateBuilder.Append("</");
- templateBuilder.Append("script>rn");
- templateBuilder.Append("<!--图片轮换代码结束--> rn");
- templateBuilder.Append("</div>rn");
- } //end if
- templateBuilder.Append(" <div class="sidebox"> rn");
- templateBuilder.Append(" <h4>最新空间评论</h4>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int comment__loop__id=0;
- foreach(DataRow comment in topspacecomments.Rows)
- {
- comment__loop__id++;
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + comment["postid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(comment["content"].ToString().Trim()),30,"..."));
- templateBuilder.Append("</a> [" + comment["author"].ToString().Trim() + "]</li> rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- if (config.Enabletag==1)
- {
- templateBuilder.Append(" <script type="text/javascript" src="cache/tag/closedtags.txt"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="cache/tag/colorfultags.txt"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/ajax.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <script type="text/javascript" src="javascript/template_tags.js"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" <div class="sidebox">rn");
- templateBuilder.Append(" <h4>热门标签</h4>rn");
- templateBuilder.Append(" <ul id="spacehottags">rn");
- templateBuilder.Append(" <script type="text/javascript" src="cache/hottags_space_cache_jsonp.txt" onerror="this.onerror=null;getajaxspacehottags();"></");
- templateBuilder.Append("script>rn");
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- if (config.Enablealbum==1)
- {
- templateBuilder.Append(" <div class="sidebox">rn");
- templateBuilder.Append(" <h4>推荐相册</h4>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int album__loop__id=0;
- foreach(AlbumInfo album in recommendalbumlist)
- {
- album__loop__id++;
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(albumurl.ToString());
- templateBuilder.Append("showalbum.aspx?albumid=");
- templateBuilder.Append(album.Albumid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(album.Title.ToString().Trim());
- templateBuilder.Append("</a> (");
- templateBuilder.Append(album.Imgcount.ToString().Trim());
- templateBuilder.Append(") [<a href="showalbumlist.aspx?uid=");
- templateBuilder.Append(album.Userid.ToString().Trim());
- templateBuilder.Append("">");
- templateBuilder.Append(album.Username.ToString().Trim());
- templateBuilder.Append("</a>]</li> rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- } //end if
- templateBuilder.Append(" <div class="sidebox">rn");
- templateBuilder.Append(" <h4>最近更新的空间</h4>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int __space__loop__id=0;
- foreach(DataRow __space in recentupdatespaceList.Rows)
- {
- __space__loop__id++;
- templateBuilder.Append(" <li><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/?uid=" + __space["userid"].ToString().Trim() + "">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__space["spacetitle"].ToString().Trim()),30,"..."));
- templateBuilder.Append("</a></li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append(" <div class="sidebox">rn");
- templateBuilder.Append(" <h2>新帖</h2>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int __newtopicinfo__loop__id=0;
- foreach(DataRow __newtopicinfo in newtopiclist.Rows)
- {
- __newtopicinfo__loop__id++;
- templateBuilder.Append(" <li>rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(__newtopicinfo["tid"].ToString().Trim(),0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__newtopicinfo["title"].ToString().Trim()),30,"..."));
- templateBuilder.Append("</a></li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" <h2>热帖</h2>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int __hottopicinfo__loop__id=0;
- foreach(DataRow __hottopicinfo in hottopiclist.Rows)
- {
- __hottopicinfo__loop__id++;
- templateBuilder.Append(" <li>rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(__hottopicinfo["tid"].ToString().Trim(),0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(Discuz.Common.Utils.HtmlEncode(__hottopicinfo["title"].ToString().Trim()),30,"..."));
- templateBuilder.Append("</a></li>rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("</div>rn");
- }
- else
- {
- } //end if
- Response.Write(templateBuilder.ToString());
- }
- </script>