<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="space_spaceapplymanage.aspx.cs" Inherits="Discuz.ForumPage.Admin.spaceapplymanage" %>
<%@ 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/dntmanager.css" type="text/css" rel="stylesheet"> 
		<LINK href="../styles/calendar.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="../js/common.js"></script>
		<script type="text/javascript">
		function submitPassApply()
		{
			if (typeof(Page_ClientValidate) == 'function') 
			{ 
				if (Page_ClientValidate() == false) 
				{ return false; }
			}
			this.disabled=true;success.style.display = 'block';
			HideOverSels('success');__doPostBack('PassApply','');
		}
		function submitDeleteApply()
		{
			if (typeof(Page_ClientValidate) == 'function') 
			{ 
				if (Page_ClientValidate() == false) 
					{ return false; }
			}
			this.disabled=true;
			success.style.display = 'block';
			HideOverSels('success');
			__doPostBack('DeleteApply','');
		}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
		<div class="Navbutton" style="margin:0 auto; width:98%;">
		<table width="100%">	
		<tr>
		<td>
		<input title="选中/取消选中 本页所有Case" onClick="CheckByName(this.form,'uid','no')" type="checkbox" name="chkall" id="chkall">全选/取消全选&nbsp;
		<cc1:Button ID="PassApply" runat="server" Text=" 批 准 "></cc1:Button>&nbsp;&nbsp;
		<cc1:Button id="DeleteApply" 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" PageSize="20">
					<Columns>
					
					<asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
						    <INPUT id="uid<%#DataBinder.Eval(Container, "DataItem.uid").ToString()%>" type="checkbox" value="<%#DataBinder.Eval(Container, "DataItem.uid").ToString()%>"	name="uid">
						</ItemTemplate>
					</asp:TemplateColumn>
						<asp:BoundColumn DataField="spacetitle" HeaderText="个人空间名称"></asp:BoundColumn>
						<asp:BoundColumn DataField="username" HeaderText="申请人"></asp:BoundColumn>
						<asp:BoundColumn DataField="createdatetime" HeaderText="申请日期"></asp:BoundColumn>
						<asp:TemplateColumn>
							<ItemTemplate>
								<a href="#" onclick="document.getElementById('uid<%#DataBinder.Eval(Container, "DataItem.uid").ToString()%>').checked=true;submitPassApply();">批准</a>
								<a href="#" onclick="document.getElementById('uid<%#DataBinder.Eval(Container, "DataItem.uid").ToString()%>').checked=true;submitDeleteApply();">删除</a>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
				</cc1:datagrid>
				</td>
			</tr>
		</table>
				<br>
			
		</form>
		<%=footer%>
	</body>
</HTML>
