<!--#include file="inc/conn.asp"-->
<%
if request("chk")="add" then
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql = "select * from link"
rs.open sql,conn,1,3
rs.addnew
rs("web")=trim(request("web"))
rs("url")=trim(request("url"))
rs("logo")=trim(request("logo"))
rs("webabout")=trim(request("webabout"))
rs("yanz")=0
rs("jrsj")=now()
rs.update
rs.close
set rs=nothing
closedb
response.write "<li>恭喜你，加入成功！请确定您的网站是否加上我们的链接，我们会在第一时间审核通过您的链接！"
response.write "<meta http-equiv=refresh content=""3;URL=/"">"
else
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>加入连接</title>
</head>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.thisForm.web.value.length<1)
	{
	    alert("网站名称不能为空!");
	    return false;
	}
	if(document.thisForm.url.value.length<1)
	{
	    alert("网站地址不能为空!");
	    return false;
	}
			if(document.thisForm.webabout.value.length<1)
	{
	    alert("网站简介不能为空!");
	    return false;
	}
}

//-->
</SCRIPT>
<body style="font-size: 12px">

<form method="POST" name="thisForm" action="?chk=add">
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站名称:<input type="text" name="web" size="30" maxlength="10"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站地址:<input type="text" name="url" size="30" value="http://"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	logo地址:<input type="text" name="logo" size="36" value="http://"> (88*31)</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	网站简介:<input type="text" name="webabout" size="36" maxlength="30"> *</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                  <input border="0" onClick="javascript:return CheckForm();" src="image/link1.jpg" name="I2" type="image"></p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">
	<font color="#FF0000">在加入本站之前请确保在您的网站相应位置加上我们的链接，</p>
	<p style="line-height: 220%; margin-top: 0; margin-bottom: 0">否则我们将不通过您的连接并在3天内删除您的链接，谢谢合作！</font></p>
</form>
</body>
</html><%end if%>