📄 edit_news.asp
字号:
<!--#include file="cookies.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>爱斯特淋浴设备有限公司管理后台</title>
<link href="../file/css.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../js/validator.js"></script>
<%
set rs=server.CreateObject("ADODB.Recordset")
sqltxt="select * from news where id="&Trim(Request.QueryString("news_id"))
rs.open sqltxt,conn,1,1
%>
<style type="text/css">
<!--
.STYLE1 {color: #003366}
-->
</style>
</head>
<body>
<form name="myform" method="post" action="save_news.asp?action=edit" onSubmit="return Validator.Validate(this,2)">
<table cellpadding="2" cellspacing="1" border="0" width="96%" class="tableBorder" align=center>
<tr bgcolor="#f0f0f0">
<th height="25" colspan="2" bgcolor="#f0f0f0"> 发布公司新闻</th>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="25" align="right" bgcolor="#FFFFFF" class="TableRow2">新闻标题:</td>
<td width="90%" align="left" bgcolor="#FFFFFF" class="TableRow2"><input name="news_title" type="text" class="form2" id="news_title" dataType="Require" msg="新闻标题不能为空!" value="<%=rs("news_title")%>">
<font color="red">*</font><font color=gray>(新闻标题)</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="25" align="right" bgcolor="#FFFFFF" class="TableRow2">新闻简介:</td>
<td width="90%" align="left" bgcolor="#FFFFFF" class="TableRow2"><input name="news_intro" type="text" class="form2" id="news_intro" size="40" dataType="Require" msg="新闻简介不能为空!" value="<%=rs("news_intro")%>">
<font color="red">*</font><font color=gray>(在首页中会显示相应的新闻简介30到50字之内)</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="25" align="right" bgcolor="#FFFFFF" class="TableRow2">设为强调:</td>
<td width="90%" bgcolor="#FFFFFF" class="TableRow2"><%
if rs("stress")="1"then
%>
<input name="stress" type="checkbox" id="stress" checked="checked" value="1">
<%
else
%>
<input name="stress" type="checkbox" id="stress" value="1">
<%end if%>
<font color="gray">(打"√"则在首页会强调出现)
<input name="news_id" type="hidden" id="news_id" value="<%=rs("id")%>">
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="25" align="right" valign="middle" bgcolor="#FFFFFF" class="TableRow2">发布部门:</td>
<td valign="middle" bgcolor="#FFFFFF" class="TableRow2"><input name="news_depart" type="text" class="form2" id="sub_person" value="<%=rs("news_depart")%>" >
<font color="gray">(填写发布人姓名或者发布单位名称)</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="100" height="25" align="right" valign="top" bgcolor="#FFFFFF" class="TableRow2">新闻内容:</td>
<td width="90%" bgcolor="#FFFFFF" class="TableRow2"><INPUT type="hidden" name="news_content" id="news_content" style="display:none" value="<%=rs("news_content")%>">
<IFRAME ID="ewebeditor1" src="../lxlweb/ewebeditor.asp?id=news_content&style=s_3d" frameborder="0" scrolling="no" width=100% height="350"></IFRAME></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="35" bgcolor="#FFFFFF" class="TableRow2"> </td>
<td width="90%" bgcolor="#FFFFFF" class="TableRow2"><input type="submit" name="Submit" value=" 提 交 ">
<input type="reset" name="Submit" value=" 重 置 "></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -