<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Web.admin._default" %>

<%@ Register src="/share/foot.ascx" tagname="foot" tagprefix="uc1" %>

<!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" style =" height :100%">
<head id="Head1" runat="server">
    <title>OA标题页</title>
        <link href="/css/admincss/skin.css" rel="stylesheet" type="text/css" />
     <script type="text/ecmascript" src="/js/md5.js"></script>
</head>
<script language="JavaScript">
    if (window != top)
        top.location.href = location.href; 
</script> 
<body style =" height :100%">
    <form id="form1" runat="server" defaultfocus ="tbUserName" style =" height :100%">
    <div style =" height :100%">
    <table style =" width :100%;  height:100%" border="0"  cellspacing="0">
  <tr>
    <td style ="height :42; vertical-align :top" ><table style ="width :100%; height :42px"  border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
      <tr>
        <td style ="width :1%; height :21px" >&nbsp;</td>
        <td style ="height :42px" >&nbsp;</td>
        <td style ="width :17%" >&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td  style =" height :90%;  ">
    <table style ="width :100%; height :100%; margin :0px;" border="0" cellpadding="0" cellspacing="0" >
      <tr><td class ="login_bg_top"></td></tr>
      <tr><td class="login_bg_cen">
      
      <table style ="width :100%; height :100%" border="0" cellpadding="0" cellspacing="0" >
      <tr>
        <td style =" text-align:right ">
        <table  style ="width :94%; height :100%" border="0" cellpadding="0" cellspacing="0" class="login_bg2">
            <tr>
              <td >
<table style ="width :100%;  text-align :right " border="0" cellpadding="0" cellspacing="0 ">
                <tr><td style="height :10px">&nbsp;</td></tr>
                <tr> <td style ="height :70px; text-align :right; vertical-align:middle " class ="defaultbiaoti ">
                          <asp:Label ID="biaoti" runat="server"></asp:Label>
                          </td></tr>
                <tr><td style ="height :80px; text-align :right ; vertical-align :top; padding-top :20px " class ="defaultbiaoti ">
                 <asp:Label ID="OA_projectA" runat="server"></asp:Label>
</td></tr>

                </table></td>
            </tr>
        </table></td>
        <td style ="width :1%">&nbsp;</td>
        <td style ="width :50%;  " >
        <table style ="width :100%; text-align :center " border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td style ="width :2%" >&nbsp;</td>
              <td style ="width :98%; height :38px; text-align :left " ><span class="login_txt_bt">登陆后台管理</span></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td style ="height :21px" ><table cellspacing ="0" cellpadding ="0" style ="width :100%; " border="0" id="table211" >
                  <tr>
                    <td style="height :164px; vertical-align :middle " colspan="2" >
                        <table cellspacing ="0"  cellpadding ="0" style="width :100%; height :133px"  border="0"  id="table212" >
                          <tr>
                            <td style ="text-align :right ; width :80px"><span class="login_txt">管理员： </span></td>
                            <td style ="height :45px; text-align :left"  >
                            <asp:TextBox ID="tbUserName" runat="server" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="tbUserName" Display="Dynamic" ErrorMessage="请输入登录名。" 
                                    ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ControlToValidate="tbUserName" Display="Dynamic" ErrorMessage="登录名不合规范。" 
                                    ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{2,20}" ForeColor="Red"></asp:RegularExpressionValidator>
                            </td>
                          </tr>
                          <tr>
                            <td style ="text-align :right ; width :80px;height :45px;"><span class="login_txt"> 密&nbsp;&nbsp; 码：  </span></td>
                            <td style ="height :35px; text-align :left" >
                            <asp:TextBox ID="tbPassword" runat="server" TextMode="Password" autocomplete="off" onblur="cal()" onfocus="c()"></asp:TextBox>
                              <img alt ="" src="/css/admincss/images/luck.gif" width="19" height="18"/> 
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="tbPassword" Display="Dynamic" ErrorMessage="请输入密码。" 
                                    ForeColor="Red"></asp:RequiredFieldValidator>

                              </td>
                          </tr>
                          <tr>
                            <td style ="text-align :right ; width :80px">&nbsp;</td>
                            <td style ="text-align :left "  >
                                <asp:ImageButton ID="imgLogin" runat="server" 
                                    ImageUrl="~/css/admincss/images/admin_login.gif" onclick="imgLogin_Click" />
                              </td>
                          </tr>
                        </table>
                        <br />
                    </td>
                  </tr>

              </table></td>
            </tr>
          </table>
          </td>
      </tr>
    </table>
      
      
      </td></tr>
      <tr><td class ="login_bg_botton"></td></tr>
    </table></td>
  </tr>
  <tr>
    <td style=" height :20px;vertical-align :bottom " ><table style =" width :100%" border="0" cellspacing="0" cellpadding="0" class="login-buttom-bg">
      <tr>
        <td style ="text-align :center "><span class="login-buttom-txt"><uc1:foot ID="foot1" runat="server" /></span></td>
      </tr>
    </table></td>
  </tr>
</table>
    </div>
  </form>
</body>
</html>

<script type="text/javascript">  
    function cal() {
        var t1 = document.getElementById("<%=tbPassword.ClientID%>").value;
        if (t1.trim().length > 5) {
            var hash = hex_md5(t1);
              document.getElementById("<%=tbPassword.ClientID%>").value = hash;
          }
        else {
            if (document.getElementById("<%=tbUserName.ClientID%>").value != "")
                alert("请输入正确的密码");
          }
      }
</script>  
<script type="text/javascript">  
    function c() {
        document.getElementById("<%=tbPassword.ClientID%>").value ="";
    }
</script>  

