⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit_news.asp

📁 花钱买的毕业设计。企业网络管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/ServerControl.asp" -->
<!--#include file="../include/check_session.asp" -->
<%
dim str
if Request.QueryString("id") = "" then
	str = "select * from news where id = 1"
else
	str = "select * from news where id = " & Request.QueryString("id")
end if
session("rs").open str,session("conn")
%>
<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" value="<%= session("rs")("title") %>"></td>
      <td width="180" align="right">新闻类型: 
        <%
dim cmbtype
set cmbtype = new DBCombo
cmbtype.name = "type"
cmbtype.selected = session("rs")("type_id")
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" rows="8" style="width:450;height:150"><%= session("rs")("content") %></textarea> 
      </td>
    </tr>
    <tr> 
      <td>新闻图片:</td>
      <td align="right"><a href="../News/theImg.asp?id=<%= session("rs")("id") %>" target="_blank">查看图片</a></td>
    </tr>
    <tr> 
      <td colspan="2"> <input name="newspic" type="file" id="newspic" style="width:450;"> 
        <input type="hidden" name="action" value="edit"> <input name="id" type="hidden" id="id" value="<%= Request.QueryString("id") %>"> 
      </td>
    </tr>
    <tr> 
      <td colspan="2" align="center"> <input type="submit" name="Submit" value=" 提 交 " >
           
        <input name="reset" type="reset" id="reset" value=" 重 置 ">
           
        <input name="cancel" type="button" id="cancel" onClick="history.back()" value=" 取 消 "> 
      </td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -