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

<%@ Register Assembly="Controls" Namespace="Spaces.Controls" TagPrefix="Spaces" %>

<%@ Import Namespace="Spaces" %>
<html>
<head>
    <title>用户登陆</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <script language="javascript" type="text/javascript" src="include/js/base.js"></script>

    <script language="javascript" type="text/javascript" src="<%=Globals.ScriptPath %>/login.js"></script>

    <script language="javascript" type="text/javascript" src="include/js/dialog.js"></script>

    <link href="<%=Globals.ScriptPath %>/include/base.css" rel="stylesheet" type="text/css">
    <style type="text/css">
<!--


A:link {
	text-align: center;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
}
A:visited {
	text-align: center;
	font-size: 12px;
	color: #000000;
	text-decoration: none;
}
A:hover {
	background-color: #E2FFA5;
	border: 1px solid #B8C2AA;
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
	text-align: center;
}
body,td,div{font-size:12px}
.treebg {
	background-attachment: fixed;
	background-image: url(images/treebg.jpg);
	background-repeat: no-repeat;
	background-position: left bottom;
}
.myinput {
	background-attachment: fixed;
	background-image: url(images/search_inputbackground.gif);
	background-repeat: repeat-x;
	border: 1px solid #999999;
	height:19px;
	padding:2px 2px 2px;
}
.myinputfocus {
	background-attachment: fixed;
	background-image: url(images/search_inputbackgroundfocus.gif);
	background-repeat: repeat-x;
	height:19px;
	padding:2px 2px 3px;
	border: 1px solid #009900;
	filter: Glow(Color=green, Strength=2); }
	.STYLE1 {color: #FF0000}
.STYLE2 {
	color: #006600;
	font-weight: bold;
}
.STYLE4 {color: #DFFFE6}
-->
</style>
</head>
<body>
    <form id="gaia_loginform" method="post" runat="server">

        <script type="text/javascript">

if (self != top)
{
	top.location = self.location;
}
function checkvalue()
{}
function chkLogin()
{
var account=$('<%=Account.ClientID %>').value;
if(account.trim()=='')
{
_error_msg_show(Strings.NoAccount,'','',Strings.Msg_Title);
return false;
}
var pass =$('<%=Password.ClientID %>').value;
if(pass.trim()=='')
{
_error_msg_show(Strings.NoPassword,'','',Strings.Msg_Title);
return false;
}
var vc=$('<%=verifyCode.ClientID%>').value;
if(vc.trim()=='')
{
_error_msg_show(Strings.VerifyCode,'','',Strings.Msg_Title);
return false;
}
return true;
}
        </script>

        <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
            <tbody>
                <tr valign="bottom">
                    <td width="597" style="padding-bottom: 3px">
                        <a href="http://www.bfor.cn">
                            <img width="125" border="0" src="images/bfor.gif" /></a></td>
                    <td width="173" align="right" class="black333333_red_noline" style="padding-right: 10px;
                        padding-left: 0px; padding-bottom: 5px; padding-top: 0px">
                      <a href="default.aspx">  <%=Globals.Text["A_Home"]%></a>
                        ┊<a href="./bbs"><%=Globals.Text["LayoutSettings_BBS"]%></a> ┊
                       <a href="help/index.aspx"> <%=Globals.Text["A_Help"]%></a>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
            <tbody>
                <tr bgcolor="#67c107">
                    <td>
                        <img height="30" src="images/top_left.gif" width="4"></td>
                    <td style="padding-left: 44px" width="762">
                        <font color="#FFFFFF">
                            <%=Globals.Text["Login_Title"]%>
                        </font>
                    </td>
                    <td>
                        <img height="30" src="images/top_right.gif" width="4"></td>
                </tr>
            </tbody>
        </table>
        <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" class="treebg">
            <tbody>
                <tr>
                    <td nowrap width="1" bgcolor="#c8e9a6" height="20">
                    </td>
                    <td nowrap>
                        <p>
                            <br>
                            <br>
                        </p>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="39%">
                                    &nbsp;</td>
                                <td width="61%">
                                    <table border="0" align="center" cellpadding="0" cellspacing="0" class="black333333_red_noline">
                                        <tbody>
                                            <tr>
                                                <td valign="top" width="3%" bgcolor="#F5F5F5">
                                                    <img height="10" src="images/leftup_corner_login.gif" width="10"></td>
                                                <td class="style1" width="94%" bgcolor="#F5F5F5">
                                                    &nbsp;</td>
                                                <td valign="top" align="right" width="3%" bgcolor="#F5F5F5">
                                                    <img height="11" src="images/rightup_corner_login.gif" width="11"></td>
                                            </tr>
                                            <tr bgcolor="#F5F5F5">
                                                <td height="37" width="3%">
                                                </td>
                                                <td  width="94%"  bgcolor="#F5F5F5">
                                                 <table width="100%" border="0" cellspacing="0" cellpadding="2"  class="black333333_red_noline">
                        <tr>
                          <td><strong title='<%=Globals.Text["Login_ToolTip"]%>'>&nbsp; <%=Globals.Text["Login_Title"]%></strong></td>
                          <td align="right"><span class="STYLE2">welcome to cbfor.com</span></td>
                        </tr>
                      </table>  
                                                   
                                                </td>
                                                <td width="3%">
                                                </td>
                                            </tr>
                                            <TR bgcolor="#F5F5F5">
                    <TD height=1 colspan="3" bgcolor="#009900"></TD>
                    </TR>
                                            <tr bgcolor="#F0FFE1">
                                                <td height="121">
                                                    &nbsp;</td>
                                                <td style="padding-right: 10px; padding-left: 10px; padding-bottom: 8px; padding-top: 10px">
                                                    <table height="84" border="0" cellpadding="0" cellspacing="0" class="black333333_red_noline">
                                                        <tr>
                                                            <td nowrap="nowrap" width="70%">
                                                                <%=Globals.Text["Login_UserName"]%>
                                                            </td>
                                                            <td width="70%" nowrap>
                                                                <asp:TextBox ID="Account" runat="server" onfocus="this.className='myinputfocus'"
                                                                    onblur="this.className='myinput'" onChange="checkvalue()" class="myinput" Width="150px"></asp:TextBox>
                                                            </td>
                                                            <td width="30%">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="1">
                                                                <%=Globals.Text["Login_Password"]%>
                                                            </td>
                                                            <td colspan="2">
                                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" class="myinput" onChange="checkvalue()"
                                                                    onfocus="this.className='myinputfocus'" onblur="this.className='myinput'" Width="150px"></asp:TextBox></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="1" nowrap="nowrap">
                                                                <%=Globals.Text["Login_VerifyCode"]%>
                                                            </td>
                                                            <td colspan="2" nowrap>
                                                                <asp:TextBox ID="verifyCode" runat="server" class="myinput" onfocus="this.className='myinputfocus'"
                                                                    onblur="this.className='myinput'" onChange="checkvalue()" Width="150px"></asp:TextBox>

                                                                <img id="chk_img" onclick="checkwd_reload()" style="cursor: hand" align="absbottom" />
                                                                <script type="text/javascript">
                                        function checkwd_reload(){
		
       		var ob = document.getElementById("chk_img");
		  if(ob)
		ob.src = '<%=Globals.ApplicationPath %>/Include/VerifyCode.aspx?' + new Date();
                }
                checkwd_reload();
                                                            </script>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="1" nowrap="nowrap">
                                                            </td>
                                                            <td colspan="2" nowrap="nowrap">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    &nbsp;</td>
                                            </tr>
                                               <TR bgcolor="#F5F5F5">
                    <TD height=1 colspan="3" bgcolor="#009900"></TD>
                    </TR>
                                            <tr align="middle" bgcolor="#F5F5F5">
                                                <td  colspan="3" height="39">
                                                    <asp:CheckBox ID="PersistentCookie" runat="server" BorderStyle="None" BorderWidth="0" />&nbsp;&nbsp;
                                                    <a href="Register.aspx" target="_blank">
                                                        <%=Globals.Text["A_Register"]%>
                                                    </a>&nbsp;&nbsp;<a href="" target="_blank"><%=Globals.Text["User_PasswordAnswer"]%></a>
                                                </td>
                                            </tr>
                                                                   <TR bgcolor="#F5F5F5">
                    <TD height=1 colspan="3" bgcolor="#009900"></TD>
                    </TR>
                                            <tr align="middle" bgcolor="#f5f5f5">
                                                <td colspan="3" height="39" >
                                                   
                                                    <Spaces:XButton ID="XButton1" runat="server" ResourceName="Login_loginButton" OnClick="btnLogin_Click" OnClientClick="return chkLogin()"/></td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" bgcolor="#F5F5F5" height="15">
                                                    <img height="10" src="images/leftdown_corner_login.gif" width="9"></td>
                                                <td bgcolor="#F5F5F5">
                                                    &nbsp;</td>
                                                <td valign="bottom" align="right" bgcolor="#F5F5F5">
                                                    <img height="10" src="images/rightdown_corner_login.gif" width="11"></td>
                                            </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <br>
                        <br>
                        <p>
                            &nbsp;</p>
                        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="black333333_red_noline">
                            <tbody>
                                <tr>
                                    <td height="2">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td nowrap width="1" bgcolor="#c8e9a6">
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="100%" border="0" cellpadding="2" cellspacing="0" class="black333333_red_noline">
            <tr>
                <td height="35" align="center">
                    Copyright &copy; <font color="#0066CC">www.bfor.cn</font>All Rights Reserved.</td>
            </tr>
        </table>
    </form>
</body>
</html>
