📄 admin_news_add.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../config/db.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加分类及新闻</title>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
body,td,th {
font-size: 12px;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<% dim sql,rst,rst1,sql1
set rst=server.createobject("adodb.recordset")
set rst1=server.createobject("adodb.recordset")
%>
<form action="admin_news_act.asp?act=add" method="post" enctype="multipart/form-data" name="form1" target="_blank" id="form2">
<label>
选择新闻分类:
<select name="upid1" id="upid1">
<option value="0" selected>==请选择上级分类==</option>
<%
sql="select * from tbl_newsclass where nc_upid=0"
rst.open sql,conn,1,1
do while not rst.eof
sql1="select * from tbl_newsclass where nc_upid=" & rst("nc_id")
rst1.open sql1,conn,1,1
do while not rst1.eof
%>
<option value=<%=rst1("nc_id")%>><%=rst("nc_name")%>--><%=rst1("nc_name")%></option>
<%
rst1.movenext
loop
rst1.close
rst.movenext
loop
rst.close
%>
</select>
<br>
<br>
添加新闻标题:
<input name="title" type="text" id="title" size="80" />
</label>
<p>
<label>
添加新闻内容:
<textarea name="content" cols="80" rows="10" id="content"></textarea>
</label>
</p>
<p>
添加新闻图片:
<label>
<input type="file" name="image" />
</label>
</p>
<p>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -