<!-- #include file="conn.asp" -->
<script language="JavaScript">
<!--
function  check() {
  if (register.title.value=="") {
		alert("请填写网站名称！");
		register.title.focus();		
		    return (false);
  }
   
    if (register.url.value=="http://") {
		alert("请填写网站地址！");
		register.url.focus();		
		    return (false);
  }
   if (register.logo.value=="http://") {
		alert("请填写LOGO地址！");
		register.logo.focus();		
		    return (false);
  }
 else
	document.register.submit();
}// -->
</script>
<HTML><HEAD><TITLE>武汉家教网-家教教员用户注册</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<LINK href="css.css" rel=stylesheet type=text/css>
</HEAD>
<BODY Background=../images/bg.gif leftmargin="0" topmargin="0">
<div align="center"> 
  <!--#include file="head.asp"-->
    <table width="778" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="FBFCED">
      <tr>
        <td height="30" valign="bottom">&nbsp;&nbsp;&nbsp;<strong>当前位置</strong>：【<a href="http://www.whjiajiao.com" title="www.whjiajiao.com"><font color=red><b>武汉家教网</b></font></a>】 → <a href="index.asp">首页</a> → 教员注册</td>
      </tr>
      <tr>
        <td align="center" valign="bottom"><img src="IMAGES/line.gif" width="730" height="2"></td>
      </tr>
    </table>
    <TABLE WIDTH=778 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR> 
      <TD align="center" valign="top" bgcolor="FBFCED"> 
        <p>&nbsp; </p>
        <FORM action=link.asp method=post name=register>
          <TABLE width="600" border=0 align=center cellPadding=0 cellSpacing=0>
            <TBODY>
  <TR align=middle>
    <TD>
      <TABLE width="600" border=0 align=center cellPadding=5 cellSpacing=1 
      borderColorLight=#cccccc borderColorDark=white bgColor=#999999 class=para1>
                    <TBODY>
                      <TR align="center" bgcolor="FBFED7"> 
                        <TD height="70" colSpan=2 class=title><font style="font-size:15px;font-weight:bold">申请武汉家教网友情连接</font> <br>
                          <br>
                        请注意：“*”为必需填写的项目</TD>
                      </TR>
                      <TR bgcolor="FBFED7"> 
                        <TD width=103 align="right" vAlign=top bgcolor="#FDFEF5" class=para1>* 网站名称</TD>
                        <TD width=474 bgcolor="#FFFFFF"> <INPUT class=inp1 name=title></TD>
                      </TR>
                      <TR bgcolor="FBFED7"> 
                        <TD width=103 align="right" vAlign=top bgcolor="#FDFEF5" class=para1>* 网站地址</TD>
                        <TD width=474 bgcolor="#FFFFFF"> <INPUT name=url class=inp1 value="http://" size="50"> 
                          <font 
            color=#ff0000>（链接网址）</font></TD>
                      </TR>
                      <TR bgcolor="FBFED7"> 
                        <TD width=103 align="right" vAlign=top bgcolor="#FDFEF5" class=para1>* LOGO地址 </TD>
                        <TD width=474 bgcolor="#FFFFFF"> <INPUT name=logo class=inp1 value="http://" size="50">
                          <font 
            color=#ff0000>（LOGO图片的地址）</font></TD>
                      </TR><TR align="center" bgcolor="FBFED7"> 
                        <TD colspan="2" vAlign=top bgcolor="FBFED7" style="font-size:13px;font-weight:bold;color=blue"><table cellspacing="0" cellpadding="10">
                          <tr>
                            <td width="611" bgcolor="#FCFEE7"><p> 申请后，请做好本站链接，我们将在48小时内处理您的申请。</p></td>
                          </tr>
                        </table></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD></TR>
  <TR align=middle>
                <TD height=30 align="center" bgcolor="#999999"><br>
      <INPUT class=input2 name=B1 type=button onClick="check()" value="提 交">
　 　　
<INPUT class=input2 name=Reset type=reset value=重新填写>
                <br>
                <br></TD>
  </TR></TBODY></TABLE>
        </FORM>
        <br>
        <br>
      <br>      </TD>
    </TR>
  </TABLE>
	<!--#include file="foot.asp"-->
</div>
</BODY>
</HTML>
<%
 title=trim(request.form("title"))
 url=trim(request.form("url"))
 logo=trim(request.form("logo"))
 
 if title="" or url="" or logo="" then response.end
 set rs=server.createobject("adodb.recordset")
 sql="select * from link"
 rs.open sql,conn,1,3
 rs.addnew
 rs("title")=title
 rs("url")=url
 rs("logo")=logo
 rs("pas")=0
 rs("ip")=Request.ServerVariables("REMOTE_HOST")
 rs("idate")=now()
 rs.update
 rs.close
 set rs=nothing
 response.write"<SCRIPT language=JavaScript>alert('登记成功！');"
response.write"this.location.href='index.asp';</SCRIPT>" 
response.end
 conn.close
 set conn=nothing
%>
