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

📄 update.asp

📁 本oa系统内部短信.手机短信.文件传输.公文收发.邮件服务.共享下载.内部论坛等功能
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../adminlogin666.asp"
MM_grantAccess=false
If Session("MM_Usernamesyslogin") <> "" 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
%>
<!--#include file="../../Connections/oavbsconn.asp" -->

<%
Dim r__d
r__d = "1"
If (request("id") <> "") Then 
  r__d = request("id")
End If
%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT *  FROM levelssdfgsfgtrgrthe5fgbdnjyu76  WHERE id=" + Replace(r__d, "'", "''") + "  "
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 1
r.Open()
r_numRows = 0
%>
<%
Dim levels
Dim levels_numRows
Set levels = Server.CreateObject("ADODB.Recordset")
levels.ActiveConnection = MM_oavbsconn_STRING
levels.Source = "SELECT 操作名称  FROM mokuaobiao  ORDER BY 排序 asc"
levels.CursorType = 0
levels.CursorLocation = 2
levels.LockType = 1
levels.Open()
levels_numRows = 0
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "开通"
If (Request("MM_EmptyValue") <> "") Then 
  Recordset1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT names,部门  FROM usertertggbng  WHERE idzhuangtai = '" + Replace(Recordset1__MMColParam, "'", "''") + "'and names<>'对所有人群发'  ORDER BY 排序 asc"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
function DbCombox() 
Dim Recordset3
Dim Recordset3_numRows
Set Recordset3 = Server.CreateObject("ADODB.Recordset")
Recordset3.ActiveConnection = MM_oavbsconn_STRING
Recordset3.Source = "SELECT 部门  FROM sms部门表  WHERE 开关='开' and 部门<>'对所有人群发'  ORDER BY 排序 asc"
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()
while not Recordset3.eof 
msg = msg & "<option value=""" &Recordset3("部门") & """>" & Recordset3("部门") & "</option>" 
Recordset3.movenext 
wend 
Recordset3.close 
set Recordset3 = nothing 
DbCombox = msg 
End function 
Recordset3_numRows = 0
%>


<%
function DbComboxcaozuo() 
Dim caozuo
Dim caozuo_numRows
Set caozuo = Server.CreateObject("ADODB.Recordset")
caozuo.ActiveConnection = MM_oavbsconn_STRING
caozuo.Source = "SELECT 部门  FROM levelssdfgsfgtrgrthe5fgbdnjyu76  ORDER BY 排序 asc"
caozuo.CursorType = 0
caozuo.CursorLocation = 2
caozuo.LockType = 1
caozuo.Open()
while not caozuo.eof 
msg = msg & "<option value=""" &caozuo("操作名称") & """>" & caozuo("操作名称") & "</option>" 
caozuo.movenext 
wend 
caozuo.close 
set caozuo = nothing 
DbComboxcaozuo = msg 
End function 
caozuo_numRows = 0
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT *  FROM levelssdfgsfgtrgrthe5fgbdnjyu76    ORDER BY ID ASC"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<%
Dim Recordset4
Dim Recordset4_numRows

Set Recordset4 = Server.CreateObject("ADODB.Recordset")
Recordset4.ActiveConnection = MM_oavbsconn_STRING
Recordset4.Source = "SELECT 操作名称 FROM mokuaobiao"
Recordset4.CursorType = 0
Recordset4.CursorLocation = 2
Recordset4.LockType = 1
Recordset4.Open()

Recordset4_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
Recordset2_numRows = Recordset2_numRows + Repeat1__numRows
%>
<%
'  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim r_total
Dim r_first
Dim r_last

' set the record count
r_total = r.RecordCount

' set the number of rows displayed on this page
If (r_numRows < 0) Then
  r_numRows = r_total
Elseif (r_numRows = 0) Then
  r_numRows = 1
End If

' set the first and last displayed record
r_first = 1
r_last  = r_first + r_numRows - 1

' if we have the correct record count, check the other stats
If (r_total <> -1) Then
  If (r_first > r_total) Then
    r_first = r_total
  End If
  If (r_last > r_total) Then
    r_last = r_total
  End If
  If (r_numRows > r_total) Then
    r_numRows = r_total
  End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them

If (r_total = -1) Then

  ' count the total records by iterating through the recordset
  r_total=0
  While (Not r.EOF)
    r_total = r_total + 1
    r.MoveNext
  Wend

  ' reset the cursor to the beginning
  If (r.CursorType > 0) Then
    r.MoveFirst
  Else
    r.Requery
  End If

  ' set the number of rows displayed on this page
  If (r_numRows < 0 Or r_numRows > r_total) Then
    r_numRows = r_total
  End If

  ' set the first and last displayed record
  r_first = 1
  r_last = r_first + r_numRows - 1
  
  If (r_first > r_total) Then
    r_first = r_total
  End If
  If (r_last > r_total) Then
    r_last = r_total
  End If

End If
%>
<script language ="javascript" > 
Citys = new Array(); 
<%
Dim shi
Dim shi_numRows
Set shi = Server.CreateObject("ADODB.Recordset")
shi.ActiveConnection = MM_oavbsconn_STRING
shi.Source = "SELECT names,部门 FROM usertertggbng where idzhuangtai='开通'  ORDER BY 排序 ASC"
i = 0 
shi.CursorType = 0

⌨️ 快捷键说明

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