bloglist.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:18k
- <%@ Page language="c#" AutoEventWireup="false" EnableViewState="false" Inherits="Discuz.Space.Pages.bloglist" %>
- <%@ 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:01.
- 本页面代码由Discuz!NT模板引擎生成于 2009-9-22 17:25:01.
- */
- 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">rn");
- int __postinfo__loop__id=0;
- foreach(DataRow __postinfo in postslist.Rows)
- {
- __postinfo__loop__id++;
- templateBuilder.Append(" <div class="ntblog">rn");
- templateBuilder.Append(" <h3><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __postinfo["postid"].ToString().Trim() + "">" + __postinfo["title"].ToString().Trim() + "</a></h3>rn");
- templateBuilder.Append(" <h4>rn");
- aspxrewriteurl = this.ShowTopicAspxRewrite(__postinfo["uid"].ToString().Trim(),0);
-
- templateBuilder.Append(" <a href="");
- templateBuilder.Append(aspxrewriteurl.ToString());
- templateBuilder.Append("">" + __postinfo["author"].ToString().Trim() + "</a> " + __postinfo["postdatetime"].ToString().Trim() + " 【评论:" + __postinfo["commentcount"].ToString().Trim() + "】【阅读:" + __postinfo["views"].ToString().Trim() + "】 </h4>rn");
- templateBuilder.Append(" <P>rn");
- templateBuilder.Append(Utils.GetUnicodeSubString(__postinfo["content"].ToString().Trim(),350,"..."));
- templateBuilder.Append("</p>rn");
- templateBuilder.Append(" <h4><a href="");
- templateBuilder.Append(spaceurl.ToString());
- templateBuilder.Append("space/viewspacepost.aspx?postid=" + __postinfo["postid"].ToString().Trim() + "">阅读全文</a> >></h4>rn");
- templateBuilder.Append(" </div>rn");
- } //end loop
- templateBuilder.Append(" <div class="ntforumpage">");
- templateBuilder.Append(pagenumbers.ToString());
- templateBuilder.Append("</div>rn");
- templateBuilder.Append(" </div>rn");
- templateBuilder.Append("</div>rn");
- templateBuilder.Append("<div class="right space_side s_clear">rn");
- 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");
- templateBuilder.Append(" <div class="sidebox">rn");
- templateBuilder.Append(" <h2>推荐日志</h2>rn");
- templateBuilder.Append(" <ul class="newslist">rn");
- int __spacepostrecommend__loop__id=0;
- foreach(SpaceShortPostInfo __spacepostrecommend in spacepostlist)
- {
- __spacepostrecommend__loop__id++;
- templateBuilder.Append(" <li><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(__spacepostrecommend.Title,30,"..."));
- templateBuilder.Append("</a> </li> rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div>rn");
- 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() + "">" + comment["content"].ToString().Trim() + "</a> [" + comment["author"].ToString().Trim() + "]</li> rn");
- } //end loop
- templateBuilder.Append(" </ul>rn");
- templateBuilder.Append(" </div> rn");
- 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="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(__space["spacetitle"].ToString().Trim(),28,"..."));
- 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(__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(__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>