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

📄 photoshow.aspx

📁 1、用SQL查询器打开install目录下的dooogo.sql运行之后创建数据库dooogo。 2、然后打开web.config修改 <DbProvider type="Club.Fram
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="photoShow.aspx.cs" AutoEventWireup="false" Inherits="Club.Home.photoShow" %>
<%@ Register TagPrefix="webui" Namespace="Club.Common.WebUI" 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>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<script language="javascript">
		window.onload=function()
		{
			home=new Home(photoShow);
			ServerPath='<%#Globals.GetWebPath()%>';
			home.CommentLoad(<%#PhotoInfo.PhotoType==1?((int)Globals.SortType.Photo).ToString():((int)Globals.SortType.Pic).ToString()%>,<%#RegisterId%>,<%#PhotoID%>);
			FreeResize('opic');
			<%#Setting.PhotoIsDownLoad?"PhotoNoDowd();":""%>
		}
	</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,PhotoInfo.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,PhotoInfo.PhotoType,0,"1")%>" class="<%#PhotoInfo.SortID==0?"a_curr":""%>"><%#PhotoInfo.PhotoType==1?"所有照片":"所有图片"%></a></li>
		</HeaderTemplate>
		<ItemTemplate>
			<li>
				<a class="<%#PhotoInfo.SortID==((int)DataBinder.Eval(Container.DataItem, "ID"))?"a_curr":""%>" href="<%#Globals.UrlFormats.SitePhoto(RegisterId,PhotoInfo.PhotoType,(int)DataBinder.Eval(Container.DataItem, "ID"),"1")%>"><%#DataBinder.Eval(Container.DataItem, "SortName")%></a>
			</li>
		</ItemTemplate>
	</asp:Repeater>
	</ul>
	</div>
</div>
	<div class="showPhoto">
	<h2><%#PhotoInfo.PhotoName%></h2>
	<dl>
	<dt>图片大小:<%#PhotoInfo.PhotoSize/1024%>K    上传时间:<%#PhotoInfo.PostDate.ToShortDateString()%>  浏览:<%#PhotoInfo.Hits%>
		<br/>缩放比例:<input id="ozoom" style="border:none;color:#333;" size="3" readonly value="100%" /> 评论:<input id="c_count" style="border:none;color:#333;" size="2" readonly value="<%#PhotoInfo.CommentCount%>" />
	</dt>
	<dt><div class="to_pic"><img id="opic" onmousewheel="Picture('opic');" src="<%#Globals.GetPhotoPath(RegisterId,PhotoInfo.ImageName)%>"></div></dt>
	<dt><div class="p_text"><%#StringHelper.GetHtmlFormat(PhotoInfo.PhotoExplian)%></div></dt>
	</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="<%#PhotoID%>" />
			<input id="txtCommentRegisterID" type="hidden" value="<%#LoginRegisterId%>" />
			<input id="txtCommentPostType" type="hidden" value="<%#Setting.CommentPostType%>" />
			<input id="txtSortType" type="hidden" value="<%#PhotoInfo.PhotoType==1?((int)Globals.SortType.Photo).ToString():((int)Globals.SortType.Pic).ToString()%>" />
		</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 + -