📄 editnews.asp
字号:
<%
if session("admin_name")="" then response.end
%>
<!--#include file="conn.asp"-->
<!--#include file="css.asp"-->
<%
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_content=rs("news_content")
rs.close
%>
<form action="editnewsok.asp?news_id=<%=news_id%>" method="POST" name="form1" id="form1">
<TABLE cellSpacing=1 cellPadding=0 width="540" align=center bgColor=#999999
border=0>
<TBODY>
<TR>
<TD width="735" background=images/pics/tile_back.gif id=maintitleback>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD width="10"><IMG height=8 src="images/pics/nav_m.gif" width=8
border=0></TD>
<TD height="30" valign="bottom" id=maintitle>商品管理 -><b>修改新闻</b></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD id=mainbg>
<TABLE cellSpacing=1 cellPadding=4 width="100%" border=0 height="187">
<TBODY>
<TR>
<TD width="100" height="30" noWrap
background=images/pics/tile_sub.gif id=titlemedium>
<div align="center"><font color="#FFFFFF">新闻标题</font></div>
</TD>
<TD height="30" noWrap
background=images/pics/tile_sub.gif id=titlemedium>
<div align="left">
<input type="text" name="news_title" size="50" class=input value="<%=news_title%>">
</div>
</TD>
</TR>
<TR>
<TD height="30" colspan="2" bgColor=#ffffff>
<div align="center"><img src="../IMAGES/pics/seperator.gif" width="359" height="1"></div>
</TD>
</TR>
<TR>
<TD bgColor=#ffffff height="30">
<div align="center">新闻内容</div>
</TD>
<TD height="30" align=middle bgColor=#ffffff>
<div align="left">
<textarea rows="15" name="news_content" cols="60" class=input><%=news_content%></textarea>
</div>
</TD>
</TR>
<TR>
<TD height="30" colspan="2" bgColor=#ffffff>
<div align="center"><img src="../IMAGES/pics/seperator.gif" width="359" height="1"></div>
</TD>
</TR>
<TR>
<TD id=mainfoot
colSpan=2 height="40">
<div align="center">
<table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center">
<input name=submit2 type=image
src="../IMAGES/pics/ok.gif" alt=进入
align=absMiddle width="45" height="20" cache tppabs="">
</div>
<div align="center"> </div>
</td>
</tr>
</table>
</div>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -