⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diaryshow.aspx

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="diaryShow.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.diaryShow" %>
<%@ 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">
	<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(diaryShow);
			ServerPath='<%#Globals.GetWebPath()%>';
			home.CommentLoad(<%#(int)Globals.SortType.Diary%>,<%#RegisterId%>,<%#DiaryID%>)
		}
	</script>
	</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="White" BackColor="#5E715E"></DayHeaderStyle>
					<TitleStyle ForeColor="White"></TitleStyle>
					<WeekendDayStyle BackColor="#EEEEEE"></WeekendDayStyle>
					<OtherMonthDayStyle ForeColor="#CCCCCC"></OtherMonthDayStyle></controls:Calendar>
	</div>
</div>
	<div class="s_diary">
	<ul>
		<li>
			<div>
			<h3 style="text-align:center;"><%#DiaryInfo.Title%></h3>
			<span class="d_expl" style="text-align:center;width:100%;">心情:<%#DiaryInfo.Mood%> 天气:<%#DiaryInfo.Weather%>  </span>
			<div class="diray_c"><%#DiaryInfo.Content%>
			</div>
			<span class="d_date">评论:<input id="c_count" style="border:none;color:#333;" size="2" readonly value="<%#DiaryInfo.CommentCount%>" /> 阅读:<%#DiaryInfo.Hits%>  发布日期:<%#DiaryInfo.PostDate.ToShortDateString()%></span>
			</div>
		</li>
	</ul>
	<a name="Comment"></a>
	<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="<%#DiaryID%>" />
			<input id="txtCommentRegisterID" type="hidden" value="<%#LoginRegisterId%>" />
			<input id="txtCommentPostType" type="hidden" value="<%#Setting.CommentPostType%>" />
			<input id="txtSortType" type="hidden" value="<%#(int)Globals.SortType.Diary%>" />
		</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 + -