📄 guestbook.aspx
字号:
<%@ Page language="c#" Codebehind="guestBook.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.guestBook" %>
<%@ Register TagPrefix="webui" Namespace="Club.Common.WebUI" Assembly="Club.Common" %>
<%@ Register TagPrefix="getPage" Namespace="Club.Common" 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(guestBook);
}
</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,5,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>
<div class="s_gsb">
<h2>留言</h2>
<div class="s_gsbPost">
<div>
<table>
<tr>
<th>
呢称:
</th>
<td><input type="text" id="txtNiceName" /></td>
</tr>
<tr>
<th>
留言内容:
</th>
<td><textarea id="txtContent" cols="45" rows="5" name="textarea"></textarea>
<input id="txtRegisterId" type="hidden" value="<%#RegisterId%>" />
<input id="txtLoginRegisterId" type="hidden" value="<%#LoginRegisterId%>" />
<input id="txtGuestBookPostType" type="hidden" value="<%#Setting.GuestBookPostType%>" />
</td>
<tr>
<th></th><td><input class="button" value="提交" onclick="home.GuestBookAdd();" type="button"> <input class="button" value="重写" type="reset"></td></tr>
</tr>
</table>
</div>
<getPage:getrequestpage id="guestBookPage" runat="server" Fields="*" OrderField="Id" NumberButtonFormatString=" {0} " CountFormatString="共<strong>{0}</strong>条 <strong>{1}</strong>条/页 <strong>{2}/{3}</strong>页">
<asp:Repeater id="dataList" runat="server">
<ItemTemplate>
<table>
<tr>
<th>
留言者
</th>
<td>
<%#DataBinder.Eval(Container.DataItem, "NiceName")%> <%#getGuestManage((int)DataBinder.Eval(Container.DataItem, "ID"))%>
</td>
</tr>
<tr>
<th>
留言类容
</th>
<td>
<%#StringHelper.GetHtmlFormat(DataBinder.Eval(Container.DataItem, "Content").ToString())%>
</td>
</tr>
<tr>
<th>
留言回复
</th>
<td>
<%#StringHelper.GetHtmlFormat(DataBinder.Eval(Container.DataItem, "RePost").ToString())%>
<div id="txtRePanel_<%#DataBinder.Eval(Container.DataItem, "ID")%>" style="display:none"><textarea cols="45" rows="5" id="txtRePost_<%#DataBinder.Eval(Container.DataItem, "ID")%>" ><%#DataBinder.Eval(Container.DataItem, "RePost")%></textarea><input type="button" onclick="<%#getGuestRePost((int)DataBinder.Eval(Container.DataItem, "ID"))%>" class="button" value="提交"></div>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
<div class="page_btn"><asp:Panel style="padding-top:20px" id="pageButton" runat="server">
<asp:Label id="ShowCount" runat="server"></asp:Label>
<asp:HyperLink id="FirstLink" runat="server">第一页</asp:HyperLink>
<asp:HyperLink id="PreLink" runat="server">上一页</asp:HyperLink>
<asp:PlaceHolder id="IndexLink" runat="server"></asp:PlaceHolder>
<asp:HyperLink id="NextLink" runat="server">下一页</asp:HyperLink>
<asp:HyperLink id="EndLink" runat="server">最后一页</asp:HyperLink>
</asp:Panel>
</div>
</getPage:getrequestpage>
</div>
</div>
</div>
</form>
</webui:ContentRegion>
</webui:sitepage>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -