⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_link.asp

📁 使用Asp+Access+FSO+Jmail+Servu开发
💻 ASP
字号:
<!--#include file="config.asp"-->
<%
if request("action")="add" then
name=request.form("name")
logo=request.form("logo")
link=request.form("link")
If name="" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没输入网站名称,请返回检查!!"");history.go(-1);</script>")
response.end
end if

If logo="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:Logo地址不正确,请返回检查!!"");history.go(-1);</script>")
response.end
end if

If link="" or link="http://" Then
Response.Write("<script language=""JavaScript"">alert(""错误:您没有输入超连接,请返回检查!!"");history.go(-1);</script>")
response.end
end if

sql="select * from links"
rs.open sql,conn,1,3
rs.addnew
rs("name")=name
rs("logo")=logo
rs("link")=link
rs("time")=""&Now()&""
rs("pass")=False
rs.update
Response.write ("<script language='JavaScript'>alert('提示:链接加入成功,请等待管理员确认');location.href='javascript:self.close()'</script>")
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=sitetitle%></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="js/title.js"></script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="e8e8e8">
<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
  <form method="post" action="?action=add">
    <tr> 
      <td height="25" colspan="2" bgcolor="#FEC955"> <font style="font-size:13px">加 
        入 链 接 &gt;&gt;</font></td>
    </tr>
    <tr> 
      <td width="20%" height="22" align="center"> 网站名称</td>
      <td width="80%"> <input name="name" type="text" class="input" size="30" maxlength="40"> 
      </td>
    </tr>
    <tr> 
      <td height="22" align="center">LOGO地址</td>
      <td> 
        <input name="logo" type="text" class="input" size="40" maxlength="120" title="如果您只申请文字链接或没有LOGO,请留空">
      </td>
    </tr>
    <tr> 
      <td height="25" align="center"> 连接网址</td>
      <td> 
        <input name="link" type="text" class="input" value="http://" size="40"> 
      </td>
    </tr>
    <tr align="center"> 
      <td height="10" colspan="2"> 
        <input name="submit" type="submit" class="button" value="提交"> 
        <input name="submit2" type="button" class="button" onclick="javascript:self.close()" value="取消">
      </td>
    </tr>
    <tr align="center"> 
      <td height="10" colspan="2"><%=site%>同时提醒您:请在您的网站上加上我们的链接!<br>
        本站LOGO地址: 
        <input type="text" class="input" onMouseover="this.select();" value="<%=logourl%>" size="40"> </td>
    </tr>
  </form>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -