<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="relate.aspx.cs" Inherits="web.admin.relate" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductField</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
		<LINK href="images/css.css" type="text/css" rel="stylesheet">
		<LINK href="../img/css/style.css" type="text/css" rel="stylesheet">
<style type="text/css">
body {margin:0px; height:768px}
</style>
	
	

<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
history.go(-1);
}

// -->
</script>
		<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>
	<script language="javascript">
		
function Button1_onclick() 
{
history.go(-1);
}

						</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 height="33" class="tl"></td>
		      <td class="tm"><span class="tt">会员管理 &gt;&gt; 相关统计</span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td 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"> <div align="center">
             
                  
                </div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > <br>
                  

                      <table width="96%" border="0" align="center" cellPadding="0" cellSpacing="0" class="solid-bottom">
                        <tr>
																	<td width="97%" height="19">
																		<table id="secTable" height="29" cellSpacing="0" cellPadding="0" width="513" align="center"
																			border="0">
                              <tr>
																		
																				<td class="sec1" onclick="secBoard(0)" align="center" width="114">充值情况</td>
																				<td class="sec1" onclick="secBoard(1)" align="center" width="200">余额提现情况</td>
																			
																				<td class="sec1" onclick="secBoard(2)" align="center" width="100">积分情况</td>
																		
																			</tr>
																		</table>
																	</td>
																	<td width="17">
																		<script language="JavaScript" type="text/javascript">
function  secBoard(n)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
																		</script>
																	</td>
																</tr>
															</table>
															   
                      <table width="90%" border="0" align="center">
                        <tr>
                          <td><input name="button" type="button" id="Button1" onClick="return Button1_onclick()" value="返回" language="javascript" /></td>
                        </tr>
                      </table>
                      <table id="mainTable" height="120" cellSpacing="5" cellPadding="0" width="97%" border="0">
															
																<tbody style="DISPLAY: block;">
																	<tr>
																		<td >
				 <table width="95%" border="0" align="center">
                                <tr>
                <td height="23">&nbsp;<asp:Label ID="Lname1" runat="server" Text="Label" Font-Bold="True" ForeColor="#C00000"></asp:Label>目前的余额总数为:<%=GetCurrency() %><asp:Label ID="Lye" runat="server" CssClass="prodPrice" Font-Bold="True"></asp:Label></td>
              </tr>
            </table>
																				  <table width="100%" cellspacing="0" cellpadding="0">
								<tr>
									<td class="ml"></td>
									<td class="mm">
										<table width="100%" cellspacing="0" cellpadding="0">
										
											<tr>
												<td width="10"></td>
												<td align="center">
													<asp:datagrid id="czqk" runat="server" AutoGenerateColumns="False"
														DataKeyField="AdvancePaymentID" Width="100%" HorizontalAlign="Center" BorderWidth="1px"
														BorderColor="#E0E0E0">
														<ItemStyle BackColor="White" Height="25px" HorizontalAlign="Center"></ItemStyle>
														<HeaderStyle BackColor="#EDF6FF" Height="35px" HorizontalAlign="Center" CssClass="head"></HeaderStyle>
														<Columns>
															<asp:TemplateColumn HeaderText="预付金额">
																<HeaderStyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<b><font color="FF0000"><%=GetCurrency() %><%# DataBinder.Eval(Container.DataItem, "AdvancePayment", "{0:f}")%></font></b>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="摘要">
																<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# DataBinder.Eval(Container.DataItem, "Remark") %>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="操作时间">
																<HeaderStyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# DataBinder.Eval(Container.DataItem, "AddTime") %>
																</ItemTemplate>
															</asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="支付方式">
                                                                <ItemTemplate>
                                                                   <%# getpays(DataBinder.Eval(Container.DataItem, "paystyle").ToString()) %>
                                                                </ItemTemplate>
                                                            </asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="操作员">
																<HeaderStyle HorizontalAlign="Center" Width="80px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# DataBinder.Eval(Container.DataItem, "WorkPeople") %>
																</ItemTemplate>
															</asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="状态">
                                                                <ItemTemplate>
                                                                   <%# DataBinder.Eval(Container.DataItem, "issucess").ToString()=="1"?"成功":"失败" %>
                                                                </ItemTemplate>
                                                            
                                                            </asp:TemplateColumn>
														</Columns>
														<PagerStyle NextPageText="下一页" PrevPageText="上一页"></PagerStyle>
													</asp:datagrid>
												</td>
												<td width="10"></td>
											</tr>
											<tr>
												<td colspan="3" height="20"></td>
											</tr>
										</table>
									</td>
									<td class="mr"></td>
								</tr>
							</table>
																		</td>
																	</tr>
																</tbody>
																<tbody style="DISPLAY: none">
																	<tr>
																		<td >
																		<table width="100%" cellspacing="0" cellpadding="0">
								<tr>
									<td class="ml"></td>
									
                                  <td class="mm"> <table width="96%" border="0" align="center">
                                      <tr> 
                                        <td height="23">&nbsp;
                                          <asp:Label ID="Lname2" runat="server" Text="Label" Font-Bold="True" ForeColor="#C00000"></asp:Label>
                                          目前的余额总数为:
                                          <%=GetCurrency() %><asp:Label ID="Lye1" runat="server" CssClass="prodPrice" Font-Bold="True"></asp:Label></td>
                                      </tr>
                                    </table>
                                    <table width="100%" cellspacing="0" cellpadding="0">
                                      <tr> 
                                        <td width="10"></td>
                                        <td align="center"> <asp:datagrid ID="txqk" runat="server" AutoGenerateColumns="False"
														DataKeyField="AdvancePaymentID" Width="100%" HorizontalAlign="Center" BorderWidth="1px"
														BorderColor="#E0E0E0"  > 
                                            <itemstyle BackColor="White" Height="25px" HorizontalAlign="Center"></itemstyle>
                                            <headerstyle BackColor="#EDF6FF" Height="35px" HorizontalAlign="Center" CssClass="head"></headerstyle>
                                            <columns>
                                            <asp:templatecolumn HeaderText="提现金额">
                                              <headerstyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></headerstyle>
                                              <itemstyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></itemstyle>
                                              <itemtemplate> <b><font color="FF0000">
                                                <%=GetCurrency() %>
                                                <%# DataBinder.Eval(Container.DataItem, "AdvancePayment", "{0:f}")%>
                                                </font></b> </itemtemplate>
                                            </asp:templatecolumn>
                                            <asp:templatecolumn HeaderText="卡号和户主">
                                              <headerstyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></headerstyle>
                                              <itemstyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></itemstyle>
                                              <itemtemplate> 
                                                <%# DataBinder.Eval(Container.DataItem, "Remark") %>
                                              </itemtemplate>
                                            </asp:templatecolumn>
                                            <asp:templatecolumn HeaderText="操作时间">
                                              <headerstyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></headerstyle>
                                              <itemstyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></itemstyle>
                                              <itemtemplate> 
                                                <%# DataBinder.Eval(Container.DataItem, "AddTime") %>
                                              </itemtemplate>
                                            </asp:templatecolumn>
                                            <asp:templatecolumn HeaderText="操作员">
                                              <headerstyle HorizontalAlign="Center" Width="80px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></headerstyle>
                                              <itemstyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></itemstyle>
                                              <itemtemplate> 
                                                <%# DataBinder.Eval(Container.DataItem, "WorkPeople") %>
                                              </itemtemplate>
                                            </asp:templatecolumn>
                                            <asp:templatecolumn HeaderText="状态">
                                              <itemtemplate> 
                                                <%# getpays(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "issucess"))) %>
                                              </itemtemplate>
                                            </asp:templatecolumn>
                                            </columns>
                                            <pagerstyle NextPageText="下一页" PrevPageText="上一页"></pagerstyle>
                                          </asp:datagrid> </td>
                                        <td width="10"></td>
                                      </tr>
                                      <tr> 
                                        <td colspan="3" height="20"></td>
                                      </tr>
                                    </table></td>
									<td class="mr"></td>
								</tr>
							</table>
																		</td>
																	</tr>
																</tbody>
												
																<tbody style="DISPLAY: none">
																	<tr>
																		<td >
																												 <table width="96%" border="0" align="center">
                                <tr>
                <td height="23">&nbsp;<asp:Label ID="Lname" runat="server" Text="Label" Font-Bold="True" ForeColor="#C00000"></asp:Label>目前的积分总数为:<asp:Label ID="Ljf" runat="server" CssClass="prodPrice" Font-Bold="True"></asp:Label></td>
              </tr>
            </table>
                      <table width="97%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1" style="height: 14px"></td>
		                  <td class="mm1" style="height: 14px">
		            
       
        <asp:datagrid id="dgList" runat="server" AutoGenerateColumns="False"
														DataKeyField="AdvancePaymentID" Width="100%" HorizontalAlign="Center" BorderWidth="1px"
														BorderColor="#E0E0E0" >
														<ItemStyle BackColor="White" Height="25px" HorizontalAlign="Center"></ItemStyle>
														<HeaderStyle BackColor="#EDF6FF" Height="35px" HorizontalAlign="Center" CssClass="head"></HeaderStyle>
														<Columns>
															<asp:TemplateColumn HeaderText="积分值">
																<HeaderStyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<b><font color="FF0000"><%# DataBinder.Eval(Container.DataItem, "AdvancePayment")%></font></b>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="摘要">
																<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# getstring(DataBinder.Eval(Container.DataItem, "Remark").ToString())%>
																</ItemTemplate>
															</asp:TemplateColumn>
															<asp:TemplateColumn HeaderText="操作时间">
																<HeaderStyle HorizontalAlign="Center" Width="100px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# DataBinder.Eval(Container.DataItem, "AddTime") %>
																</ItemTemplate>
															</asp:TemplateColumn>
                                                         
															<asp:TemplateColumn HeaderText="操作员">
																<HeaderStyle HorizontalAlign="Center" Width="80px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
																<ItemTemplate>
																	<%# DataBinder.Eval(Container.DataItem, "WorkPeople") %>
																</ItemTemplate>
															</asp:TemplateColumn>
                                                         
                                                          
														</Columns>
														<PagerStyle NextPageText="下一页" PrevPageText="上一页"></PagerStyle>
													</asp:datagrid>
           
                             
		                   </td>
		<td class="mr1" style="height: 14px"></td>
	</tr>
</table>
																		</td>
																	</tr>
																</tbody>
																
																<tbody style="DISPLAY: none"></tbody></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" style="height: 15px"></td>
		<td class="bm" style="height: 15px">&nbsp;</td>
		<td class="br" style="height: 15px"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>

		</form>
	</body>
</HTML>
