<!--#include file="head.asp"-->
<%
if session("qyusername")<>"" then
response.redirect "edit.asp"
end if
if request("login")="yes" then
uid=HtmlEncode(trim(request.form("hyname")))
pass=HtmlEncode(trim(request.form("hypass")))
if uid="" or pass="" then
    response.write "<SCRIPT language=JavaScript>alert('请输入用户名和密码！');"
	response.write "this.location.href='javascript:history.back()';</SCRIPT>"
   	response.end
	else
sql="select * from nyeee_qydata where username='"&uid&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,1
if not rs.eof then
	if pass=rs("password") then
	  if rs("mark")="1" then
	  session("qyusername")=uid
	  session("companyid")=rs("id")
	  response.redirect "edit.asp"
	  else
	  response.write "<script>alert('对不起，本企业信息正在审核中，尚无此权限！');history.back();</script>"
      response.end
	  end if
	else
	response.write "<script>alert('密码错误，或是权限尚未开通，请确认！');history.back();</script>"
	response.end
	end if
else
response.write "<script>alert('此用户不存在，请重新输入！');history.back();</script>"
response.end
end if
end if
else%>
<SCRIPT language=javascript>
function check_input()	{
      if (document.hylogin.hyname.value == '')	{
	 alert("请输入用户名！");
  	 document.hylogin.hyname.focus();
	 return false;
	}
      if (document.hylogin.hypass.value == '')	{
	 alert("请输入密码！");
  	 document.hylogin.hypass.focus();
	 return false;
	}
	if(document.hylogin.accept.checked == false){
		window.alert("您必须同意服务协议才能登陆！");
		document.hylogin.accept.checked = true;
		return false;
	}
      return true;
}
//-->
</SCRIPT><title>北京分类信息网|北京招贴网-Www.8cms.Cn-[立足北京，服务北京]</title><body bgcolor="#FFFFFF">

<TABLE width="900" border=0 align="center" cellPadding=0 cellSpacing=1 bgcolor="CAE2F8">
  <TBODY>
  <TR>
    <TD align=center bgcolor="#FFFFFF">
    
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="300" height="294" background="images/login.jpg"><p>&nbsp;</p>
                </td>
                <td valign="top"><p>&nbsp;</p>
                  <TABLE cellSpacing=0 cellPadding=0 width=296 border=0>
                  <TR>
                    <TD colSpan=2><IMG height=10  
                  src="images/login_top.gif" width=296></TD>
                  </TR>
                  <TR>
                    <TD><TABLE height=165 cellSpacing=1 cellPadding=0 width=260  
                  bgColor=#b9b9b9 border=0>
                        <TBODY>
                          <TR>
                            <TD vAlign=top bgColor=#ffffff><TABLE width=258 height="163" border=0 cellPadding=3 cellSpacing=0>
                                <TBODY>
                                  <TR>
                                    <TD background=images/login_bg.gif height=26><STRONG><FONT color=#ffffff>　　 企业黄页登陆</FONT></STRONG></TD>
                                  </TR>
                                  <TR>
                                    <TD width="258">
				                      <FORM name=hylogin onSubmit="return check_input();" action="?login=yes" method=post>
                                        <TABLE width="92%"  
                        border=0 align="center" cellpadding="0" cellSpacing=3>
                                          <TBODY>
                                            <TR vAlign=center align=middle>
                                              <TD width="33%" height="35"><FONT  
color=#5a514a>用&nbsp; 户&nbsp; 名：</FONT></TD>
                                              <TD width="67%"><FONT color=#5a514a>
                                                <INPUT name=hyname size=16 maxlength="20">
                                              </FONT></TD>
                                            </TR>
                                            <TR vAlign=center align=middle>
                                              <TD height="35"><FONT color=#5a514a>管理密码：</FONT></TD>
                                              <TD><FONT color=#5a514a>
                                                <INPUT name=hypass type=password size=16 maxlength="20">
                                              </FONT></TD>
                                            </TR>
                                          </TBODY>
                                        </TABLE>
                                        <TABLE width="92%"  
                        border=0 align="center" cellPadding=0 cellSpacing=3>
                                          <TBODY>
                                            <TR align=middle>
                                              <TD><INPUT type=image height=20 width=39  
                              src="images/login.gif" border=0 name=B1></TD>
                                              <TD><A  
                              href="javascript:document.hylogin.reset();"><IMG  
                              height=20 src="images/clear.gif" width=39  
                              border=0></A></TD>
                                              <TD><INPUT type=checkbox CHECKED align=absMiddle value=checkbox  
      name=accept>
                                同意<A class=a10  
      href="about.asp#02"  
  target=_blank><font color="#0000FF">服务协议</font></A></TD>
                                            </TR>
                                          </TBODY>
                                        </TABLE>
                                      </FORM></TD>
                                  </TR>
                                </TBODY>
                            </TABLE></TD>
                          </TR>
                        </TBODY>
                    </TABLE></TD>
                    <TD width=36><IMG height=165   
                  src="images/login_right.gif"   
              width=36></TD>
                  </TR>
                </TABLE>
                  <table width="100%"  border="0" cellspacing="0" cellpadding="10">
                    <tr>
                      <td><p>免费<A href="addqy.asp"><FONT color=#ff0000>注册</FONT></A>成为企业黄页会员，您可以：</p>
                        <P>加入专业的商贸采购平台。黄页搜索汇集300万<BR>
                          中小企业数据库，以科学的分类，让用户轻松获<BR>
                          得供应商的产品和服务相关信息！</P></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
      </TD>  
</TR></TBODY></TABLE>  
<!--#include file="foot.asp"-->  
<%end if%>       