<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Login.aspx.cs" Inherits="HteamFeedback.Web.Admin.Admin_Login" %>

<!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>用户登录</title>
 <link href="/css/style.css" rel="stylesheet" type="text/css" />
 <style type="text/css">
body { background:#fff; background-image : url("/images/body_bg1.gif");background-repeat: repeat-x ; }
td { font-size:12px;}
input { border:1px solid #999; }
.button { color: #135294; border:1px solid #666; height:21px; line-height:18px; background:url("/images/button_bg1.gif")}
div#nifty{margin: 0 10%;background: #ABD4EF;width: 420px; margin-top:60px;}
b.rtop, b.rbottom{display:block;background: #FFF}
b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #ABD4EF}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
 </style>
 <!-- 判读如果在框架内自动跳出 -->
 <script type="text/javascript" language="javascript">
     if (self != top) { top.location = self.location; }
 </script>
<script type="text/javascript" language="javascript">
    function checkcontent() {
        var f = document.forms[0];
        if (f.txtUsername.value.replace(/(^\s*)|(\s*$)/g, "") == "") {
            alert('请输入用户名!');
            f.txtUsername.focus();
            return false;
        }
        if (f.txtUserpassword.value.replace(/(^\s*)|(\s*$)/g, "") == "") {
            alert("请填写密码!");
            f.txtUserpassword.focus();
            return false;
        }
        if (f.txtValidateNum.value.replace(/(^\s*)|(\s*$)/g, "") == "") {
            alert("验证码不可为空!");
            f.txtValidateNum.focus();
            return false;
        }
        return true;
    }

</script>
</head>
<body>
    <center>
        <div id="nifty">
            <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
            <div style="width:403px; height:26px; line-height:26px; background:none; font-size:12px; text-align:left;"><b>海天轻博客系统</b></div>
            <div style="width:403px; height:46px; background:#B9CDE9;text-align:center; font-size:26px; font-family:楷体;">
            <div style=" width:203px; height:30px; margin:0 100px 0 100px; padding-top:15px;">后台登陆</div>
        </div>
        <div style="width:401px !important; width:403px; height:auto; background:#fff; border-left:1px solid #649EB2; border-right:1px solid #649EB2;">
            <form id="form1" runat="server"  onsubmit="return checkcontent()">
                <table width="100%" border="0" cellspacing="3" cellpadding="0">
                    <tr valign="middle" style=" height:10px;">
                        <td align="right"><span class="Login_label">用户名：</span></td>
                        <td align="left"> <asp:TextBox ID="txtUsername" runat="server" MaxLength="15" Height="25px" CssClass="Login_input"></asp:TextBox>
                           &nbsp;&nbsp;&nbsp;</td>
                    </tr>
                    <tr valign="middle">
                        <td align="right"><span class="Login_label">密&nbsp;&nbsp; 码：</span></td>
                        <td align="left"> 
                            <asp:TextBox ID="txtUserpassword" runat="server"  MaxLength="15"  Height="25px" TextMode="Password" CssClass="Login_input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr  valign="middle" style=" height:20px;">
                        <td align="right"><span class="Login_label">验证码：</span></td>
                        <td align="left">      
                            <asp:TextBox ID="txtValidateNum" runat="server" MaxLength="15" Width="110px" 
                                Height="25px"></asp:TextBox>
                                    <asp:Image ID="imgcode" runat="server" ImageUrl="/Admin/ValidateNum.aspx" onclick="this.src='/Admin/ValidateNum.aspx?t='+Math.random()" style="VERTICAL-ALIGN: middle; CURSOR: pointer; HEIGHT: 25px"  />
                            <br />
                                    验证码,看不清楚?请点击刷新验证码                                                    
	                    </td>
                    <tr valign="middle">
                        <td align="center"  colspan="2">
                            <asp:Button ID="bt_login" runat="server" class="button" Text="登 录" onclick="bt_login_Click" />
                            &nbsp;<input id="Reset1" type="reset" class="button" value="重置"  />
                            &nbsp;</td>
                    </tr>
            </table>
        </form>
    </div>
    <div style="BORDER-RIGHT: #649eb2 1px solid; BORDER-TOP: #ddd 1px solid; FONT-SIZE: 12px; BACKGROUND: #f7f7e7; MARGIN-BOTTOM: 5px; BORDER-LEFT: #649eb2 1px solid; WIDTH: 403px; LINE-HEIGHT: 20px; BORDER-BOTTOM: #649eb2 1px solid; HEIGHT: 50px;text-align:center">HiTeam.Com @Copyright 2011&nbsp;<a href="http://www.haitianruanjian.com" target="_blank">海天软件</a>
    </br></div>
    <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b>
    </div>
  </center>
</body>
</html>

