?? manage_editlink.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<%if Request.QueryString("mark")="southidc" then
id=request("id")
name=request("name")
note=Request("note")
link=Request("link")
If name="" Then
response.write "SORRY <br>"
response.write "請輸入網站名稱"
response.end
end if
If note="" Then
response.write "SORRY <br>"
response.write "網站說明不能為空"
response.end
end if
If link="http://" Then
response.write "SORRY <br>"
response.write "連接地址不能為空"
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from links where id="&id
rs.open sql,conn,1,3
rs("name")=name
rs("note")=note
rs("link")=link
rs.update
rs.close
response.redirect "Manage_link.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From links where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br> <strong><br>
</strong> <br> <br> <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td height="25" class="back_southidc">
<div align="center"><strong>修改友情鏈接 <br>
</strong></div></td>
</tr>
<tr>
<form method="post" action="Manage_editlink.asp?mark=southidc">
<input type=hidden name=id value=<%=id%>>
<td><div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#ECF5FF">
<tr>
<td width="8%" height="25" bgcolor="#A4B6D7">
<div align="center">網站名稱</div></td>
<td width="62%">
<input name="name" type="text" id="name" value="<%=rs("name")%>" size="35" maxlength="40">
</td>
</tr>
<tr>
<td height="22" bgcolor="#A4B6D7">
<div align="center">網站說明</div></td>
<td>
<input name="note" type="text" id="note" value="<%=rs("note")%>" size="50" maxlength="120">
</td>
</tr>
<tr>
<td height="22" bgcolor="#A4B6D7">
<div align="center">連接地址</div></td>
<td>
<input name="link" type="text" id="link" value="<%=rs("link")%>" size="35" maxlength="40">
</td>
</tr>
<tr>
<td height="25" colspan="2" bgcolor="#E3E3E3">
<div align="center">
<input name="submit" type="submit" value="確定">
<input name="reset" type="reset" value="從來">
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table></td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -