updatimgpath.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 278 行 · 第 1/2 页

ASP
278
字号
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Expires = -1
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" -->
<!--#include file="../fengge/config.asp" -->
<%
Dim Recordset1__varu
Recordset1__varu = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset1__varu = Session("userssdfgfhtrh")
End If
%>
<%' on error resume next
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT 相片地址,性别  FROM usertertggbng  WHERE usersdsfg56='" + Replace(Recordset1__varu, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%if not Recordset1.eof or not Recordset1.bof then
dim imgp
imgp=Recordset1.Fields.Item("相片地址").Value
end if%>
<%
Dim Recordset2__varu
Recordset2__varu = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset2__varu = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT useriddsfs,imgurl,id  FROM bbsimg记录  WHERE useriddsfs='" + Replace(Recordset2__varu, "'", "''") + "'  ORDER BY id desc"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 3
Recordset2.LockType = 3
Recordset2.Open()
Recordset2_numRows = 0
%>
<%
Dim webtiles
Dim webtiles_numRows

Set webtiles = Server.CreateObject("ADODB.Recordset")
webtiles.ActiveConnection = MM_oavbsconn_STRING
webtiles.Source = "SELECT 页面名称  FROM webtitles  WHERE 模块名称 = '论坛' and 描述='头像管理'"
webtiles.CursorType = 0
webtiles.CursorLocation = 2
webtiles.LockType = 1
webtiles.Open()

webtiles_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset2_numRows = Recordset2_numRows + Repeat1__numRows
%>
<html>
<head>
<script language="JavaScript">
<!--
function dis(){
document.form.submit.value='正在上传'
document.form.submit.disabled=true;
return true;
}
function check() {
if (document.form.image.value=="") 
{
window.alert ("请选择图片文件!")
document.form.image.focus()
return false
}
return true
}
//-->
</SCRIPT>



<script language="JavaScript">
<!--
function dis1(){
document.form2.submit1.value='正在提交'
document.form2.submit1.disabled=true;
return true;
}
//-->
</SCRIPT>
<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">
<link href="../../css/input.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 12px}
.style4 {color: #000000}
.style5 {
	font-size: 13px;
	font-weight: bold;
}
-->

⌨️ 快捷键说明

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