<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>

<%@ Page language="c#" Codebehind="Photo_Sel.aspx.cs" AutoEventWireup="True" Inherits="Typhoto.Photo_Sel" %>
<% @ Import Namespace="Typhoto" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>选择水印图片</title>

<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	font-size: 12px;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></HEAD>
<body>
<SCRIPT language=JavaScript>
function returntu(a)
{
  window.opener.document.all.txtMarkPic.value=a;
  window.opener.document.all.tuwater.src=a;
  window.opener.document.all.tuwater.style.display='';
  window.close();
}
		</SCRIPT>

<form id=Form1 method=post runat="server">
<P>选择相册：<asp:DropDownList id=album runat="server" AutoPostBack="True" onselectedindexchanged="album_SelectedIndexChanged"></asp:DropDownList></P>
<P></P>
<div id=content class=main_content_2><asp:repeater id=dPhotos runat="server">
																	<ItemTemplate>
																		<div class="photo" title='<%# DataBinder.Eval(Container.DataItem, "fileName") %>'>
																			<div class="pic" align="center" >
																				<div align="center" style="WIDTH: 120px;  ; PADDING-TOP: expression(this.style.top+(this.offsetHeight-a<%# Container.ItemIndex + 1 %>.offsetHeight)/2);  HEIGHT: 120px" ><a href='#' onClick="returntu('<%# tuurl(DataBinder.Eval(Container.DataItem, "alias").ToString()) %>');"><img src='<%# tuurl(DataBinder.Eval(Container.DataItem, "alias").ToString()) %>' border="0" id="a<%# Container.ItemIndex + 1 %>"></a></div>
																			</div>
																			<div class="title">
																				<div align="center"><a href='#' onClick="returntu('<%# tuurl(DataBinder.Eval(Container.DataItem, "alias").ToString()) %>');">
																				  <%# DataBinder.Eval(Container.DataItem, "fileName") %>
																			    </a>
																			      </div>
																			</div>
																		</div>
																	</ItemTemplate>
							</asp:repeater></DIV><webdiyer:aspnetpager id=Pager runat="server" ShowBoxThreshold="21" NumericButtonCount="15" ShowCustomInfoSection="Left" AlwaysShow="True" HorizontalAlign="Right" PageSize="24" 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" onpagechanged="Pager_PageChanged"></webdiyer:AspNetPager></FORM>

</body>
</HTML>
