📄 uppost.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
if request.form("zhuti")="" then
Response.Write("<script>alert(""请输入主题!"");location=""javascript:history.back()"";</script>")
Response.End
end if
%>
<%
if request.form("content")="" then
Response.Write("<script>alert(""请输入内容!"");location=""javascript:history.back()"";</script>")
Response.End
end if
%>
<%
if len(request.form("content"))>65535then
Response.Write("<script>alert(""您输入的内容超出数据库极限,系统最多接收的字符是65535个!"");location=""javascript:history.back()"";</script>")
Response.End
end if
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<%dim kaiguan,types
types=request("types")
kaiguan=request("草稿")
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset1__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1__varid
Recordset1__varid = "1"
If (request("id") <> "") Then
Recordset1__varid = request("id")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT * FROM jihuagfbfghtghfggbd WHERE 发布人帐号 = '" + Replace(Recordset1__MMColParam, "'", "''") + "' and id=" + Replace(Recordset1__varid, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
if not Recordset1.eof or not Recordset1.bof then
Recordset1("zhuti")=request("zhuti")
Recordset1("neirong")=request("content")
Recordset1("最后更新时间")=now()
Recordset1("最后更新日期")=date()
Recordset1("计划类型")=types
if kaiguan="" then
Recordset1("开关")="是"
else
Recordset1("开关")="否"
end if
Recordset1.update
Recordset1_numRows = 0
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<script language="javascript">
<!--
alert("计划修改ok!");window.location.href="listgerenjihua.asp"
-->
</script>
<%else%>
<script>
alert("数据不存在");history.go(-1)
</script>
<%response.end()
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -