<%@ Page Language="c#" Inherits="WebApp.login" CodeBehind="zmkm.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>站群管理系统欢迎您</title>
    
    <!--#include file="../assets/head.htm"-->

</head>
<body class="login-wrap" onload="document.Form1.username.focus();">

        <div class="wp-navbar clearfix">
        <h1 class="wp-title pull-left"><asp:Label ID="Label1" runat="server" Text=""></asp:Label>站群管理系统</h1>
        <ul class="wp-nav pull-right">
            
            <li class="wp-nav-item"><a target="_blank" href="http://wpcms.zdsoft.net/help.html">帮助中心</a></li>
        </ul>
    </div>
    
    <div class="wp-content">
        <div class="content-login container-fluid">
            <div class="content-login-inner">
                <div class="row">
                    <div class="col-md-4 col-md-offset-8">
                        <div class="wp-login-wrap">
                            <form id="Form2" method="post" runat="server">
                                <div class="text-right clearfix">
                                    <h2 class="pull-left">用户登录</h2><asp:Label ID="error" class="error" runat="server"></asp:Label>
                                </div>
                                <div class="space"></div>
                                <label class="block clearfix">
                                    <span class="block input-icon input-icon-right">
                                        <asp:TextBox ID="username" runat="server" class="form-control" placeholder="请输入用户名" TabIndex="1"></asp:TextBox>
                                        <i class="ace-icon fa fa-user"></i>
                                    </span>
                                </label>
                                <div class="hr-8"></div>
                                <label class="block clearfix">
                                    <span class="block input-icon input-icon-right">
                                         <asp:TextBox ID="password" runat="server" class="form-control" TextMode="Password" TabIndex="2" autocomplete="off" placeholder="请输入密码" ></asp:TextBox>
                                        <i class="ace-icon fa fa-lock"></i>
                                    </span>
                                </label>
                                <div class="hr-8"></div>
                                <div class="clearfix">
                                    <label class="width-60 pull-left">
                                        <span class="block input-icon input-icon-right">
                                            <asp:TextBox ID="verifycode" runat="server" class="form-control"  TabIndex="3" autocomplete="off" placeholder="请输入验证码"></asp:TextBox>              
                                            <i class="ace-icon fa fa-barcode"></i>
                                        </span>
                                    </label>
                                    <img class="wp-login-code pull-right" src="verifyimg.aspx" title="单击可换图" alt="" onclick="this.src='verifyimg.aspx?v'+Math.random()" />
                                </div>
                                <div class="space"></div>                                
                                <asp:Button class="btn btn-primary btn-block"  ID="btnlogin" runat="server" Text="登  录" OnClick="btnlogin_Click"  TabIndex="4" />  
                                <div class="clearfix">
                                    
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="wp-footer">
        <p>版权所有：浙江万朋教育科技股份有限公司</p>
    </div>
     <script type="text/javascript">
         $(document).ready(function () {
             // 这里写下面这个方法或事件的注释 
             $("#btnlogin").click(function () {

                 var uid = $("#username").val();
                 var upwd = $("#pwdtext").val();
                 var uvc = $("#verifycode").val();
                 if (uid == '') {
                     $("#error").html("<font color='red'>用户名不能为空!</font>");
                     return false;
                 }
                 if (upwd == '') {
                     $("#error").html("<font color='red'>密码不能为空!</font>");
                     return false;
                 }
                 if (uvc == '') {
                     $("#error").html("<font color='red'>验证码不能为空!</font>");
                     return false;
                 }
                 $("#password").val(Base64.base64encode(Base64.utf16to8(upwd)));
                 return true;
             });

         });

    </script>
</body>
</html>
