?? updateshenpimyfdda111.asp
字號:
<%on error resume next
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
'在頁頭寫:
Dim StartTime,EndTime
StartTime=timer() '創建一個計時器,單位:毫秒,頁面開始執行時間
%>
<%server.ScriptTimeout=1800%>
<%
' *** 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 r__MMColParam
r__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
r__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim r__d
r__d = "1"
If (request("id") <> "") Then
r__d = request("id")
End If
%>
<%
Dim r__MMColParam1
r__MMColParam1 = "1"
If ("|"&session("names") <> "") Then
r__MMColParam1 = "|"&session("names")
End If
%>
<%
Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT * FROM shouwen WHERE (添加人帳號 = '" + Replace(r__MMColParam, "'", "''") + "' or 接收人 like '%" + Replace(r__MMColParam1, "'", "''") + "%') and shouwen.id=" + Replace(r__d, "'", "''") + " ORDER BY shouwen.id desc"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()
r_numRows = 0
session("shouwenupid")=request("id")
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset1__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1__d
Recordset1__d = "1"
If (request("id") <> "") Then
Recordset1__d = request("id")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT shouwenfiles.文件名,shouwenfiles.文件路徑,shouwenfiles.id,shouwenfiles.郵件編號 FROM shouwen inner join shouwenfiles on shouwenfiles.郵件編號=shouwen.id WHERE 上傳人帳號 = '" + Replace(Recordset1__MMColParam, "'", "''") + "' and shouwen.id=" + Replace(Recordset1__d, "'", "''") + " ORDER BY shouwen.id desc"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim jimi
Dim jimi_numRows
Set jimi = Server.CreateObject("ADODB.Recordset")
jimi.ActiveConnection = MM_oavbsconn_STRING
jimi.Source = "SELECT * FROM 機密程度"
jimi.CursorType = 0
jimi.CursorLocation = 2
jimi.LockType = 1
jimi.Open()
jimi_numRows = 0
%>
<%
Dim Recordset2__u
Recordset2__u = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset2__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT * FROM xzgwqianmingdata WHERE useriddsfs='" + Replace(Recordset2__u, "'", "''") + "' and applying='是'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<%if not Recordset2.eof or not Recordset2.bof then
dim p1
p1=Recordset2.Fields.Item("imgurl").Value
end if%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<html>
<head>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style6 {font-size: 12px}
-->
</style>
<script language="JavaScript" src="/toall/gw/swfj.js"></script>
<script language="JavaScript" src="/toall/gw/shouwen.js"></script>
<script language=javascript>
var upfj;
upfj=0; //上傳附件沒有錯誤
//--------------------------------send fujian file------------------------------
function sendfj(fileid){
var NameUrl="<%=NameUrl%>" //保存公文文件url路徑
var FjUrl="<%=FjUrl%>" //保存附件文件url路徑
var FjDelUrl="<%=FjDelUrl%>" //上傳失敗刪除臨時文件
var MaxSize="<%=session("MaxSize")%>" //限制上傳附件文件的大小
var fileform = document.submitinput;
PsoPath=fileform.elements[fileid].value
//PsoPath=document.submitinput.filefj0.value
PsoFile=PsoPath //定義附件的文件名
PsoType=""
while(PsoFile.indexOf("\\")>0) //獲得附件的文件名
{
i = PsoFile.indexOf("\\")
PsoFile = PsoFile.substring(i + 1, PsoFile.length);
} //獲得附件的文件名
PsoPath=PsoPath.substring(0,PsoPath.lastIndexOf("\\")) //獲得附件的路徑
PsoType=PsoFile
if (PsoType.lastIndexOf(".")>0) //獲得附件的擴展名
{
i = PsoType.lastIndexOf(".")
PsoType = PsoType.substring(i + 1, PsoType.length);
}
result=form.web.submitinput(FjUrl,PsoFile,PsoPath,MaxSize) //向服務器上傳附件
//document.submitinput.fujian.value=PsoFile
if (!result)
{
result=form.web.sendurl(FjDelUrl,"",""); //刪除前面上傳的臨時文件
alert("上傳附件失敗或附件不存在!");
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -