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

📄 photoup.asp

📁 办公自动化系统 适用于办公室的各种几本功能的操作 功能比较简单
💻 ASP
字号:
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/inc_AspUpload.asp"-->
<!--#include file="../inc/connection.asp"-->
<%
LoginID=trim(session("LoginID"))
if LoginID="" then response.end
dim strFileName, Personalpath
Personalpath="../File_up/Photo/"&LoginID
FileUpload Personalpath
ID=LoginID
arrFileName=split(strFileName,",")
strPhoto=""
for i=0 to ubound(arrFileName)
if arrFileName(i)<>"" and len(arrFileName(i))>4 then
strPhoto=arrFileName(i)
exit for
end if
next

Updateme(ID)

%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/main.css">	 
<script language="javascript">
self.opener.location.href='Updateme.asp';
</script>
</head>
<body BGCOLOR="FFFFFF" onload="window.close();">
</body>
</html>
<%

sub Updateme(ID)
if strPhoto<>"" then
	sql="Update tblUser set Photo='"&strPhoto&"' where ID="& ID
end if
	Conn.execute (sql)
end sub

Function GetTableValue(TableName,Field,ValueField,Value)
	if TableName<>"" and Value<>"" then
		Set RsTmp = Server.Createobject("Adodb.recordset")
		strSql = "Select "& Field &" from "& TableName &" where "& ValueField &"='"& Value &"'"
		Rstmp.open strSql,Conn,1,1
		If not Rstmp.eof then
			GetTableValue=trim(Rstmp(Field))
		else
			GetTableValue=""
		end if
		Rstmp.close
		'set RsTmp = Nothing
	else
		GetTableValue=""
	end if
End Function
%>
<!--#include file="../inc/connclose.asp"-->

⌨️ 快捷键说明

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