fileupload.htm

来自「全方面的OA管理程序代码」· HTM 代码 · 共 65 行

HTM
65
字号
<!--#include file="../inc/Secure.htm"-->
<!--#include file="inc_AspUpload.htm"-->
<!--#include file="Const.htm"-->
<!--#include file="../Inc/Conn.htm"-->

<HTML>
<HEAD>
<TITLE> File System Manager  </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="styles.css">
</HEAD>
<%
dim strFileName, Personalpath
Personalpath=replace(trim(request.QueryString("FileUpFolder")),"'","''")
RootDir=replace(trim(request.QueryString("RootDir")),"'","''")

LoginID=session("LoginID")
if LoginID="" then response.end


if Personalpath = "" then Personalpath = RootDir
FileUpload Personalpath

arrFileName=split(strFileName,",")
'获取数据
strText1=EncriptRequest("Text1")
strText2=EncriptRequest("Text2")
strText3=EncriptRequest("Text3")
dim strText
strText=""
'if strText1<>"" then
	strText=strText& strText1 &","
'end if
'if strText2<>"" then
	strText=strText& strText2 &","
'end if
'if strText3<>"" then
	strText=strText& strText3 &","
'end if
arrText=split(strText,",")

nInt =  ubound(arrFileName)
for i=1 to nInt
	if i<=nInt then
		InsertData LoginID, Personalpath &"/"& arrFileName(i), arrText(i-1)
		response.write "<font color=red> 文件 "& arrFileName(i) &" 上传成功!</font><BR>"
	end if
next

set objUpload = nothing
response.write "<p><a href=FileManager.htm?RootDir="& RootDir &"&nf="& Personalpath &">[返回]</a>"
%>
</HTML>
<%
Sub InsertData(FromID, str1, str2)	 '添加
     sql="insert tblFile (FromID, FilePath,Title) values("& FromID & _
	 ",'" & str1 & _
	 "','" & str2 & _
	 "')"
	 'response.write sql
	 oConn.execute (sql)
End Sub
%>
<!--#include file="../Inc/Conn_Close.htm"-->

⌨️ 快捷键说明

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