diaryday.aspx

来自「1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据」· ASPX 代码 · 共 71 行

ASPX
71
字号
<%@ Page language="c#" Codebehind="diaryDay.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.diaryDay" %>
<%@ Register TagPrefix="webui" Namespace="Club.Common.WebUI" Assembly="Club.Common" %>
<%@ Register TagPrefix="controls" Namespace="Club.Common.Controls" Assembly="Club.Common" %>
<%@ Import NameSpace="Club.Framework.Xml"%>
<%@ 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">
	</webui:ContentRegion>
	<webui:ContentRegion id="Content" runat="server">
	<div class="top">
	<h1 class="title"><%#Setting.SiteTitle%></h1>
	<div class="Ind"><%#UserInfo.Idiograph%></div>
	</div>
	<div class="banner"><%#Globals.GetMenu(RegisterId,3,Setting.SiteMenuSetting)%></div>
<form runat="server" ID="Form1">
<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_d_cal">
			<controls:Calendar id="DiaryCalendar" 
				DayHeaderStyle-BackColor="#5e715e" Width="100%" OtherMonthDayStyle-ForeColor="#cccccc"
					DayNameFormat="Full" runat="server" TitleStyle-ForeColor="#ffffff" NextPrevStyle-ForeColor="#ffffff"
					CellSpacing="1" WeekendDayStyle-BackColor="#eeeeee" DayHeaderStyle-ForeColor="#ffffff" SelectionMode="None"
					TodayDayStyle-BorderColor="#5e715e" TodayDayStyle-BorderWidth="1" TodayDayStyle-Font-Bold="true"
					TodayDayStyle-ForeColor="#5e715e">
					<TodayDayStyle Font-Bold="True" BorderWidth="1px" ForeColor="#5E715E" BorderColor="#5E715E"></TodayDayStyle>
					<NextPrevStyle ForeColor="White"></NextPrevStyle>
					<DayHeaderStyle ForeColor="#333333" BackColor="#EEE7BD"></DayHeaderStyle>
					<TitleStyle ForeColor="White"></TitleStyle>
					<WeekendDayStyle BackColor="#EEEEEE"></WeekendDayStyle>
					<OtherMonthDayStyle ForeColor="#CCCCCC"></OtherMonthDayStyle></controls:Calendar>
	</div>
</div>
	<div class="s_diary">
	<h2>Blog-<%#Today.ToLongDateString()%></h2>
	<ul>
				<asp:Repeater id="dataList" runat="server">
					<ItemTemplate>
					<li>
						<div>
						<h3> · <a href="<%#Globals.UrlFormats.SiteDiaryShow(RegisterId,Year.ToString(),Month.ToString(),Day.ToString(),(int)DataBinder.Eval(Container.DataItem, "ID"))%>"><%#StringHelper.CutString(DataBinder.Eval(Container.DataItem, "Title").ToString(),80)%></a></h3>
						<span class="d_expl">心情:<%#DataBinder.Eval(Container.DataItem, "Mood")%> 天气:<%#DataBinder.Eval(Container.DataItem, "Weather")%></span>
						<div class="diray_c"><%#DataBinder.Eval(Container.DataItem, "Content")%>
						</div>
						<span class="d_date"><a href="<%#Globals.UrlFormats.SiteDiaryShow(RegisterId,((DateTime)DataBinder.Eval(Container.DataItem, "PostDate")).Year.ToString(),((DateTime)DataBinder.Eval(Container.DataItem, "PostDate")).Month.ToString(),((DateTime)DataBinder.Eval(Container.DataItem, "PostDate")).Day.ToString(),(int)DataBinder.Eval(Container.DataItem, "ID"))%>#Comment">评论</a>:<%#DataBinder.Eval(Container.DataItem, "CommentCount")%> 阅读:<%#DataBinder.Eval(Container.DataItem, "Hits")%> 发布日期:<%#((DateTime)DataBinder.Eval(Container.DataItem, "PostDate")).ToShortDateString()%></span>
						</div>
					</li>
					</ItemTemplate>
				</asp:Repeater>
	</ul>
	</div>

</div>
	</form>
	</webui:ContentRegion>
</webui:sitepage>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?