<%@ Page language="c#" Codebehind="space_spacemanage.aspx.cs" AutoEventWireup="false" Inherits="Discuz.ForumPage.Admin.spacemanage" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>用户列表</title>
		<link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
		<link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/common.js"></script>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
		<asp:Panel id="searchtable" runat="server"  Visible="true">
		<div class="ManagerForm">
		<fieldset>
		<legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">搜索个人空间</legend>
				<table id="Table1" class="table1" cellspacing="0" cellPadding="4" width="100%" border="0">
					<tr>
						<td class="td1" width="20%">用户名:</td>
						<td class="td1" width="80%"><cc1:TextBox id="Username" runat="server" RequiredFieldType="暂无校验" width="200"></cc1:TextBox></td>
					</tr>
					<tr>
						<td class="td2">注册日期:</td>
						<td class="td2" align="left">
						    <cc1:Calender id="joindateStart" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc1:Calender>&nbsp;-&nbsp;
							<cc1:Calender id="joindateEnd" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc1:Calender>
						</td>
					</tr>
					<tr><td colspan="4" align="center"><cc1:Button ID="Search" runat="server" Text="开始搜索" designtimedragdrop="247"></cc1:Button></td></tr>
				</table>
		</fieldset>
		</div>
		</asp:Panel>
		<div class="Navbutton" style="margin:0 auto; width:98%; text-align:left;">
		<table width="100%">	
		<tr><td class="category">
		<input title="选中/取消选中 本页所有Case" onClick="CheckByName(this.form,'spaceid','no')" type="checkbox" name="chkall" id="chkall">全选/取消全选&nbsp;
		<cc1:Button ID="CloseSpace" runat="server" Text=" 关 闭 " designtimedragdrop="247"></cc1:Button>&nbsp;&nbsp;
		<cc1:Button ID="OpenSpace" runat="server" Text=" 开 启 " designtimedragdrop="247"></cc1:Button>&nbsp;&nbsp;
		<cc1:Button id="DeleteSpace" runat="server" Text=" 删 除 "  ButtonImgUrl="../images/del.gif"></cc1:Button>
		</td></tr></table>
		</div>
        <table width="100%">				
          <tr>
             <td width="2px"></td>
             <td>
				<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged">
					<Columns>
					
					<asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
						   <INPUT id="spaceid" type="checkbox" value="<%#DataBinder.Eval(Container, "DataItem.spaceid").ToString()%>"	name="spaceid">							
						</ItemTemplate>
					</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="空间名称">
                            <ItemTemplate>
                            <a href="../../space/?uid=<%#DataBinder.Eval(Container, "DataItem.spaceid").ToString()%>" target="_blank"><%#DataBinder.Eval(Container, "DataItem.spacetitle").ToString()%></a>
                            </ItemTemplate>
                         </asp:TemplateColumn>
						<asp:BoundColumn DataField="username" HeaderText="用户名"></asp:BoundColumn>
						<asp:BoundColumn DataField="grouptitle" HeaderText="所属组"></asp:BoundColumn>
						<asp:BoundColumn DataField="postcount" HeaderText="日志数"></asp:BoundColumn>
						<asp:BoundColumn DataField="commentcount" HeaderText="评论数"></asp:BoundColumn>
						<asp:BoundColumn DataField="createdatetime" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}"></asp:BoundColumn>
						<asp:BoundColumn DataField="tstatus" HeaderText="状态"></asp:BoundColumn>
					</Columns>
				</cc1:datagrid>
				</td>
			</tr>
		</table>
		</form>
		<%=footer%>
	</body>
</html>

