<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Maticsoft.Web.credit.index" %>

<%@ Register src="../UserControls/CFooterControl.ascx" tagname="CFooterControl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CHeaderControl.ascx" tagname="CHeaderControl" tagprefix="uc2" %>

<%@ Register src="../UserControls/blockcredit.ascx" tagname="blockcredit" tagprefix="uc3" %>
<%@ Register src="../UserControls/blockcredittip.ascx" tagname="blockcredittip" tagprefix="uc4" %>

<%@ Register src="../UserControls/MyWebside.ascx" tagname="MyWebside" tagprefix="uc5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <uc2:CHeaderControl ID="CHeaderControl1" runat="server" />
    <div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="credit">
	<div class="dashboard" id="dashboard">
		<uc5:MyWebside ID="MyWebside1" runat="server" />
	</div>
    <div id="content">
		<div class="box clear">
            
            <div class="box-content">
                <div class="head">
                    <h2>账户余额</h2>
                </div>
                <div class="sect">
					<p class="charge">充值到
                    
                      <%if (sysmodel!=null)
                        { %>
                    <%=sysmodel.abbreviation%>账户，方便抢购！
                    <% }%>
                     <span>&raquo;</span> <a href="/credit/charge.aspx">立即充值</a></p>
					<h3 class="credit-title">当前的账户余额是 <strong><%=usermodel.Money %></strong> 元</h3>
					<table id="order-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="120">时间</th><th width="auto">详情</th><th width="50">收支</th><th width="70">金额(元)</th></tr>
				
                        <%int i = 0; %>
                        <%foreach (Maticsoft.Model.Flow flowmodel in flowlist)
                          { %>
						<tr <% if( i%2!=0 ){ %> class="alt"<%} %>><td style="text-align:left;"><%=flowmodel.Create_time %></td>
                        
                        <td>
                        
                        <%if (flowmodel.Action == "coupon")
                          { %>
                        <%if (sysmodel != null)
                          { %>
                        <%=sysmodel.Couponname%><% }
                          }%>   

                        <% else if (flowmodel.Action == "invite")
                            {%> 返利好友-<%=Getname(flowmodel.Detail_id)%> <% }
                            else if (flowmodel.Action == "buy")
                            {%>
                                                                                                                     <%if (orderbll.GetOrderid(flowmodel.Detail_id) != null)
                                                                                                                       { %>     
                                                                                                          <a href="/team.aspx?id=<%=orderbll.GetOrderid(flowmodel.Detail_id).Team_id%>">购买-<%=GetTeam((orderbll.GetOrderid(flowmodel.Detail_id).Team_id.ToString()),(orderbll.GetOrderid(flowmodel.Detail_id).Id.ToString()))%></a>
                                                                                                          <% }%>
                                                                                                          <% }%>
                                                                                                      
                          <%  else if (flowmodel.Action == "charge")
                            { %>
                                                                                                          充值-在线充值
                                                                                                          <%}
                            else if (flowmodel.Action == "store")
                            { %>

                                                                                                           <%}%>
                                                                                                          
                                                                                                          </td>
                                                                                                           
                                                                                                          <td >
                                                                                                        
                                                                                                          <%if (flowmodel.Direction == "income")
                                                                                                          { %>
                                                                                                            收入
                                                                                                            <%}else if (flowmodel.Direction == "expense"){ %>
                                                                                                            支出
                                                                                                          <% }%>
                                                                                                          </td><td><%=flowmodel.Money %></td></tr>
						
                        <%
                                     i++;}%>
						<tr><td colspan="4"><%=strpage%></td></tr>
                    </table>
				</div>
            </div>
            
        </div>
    </div>
    <div id="sidebar">
<uc3:blockcredit ID="blockcredit1" runat="server" />

	<uc4:blockcredittip ID="blockcredittip1" runat="server" />

    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->

    <uc1:CFooterControl ID="CFooterControl1" runat="server" />

    </form>
</body>
</html>
