modi_ok.asp

来自「这是去年开发的中移鼎讯手机进销存系统 大家」· ASP 代码 · 共 36 行

ASP
36 行
字号
<!--#include file="../inc/function.asp"-->
<!--#include file="../inc/ChkPurview.asp"-->
<%
dim title,content,until0,city,county,personid,username0,id,power
  id=request.querystring("id")
  county=GetCountyID
  city=GetCityID
  personid=GetUserGID
  username0=GetUserName
   if county=0 and city=0 then
  power=0
 elseif city>0 and county=0 then
  power=1
 elseif city>0 and county>0 then
  power=2
 end if
  title=request("title")
  content=request("content")
  until0=request("until0")
dim rsnews,sqlnews
  set rsnews=server.createobject("adodb.recordset")
  sqlnews="select * from T_News where newsid='"&id&"'"
  rsnews.open sqlnews,conn,3,3
  rsnews("title")=title
  rsnews("content")=content
  rsnews("until0")=until0
  rsnews.update
  rsnews.close
  set rsnews=nothing
  conn.close
  set conn=nothing
  %>
  <script>alert("修改新闻成功");
  window.location="manage.asp";
  </script>

⌨️ 快捷键说明

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