📄 articleshow.aspx
字号:
<%@ Page language="c#" Codebehind="articleShow.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.articleShow" %>
<%@ Register TagPrefix="webui" Namespace="Club.Common.WebUI" Assembly="Club.Common" %>
<%@ Import NameSpace="Club.Framework"%>
<webui:sitepage id="PageManage" runat="server">
<webui:ContentRegion id="titleContains" runat="server"><%#Title%></webui:ContentRegion>
<webui:ContentRegion id="headerContains" runat="server">
<LINK href="<%#Globals.GetWebPath("~/Home/Css/home_"+Setting.TemplateID+".css")%>" type="text/css" rel="stylesheet">
<script src="<%#Globals.GetWebPath("~/Javascript/public.js")%>" language="javascript"></script>
<script src="<%#Globals.GetWebPath("~/Javascript/home.js")%>" language="javascript"></script>
<script language="javascript">
window.onload=function()
{
home=new Home(articleShow);
ServerPath='<%#Globals.GetWebPath()%>';
home.CommentLoad(<%#(int)Globals.SortType.Article%>,<%#RegisterId%>,<%#ArticleID%>)
}
</script>
</webui:ContentRegion>
<webui:ContentRegion id="Content" runat="server">
<form runat="server">
<div class="top">
<h1 class="title"><%#Setting.SiteTitle%></h1>
<div class="Ind"><%#UserInfo.Idiograph%></div>
</div>
<div class="banner"><%#Globals.GetMenu(RegisterId,2,Setting.SiteMenuSetting)%></div>
<div class="body">
<div class="s_left">
<div class="s_myShow">
<div class="s_showImg">
<img src="<%#Globals.GetSPhotoPath(RegisterId,UserInfo.Icon)%>" onerror="this.src='<%#Globals.GetWebPath("~/images/icon.png")%>'" />
</div>
<div class="s_showName">
<ul>
<li>呢称:<%#UserInfo.NiceName%></li>
<li><%#UserInfo.Sex==1?"男":"女"%>,<%#Globals.GetPlace(UserInfo.CountryID,UserInfo.ProvinceID,0)%></li>
</ul>
<span><a href="<%#Globals.UrlFormats.SiteUserInfo(RegisterId)%>">详细资料</a> <a href="<%#Globals.UrlFormats.SiteGuestBook(RegisterId)%>">
给我留言</a></span> <span>最后登陆时间:<%#UserInfo.ThisLoginDate.ToShortDateString()%></span> </div>
</div>
<div class="s_menu">
<ul>
<asp:Repeater id="rptMenu" runat="server">
<HeaderTemplate>
<div>
<li><a href="<%#Globals.UrlFormats.SiteArticle(RegisterId,0,"1")%>" class="<%#ArticleInfo.SortID==0?"a_curr":""%>">所有文章</a></li>
</HeaderTemplate>
<ItemTemplate>
<li>
<a class="<%#ArticleInfo.SortID==((int)DataBinder.Eval(Container.DataItem, "ID"))?"a_curr":""%>" href="<%#Globals.UrlFormats.SiteArticle(RegisterId,(int)DataBinder.Eval(Container.DataItem, "ID"),"1")%>"><%#DataBinder.Eval(Container.DataItem, "SortName")%></a>
</li>
</ItemTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
</asp:Repeater>
</ul>
</div>
</div>
<div class="articleShow">
<h2><%#ArticleInfo.Title%>
</h2>
<dl>
<dd>发布时间:<%#ArticleInfo.PostDate.ToShortDateString()%> 类型:<%#ArticleInfo.ArticleType==1?"[原创]":"[转载]"%> 阅读:<%#ArticleInfo.Hits%> 评论:<input id="c_count" style="border:none;color:#333;" size="2" readonly value="<%#ArticleInfo.CommentCount%>" /></dd>
<dd>
<div class="ar_Content"><%#ArticleInfo.Content%></div>
</dd>
</dl>
<div class="comment">
<div id="com_Content">
</div>
<table class="comment_p">
<tr>
<th>
评论:
</th>
<td>
<textarea id="txtContent" cols="40" rows="5"></textarea>
<input id="txtRegisterID" type="hidden" value="<%#RegisterId%>" />
<input id="txtItemID" type="hidden" value="<%#ArticleID%>" />
<input id="txtCommentRegisterID" type="hidden" value="<%#LoginRegisterId%>" />
<input id="txtCommentPostType" type="hidden" value="<%#Setting.CommentPostType%>" />
<input id="txtSortType" type="hidden" value="<%#(int)Globals.SortType.Article%>" />
</td>
</tr>
<tr>
<td colspan="2" class="center"><input type="button" onclick="home.CommentPost()" class="button" value="提交"> <input class="button" type="reset" value="重写"></td>
</tr>
</table>
</div>
</div>
</div>
</form>
</webui:ContentRegion>
</webui:sitepage>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -