📄 save_news.asp
字号:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="../include/code.asp"-->
<%
'**********************************
'版本:host_free 3.0 *
'官方网站:http://www.850518.com *
'技术论坛:http://forum.850518.com *
'qq:54455245 (欢迎咨询商业版) *
'msn: steven_bass@msn.com *
'手机:(0)13632779827 *
'mail:wtez@vip.163.com *
'版权所有,请保留该信息,谢谢合作 *
'**********************************
%>
<%
set rs = server.createobject("adodb.recordset")
sql="select * from news where news_id="&request("id")
rs.open sql,conn,3,3
id=rs("id")
news_id=rs("news_id")
news_title1=rs("news_title")
news_colour=rs("news_colour")
news_person=rs("news_person")
news_text=rs("news_text")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="content-language" content="zh-cn">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<meta name="generator" content="microsoft frontpage 4.0">
<meta name="progid" content="frontpage.editor.document">
<link href="style.css" rel=stylesheet>
</head>
<body style="background-color: #eeeeee">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="600" bgcolor="#626262">
<tr>
<td height="20"> <b><font color="#ffffff">新闻添加</font></b></td>
</tr>
<tr>
<td height="500" bgcolor="#ffffff">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<form method="post" action="edit.asp?news_id=<%=news_id%>&action=save_news">
<tr>
<td width="25%" height="25" align="right">新闻类型:</td>
<td width="75%" height="25"> <select size="1" name="id" style="border: 1 solid #000000">
<option value="">请选择类型</option>
<option <%if id="1" then%>selected<%end if%> value="1">站内新闻</option>
<option <%if id="2" then%>selected<%end if%> value="2">帮助专区</option>
<option <%if id="3" then%>selected<%end if%> value="3">业务相关</option>
</select></td>
</tr>
<tr>
<td width="25%" height="25" align="right">新闻标题:</td>
<td width="75%" height="25"> <input type="text" name="news_title" size="40" value="<%=news_title1%>"></td>
</tr>
<tr>
<td width="25%" height="25" align="right">标题颜色:</td>
<td width="75%" height="25"> <input type="radio" value="black" name="news_colour" <%if news_colour="black" then%>checked<%end if%>>黑色
<input type="radio" value="red" name="news_colour" <%if news_colour="red" then%>checked<%end if%>>红色 <input type="radio" value="blue" name="news_colour" <%if news_colour="blue" then%>checked<%end if%>>蓝色
<input type="radio" value="yellow" name="news_colour" <%if news_colour="yellow" then%>checked<%end if%>>黄色</td>
</tr>
<tr>
<td width="25%" height="25" align="right">添加人员:</td>
<td width="75%" height="25"> <input type="text" name="news_person" size="20" value="<%=news_person%>"></td>
</tr>
<tr>
<td width="25%" height="25" align="right" valign="top">新闻内容:</td>
<td width="75%" height="25"> <textarea rows="15" name="news_text" cols="60"><%=news_text%></textarea></td>
</tr>
<tr>
<td width="100%" height="30" colspan="2">
<p align="center"><input type="submit" value=" 提交 " name="b3">
<input type="reset" value="全部重写" name="b3"></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
'**********************************
'版本:host_free 3.0 *
'官方网站:http://www.850518.com *
'技术论坛:http://forum.850518.com *
'qq:54455245 (欢迎咨询商业版) *
'msn: steven_bass@msn.com *
'手机:(0)13632779827 *
'mail:wtez@vip.163.com *
'版权所有,请保留该信息,谢谢合作 *
'**********************************
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -