<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!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 runat="server">
    <title>办公系统|-51aspx.com</title>
    <style type="text/css">
    body {text-align:center; margin:0px; padding:0px;}
  #main { text-align:center; padding-top:150px;}
  #center {text-align:center; height:150px;}
    #up, { height:1px; background-image:url(image/up.jpg); background-repeat:repeat-x;}
    #down {height:1px; background-image:url(image/down.jpg);background-repeat:repeat-x;}
    #a {margin-left:10px;}
    #a,#b,#c { float:left;}
   table,img {border:0px;}
    #c {margin-top:20px;}
  
    #Label1,#Label2,#Label3 {color:red; font-weight: bold;}
   
</style>
<script type="text/javascript" src="Jquery/jquery-1.2.6.min.js"></script>
<script type="text/javascript">
function check()
{
                 var userObj=$.trim($("#userTxt").val());
                 var pwdObj=$.trim($("#pwdTxt").val());;
                 var codeObj=$.trim($("#codeTxt").val());
                  if(userObj=="" ){
                  alert("用户名不能为空"); 
                  $("#userTxt").focus();  
                  return false;                 
                
                  
                  } 
                  if(pwdObj=="" ){
                  alert("密码不能为空");
                    $("#pwdTxt").focus();
                   return false; 
                
                 
                  
                  } 
                  if(codeObj=="" ){
                  alert("请输入验证码");
                   $("#codeTxt").focus();
                   return false; 
                  
                  } 
  
}
function over(id)
{
 document.getElementById(id).style.borderColor="#ffff99";
}
function out(id)
{
 document.getElementById(id).style.borderColor="";
}



</script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
       <div id="up" > </div>
           <div id="center">
       
       
                         <div id=a> <img src="image/11.jpg" /> </div> 
                         <div id=b>  <img src="image/key.jpg" />  </div>
                         <div id=c> 
                             <table>
                                 <tr>
                                     <td>
                                         <asp:Label ID="Label1" runat="server" Text="姓　名"></asp:Label></td>
                                     <td style="width: 100px" align="left">
                                         <asp:TextBox ID="userTxt" runat="server" onmouseover=over(this.id) onmouseout=out(this.id) >51aspx</asp:TextBox></td>
                                     <td rowspan="3">
                                         <asp:ImageButton ID="longinBtn" runat="server"  OnClientClick="return check()" ImageUrl="~/image/admin_login.gif" /></td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <asp:Label ID="Label2" runat="server" Text="账　号"></asp:Label></td>
                                     <td align="left">
                                         <asp:TextBox ID="pwdTxt" runat="server" onmouseover=over(this.id) onmouseout=out(this.id) TextMode="Password" Width="147px"></asp:TextBox></td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <asp:Label ID="Label3" runat="server" Text="验证码"></asp:Label></td>
                                     <td align="left">
                                         <asp:TextBox ID="codeTxt" runat="server" onmouseover=over(this.id) onmouseout=out(this.id) ></asp:TextBox>&nbsp;
                                         <img  alt="看不清点击换一张" src="CheckCode.aspx?" onclick="this.src=this.src+'?'" /></td>
                                 </tr>
                             </table>
                             <asp:CustomValidator ID="cusVal" runat="server" OnServerValidate="CustomValidator1_ServerValidate"
                                 Width="297px" ControlToValidate="userTxt"></asp:CustomValidator></div>
           </div>    
      <div id="down"></div>      
  </div>
                         
            
    </form>
</body>
</html>
