📄 link_edit.asp
字号:
<!--#include file="admin.asp"-->
<%
if Request("action")="edit" then
id=request("id")
if request.form("name")="" or request.form("logo")="http://" or request.form("link")="http://" or request.form("link")="" then
response.write("<script language=""javascript"">alert(""错误:您的输入不正确!"");history.go(-1);</script>")
response.end
end if
sql="select * from links where id="&id
rs.open sql,conn,1,3
rs("name")=request.form("name")
rs("logo")=request.form("logo")
rs("link")=request.form("link")
rs.update
rs.close
response.write"<script>alert('修改成功!');location.href='link_admin.asp'</script>"
end if
%>
<%
id=request("id")
rs.open "select * from links where id="&id, conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="400" border="1" align="center" cellpadding="4" cellspacing="0" class="table-line">
<form method="post" action="?action=edit">
<input type=hidden name=id value=<%=id%>>
<tr align="center">
<td colspan="2" class="td-title-color"><table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="shadow">修改链接</td>
</tr>
</table> </td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td width="118" align="right">网站名称: </td>
<td width="412">
<input type="text" name="name" size="40" value="<%=rs("name")%>">
</td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td align="right">网站LOGO:</td>
<td><input type="text" name="logo" size="40" value="<%=rs("logo")%>"></td>
</tr>
<tr onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td align="right">网站网址:</td>
<td><input type="text" name="link" size="40" value="<%=rs("link")%>"></td>
</tr>
<tr align="center" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td colspan="2">
<input name="submit" type="submit" value="确定">
<input name="Submit" type="button" class="INPUT1" onClick="javascript:history.back()" value="返回">
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -