📄 uptxlfiles.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../myw/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" -->
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<%
Dim b__MMColParam
b__MMColParam = "1"
If (session("bumen") <> "") Then
b__MMColParam = session("bumen")
End If
%>
<%
Dim b
Dim b_numRows
Set b = Server.CreateObject("ADODB.Recordset")
b.ActiveConnection = MM_oavbsconn_STRING
b.Source = "SELECT path as p FROM sms部门表 WHERE 部门 = '" + Replace(b__MMColParam, "'", "''") + "'"
b.CursorType = 0
b.CursorLocation = 2
b.LockType = 1
b.Open()
b_numRows = 0
%>
<html>
<head>
<script language="JavaScript">
<!--
function dis(){
document.form1.submit.value=' 正在上传'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.file1.value=="" && document.form1.file2.value=="" &&document.form1.file3.value=="" && document.form1.file4.value==""&&document.form1.file5.value=="")
{
window.alert ("请选择上传文件!")
document.form1.file1.focus()
return false
}
return true
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传通讯录文件</title>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-size: 12px;
}
.tx1 {height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
.bt {font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand}
.tx {height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #eeeeee; color: #0000FF}
.style2 {font-size: 13px}
-->
</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">
<!--
.style3 {
font-size: 14px;
font-weight: bold;
}
.style5 {font-size: 12px}
-->
</style>
</head>
<body>
<div align="center">
<div align="center">
<table width="600" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="../../f/asp/filesupadmin/img/1.jpg"><div align="center"><span class="style1 style3 style3"><span class="style3 style5">上传通讯录文件</span></span></div></td>
</tr>
</table>
<table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF"><form action="upgongwenpost.asp" method="post" enctype="multipart/form-data" name="form1" onSubmit="return dis()">
<table width="99%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td width="17%" rowspan="8"><p align="center">
<input type="hidden" name="filepath" class="tx" style="width:350" value="../../dataandfiles/files/txl" size="20">
<input name="上传人部门" type="hidden" id="上传人部门" value="<%= Session("bumen") %>">
<img src="../../toall/jfoanet/img/2.gif" width="50" height="50">
<input name="发送人姓名" type="hidden" id="发送人姓名" value="<%= Session("names") %>">
<input type="hidden" name="act" value="upload">
<input name="发送人帐号" type="hidden" id="发送人帐号" value="<%= Session("userssdfgfhtrh") %>">
<br>
</p>
<p> </p></td>
<td height="12"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="83%"><input type="file" name="file1" style="width:400" value="" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input name="file2" type="file" id="file2" style="width:400" value="" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input name="file3" type="file" id="file3" style="width:400" value="" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input name="file4" type="file" id="file4" style="width:400" value="" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><input name="file5" type="file" id="file5" style="width:400" value="" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="10"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>
<span class="style2"> <span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff>
<INPUT name=submit type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onClick='return check();' value= 我要上传>
<STRONG><FONT color=#ffffff> </FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff>
<input style="FONT-SIZE: 12px; HEIGHT: 27px" type=button value= 取消,返回 onClick="javascript:history.go(-1)">
</font></strong></FONT></STRONG></span></span> </span> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td> </td>
<td>在这里您可以上传已设计完整的单位或部门通讯录文件,包括word,excel等。</td>
</tr>
</table>
</form></td>
</tr>
</table>
</div>
</body>
</html>
<%
b.Close()
Set b = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -