📄 ad_editnews.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
response.redirect "ad_login.asp"
end if
%>
<%
dim news_id,news_title,news_content
set rs=server.createobject("adodb.recordset")
sql="select * from news where news_id="&request("news_id")
rs.open sql,conn,1,1
news_id=rs("news_id")
news_title=rs("news_title")
news_pic=rs("news_pic")
news_content=rs("news_content")
rs.close
%><head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link href=img/css.css rel=STYLESHEET type=text/css>
</head>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" height="100">
<tr>
<td height="175">
<form name="form1" method="post" action="ad_editnewsok.asp?news_id=<%=news_id%>">
<table border="0" width="100%" style="border-collapse: collapse" cellpadding="5">
<tr bgcolor="#FFFFFF">
<td> Title
<input type="text" name="news_title" size="60" class=input value="<%=news_title%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td> Photo
<input type="text" name="news_pic" size="60" class=input value="<%=news_pic%>"> <a target="_blank" href="upfile.asp">
<font color="#FF0000">Upfile</font></a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td> <font color="#FF0000">Content</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="top">
<textarea rows="15" name="news_content" cols="70" class=input><%
news_content=replace(news_content,"<br>",chr(13))
news_content=replace(news_content," "," ")
response.write news_content%></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF" align="center">
<td>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -