📄 addnews2.asp
字号:
<!--#include file="conn.asp"--><!--#include file="admin_is.ini"-->
<%
if trim(request("ccc22"))="add" then %>
<%vnname=request("nname")
vzuozhe=request("zuozhe")
vnneirong=request("nneirong")
set rs=server.createobject("adodb.recordset")
sql="SELECT * from news where id="&request("id")&""
rs.open sql,conn,1,3
rs("nname")=vnname
rs("zuozhe")=vzuozhe
rs("nneirong")=vnneirong
rs("lei")=request("lei")
rs.update
rs.close
Response.Write "<script Language=Javascript>alert('添加完毕');location.href = 'editnews.asp';</script>"
response.end
end if %>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css">
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#336699" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../images/back_3.gif" rowspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
<tr>
<td class="12v" >
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="96" width="100%">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" height="128">
<tr>
<td height="20" bgcolor="#FFFFFF">
<div align="center"><font color="#000000">添加新闻</font></div>
</td>
</tr>
<tr>
<td height="177" valign="top" bgcolor="#E8F1FF"> <% set rs=server.createobject("adodb.recordset")
sql="SELECT * from news where id="&request("id")&""
rs.open sql,conn,1,3 %><br>
<form name="form1" method="post" action="addnews2.asp?ccc22=add">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="144">
<tr>
<td width="23%">主题:</td>
<td width="77%">
<input type="text" name="nname" value="<%=rs("nname")%>" size="50">
</td>
</tr>
<tr>
<td width="23%">作者:</td>
<td width="77%">
<input type="text" name="zuozhe" value="<%=rs("zuozhe")%>">
</td>
</tr>
<tr>
<td width="23%">ID:</td>
<td width="77%">
<input type="text" name="id" value="<%=rs("id")%>">
<select name="lei">
<option value="<%=rs("lei")%>">默认类别</option>
<option value="0">站内新闻</option>
<option value="1">帮助中心</option>
<option value="9">联系我们</option>
<option value="8">付款方式</option>
<option value="2">滚动新闻</option>
</select>
</td>
</tr>
<tr>
<td width="23%">内容:</td>
<td width="77%">
<textarea name="nneirong" cols="60" rows="8"><%=rs("nneirong")%></textarea>
</td>
</tr>
<tr>
<td width="23%"> </td>
<td width="77%">
<input type="submit" name="Submit" value="确定">
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="106" valign="top" bgcolor="#E8F1FF">
<div align="right"></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -