📄 add_link.asp
字号:
<!--#include file="config.asp"-->
<%
if request("action")="add" then
sitename=Trim(Request.Form("name"))
sitetype=Trim(Request.Form("sitetype"))
logo=Trim(Request.Form("logo"))
link=Trim(Request.Form("link"))
If sitename=empty Then call mb("您没输入网站名称,请返回检查!","",0)
If sitetype=empty Then call mb("您没选择网站类别!","",0)
If logo="http://" Then call mb("Logo地址不正确,请返回检查!","",0)
If link=empty or link="http://" Then call mb("连接地址有错,请返回检查","",0)
sql="select * from [links]"
rs.open sql,conn,1,3
rs.addnew
rs("name")=sitename
rs("logo")=logo
rs("link")=link
rs("sitetype")=sitetype
rs.update
call mb("链接加入成功,请等待管理员确认","javascript:self.close()",1)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site%>-<%=sitetitle%></title>
<link href="css/user.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="js/title.js"></script>
</head>
<body>
<table width="97%" border="0" align="center" cellpadding="4" cellspacing="1" class="a2">
<form method="post" action="?action=add" onSubmit="this.submit.disabled=true;">
<tr class="a1">
<td height="25" colspan="2">加入链接 >></td>
</tr>
<tr class="a3">
<td width="19%" height="22"> 网站名称:</td>
<td width="81%"> <input name="name" type="text" size="30"> </td>
</tr>
<tr class="a4">
<td height="22">网站类别:</td>
<td><select name="sitetype" size="1">
<option selected value="">请选择</option>
<%
sql="select * from [siteclass]"
rs.open sql,conn,1,1
do while not rs.eof%>
<option value=<%=rs("id")%>><%=rs("sitetype")%></option>
<%rs.movenext
loop
rs.close
set rs=nothing
%>
</select></td>
</tr>
<tr class="a4">
<td height="22" class="a3">LOGO地址:</td>
<td class="a3">
<input name="logo" type="text" size="40" title="如果您只申请文字链接或没有LOGO,请留空">
如申请文字链接,LOGO地址直接留空 </td>
</tr>
<tr class="a3">
<td height="25" class="a4"> 连接网址:</td>
<td class="a4">
<input name="link" type="text" value="http://" size="40"> </td>
</tr>
<tr align="center" class="a4">
<td colspan="2" class="a3">
<input name="submit" type="submit" value="提交">
<input name="submit2" type="button" onClick="javascript:self.close()" value="取消"> </td>
</tr>
<tr align="center" class="a3">
<td colspan="2" class="a4"><%=site%>同时提醒您:请在您的网站上加上我们的链接!<br>
本站LOGO地址:
<input type="text" onMouseover="this.select();" value="<%=siteurl%><%=logourl%>" size="40"></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -