<!--#include file="main.asp"-->
<%if webkey8<>0 then
response.write "<div align=center>友情连接功能已被关闭，谢谢合作<br><br><a href=javascript:window.close()>关闭</a></div>"
response.end
end if

if request("action")="save" then
linkname=request.form("linkname")
linkurl=request.form("linkurl")
linksm=request.form("linksm")
key=request.form("key")

if linkname="" or linkurl="" or linksm="" or key="" then
response.write"<script>alert('友情连接资料不能为空！！！');history.go(-1)</script>"
response.end
end if

set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_links"
rs.open sql,conn,1,3
rs.addnew
rs("dlxf_linkname")=linkname
rs("dlxf_linkurl")=linkurl
rs("dlxf_linksm")=linksm
rs("dlxf_key")=key
rs("dlxf_key1")=0
rs.update
rs.close
set rs=nothing

response.write"<script>alert('操作成功，请等待管理员审核开通！');window.close()</script>"
response.end

end if%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>申请友情连接 - <%=citytitle%></title>
</hand>
<body style="margin:5">
<%if request("action")="links" then%>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<form name="addform" action="links.asp?action=save" method="post">
<input name="key" type="hidden" value="0">
<tr><td height="25" colspan=2 bgcolor=#efefef>&nbsp; <strong>文字连接</strong></td></tr>
<tr><td width="80" height="25" align="right">网站名称&nbsp;</td>
<td>&nbsp;<input name="linkname" type="text" size="20"></td></tr>
<tr> <td height="25" align="right">连接地址&nbsp;</td>
<td>&nbsp;<input name="linkurl" type="text" size="40" value="http://"></td></tr>
<tr><td height="25" align="right">网站说明&nbsp;</td>
<td>&nbsp;<input name="linksm" type="text" size="40"></td></tr>
<tr><td height="25" align="center" colspan="2"><input type="submit" name="Submit" value=" 现在申请 "></td></tr>
</form>
</table>
<br>
<table width="100%" border="1" align="right" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<form name="form" action="links.asp?action=save" method="post">
<input name="key" type="hidden" value="1">
<tr><td height="25" colspan=2 bgcolor=#efefef>&nbsp; <strong>图片连接</strong></td></tr>
<tr><td width="80" height="25" align="right">图片地址&nbsp;</td>
<td>&nbsp;<input name="linkname" type="text" size="30" value="http://"> 尺寸：88*31</td></tr>
<tr> <td height="25" align="right">连接地址&nbsp;</td>
<td>&nbsp;<input name="linkurl" type="text" size="40" value="http://"></td></tr>
<tr><td height="25" align="right">网站说明&nbsp;</td>
<td>&nbsp;<input name="linksm" type="text" size="40"></td></tr>
<tr><td height="25" align="center" colspan="2"><input type="submit" name="Submit" value=" 现在申请 "></td></tr>
</form>
</table>
<%end if%>