📄 link.asp
字号:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="img/admin_style.css">
</head>
<body>
<% if request("action")="del" then
conn.execute"delete from link where id="&request("id")
response.redirect"link.asp"
end if
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
<tr>
<td width="29" height="32"> <div align="left">
<p class="maindaohang"> </p>
</div></td>
<td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<b><font color="#000000"><b> <span class="bigNavi">友情连接</span> </b></font></b></td>
<td width="8" class="mainrights"></td>
</tr>
</table>
<br>
<form name="formadd" method="post" action="addlink.asp">
<table width="75%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="31%"><div align="center">网站名称</div></td>
<td width="36%"><div align="center">
<input name="web" type="text" class="border" size="18">
</div>
</td>
<td width="31%"><div align="center">连接地址</div></td>
<td width="36%"><div align="center">
<input name="href" type="text" class="border" value="http://" size="20">
</div>
</td>
<td width="33%"><div align="center"><input type="submit" value="添加" class="border"></div></td>
</tr>
</table>
</form>
<table width="95%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
<tr class="tabbgcolorli">
<td width="24%"><div align="center">网站名称</div></td>
<td width="46%"><div align="center">连接地址</div></td>
<td width="30%"><div align="center">操作</div></td>
</tr>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from link order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write "<br><br><div align=center>暂且没有网站友情连接</div>"
response.end
else
i=0
do while not rs.eof
i=i+1
%>
<tr class="tabbgcolorli">
<td width="24%"><div align="center"><%=rs("website")%></div></td>
<td width="46%"><div align="center"><%=rs("href")%></div></td>
<td width="30%"><div align="center"><a href="link.asp?action=del&id=<%=int(rs("id"))%>">删除</a></div></td>
</tr>
<%rs.movenext
loop
rs.close
set rs=nothing
end if
%>
</table>
<div align="center"><br>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -