<%@ Register TagPrefix="uc1" TagName="UIFrameLeft" Src="Controls/MUIFrameLeft.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameTop" Src="Controls/UIFrameTop.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIHead" Src="Controls/MUIHead.ascx" %>
<%@ Page CodeBehind="MySpace_Detail.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.MySpace_Detail" enableViewState="False"%>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		
		<script type="text/javascript" language="javascript" src="js/dialog.js"></script>
		<script language="JAVASCRIPT">
function Init()
{
	document.all.loading.style.top =Math.round((document.body.clientHeight-100)/2)+document.body.scrollTop-50;
	document.all.loading.style.left =Math.round((document.body.clientWidth-100)/2)-100;
	document.all.loading.style.display='';
}
function zoomimg(o)
{ 
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;if (zoom>0&&zoom<=500) o.style.zoom=zoom+'%';
	return false;
 }
function zoombig(o)
{ 
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom+=10;
	if(zoom>0&&zoom<=500)
	o.style.zoom=zoom+'%';
	return false;
 }
function zoomsmall(o)
{ 
	var zoom=parseInt(o.style.zoom, 10)||100;
	zoom-=10;
	if (zoom>0&&zoom<=500)
	o.style.zoom=zoom+'%';
	return false;
 }
function setdig()
{
	Typhoto.Photo_Detail.SetDig(getUrlParam("photoid"),Issetdig_callback);
}
function Issetdig_callback(res)
{
	var bRet = res.value;
	if (bRet == "1") 
	{
		document.getElementById("dig").innerHTML=parseInt(document.getElementById("dig").innerHTML)+1;
		alert('投票成功！');
	}
	else alert('你已经投过票了！');
}
function getUrlParam(paramName){	
	var s=location.search;
	if(s!=null&&s.length>1){
	var sarr=s.substr(1).split("&");
	var tarr;
	for(i=0;i<sarr.length;i++){
	tarr=sarr[i].split("=");
	if(tarr.length==2&&tarr[0].toLowerCase()==paramName){
	return tarr[1];
	}
	}
	return null;
	}
}
		</script>
</HEAD>
	<body class="body_1" scroll="no">
		<form runat="server">
			<div id="loading" style=" BORDER-RIGHT:#dbdce3 1px solid; BORDER-TOP:#dbdce3 1px solid; DISPLAY:none; BORDER-LEFT:#dbdce3 1px solid; BORDER-BOTTOM:#dbdce3 1px solid; POSITION:absolute; BACKGROUND-COLOR:#ffffae"><img src="images/loading.gif" width="32" height="32" align="absMiddle">
				<b>正在处理，请稍候……</b></div>
			<div id="divphoto" style="DISPLAY:none"><select name="selphoto" id="selphoto" runat="server" onChange="javascript:document.all.hidphoto.value=this.value">
					<option selected>请选择</option>
				</select></div>
			<INPUT id="hiddir" type="hidden" size="1" name="hiddir" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td height="60"><uc1:uihead id="UIHead1" runat="server"></uc1:uihead></td>
				</tr>
				<tr>
					<td height="10"><uc1:uiframetop id="UIFrameTop1" runat="server"></uc1:uiframetop></td>
				</tr>
				<tr>
					<td>
						<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td class="frame_left_1" vAlign="top" width="193"><uc1:uiframeleft id="UIFrameLeft1" runat="server"></uc1:uiframeleft></td>
								<td class="frame_body_1" vAlign="top">
									<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="main_title_1" height="32">
												<table height="100%" cellSpacing="0" cellPadding="0" width="99%" border="0">
													<tr>
														<td align="left"><IMG src="images/icon_album.gif" align="absMiddle">&nbsp;
															<%=albumtitle%>
															                                                                                                                                                      -&gt;
															<%=Album%>
															                                                                                                                                                      -&gt;
															<%=vPhotoName%>
														</td>
														<td align="center"><span id="dMessage" runat="server"></span></td>
														<td align="right"><INPUT type="hidden" size="1" name="hidalbum" id="hidalbum" runat="server"><INPUT id="hidalias" type="hidden" size="1" name="hidalias" runat="server"><A class="link_4" id="lPrev" runat="server">上一张</A>
															<A class="link_4" id="lNext" runat="server">下一张</A> <A href="javascript:history.back();">
																<IMG src="images/link_back.gif" align="absMiddle"></A>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class="main_content_1" vAlign="top">
												<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
													<tr>
														<td class="main_content_1">
															<div class="main_content_2" style="WIDTH: 100%">
																<table height="100%" width="100%">
																	<tr>
																		<td align="center">
																			<a name="photo" runat="server" id="aphoto"><img name="iPhoto" id="iPhoto" runat="server" onmousewheel='return zoomimg(this)' title='点击图片查看下一张'></a><div><%=Typhoto.DAL.Config.Adv7%></div></td>
																	</tr>
																	<tr>
																	  <td><font color="#3163c0"><%=lPhotoIntro%></font></td>
																  </tr>
																	<tr>
																		<td height="24">标签：<%=Tag%>&nbsp;点击：(<font color="#e12662"><%=lClick%></font>)&nbsp;评论：(<font color="#e12662"><%=lPL%></font>)&nbsp;投票：(<font color="#e12662"><span id="dig"><%=lDig%></span></font>)&nbsp;上传日期：<%=LastTime%>&nbsp;&nbsp;<input name="fav" type="button" class="btn" id="fav" value="收藏此图" runat="server">&nbsp;&nbsp;<input type="button" name="Submit" value="投一票" class="btn" onClick="javascript:setdig();">&nbsp;&nbsp;<input type="button" name="btu" id="btu" value="查看原图" class="btn" runat="server"></td>
																	</tr>
																	<tr>
																		<td class="tilp_1" height="27"><IMG src="images/icon_exif.gif" align="absMiddle"> <b>查看照片评论信息</b>&nbsp; 
																			&nbsp; &nbsp; &nbsp; <A href="#photo">返回照片图像&gt;&gt;</A></td>
																	</tr>
																	<tr>
																		<td height="50"><asp:datalist id="DataList" runat="server" Width="100%" EnableViewState="False" CellPadding="0">
																				<ItemTemplate>
																					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
																						<tr>
																							<td width="100%" bgcolor="#ffffff"><TABLE width="100%" border="0" align="center" cellPadding="0" cellSpacing="0">
																									<TR>
																										<TD width="100%" colSpan="2"><table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
																												<tr>
																													<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
																															<tr>
																																<td><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" class="ListTop">
																																		<tr>
																																			<td width="842" height="20"><%# showuser(DataBinder.Eval(Container.DataItem, "ly_user").ToString()) %>
																																				[
																																			  <%# DataBinder.Eval(Container.DataItem, "ly_time","{0:d}")%>
																																				]																																			</td>
																																		</tr>
																																	</table>																																</td>
																															</tr>
																															<tr>
																																<td align="left" class="ListLine" height="1"></td>
																															</tr>
																														</table>																													</td>
																												</tr>
																												<tr>
																													<td><table width="100%" border="0" cellspacing="6" bgcolor="#FFFFFF">
																															<tr>
																																<td height="20"><%# ShowContent(DataBinder.Eval(Container.DataItem, "ly_content").ToString())%></td>
																															</tr>
																														</table>																													</td>
																												</tr>
																											</table>																										</TD>
																									</TR>
																								</TABLE>																							</td>
																						</tr>
																					</table>
																				</ItemTemplate>
																			</asp:datalist>
																			<webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" ShowBoxThreshold="21" NumericButtonCount="15"
																				ShowCustomInfoSection="Left" HorizontalAlign="Right" FirstPageText="<font face=webdings>9</font>"
																				PrevPageText="<font face=webdings>3</font>" NextPageText="<font face=webdings>4</font>" LastPageText="<font face=webdings>:</font>"
																				Height="20px" UrlPaging="True" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager><table width="100%" border="0" id="cshow" runat="server">
																				<tr>
																					<td width="13%">评论内容：</td>
																					<td width="87%"><span class="pad">
																							<textarea class="kuan" id="ly_content" name="ly_content" rows="5" cols="50" runat="server"></textarea>
																						</span></td>
																				</tr>
																				<tr id="checkcode" runat="server">
																				  <td>验证码：</td>
																				  <td><input class="kuan" id="ValidateCode" maxlength="25" size="10" name="ValidateCode" runat="server">
                                                                                    <img src="ValidateCode.aspx"></td>
																			  </tr>
																				<tr>
																					<td>&nbsp;</td>
																					<td><input class="btn" id="Submit1" type="button" value="发表评论" name="bsubmit" runat="server" onserverclick="Submit1_ServerClick"></td>
																				</tr>
																	  </table>																		</td>
																	</tr>
																</table>
														  </div>														</td>
													</tr>
												</table>
										  </td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<INPUT id="hidphoto" type="hidden" name="hidphoto"></form>
	</body>
</HTML>
