<%@ Page language="c#" Codebehind="MemberGroup.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.MemberGroup" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>MemberGroup</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />会员组列表</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title">会员组管理</div>
		        <div class="frame_content">
		           <table class="tableBorder" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
				        <tr>
					        <td class="forumRowHighlight" height="23"><asp:datagrid id="dgList" runat="server" AllowPaging="False" PagerStyle-Mode="NumericPages" AutoGenerateColumns="False"
							        DataKeyField="MemberGroupID" Width="100%" HorizontalAlign="Center" HeaderStyle-CssClass="summary-title">
							        <HeaderStyle Font-Bold="True"></HeaderStyle>
							        <Columns>
								        <asp:TemplateColumn HeaderText="会员组名称" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
									        ItemStyle-Width="120">
									        <ItemTemplate>
										        <%#DataBinder.Eval(Container.DataItem,"GroupName")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="折扣" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"
									        ItemStyle-Width="120">
									        <ItemTemplate>
										        <%#DataBinder.Eval(Container.DataItem,"Discount")%>
										        %
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="会员数量" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									        <ItemTemplate>
										        <%# GetNumber(DataBinder.Eval(Container.DataItem,"MemberGroupID").ToString())%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
									        <HeaderStyle></HeaderStyle>
									        <ItemTemplate>
										        <a href='MemberGroupAdd.aspx?GroupID=<%#DataBinder.Eval(Container.DataItem,"MemberGroupID")%>'>
											        修改</a>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:ButtonColumn ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center" Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('此删除操作将把该类会员转变为普通会员，真的要删除吗？')&quot;&gt;删除&lt;/div&gt;"
									        HeaderText="" CommandName="Delete"></asp:ButtonColumn>
							        </Columns>
						        </asp:datagrid></td>
				        </tr>
			        </table>
			        <table>
				        <tr>
					        <td height="10"></td>
				        </tr>
			        </table>
			        <table class="tableBorder" cellSpacing="0" cellPadding="0" width="640" align="center" border="0">
				        <tr>
					        <td width="40%" align="right">
						        选择会员组：<asp:DropDownList id="ddl1" runat="server" AutoPostBack="True"></asp:DropDownList></td>
					        <td width="20%"></td>
					        <td width="40%">
						        选择会员组：<asp:DropDownList id="ddl2" runat="server" AutoPostBack="True"></asp:DropDownList></td>
				        </tr>
				        <tr>
					        <td align="right">
						        <asp:ListBox id="lb1" runat="server" Width="200" Height="200" SelectionMode="Multiple"></asp:ListBox></td>
					        <td align="center">
						        <asp:Button id="Button1" runat="server" Text="＞＞"></asp:Button><br>
						        <br>
						        <asp:Button id="Button2" runat="server" Text="＜＜"></asp:Button></td>
					        <td>
						        <asp:ListBox id="lb2" runat="server" Width="200" Height="200" SelectionMode="Multiple"></asp:ListBox></td>
				        </tr>
			        </table> 
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</HTML>
