?? link_edit.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Inc/AdminChk.asp"-->
<!--#include file="Conn.asp"-->
<!--#include file="../Inc/FormChk.asp"-->
<!--#include file="../Inc/msgbox.asp"-->
<%
IF Trim(Request("Submit"))<>Empty Then
Dim StrSql,Rs,title,body
title=Request.Form("title")
body=HtmlEncode2(Encodestr(request.Form("body")))
set rs=server.CreateObject("adodb.recordset")
strsql="select * from [links] where id="&request.form("id")
rs.open strsql,conn,1,3
rs("title")=title
rs("body")=body
rs.update
rs.close
set rs=nothing
call msgbox("修改成功","GoUrl","link_List.asp")
response.End()
End IF
dim strsq1,id,rs1
id=request.QueryString("id")
strsq1="select * from [links] where id="&id
set rs1=conn.execute(strsq1)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>多多校園產(chǎn)品后臺管理官方網(wǎng)站http://www.ddtaobao.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="多多校園產(chǎn)品后臺管理官方網(wǎng)站http://www.ddtaobao.com">
<meta name="description" content="多多校園產(chǎn)品后臺管理官方網(wǎng)站http://www.ddtaobao.com">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" type="text/css" href="img/admin_style.css"></head>
<body><!--#include file="top.asp"-->
<form method="post" action="" name="input" id="input">
<input name="id" type="hidden" id="id" value="<%=id%>">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
<tr align="center">
<td height=20 class="topbg" colspan="2">多多科技管理</tr> <tr>
<td align="right"><font class=font>網(wǎng)站標題:</font></td>
<td>
<input name="title" type="text" id="title" value="<%=rs1("title")%>" size="30"></td>
</tr>
<tr>
<td align="right"><font class=font>網(wǎng)站內容:</font></td>
<td>
<input name="body" type="text" id="title" value="<%=rs1("body")%>" size="100"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置">
</td>
</tr>
</table>
</form>
<!--#include file="copy.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -