<%@ page language="C#" autoeventwireup="true" inherits="elogin, App_Web_yjdmcdrp" validaterequest="false" theme="Themes" stylesheettheme="Themes" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<!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>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
     <script type="text/javascript" src="Js/jquery.js"></script>
     <script type="text/javascript" src="Js/InterfaceContrl.js"></script>
         <script type="text/javascript" src="Js/jquery.pngFix.pack.js"></script>
    <script type="text/javascript" src="Js/WebValidator.js"></script>
      <script type="text/javascript">
          function perform() {
              if (window.event.keyCode == 13) {
                  var obj = document.activeElement;

                  document.getElementById("ibtnLogin").focus();
              }
          }
          //document.onkeydown = perform 
          function RefreshImage() {
              var el = document.getElementById("imgvc");
              el.src = el.src + '?'; //这个特别重要
              var txt1 = document.getElementById("tbxCode");
              txt1.innerText = "";
          }
    </script>
    <script type="text/javascript">
        function LockCar() {
            window.showModalDialog("UserInfo/UserFP.aspx", '', "status=no;dialogWidth=500px;dialogHeight=300px;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise")
            //        window.showModalDialog(str, '', 'dialogWidth:786px;dialogHeight:690px;status:no;help:no;resizable:no;scroll:no;center:yes'); 
        } 
  </script>
 <script type="text/javascript">    
/* <![CDATA[ */
$(document).ready(function(){
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject)
    Sys.ie = ua.match(/msie ([\d.]+)/)[1]
else if (document.getBoxObjectFor)
    Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1]
else if (window.MessageEvent && !document.getBoxObjectFor)
    Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1]
else if (window.opera)
    Sys.opera = ua.match(/opera.([\d.]+)/)[1]
else if (window.openDatabase)
    Sys.safari = ua.match(/version\/([\d.]+)/)[1];


if (Sys.ie) {
    if (Sys.ie < '7.0') {
        if (confirm("您的浏览器为IE6.0，版本较低,若要获得更好的浏览效果，请您升级为IE7+后浏览本系统。点击确定到百度查询相关搜索。"))
            window.open(" http://www.baidu.com/s?bs=ie%C9%FD%BC%B6&f=8&wd=ie%C9%FD%BC%B6", "_blank");
//        else
//            alert("您取消了该操作");
    }
} 
    
})
/* ]]> */    
</script>

    <style type="text/css">
    html {background-color:#f7f7f7;}
    
    </style>
</head>
<body>
    <form id="form1" runat="server" target="_blank">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
                <div  class="login_top_box">
                    <ul class="login_top_link">
                        <li><a href="#">系统帮助</a></li>
                        <li>|</li>
                        <li><a href="Download/Download.aspx" target="_blank">文档下载</a></li>
                        <li>|</li>
                        <li><a href="BrowserCheck.aspx" target="_blank">浏览器检测</a></li>
                        <li>|</li>
                        <li><a href="fullopen.aspx">全屏使用[需浏览器支持]</a></li>
                        <li>|</li>
                        <li><asp:LinkButton ID="lbtnShortCut" runat="server" onclick="lbtnShortCut_Click">收藏快捷方式</asp:LinkButton></li>
                    </ul>
                </div>
                <div class="login_mid_box">
                    <div class="login_content">
                        <div class="login_mid_left">
                            <div class="login_logo">
                                <img src="Images/login_logo.png" class="png" />
                            </div>
                            <div>
                            </div>
                        </div>
                        <div class="login_mid_right">
                            <div class="login_title"></div>
                            <div class="login_user_box">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left" colspan="2" style="color:Red; font-size:12px; padding:0px; height:40px;">
                                            <asp:UpdatePanel ID="upMsg" runat="server">
                                                    <ContentTemplate>
                                                        <asp:Label ID="lblMsg" runat="server"></asp:Label>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="ibtnLogin" EventName="Click" />
                                                    </Triggers>
                                             </asp:UpdatePanel>
            		                         <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                                <ProgressTemplate>
                                                   <font style="font-size: 12px;color:#666666;">正在为您登陆&nbsp; </font><img src="Images/loading.gif"/>                                             
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="user_name" style="height:40px;">用户名：</td>
                                        <td class="user_txt">
                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                    <ContentTemplate>
		                                                <asp:TextBox ID="txtUser" runat="server" SkinID="login_txt" Width="210px" 
                                                            MaxLength="30"></asp:TextBox>
                                                    </ContentTemplate>
                                                    <Triggers>
                                                        <asp:AsyncPostBackTrigger ControlID="ibtnLogin" EventName="Click" />
                                                    </Triggers>
                                            </asp:UpdatePanel>
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="user_name" style="height:40px;">密码：</td>
                                        <td class="user_txt">
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                <ContentTemplate>
			                                         <asp:TextBox ID="txtPWD" runat="server" TextMode="Password"  SkinID="login_txt" Width="210px" MaxLength="20"></asp:TextBox>
                                                </ContentTemplate>
                                                <Triggers>
                                                    <asp:AsyncPostBackTrigger ControlID="ibtnLogin" EventName="Click" />
                                                </Triggers>
                                            </asp:UpdatePanel>
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="user_name" style="height:40px;">验证码：</td>
                                        <td class="user_txt">
                                            <asp:TextBox ID="tbxCode" MaxLength="4" runat="server" autocomplete="off" onkeydown="perform()" SkinID="login_txt" Width="80px"></asp:TextBox>
                                            <img id="imgvc" border="0" src="VerifyCode.aspx" style="cursor:pointer" onmouseup="RefreshImage()" alt="点击重刷新" class="img_style" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="height:70px; width:270px;">
                                            <asp:Button ID="ibtnLogin" onclick="ibtnLogin_Click" runat="server" Text="确 定" SkinID="login_btn" />
                                            <%# Eval("title") %><input type="reset" id="reset" value="重 置" class="login_btn" />
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="2" style="width:270px; height:40px;">
                                            <a onclick="return LockCar();" style="cursor:hand">忘记密码？</a>
                                            
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="login_bot_box">
                    版权所有:<a href="http://www.euse.com.cn" target="_blank">益用科技有限公司</a>© 2009-2010 备案号：蜀ICP备10000332号 
                </div>
     
    </form>
      <script type="text/javascript">
          $(document).ready(function() {
              Validator();
          });
          function Validator() {
              $('#<%= ibtnLogin.ClientID %>').bind('click', function() {
                  ValidatorEmpty($("#<%=txtUser.ClientID %>"), "用户名");

                  return GetValidatorMessage();
              });

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