editenews.asp
来自「网站的后台管理代码......内容比较全面....新手比较适合」· ASP 代码 · 共 107 行
ASP
107 行
<%
'====================================================================
'
' 中国企业平台后台管理系统 版权所有:中国企业平台
'
' 公司网址 http://www.cnept.net
'
' 版权所有 翻版必究
'====================================================================
%>
<!--#include file="../inc/adconn.asp"-->
<!--#include file="../css.asp"-->
<%
if session("admin_name")="" then
response.end
end if%>
<% set rs=server.CreateObject("adodb.recordset")
sql="select * from news where id ="&request("id")
rs.open sql,conn,1,3
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<title>修改新闻</title>
<form method="POST" name="form2" action="saveedite.asp?action=change"><INPUT name=upfile onchange=return(OnUpFile()) type=hidden>
<INPUT name=upfile2 onchange=return(OnUpFile2()) type=hidden>
<input type="hidden" name="id" value="<%= rs("id") %>">
<TABLE cellSpacing=1 cellPadding=0 width="550" align=center bgColor=#999999
border=0>
<TBODY>
<TR>
<TD width="735" bgcolor="f0f0f0" id=maintitleback>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TBODY>
<TR>
<TD width="100%" height="30" valign="bottom" bgcolor="#FFCC00" id=maintitle>新闻修改 -><b>所有选项都必须填写</b></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD id=mainbg>
<TABLE cellSpacing=1 cellPadding=4 width="100%" border=0 height="156">
<TBODY>
<TR>
<TD 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></label>
<font color=#333333>
<input type="text" name="title" value="<%=rs("title")%>">
</font>
<div align="center"></div> </TD>
</TR>
<TR>
<TD bgColor=#ffffff height="30"> <div align="center" style="color: #000000">新闻类型</div></TD>
<TD height="30" align=left bgColor=#ffffff><label>
<select name="sclass">
<%if rs("sclass")=1 then%>
<option value="1" selected="selected">公司新闻</option><option value="2">行业新闻</option><%else%><option value="2" selected="selected">行业新闻</option><option value="1">公司新闻</option><%end if%>
</select>
</label></TD>
<TR>
<TD bgColor=#ffffff height="30">
<div align="center" style="color: #000000">新闻简介</div></TD>
<TD height="30" align=center bgColor=#ffffff><!--<INPUT type="hidden" name="hw_content" value="">-->
<textarea name="hw_content" style="display:none; "><%=rs("content")%></textarea>
<iframe id="eWebEditor1" src="../eWebEditor/ewebeditor.asp?id=hw_content&style=s_blue" frameborder="0" scrolling="no" width="550" height="350"></iframe>
<font color=#ff6600> *</font></TD>
</TR>
<TR>
<TD height="30" colspan="2" bgColor=#ffffff> <div align="center">发布人
<input name="fabu" type="text" id="fabu" value="<%=rs("fabu")%>">
</div></TD>
</TR>
<TR>
<TD id=mainfoot colSpan=2 height="30"> <div align="center">
<table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> <div align="center">
<input name=submit2 type=image src="../IMAGES/pics/s_button000.gif" alt=进入 align=absMiddle width="45" height="20" cache tppabs="" >
</div></td>
<td> <div align="center">
<input type="reset" value="全部重写" name="B22" class=input>
</div></td>
</tr>
</table>
</div></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE></form>
</body><%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?