<!--#include file=inc/conn.asp-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/function.asp"-->
<%
if request("chk")="add" then
set rs=server.createobject("adodb.recordset")
sql = "select * from link"
rs.open sql,conn,1,3
rs.addnew
rs("web")=HtmlEncode(trim(request("web")))
rs("url")=HtmlEncode(trim(request("url")))
rs("logo")=HtmlEncode(trim(request("logo")))
rs("webabout")=HtmlEncode(trim(request("webabout")))
rs("yanz")=0
rs("jrsj")=now()
rs.update
rs.close
set rs=nothing
closedb
response.write "<script language=JavaScript>" & chr(13) & "alert('申请友情链接成功，请等待管理员审核！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=addlink.asp"">"
response.end
else
%>
<!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>
<title>申请友情链接</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</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>
<%call top()%><div id="Fmain">


<%
response.write "<div id=FFTit class=F12bold>申请友情链接</div><div id=FFContent><div Class='FFdiv'>"
response.write "<table width=965><tr><td><table width=480>"
%>
<form method="POST" name="thisForm" action="?chk=add">
<%
response.write "<tr><td align=""center""><span style=""FONT-SIZE: 12px"">网站名称：</span></td><td>"
response.write "<input type=""text"" name=""web"" size=""56"" maxlength=""10""> <font color=""#FF0000"">*</font></td></tr><tr>"
response.write "<td align=""center"">网站地址：</td><td><input type=""text"" name=""url"" maxlength=""50"" size=""56"" value=""http://""> <font color=""#FF0000"">*</font></td>"
response.write "</tr><tr><td align=""center"">LOGO地址：</td><td><input type=""text"" name=""logo"" size=""56"" maxlength=""50"" value=""http://"">  "
response.write "<font color=""#FF0000"">*</font></td></tr><tr><td align=""center"">网站简介：</td><td>"
response.write "<input type=""text"" name=""webabout"" size=""56"" maxlength=""30""> <font color=""#FF0000"">*</font></td>"
response.write "</tr><tr><td vAlign=""top"" align=""center""colspan=""2""> "
%>
<input border="0"onclick="javascript:return CheckForm();" value="提交链接" name="I2" type="submit">
<%
response.write "</td></tr></form></table></td>"
response.write "<td><table width=""480"">"
response.write "<tr><td align=""center"" width=""146""><font color=""#808080"">网站名称:</font></td><td colspan=""2"">"
%><%=title%><%
response.write "</td></tr><tr><td width=""146"" align=""center""><p align=""center""><font color=""#808080"">网站地址:</font></td><td width=""435"" colspan=""2"">"
%><%=web%><%
response.write "</td></tr><tr><td width=""146"" align=""center""><font color=""#808080"">LOGO地址:</font></td>"
response.write "<td width=""175""><img border=""0"" src=""img/logoa.gif"" width=""88"" height=""31""></td><td width=""256""><span style=""FONT-SIZE: 12px"">"
response.write "<input name=""a"" size=""44"" style=""FONT-FAMILY: Verdana; "" tabIndex=""1"" value="""
%><%=web%><%
response.write "/img/logoa.gif""></span></td></tr><tr><td width=""146"" align=""center""><font color=""#808080"">网站说明:</font></td><td width=""435"" colspan=""2"">"
%><%=title%><%
response.write "</td></tr></table></td></td></table></div></div><br>"
response.write "<div id=FFTit class=F12bold>友情合作网站</div><div id=FFContent><div Class='FFdiv'>"

call links()
response.write "</div></div>"
%>
<br style="clear:both;" />
</div>
<%call bottom()%></div><%end if%>
</body>
</html>