📄 updategroup.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
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
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim Recordset3__u
Recordset3__u = "1"
If (session("userssdfgfhtrh") <> "") Then
Recordset3__u = session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset3__d
Recordset3__d = "1"
If (request("id") <> "") Then
Recordset3__d = request("id")
End If
%>
<%
Dim Recordset3
Dim Recordset3_numRows
Set Recordset3 = Server.CreateObject("ADODB.Recordset")
Recordset3.ActiveConnection = MM_oavbsconn_STRING
Recordset3.Source = "SELECT * FROM 通讯录组别 WHERE 用户帐号='" + Replace(Recordset3__u, "'", "''") + "' and id=" + Replace(Recordset3__d, "'", "''") + " ORDER BY 排序 asc"
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()
Recordset3_numRows = 0
%>
<%
Dim Recordset1__u
Recordset1__u = "1"
If (session("userssdfgfhtrh") <> "") Then
Recordset1__u = session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT * FROM 通讯录组别 WHERE 用户帐号='" + Replace(Recordset1__u, "'", "''") + "' ORDER BY 排序"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim r__MMColParam
r__MMColParam = "1"
If (session("userssdfgfhtrh") <> "") Then
r__MMColParam = session("userssdfgfhtrh")
End If
%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT id FROM 通讯录 WHERE 个人帐号 = '" + Replace(r__MMColParam, "'", "''") + "'"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 1
r.Open()
r_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
font-size: 13px;
font-weight: bold;
}
.style3 {font-size: 12px}
.style3 {font-size: 12px}
body {
margin-top: 2px;
}
-->
</style>
<script language="JavaScript">
<!--
function isNumber(string) {
if (string =="") string = "0";
valid = '0123456789x';
for (var i=0; i< string.length; i++) {
if (valid.indexOf(string.charAt(i)) == -1) {
return false;
}
}
return true;
}
function dis(){
document.form1.submit.value=' 更新..'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.组别.value=="") {
window.alert ("请您输入组别 !")
document.form1.组别.focus()
return false
}
if (document.form1.排序.value.length=="") {
window.alert ("请您输入组别序号!")
document.form1.排序.focus()
return false
}
if(isNumber(document.form1.排序.value) == false){
alert("友情提醒:排序需为数字");
document.form1.排序.focus();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -