<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameLeft" Src="Controls/UIFrameLeft.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameTop" Src="Controls/UIFrameTop.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIHead" Src="Controls/UIHead.ascx" %>

<%@ Page CodeBehind="User_List.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.User_List" enableViewState="False"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		
		<script language="JAVASCRIPT">
function over(obj){
try{
obj.className=(obj.className == "GridMove" ? "GridItem" : "GridMove")
}
catch(e){
}
}
function btnover(obj){
obj.className="butdiv";
}
function btnout(obj){
obj.className="";
}
function getUrlParam(paramName)
{
	var s=location.search;
	if(s!=null){
	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 "";
	}
}	
function gosearch()
{
	var str="";
	if ((getUrlParam('type')!=null) && (getUrlParam('type')!="")) str="&type="+getUrlParam('type');
	if ((getUrlParam('asc')!=null) && (getUrlParam('asc')!="")) str=str+"&asc="+getUrlParam('asc');
	if ((getUrlParam('page')!=null) && (getUrlParam('page')!="")) str=str+"&page="+getUrlParam('page');
	window.location='User_List.aspx?key='+document.all.key.value+str;
}
		</script>
		<form id="Form1" name="Form1" method="post" runat="server">
	</HEAD>
	<body class="body_1" scroll="no">
		<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" Current="MyZips"></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" colSpan="2" height="32"><table cellSpacing="2" cellPadding="3" width="100%" border="0">
												<tr>
													<td width="150"><IMG height="14" src="images/icon_user.gif" width="16" align="absMiddle">
														&nbsp; 网友列表
													</td>
													<td align="right"><input class=text1 
                        id=key type=text size=20 
                        value='<%if (Request["key"]!=null) Response.Write(Request["key"].ToString());%>' 
                        name=key>
											<input class="button1" onClick="gosearch();" type="button" value=" 查 询 " name="bSearch"> <A href="javascript:history.back();">
															<IMG src="images/link_back.gif" align="absMiddle"></A></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td class="main_content_0" vAlign="top" colSpan="2"><div class="main_content_2" id="content"><asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" PageSize="20" Width="100%" AutoGenerateColumns="False"
													AllowSorting="True" CellPadding="5">
							    <AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
													<ItemStyle CssClass="GridItem"></ItemStyle>
													<HeaderStyle CssClass="GridHead"></HeaderStyle>
													<Columns>
														<asp:TemplateColumn HeaderText="用户名">
															<HeaderStyle HorizontalAlign="Center" Width="40%"></HeaderStyle>
															<HeaderTemplate>
																<%=uusername%>
															</HeaderTemplate>
															<ItemTemplate>
																<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.uUsername") %>' NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.uUsername", "user_info.aspx?UserName={0}") %>'>
																</asp:HyperLink>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="相册数量">
															<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Right"></ItemStyle>
															<HeaderTemplate>
																<%=albumcount%>
															</HeaderTemplate>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.albumcount", "{0} 个") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="照片数量">
															<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Right"></ItemStyle>
															<HeaderTemplate>
																<%=photocount%>
															</HeaderTemplate>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.photocount", "{0} 张") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="空间使用">
															<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Right"></ItemStyle>
															<HeaderTemplate>
																<%=spacetotal%>
															</HeaderTemplate>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.Spacetotal") %> M
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="注册日期">
															<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
															<HeaderTemplate>
																<%=regdate%>
															</HeaderTemplate>
															<ItemTemplate>
																<%# DataBinder.Eval(Container, "DataItem.regdate", "{0:yyyy-MM-dd}") %>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:HyperLinkColumn Text="查看相册" DataNavigateUrlField="uUsername" DataNavigateUrlFormatString="Share_Album.aspx?UserName={0}"
															HeaderText="查看相册">
															<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center"></ItemStyle>
														</asp:HyperLinkColumn>
													</Columns>
													<PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
												</asp:datagrid></div>
										</td>
									</tr>
									<tr>
										<td class="main_title_1" colSpan="2" height="32"><table width="100%">
												<tr>
													<td><webdiyer:aspnetpager id="Pager" runat="server" PageSize="24" HorizontalAlign="Right" AlwaysShow="True"
																ShowCustomInfoSection="Left" NumericButtonCount="15" ShowBoxThreshold="21" 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"></webdiyer:aspnetpager></td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</FORM>
	</body>
</HTML>
