📄 updatenews.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("adminname")="" then
response.redirect "relogin.asp"
end if
%>
<%
id=request("id")
sql="select * from exam_news where id="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统管理 | 新闻管理 | 新闻修改</title>
<link rel="stylesheet" type="text/css" href="css.css">
<script language="javascript">
function openeditor(){
if (navigator.appName!="Microsoft Internet Explorer")
alert("此功能Netscape用户不能使用!")
else
{
newwin=window.open('editor/editor.html','','width=544,height=294');
newwin.focus();
}
}
function submitit()
{
var myform=document.newsform;
if (myform.title.value=="")
{
alert("新闻标题不能为空!");
return false;
}
else
{
if (myform.text.value=="")
{
alert("新闻正文不能为空!");
return false;
}
else
{
return true;
}
}
}
</script>
</head>
<body>
<table cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="25">
<tr>
<td width="100%">当前位置: 系统管理 >
<a href="adminnews.asp">新闻管理</a> <span lang="en-us">> </span>新闻修改</td>
</tr>
</table>
<center><form name="newsform" method="POST" action="saveupdatenews.asp?id=<%=id%>" onsubmit="return submitit();">
<table border="1" cellspacing="1" style="border-collapse: collapse" id="AutoNumber1" bordercolor="#799AE1" width="480">
<tr>
<td width="87" align="right" height="30" bgcolor="#799AE1" bordercolor="#799AE1">
<b><font color="#FFFFFF">新闻标题:</font></b></td>
<td width="363">
<input type="text" name="title" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal" value="<%=rs("title")%>"></td>
</tr>
<tr>
<td align="right" height="240" bgcolor="#799AE1" bordercolor="#799AE1" width="87"><b>
<font color="#FFFFFF">新闻正文:</font></b><p align="center"> </td>
<td width="363">
<textarea rows="15" name="text" cols="50" class="inputnormalleft" ><%=rs("text")%></textarea></td>
</tr>
<tr>
<td width="420" cols="2" colspan="2">
<p align="center"><input type="submit" value="提交" name="B1" class="s02"> <span lang="en-us">
</span> <input type="reset" value="重置" name="B2" class="s02"><span lang="en-us">
</span>
<input type="button" value="返回" name="B3" class="s02" onclick="window.location='adminnews.asp'"></td>
</tr>
</table></form></center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -