📄 photo.aspx
字号:
<%@ Register TagPrefix="webui" Namespace="Club.Common.WebUI" Assembly="Club.Common" %>
<%@ Page language="c#" Codebehind="photo.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.photo" %>
<%@ 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">
</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,PhotoType==1?0:1,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>
<li><a href="<%#Globals.UrlFormats.SitePhoto(RegisterId,PhotoType,0,"1")%>" class="<%#SortID==0?"a_curr":""%>"><%#PhotoType==1?"所有照片":"所有图片"%></a></li>
</HeaderTemplate>
<ItemTemplate>
<li>
<a class="<%#SortID==((int)DataBinder.Eval(Container.DataItem, "ID"))?"a_curr":""%>" href="<%#Globals.UrlFormats.SitePhoto(RegisterId,PhotoType,(int)DataBinder.Eval(Container.DataItem, "ID"),"1")%>"><%#DataBinder.Eval(Container.DataItem, "SortName")%></a>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
</div>
<getPage:getrequestpage id="photoPage" runat="server" Fields="ID,CommentCount,Hits,ImageName,PhotoName" OrderField="OrderId" NumberButtonFormatString=" {0} " CountFormatString="共<strong>{0}</strong>条 <strong>{1}</strong>条/页 <strong>{2}/{3}</strong>页">
<asp:Repeater id="dataList" runat="server">
<headerTemplate><div class="s_photo"><h2><%#PhotoType==1?"照片":"图片"%></h2><ul></headerTemplate>
<ItemTemplate>
<li>
评论:<%#DataBinder.Eval(Container.DataItem, "CommentCount")%> 浏览:<%#DataBinder.Eval(Container.DataItem, "Hits")%>
<div>
<dl>
<dt><a href="<%#Globals.UrlFormats.SitePhotoShow(RegisterId,(int)DataBinder.Eval(Container.DataItem, "ID"))%>"><img src="<%#Globals.GetSPhotoPath(RegisterId,DataBinder.Eval(Container.DataItem, "ImageName").ToString())%>" alt="<%#DataBinder.Eval(Container.DataItem, "PhotoName")%>" /></a></dt>
<dd>
<a href="<%#Globals.UrlFormats.SitePhotoShow(RegisterId,(int)DataBinder.Eval(Container.DataItem, "ID"))%>"><%#StringHelper.CutString(DataBinder.Eval(Container.DataItem, "PhotoName").ToString(),10)%></a>
</dd>
</dl>
</div>
</li>
<%#(Container.ItemIndex+1)%4==0?"<br/>":""%>
</ItemTemplate>
<footerTemplate></ul></div></footerTemplate>
</asp:Repeater>
<div class="page_btn" style="width:100%"><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>
</webui:ContentRegion>
</webui:sitepage>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -