<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="GroupList.aspx.cs" Inherits="web.admin.GroupList" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>MemberGroup</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<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">
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
				<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="6%" height="34" class="tl"></td>
		<td width="90%" class="tm"><span class="tt">会员管理 &gt;&gt; 会员组管理</span></td>
		      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="3%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top"><br>
                      <table width="90%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
			<table  cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
                              <tr>
					            <td class="forumRowHighlight" height="30">
<asp:datagrid id="dgList" runat="server" PagerStyle-Mode="NumericPages" AutoGenerateColumns="False"
							DataKeyField="MemberGroupID" Width="100%" HorizontalAlign="Center" HeaderStyle-CssClass="summary-title" BorderColor="#E0E0E0" BorderWidth="1px">
							<HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="head" Height="35px" HorizontalAlign="Center"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="会员组名称">
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"GroupName")%>
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="折扣">
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"Discount")%>
										%
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
								</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="升级费用">
									<ItemTemplate>
										<%# string.Format("{0:f}", DataBinder.Eval(Container.DataItem,"mone")).ToString()%>
									
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
								</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="所需积分">
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem,"score")%>
									
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
								</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="期限">
									<ItemTemplate>
										<%# DataBinder.Eval(Container.DataItem, "sj").ToString() == "1" ? "包月" : DataBinder.Eval(Container.DataItem, "sj").ToString() == "2" ? "包季" : DataBinder.Eval(Container.DataItem, "sj").ToString() == "3"?"包年":""%>
									
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
                                    <ItemStyle HorizontalAlign="Center" Width="120px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" />
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="会员数量">
									<ItemTemplate>
										<%# GetNumber(DataBinder.Eval(Container.DataItem,"MemberGroupID").ToString())%>
									</ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemTemplate>
										<a href='MemeberZadd.aspx?GroupID=<%#DataBinder.Eval(Container.DataItem,"MemberGroupID")%>'>
											修改</a>
									</ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
								</asp:TemplateColumn>
								<asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('此删除操作将把该类会员转变为普通会员，真的要删除吗？')&quot;&gt;删除&lt;/div&gt;" CommandName="Delete">
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:ButtonColumn>
							</Columns>
    <PagerStyle Mode="NumericPages" />
    <ItemStyle Height="27px" HorizontalAlign="Center" />
						</asp:datagrid></td>
				</tr>
			</table>
			<table>
				<tr>
					<td height="10"></td>
				</tr>
			</table>
			                <table  cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
                              <tr>
					            <td width="40%" height="26" 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="198px" Height="247px" 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="241px" SelectionMode="Multiple"></asp:ListBox></td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
