<%@Page Language="C#" Inherits="IWMS.Admin.GroupMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="myForm" runat="server">
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">管理会员组</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnDeleteCommand="MyDataGrid_Delete"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0" >
			<EditItemStyle CssClass="tdbg-dark" />
			
			<Columns>
				<asp:TemplateColumn
					>
					<ItemTemplate>
						<a href="admin_groupAdd.aspx?id=<%#Eval("id")%>">修改</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="会员组名">
					<ItemTemplate>
						<%#Eval("name")%>
					</ItemTemplate>
					<EditItemTemplate>
						<asp:TextBox  runat="server"
							id="Groupname"
							Text=<%#Eval("name")%>
							Columns="20"
							MaxLength="100"
							 />
						<asp:RequiredFieldValidator
							ControlToValidate="Groupname"
							ErrorMessage="*"
							runat="server" >
						</asp:RequiredFieldValidator>
					</EditItemTemplate>
					<HeaderStyle Width="200"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="备注">
					<ItemTemplate>
						<%#Eval("remarks")%>
					</ItemTemplate>
					<EditItemTemplate>
						<asp:TextBox  runat="server"
							id="Remarks"
							Text=<%#Eval("remarks")%>
							Columns="30"
							MaxLength="100"
							 />
					</EditItemTemplate>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="ID"
					DataField="id"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="30"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="会员数"
					DataField="membernum"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<asp:ButtonColumn
					ButtonType="LinkButton"
					CommandName="Delete"
					Text="删除" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:ButtonColumn>
					
			</Columns>
		</ASP:DataGrid>	
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	</form>

</asp:Content>