<%@ page language="C#" autoeventwireup="true" inherits="Login, 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>
        <%=model_t.Title %>
    </title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="images/css/lr.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript" src="images/js/JScript.js"></script>
    <script type="text/javascript" src="images/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        function imgf(){
            document.getElementById("img1").src=document.getElementById("img1").src+'?';
        }
        //取Cookie
        function getCookies(name)
        {
            var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
            if(arr != null) return decodeURI(arr[2]); return null;
        }
        //验证用户名
        function check_un(){
             if(document.getElementById("txtUserName").value==""){
                 return false;
             }else
             {
                return true;
             }
        }
        //验证密码
        function check_pwd(){
             if(document.getElementById("txtPwd").value==""){
                 return false;
             }else{
                return true;
             }
        }
        //验证
        function val(){
            var falg=true;
             if(document.getElementById("txtUserName").value==""){
                 falg= false;
             }else{ 
                 falg= true;
             }
             if(document.getElementById("txtPwd").value=="")
             {
                 falg= false;
             }else{
                falg= true;
             }
             var checkfc=getCookies('CheckCodef');
            var txt_=document.getElementById("txt_yz").value;
            if(txt_==""){
            
                document.getElementById("msg_yz").innerHTML="请输入验证码！";
               falg= false;
                
            }else if(checkfc==txt_){
               document.getElementById("msg_yz").style.display="none";
               falg= true;
            }else{
                document.getElementById("msg_yz").innerHTML="请正确填写校验码";
                falg= false;
            }
             if(falg){
                return true;
             }else{
                return false;
             }
        }
    </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 %><%=model_t.WebPath %>/">
                    <img src="Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
        </div>
        <div id="sp-menu">
            <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.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 %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
            <p>
                <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
        </div>
        <div id="contenter2">
            <div id="contenter">
                <table class="login-step">
                    <tr>
                        <td class="reg-top1">
                            登录
                        </td>
                        <td class="reg-top2">
                        </td>
                        <td class="reg-top2">
                        </td>
                        <td class="reg-top2">
                        </td>
                    </tr>
                </table>
                <table align="left" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 10px;">
                    <tr>
                        <td align="right" class="row" width="20%">
                            邮箱帐号：
                        </td>
                        <td width="80%">
                            <input id="txtUserName" type="text" class="txt_" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="row">
                            登录密码：
                        </td>
                        <td>
                            <input id="txtPwd" type="password" class="txt_" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="row">
                            验证码：</td>
                        <td>
                            <input type="text" id="txt_yz" class="txt_code" runat="server"/>
                            <img id="img1" src="imgcheck2.aspx" language="javascript" onclick="this.src=this.src+'?'">
                            <font class="login-size"><a href="#" onclick="imgf()">看不清？换一张</a></font>
                            <span id="msg_yz" runat="server" style="color: #ff0000;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td class="row" align="left">
                            <input type="submit" value="登 录" class="btn" id="btnLogin" language="javascript" runat="server" onclick="return val();" 
                                onserverclick="btnLogin_ServerClick" /></td>
                    </tr>
                </table>
                <div class="both">
                </div>
                <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
        <input type="hidden" id="refef" name="ref" runat="server" />
    </form>
</body>
</html>
