
<%@ Register TagPrefix="uc1" TagName="UIHead" Src="Controls/MUIHead.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameTop" Src="Controls/UIFrameTop.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UIFrameLeft" Src="Controls/MUIFrameLeft.ascx" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Page CodeBehind="MySpace.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.MySpace" enableViewState="False"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<script language="JAVASCRIPT">
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('username')!=null) && (getUrlParam('username')!="")) str="&username="+getUrlParam('username');
	if ((getUrlParam('page')!=null) && (getUrlParam('page')!="")) str=str+"&page="+getUrlParam('page');
	if (document.all.kind1.value!="全部") str=str+"&kind1="+document.all.kind1.value;
	if (document.all.kind2.value!="全部") str=str+"&kind2="+document.all.kind2.value;
	str=str+"&sort="+document.all.sort.value;
	str="?"+str.substring(1,str.length);
	window.location='myspace.aspx'+str;
}
			</script>
</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="MyAlbum"></uc1:uiframeleft></td>
							<td class="frame_body_1" vAlign="top">
								<form id="Form1" name="Form1" runat="server">
									<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr>
											<td class="main_title_1" height="32">
												<table cellSpacing="2" cellPadding="3" width="100%" border="0">
													<tr>
														<td><IMG src="images/icon_album.gif" align="absMiddle"> &nbsp;<A href="MySpace.aspx?username=<%=luser%>" ><%=luser%>的相册</A>&nbsp;&nbsp;<FONT face="宋体">大类：
                                                            <select name="kind1" id="kind1" runat="server" onChange="gosearch();">
                                                            </select>
&nbsp;小类：
<select name="kind2" id="kind2" runat="server" onChange="gosearch();">
  <option selected>全部</option>
</select>
&nbsp;</FONT>排序：
															<select name="sort" id="sort" runat="server" onChange="gosearch();">
																<option value="ID|Desc" selected>按创建日期[最近的]</option>
																<option value="ID|ASC">按创建日期[最早的]</option>
																<option value="UpdateTime|DESC">按最后上传日期[最近的]</option>
																<option value="UpdateTime|ASC">按最后上传日期[最早的]</option>
																<option value="Photocount|Desc">按图片数量[最多的]</option>
																<option value="Photocount|ASC">按图片数量[最少的]</option>
															</select>
														</td>
														<td><div align="right"><A href="javascript:history.back();"><IMG src="images/link_back.gif" align="absMiddle"></A></div>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class="main_content_1">
												<div class="main_content_2" id="content"><asp:repeater id="dAlbums" runat="server">
														<ItemTemplate>
															<div class="album" title='<%# DataBinder.Eval(Container.DataItem, "dirname") %> '>
																<table border="0" cellpadding="0" cellspacing="0" class="pic">
																	<tr>
																		<td align="center" style="vertical-align:top"><div align=left title='<%# ShowAtt(DataBinder.Eval(Container.DataItem, "share").ToString()) %>'><img src='images/priv_<%# DataBinder.Eval(Container.DataItem, "Share") %>.gif'></div>
																		</td>
																	</tr>
																	<tr>
																		<td align="center" style="vertical-align:center">
																			<a href='MySpace_Photos.aspx?DirID=<%# DataBinder.Eval(Container.DataItem, "id") %>'>
																				<img src='<%# ShowFace(DataBinder.Eval(Container.DataItem, "Face").ToString(),DataBinder.Eval(Container.DataItem, "OpenPass").ToString()) %>' border="0">
																			</a>
																		</td>
																	</tr>
																</table>
																<div class="title">
																	<a href='MySpace_Photos.aspx?DirID=<%# DataBinder.Eval(Container.DataItem, "id") %>'>
																		<%# DataBinder.Eval(Container.DataItem, "DirName") %>
																	</a>
																	<br>
																	[<%# DataBinder.Eval(Container.DataItem, "photocount") %>张]&nbsp;</div>
															</div>
														</ItemTemplate>
													</asp:repeater><input name="Album" type="checkbox" style="DISPLAY:none"></div>
											</td>
										</tr>
										<tr>
											<td class="main_title_1" height="32">
												<table width="100%">
													<tr>
														<td align="right" width="90%"><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" onpagechanged="Pager_PageChanged"></webdiyer:AspNetPager></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</form>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</HTML>
