<!--#include file="_header.html"-->
<link rel="stylesheet" href="templates/<%=CurrentTemplateName%>/scripts/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/jquery.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/thickbox.js"></script>
<script type="text/javascript" src="templates/<%=CurrentTemplateName%>/scripts/adRotator.js"></script>
<script type="text/javascript" language="javascript" src="templates/scripts/dvajax.js"></script>
<script language="javascript">
<!--
function selectText(obj)
{
	var rng = document.body.createTextRange();	
    rng.moveToElementText(obj);
    rng.scrollIntoView();
    rng.select();
}
function copyCode(obj)
{        
    copyToClipboard(Html2Txt(obj.value));
}
function chkbbstext() {	
	if(document.fbbs.bbstext.value.length == 0)
	{
		alert('评论内容不能为空！');
		return false;
	}		
	return true;	
}
//图片JSON数据
ShowPhotoBar.ImgsList = [
<!--{for(int i=0; i < photo.album.PhotosLen; i++)}-->
{
"id":"<%=photo.album.photos[i].albumid%>",
"title":"<%=Text.Left(photo.album.photos[i].imgtitle,10,false)%>",
"pic":"<%=photo.album.photos[i].ZoomFile%>",
"url":"album_photo.aspx?photoid=<%=photo.album.photos[i].id%>"
}
<!--{if(i < photo.album.PhotosLen-1)}-->
,
<!--{endif}-->
<!--{endfor}-->
]
// js幻灯数据
<!--{for(int i=0; i < photo.album.PhotosLen; i++)}-->
	imgs[<%=i%>] = new Image();
	imgs[<%=i%>].src = '<%=photo.album.photos[i].ImgFile%>';	
<!--{endfor}-->	
//-->
</script>
<style>
<!--
.silverlightbutton{ padding:0px 5px; height:23px; display:block; float:left; margin-right:2px;line-height:23px; border:1px solid #ddd; background:#f9f9f9;}
a.silverlightbutton{color:#f60;}
#rotatorPlayer{padding-top:10px;padding-bottom:10px;}
#ScrollPhoto{border-top: #ccc 1px dotted;margin-top: 20px;padding-top: 4px;background: #fff repeat-y left top;width:694px;height:100px;}
#ScrollPhoto .dis{float:left;width:40px;text-align: center;padding-top:3px}
/*#scrollbar@width=188*3+15*2 */
#scrollbar{width:594px;overflow:hidden;margin-right:15px;float:left;}
#scrollbar li {float:left;display: inline;margin: 4px;padding: 0;height:100px}
#scroll a:active,#scroll a:visited,#scroll a:link {display: inline;text-decoration: none;}
#scroll a:hover {color: #ffffff;display: inline;text-decoration: none;}
#scrollbar img {border:0px;width:92px;}
/*图片描述区域*/
#photodesc{font-size:12px;line-height:150%;}
.photo_box2{background:#f6f6f6;}
.photo_box1,.photo_box2,#photodesc,.postcontent{margin-top:4px;padding:10px;word-break:break-all;word-wrap : break-word ;}
.postcontent{width:900px;overflow:hidden;}
#photodesc,#rotatorPlayer{width:680px;overflow:hidden ;}
/*相册导航*/
.albumnav { clear:both;}
.albumnav li { height:20px; }
//-->
</style>
<div class="mainbox">
    <div class="notice">
		<span> <!--#include file="_nav.html" --></span>&nbsp;
	</div>
	<div class="notice font14">		
		<span>
        <a href="album_index.aspx">相册首页</a> | 
        <a href="album_list.aspx">相册分类</a> | 
        <a href="album_self.aspx">我的相册</a>
       </span>&nbsp;
	</div>
	<div class="page_right" style="border:none">
		<div class="border" style="padding-top:10px;padding-left:10px;">
			<table width="94%">
				<tr>
					<td>
					<img src="<%=Server.UrlDecode(AlbumOwner.UserFace)%>" onerror="ImageOnError(this,'files/uploadfaces/userface/noface.gif')" style="margin:8px auto"  width = "40%" alt="<%=photo.username%>" />
					<br />
						<b>
							<%=photo.username%>
						</b>
						<span class="yellow">
							<%=(AlbumOwner.IsFade ? "隐身" : "在线")%>
						</span><br />
						<span>
					     <img src="templates/<%=CurrentTemplateName%>/images/level/<%=AlbumOwner.GroupPic%>" />
					    </span>
			            <br />
						<!--{if(user.UserID!=photo.userid)}-->
						<span>
						<a onclick="AddFrend('additem.aspx','item=friend&style=new_style&uid=<%=photo.userid.ToString()%>&name=<%=photo.username%>')" style="cursor:hand" title="加<%=photo.username%>为好友">
	<img src="templates/<%=CurrentTemplateName%>/images/freund.gif" alt="加<%=photo.username%>为好友" />
						加为好友
						</a>&nbsp;&nbsp;						
						<a id="msgsend1" class="thickbox" title="给<%=photo.username%>发短消息" href="message_send.aspx?recipient=<%=photo.username%>&TB_iframe=true&height=335&width=530&uid=<%=photo.userid.ToString()%>">		
						<img src="templates/<%=CurrentTemplateName%>/images/mail.gif" alt="给><%=photo.username%>留言" />给他留言
						</a>
						</span>
						<br />
						<!--{endif}-->
						<span>
						等级：<%=AlbumOwner.RoleName%>
						</span><br />
						<span>
						文章：<%=AlbumOwner.UserPost.ToString()%>
						</span><br />
						<span>
						积分：<%=AlbumOwner.Experience<0?"0":AlbumOwner.Experience.ToString()%>
						</span><br />
						<span>
						注册：<%=AlbumOwner.Money.ToString()%>
						</span><br />
						<span>
						<a href="album_list.aspx?userid=<%=photo.userid.ToString()%>" class="page" title="浏览该用户所有相册">
							拥有相册：<b class="fon1"><%=AlbumOwner.AlbumTotal.ToString()%></b>本</a><br />
						</span><br />
					</td>
				</tr>
			</table>
		</div>
		<br />
		<div class="border" style="padding-top:10px;padding-left:10px;">
			<h1 class="font14">分享相片</h1>
			<br />
			<table width="94%">
				<tr>
					<td>
						<a href="javascript:copyToClipboard('img_link1');" title="点击复制连接" class="page">URL分享</a> <input type="text" onfocus="javascript:this.select()" id="img_link1" name="img_link1"  value="http://<%=Request.ServerVariables["HTTP_HOST"].ToString()%>/<%=photo.ImgFile%>" onFocus="IEvent('focus',this);"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="15" />
					</td>
				</tr>
				<tr>
					<td><a href="javascript:copyToClipboard('img_link2');" title="点击复制连接" class="page">Html分享</a> <input type="text" onfocus="javascript:this.select()" id="img_link2" name="img_link2"  value='<img src="http://<%=Request.ServerVariables["HTTP_HOST"].ToString()%>/<%=photo.ImgFile%>">' onFocus="IEvent('focus',this);"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="15" />
					</td>
				</tr>
				<tr>
					<td><a href="javascript:copyToClipboard('img_link3');" title="点击复制连接" class="page">URL分享</a> <input type="text" onfocus="javascript:this.select()" id="img_link3" name="img_link3"  value='[img]http://<%=Request.ServerVariables["HTTP_HOST"].ToString()%>/<%=photo.ImgFile%>[/img]' onFocus="IEvent('focus',this);"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" size="15" />
					</td>
				</tr>
			</table>
			<br />
		</div>
		<br />
		<div class="border" style="padding-top:10px;padding-left:10px;">
			<h1 class="font14">喜欢的会员</h1>
			<br />
			<table width="94%">
				<tr>
					<td colspan="2">共被收藏 <b class="yellow">
							<%=photo.favcount.ToString()%>
						</b>次 <a class="button fon1" href="album_photo.aspx?photoid=<%=photo.id.ToString()%>&fav=true" title="添加到我的相片收藏夹！">
							我要收藏</a><hr />
					</td>
				</tr>
				<tr class="leftcolor">
					<td>收藏者</td>
					<td width="35%">收藏时间</td>
				</tr>
				<!--{for(int i = 0; i < photo.FavsLen; i++)}-->
				<tr>
					<td>
						<a href="album_list.aspx?userid=<%=photo.Favs[i].userid.ToString()%>">
							<%=photo.Favs[i].username%>
						</a>
					</td>
					<td><em><%=Dvbbs.Utils.RegExp.GetDifDateAndTime(System.DateTime.Now,photo.Favs[i].recdate, "年", "月", "天", "时", "分", "一分钟内")%>前</em></td>
				</tr>
				<!--{endfor}-->
			</table>
			<br />
		</div>
	</div>
	<div class="page_left border">
		<h3 class="titlebig"><%=Text.Left(photo.imgtitle,50,false)%></h3>
		<table width="96%">
			<tr>
				<td>
					所属相册：<a href="album_show.aspx?albumid=<%=AlbumId.ToString()%>">
					<%=Text.Left(photo.album.albumtitle,24,true)%></a>
					所属分类：<a href="album_list.aspx?albumtypeid=<%=photo.album.albumtypeid.ToString()%>"><%=photo.album.albumtype%></a>
					标签：<a href="album_list.aspx?albumtag=<%=Server.UrlEncode(photo.album.albumsubtype)%>"><%=Text.Left(photo.album.albumsubtype,25,false)%></a>
					浏览：<b class="yellow"><%=photo.clickcount.ToString()%></b> 次 收藏：<%=photo.favcount.ToString()%>
					次 留言：<%=photo.bbscount.ToString()%>
					条 <a href="topicother.aspx?action_type=prosecution">举报</a> | | 
					<!--{if(user.UserID == AlbumOwner.UserID)}--><a href="album_photoself.aspx?albumid=<%=photo.albumid.ToString()%>">编辑</a>
					| | 
					<!--{endif}-->
					<!--{if(user.Power == 1 || user.Power == 2)}-->
					<a style="cursor:hand;" onclick="if(!confirm('您确定要删除相片吗？删除的照片将无法恢复！'))return;window.location='album_photo.aspx?photoid=<%=photo.id.ToString()%>&delete=true' ">
						删除</a> 
					<!--{endif}-->
					<!--{if(user.UserID != AlbumOwner.UserID)}-->
					| | <a href="album_photo.aspx?photoid=<%=photo.id.ToString()%>&fav=true" class="fon3">
						收藏</a> 
					<!--{endif}-->
					<br />
					<div style="float:right">
						<input type="button" name="browse" value="幻灯播放" onClick="adRotator.browse();" ID="browse"	class="page" /> 
						<input type="button" value="设置时间" onClick="adRotator.set()" ID="set" NAME="set" class="page" style="display:none" />
					    <input type="text" id="second" value="2" size="5" maxlength="2" NAME="second" class="page"	style="width:20px;height:20px;padding:1px;display:none">
					    <a href="album_show.aspx?albumid=<%=AlbumId.ToString()%>&demo=1&TB_iframe=true&height=580&width=780" title="<%=photo.album.albumtitle%> 的Silverlight演示" class="thickbox silverlightbutton" >Silverlight演示1</a>
					    <a href="album_show.aspx?albumid=<%=AlbumId.ToString()%>&demo=2&TB_iframe=true&height=595&width=950" title="<%=photo.album.albumtitle%> 的Silverlight演示" class="thickbox silverlightbutton" >Silverlight演示2</a>
					</div>
					文件大小：<%=photo.FileSize.ToString()%>
					K 上传时间：<em><%=photo.uploaddate%></em>
				</td>
			</tr>
			<tr>
				<td align="center">
					<div id="rotatorPlayer">
						<!--{if(NextPhotoId == 0)}-->
						<center>
							<img src="<%=photo.ImgFile%>" alt="<%=photo.imgtext%>" onload="adRotator.reSize(this);" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/noexist.gif')" />
						</center>
						<!--{else}-->
						<center>
							<img src="<%=photo.ImgFile%>" style="cursor: pointer;" alt="(点击看下一张)<%=photo.imgtext%>" onclick="window.location='album_photo.aspx?photoid=<%=NextPhotoId.ToString()%>'" onload="adRotator.reSize(this);" onerror="ImageOnError(this,'templates/<%=CurrentTemplateName%>/images/album/noexist.gif')" /></center>
						<!--{endif}-->
					</div>
				</td>
			</tr>
			<tr>
				<td align="center">
					<div id="photodesc" style="text-align:center">
						<!--{if(PrevPhotoId == 0)}-->
						上一张 
						<!--{else}-->
						<a href="album_photo.aspx?photoid=<%=PrevPhotoId.ToString()%>">上一张</a> 
						<!--{endif}-->
						第 <b>
							<%=CurrPhotoIdx.ToString()%>
							/<%=photo.album.photonum.ToString()%></b> 张 
						<!--{if(NextPhotoId == 0)}-->
						下一张 
						<!--{else}-->
						<a href="album_photo.aspx?photoid=<%=NextPhotoId.ToString()%>">下一张</a> 
						<!--{endif}-->
					</div>
				</td>
			</tr>
			<tr>
				<td align="center">
					<!--相片滚动-->
				<div id="ScrollPhoto">
					<div class="dis">
						<img class="imglink" src="templates/<%=CurrentTemplateName%>/images/scrollarrowleft.gif" alt="向左滚动" onclick="ShowPhotoBar.doSlide(-1)" />
					</div>
					<div id="scrollbar">
						<div style="width:9000px;">
							<!--(#div.width=594px)*4-->
							<ul id="scroll">暂没有图片数据...</ul>
						</div>
					</div>
					<div class="dis">
						<img class="imglink" src="templates/<%=CurrentTemplateName%>/images/scrollarrowright.gif" alt="向右滚动" onclick="ShowPhotoBar.doSlide(1)" />
					</div>
				</div>
				<div style="clear:both;"></div>
				<div id="photodesc"><%=Text.Left(photo.imgtext,50,false)%></div>
				<!--相片滚动-->
<script language="JavaScript">
<!--
//显示相册图片滚动条
ShowPhotoBar.InnerImgsbar($('scroll'));
//-->
</script>
				</td>
			</tr>
		</table>
	</div>
	<br />
	<div class="page_left border">
		<h3 class="titlebig">
			<img src="<%=CurrentSkinPath%>images/title_right.gif" alt="" class="title_right"/><a name="replay">评论留言</a>
			- [共<%=photo.bbscount.ToString()%>条留言] 
			<!-- {if (!user.IsGuest)} -->
			<a href="#bbstext" style="font-size:12px;font-weight:normal">[我要留言]</a> 
			<!--{endif}-->
		</h3>
		<!--------- 用户留言 ------------>
		<div style="width:98%">
			<div class="nav_group">
				<ul style="padding:5px;border:0px;">
					<!--{if(photo.BbsLen <= 0)}-->
					<li>
						暂无留言!</li>
					<!--{else}-->
					<!--{for(int i=0; i < photo.BbsLen && i < BbsOfPerPage; i++)}-->
					<!--{if((i%2) == 0)}-->
					<li class="photo_box1">
						<span style="float:right;">#<%=(i+(BbsOfPerPage * (BbsPageNum-1)) + 1).ToString()%></span>
						<!--{if(user.Name!=photo.bbs[i].username)}-->
						<a href="message_send.aspx?recipient=<%=photo.bbs[i].username%>&uid=<%=photo.bbs[i].userid.ToString()%>&TB_iframe=true&height=335&width=530" id="A1" class="thickbox" title="发送短消息">
							<img src="templates/<%=CurrentTemplateName%>/images/msg.gif" alt="短信联系"/></a>
						<!--{endif}-->
						<a href ="album_list.aspx?userid=<%=photo.bbs[i].userid.ToString()%>"><b>
								<%=photo.bbs[i].username%>
							</b></a>
						<!--{if(photo.bbs[i].newphoto != "")}-->
						&nbsp;&nbsp;&nbsp;我的最新图片：[<a href="<%=photo.bbs[i].newphoto%>" title="浏览该用户最新相片" class="fon1"><%=photo.bbs[i].newphototitle%></a>] 
						<!--{endif}-->
						<br />
						<%=photo.bbs[i].bbstext%>
						<br />
						发表于：<%=photo.bbs[i].createdate%>
						<!--{if(user.Power == 1 || user.Power == 2 || user.UserID==photo.userid)}-->
						-- <a href="#" onclick ="if(!confirm('您确定要删除相片评论吗？'))return;window.location='album_photo.aspx?photoid=<%=photo.id.ToString()%>&delbbs=<%=photo.bbs[i].id.ToString()%>' ">
							删除</a> 
						<!--{endif}-->
					</li>
					<!--{else}-->
					<li class="photo_box2">
						<span style="float:right;">#<%=(i+(BbsOfPerPage * (BbsPageNum-1)) + 1).ToString()%></span>
						<!--{if(user.Name!=photo.bbs[i].username)}-->
						<a href="message_send.aspx?recipient=<%=photo.bbs[i].username%>&uid=<%=photo.bbs[i].userid.ToString()%>&TB_iframe=true&height=335&width=530" id="A2" class="thickbox" title="发送短消息">
							<img src="templates/<%=CurrentTemplateName%>/images/msg.gif" alt="短信联系"/></a>
						<!--{endif}--> <a href ="album_list.aspx?userid=<%=photo.bbs[i].userid.ToString()%>">
							<b>
								<%=photo.bbs[i].username%>
							</b></a>
						<!--{if(photo.bbs[i].newphoto != "")}-->
						&nbsp;&nbsp;&nbsp;我的图片：[<a href="<%=photo.bbs[i].newphoto%>" title="浏览该用户最新相片" class="fon1"><%=photo.bbs[i].newphototitle%></a>] 
						<!--{endif}-->
						<br />
						<%=photo.bbs[i].bbstext%>
						<br />
						发表于：<%=photo.bbs[i].createdate%>
						<!--{if(user.Power == 1 || user.Power == 2 || user.UserID==photo.userid)}-->
						-- <a href="#" onclick ="if(!confirm('您确定要删除相片评论吗？'))return;window.location='album_photo.aspx?photoid=<%=photo.id.ToString()%>&delbbs=<%=photo.bbs[i].id.ToString()%>' ">
							删除</a> 
						<!--{endif}-->
					</li>
					<!--{endif}-->
					<!--{endfor}-->
					<!--{endif}-->
					<li>
						<!-- {if (!user.IsGuest)} -->
						<a name="bbstext"></a>
						<form method="post" id="fbbs" name="fbbs">
							<textarea id="Textarea1" name="bbstext" onFocus="IEvent('focus',this);"	onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" style="width:90%;height:100px;margin-bottom:10px;"></textarea><br />
							<input type="submit" id="submitbbs" name="submitbbs" value="发表留言" class="button_off" onclick="return chkbbstext()" />
						</form>
						<!--{endif}-->
					</li>
					<br />
				</ul>
			</div>
			
			<!--#include file="_temppager.htm"-->
			<div style="clear:both"></div><br /><br />
		</div>
		<!--------- end 用户留言 ------------>
	</div>
</div>
<!--#include file="_footer.html"-->