📄 insert_news.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/ServerControl.asp" -->
<!--#include file="../include/check_session.asp" -->
<%
session("mode") = "admin"
session("news_type") = ""
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<title>发布新闻</title>
</head>
<body>
<form action="admin_news.asp" method="post" enctype="multipart/form-data" name="frmInsert" id="frmInsert">
<table width="450" border="0" align="center" cellpadding="1" cellspacing="1">
<tr valign="middle">
<td width="270">新闻标题: <input name="title" type="text" id="title" style="width:180"></td>
<td width="180" align="right">新闻类型:
<%
dim cmbtype
set cmbtype = new DBCombo
cmbtype.name = "type"
cmbtype.selected = "1"
cmbtype.writehtml "select * from news_type",session("conn")
%>
</td>
</tr>
<tr>
<td colspan="2" align="left">新闻内容:</td>
</tr>
<tr>
<td colspan="2"><textarea name="content" style="width:450;height:150"></textarea>
</td>
</tr>
<tr>
<td colspan="2"> 新闻图片:
</tr>
<tr>
<td colspan="2">
<input name="newspic" type="file" id="newspic" style="width:450;">
<input type="hidden" name="action" value="insert"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" align="center"> <input type="submit" name="Submit" value=" 提 交 " >
<input name="reset" type="reset" id="reset" value=" 重 置 "></td>
</tr>
</table>
</form>
<table width="450" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><%
session("sqlString") = "select id,type_id,title,time from v_news"
Server.Execute("../news/list.asp")
%></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -