<%@ page language="C#" autoeventwireup="true" inherits="Withdrawnote, LebiMall" %>

<!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 id="Head1" runat="server">
    <title>提现申请-<%=modelt.Title %></title>
    <meta name="description" content="<%=modelt.Description %>" />
    <meta name="keywords" content="<%=modelt.Keywords %>" />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript">
        var min='<%=floormoney %>';
        var bal='<%=balance %>';
        function val(){
            var flag=true;
            if(document.getElementById("txt_money").value==""){
                document.getElementById("msg_money").innerHTML="<span class='msg_submit'>提现金额不能为空！</span>";
                flag=false;
            }else{
                document.getElementById("msg_money").innerHTML="<em>元</em>";
                var moneys=document.getElementById("txt_money").value;
                if(moneys/1<min/1){
                    document.getElementById("msg_money").innerHTML="<span class='msg_submit'>提现金额不能少于提现最低限额！</span>";
                    flag=false;
                }
                 if(moneys/1>bal/1){
                    document.getElementById("msg_money").innerHTML="<span class='msg_submit'>提现金额不能大于账户余额！</span>";
                    flag=false;
                }
            }
            if(document.getElementById("txt_pwd").value==""){
                document.getElementById("msg_pwd").innerHTML="<span class='msg_submit'>提现密码不能为空！</span>";
                flag=false;
            }else{
                document.getElementById("msg_pwd").innerHTML="";
            }
            if(flag){
                return true;
            }else{
                return false;
            }
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div id="top-menu02">
            <div id="top-menu">
                <div class="right">
                    <script type="text/javascript">indexhead();</script>
                </div>
            </div>
        </div>
        <div id="top">
            <div id="logo">
                <a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/">
                    <img src="Upload/WebAdminImages/<%=modelt.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
           <ul>
            <li><a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (modelt.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=modelt.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
            <p>
                <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
        </div>
        <div id="contenter2">
            <div id="contenter">
                <script type="text/javascript">
                    shopLeft();
                </script>
                <div id="right">
                <div class="page-title">
                        <a class="back" href="#" onclick="javascript:window.history.back();"><span>返回上一页</span></a>
                        <h2 class="shop clearfix">
                            提现申请
                        </h2>
                    </div>
                    <div class="contenter">
                    <div style="margin-left:180px;" runat=server id="msg_"></div>
                         <table cellpadding="0" cellspacing=0 width=100% id="list" runat="server">
                                <tr>
                                    <td class="row" width="20%"><span class="span-title">账户余额：</span></td>
                                    <td width="80%"><%=balance %>&nbsp;<em>元</em></td>
                                </tr>
                                <tr>
                                    <td class="row" width="20%"><span class="span-title">冻结金额：</span></td>
                                    <td width="80%"><%=dmoney %>&nbsp;<em>元</em></td>
                                </tr>
                                <tr>
                                    <td  class="row"><span class="span-title" >申请提现金额：</span></td>
                                    <td><input type="text" id="txt_money" runat="server"  class="input-c" />&nbsp;<span id="msg_money" runat=server>&nbsp;<em>元</em></span></td>
                                </tr>
                                <tr>
                                    <td  class="row"><span class="span-title" >提现密码：</span></td>
                                    <td><input type="password" id="txt_pwd" runat="server"  class="input-c" />&nbsp;<span id="msg_pwd" runat=server></span></td>
                                </tr>
                                <tr>
                                <td colspan=2 class="row4">
                                    <asp:Button ID="Button2" runat="server" Text="申请提现" OnClientClick="return val();" OnClick="Button2_Click" />
                                    <input id="Button1" type="button" value="提现设置" runat="server" onclick="javascript:window.location.href='WithdrawM.aspx'" />
                                </td>
                            </tr>
                         </table>
                         <span style="color: red; line-height:23px;">
                            注意：提现金额不能少于提现最低限额，提现最低限额为：<%=floormoney %>元
                        </span>
                    </div>
                </div>
                <div class="both">
                </div>
                        <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
                <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
    </form>
</body>
</html>
