📄 fawenjiludetail.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%on error resume next
'在页头写:
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
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT * FROM fawen WHERE 添加人帐号 = '" + Replace(r__MMColParam, "'", "''") + "' and fawen.id=" + Replace(r__d, "'", "''") + " ORDER BY fawen.id desc"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()
r_numRows = 0
%>
<%
Dim Recordset11__MMColParam
Recordset11__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset11__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset11__d
Recordset11__d = "1"
If (request("id") <> "") Then
Recordset11__d = request("id")
End If
%>
<%
Dim Recordset11
Dim Recordset11_numRows
Set Recordset11 = Server.CreateObject("ADODB.Recordset")
Recordset11.ActiveConnection = MM_oavbsconn_STRING
Recordset11.Source = "SELECT fawenfiles.文件名,fawenfiles.文件路径,fawenfiles.id,fawenfiles.邮件编号 FROM fawen inner join fawenfiles on fawenfiles.邮件编号=fawen.id WHERE 上传人帐号 = '" + Replace(Recordset11__MMColParam, "'", "''") + "' and fawen.id=" + Replace(Recordset11__d, "'", "''") + " ORDER BY fawen.id desc"
Recordset11.CursorType = 0
Recordset11.CursorLocation = 2
Recordset11.LockType = 1
Recordset11.Open()
Recordset11_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 Recordset21__u
Recordset21__u = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset21__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset21
Dim Recordset21_numRows
Set Recordset21 = Server.CreateObject("ADODB.Recordset")
Recordset21.ActiveConnection = MM_oavbsconn_STRING
Recordset21.Source = "SELECT * FROM xzgwqianmingdata WHERE useriddsfs='" + Replace(Recordset21__u, "'", "''") + "' and applying='是'"
Recordset21.CursorType = 0
Recordset21.CursorLocation = 2
Recordset21.LockType = 1
Recordset21.Open()
Recordset21_numRows = 0
%>
<%
Dim Recordset2__d
Recordset2__d = "1"
If (request("id") <> "") Then
Recordset2__d = request("id")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT * FROM fawenyijian WHERE 审批ID=" + Replace(Recordset2__d, "'", "''") + " ORDER BY 最后更新时间 desc ,ID DESC"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset11_numRows = Recordset11_numRows + Repeat1__numRows
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index
Repeat2__numRows = -1
Repeat2__index = 0
Recordset2_numRows = Recordset2_numRows + Repeat2__numRows
%>
<%
function HTMLEncode(fString)
fString = replace(fString, ">", ">")
fString = replace(fString, "<", "<")
fString = Replace(fString, CHR(13), "")
fString = replace(fString,chr(32)," ")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
fString = Replace(fString, CHR(10), "<BR>")
HTMLEncode = fString
end function
%>
<html>
<head>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style6 {font-size: 12px}
-->
</style>
<script language="JavaScript" src="swfj.js"></script>
<script language="JavaScript" src="fawen.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.upload(FjUrl,PsoFile,PsoPath,MaxSize) //向服务器上传附件
//document.submitinput.fujian.value=PsoFile
if (!result)
{
result=form.web.sendurl(FjDelUrl,"",""); //删除前面上传的临时文件
alert("上传附件失败或附件不存在!");
fileform.elements[fileid].focus();
upfj=1;
return false; //上传附件失败,返回起草公文页面
}
else{
result=form.web.sendurl(NameUrl,PsoFile,PsoType)
}
}
//------------------end function-------------------------------------------------------
function checkform() {
upfj=0;
//-------发送附件
var fileform = document.submitinput; //调用上传附件函数
for ( var i= 0 ; i <fileform.elements.length ; i ++ ) {
if ( fileform.elements[i].type == "file" && fileform.elements[i].name !="file" ) {
if (fileform.elements[i].value!="") {
sendfj(i);
if(upfj==1) return false;
}
}
}//for
//--------发送附件
document.submitinput.submit()
return false;
}
</script>
<script language="JavaScript">
<!--
function dis(){
document.submitinput.submit.value=' 提交..'
document.submitinput.submit.disabled=true;
return true;
}
function check() {
return true
}
//-->
</SCRIPT>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style5 {color: #FFFFFF}
.style2 {font-size: 13px}
.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}
.inputline { border-top: 1px none #FF0000;
border-right: 1px none #FF0000;
border-bottom: 1px solid #999999;
border-left: 1px none #FF0000;
}
.style36 { font-size: 13px;
color: #FFFFFF;
font-weight: bold;
}
.style40 {color: #FFFFFF;
font-size: 14px;
font-weight: bold;
}
-->
</style>
</head>
<div align="center"><script language=VBScript>
function tof_Click()
if document.all("tof").checked Then
document.all("his").style.display="inline"
Else
document.all("his").style.display="none"
End IF
end function
</script>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="20"><img src="/img/bbs/leftlin1red.gif" width="6" height="21"></td>
<td width="936" height="20" bgcolor="#FF3333"><div align="center"><span class="style5"><span class="style13 style5 style6"><span class="style1 style2 style7 style9"> 发 文 记 录 </span></span></span></div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><form action="upforsubmitadf.asp" method="post" enctype="multipart/form-data" name="submitinput" id="submitinput">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FF0000">
<tr bgcolor="#FFFFFF">
<td width="11%"><div align="right">文件标题:</div></td>
<td width="41%"> <%=(r.Fields.Item("文件标题").Value)%> </td>
<td width="48%"> 编号:<%=(r.Fields.Item("编号").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">机密程度: </div></td>
<td> <%=(r.Fields.Item("机密程度").Value)%> 印发日期:<%=(r.Fields.Item("印发日期").Value)%> </td>
<td> 共印份数:<%=(r.Fields.Item("共印份数").Value)%> 份</td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">主送机关:</div></td>
<td><%=(r.Fields.Item("主送机关").Value)%></td>
<td>抄送机关: <%=(r.Fields.Item("主送机关").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">主题词:</div></td>
<td colspan="2"><%=(r.Fields.Item("主题词").Value)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">打字人:</div></td>
<td><%=(r.Fields.Item("打字人").Value)%></td>
<td>校对人: <%=(r.Fields.Item("校对人").Value)%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">内容:</div></td>
<td colspan="2" style="word-break:break-all;Width:fixed"><div align="left"><%=(r.Fields.Item("内容").Value)%></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">备注:</div></td>
<td colspan="2" style="word-break:break-all;Width:fixed"><%=HTMLEncode(r.Fields.Item("备注").Value)%></td>
</tr>
<% If Not Recordset11.EOF Or Not Recordset11.BOF Then %>
<tr bgcolor="#FFFFFF">
<td><div align="right">附件:</div></td>
<td colspan="2"><table width="357" border="0" cellspacing="0" cellpadding="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset11.EOF))
%>
<tr>
<%p=Recordset11.Fields.Item("文件路径").Value%>
<td width="255"> <a href="redirect.asp?id=<%=(Recordset11.Fields.Item("id").Value)%>&gwid=<%=(Recordset11.Fields.Item("邮件编号").Value)%>&fpath=<%=p%>" target="_blank"><%=(Recordset11.Fields.Item("文件名").Value)%></a> <a href="downfile.asp?id=<%=(Recordset11.Fields.Item("id").Value)%>&gwid=<%=(Recordset11.Fields.Item("邮件编号").Value)%>" >下载</a><br/></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset11.MoveNext()
Wend
%>
</table></td>
</tr>
<% End If ' end Not Recordset11.EOF Or NOT Recordset11.BOF %>
<tr bgcolor="#FFFFFF">
<td><div align="right">审稿:</div></td>
<td colspan="2" valign="top" bgcolor="#FFFFFF"><%=(r.Fields.Item("审稿人").Value)%> 已审:<%=mid((r.Fields.Item("已审稿人").Value),2,10000)%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">意 见:</div></td>
<td colspan="2" valign="baseline"><%
While ((Repeat2__numRows <> 0) AND (NOT Recordset2.EOF))
%>
<% If Not Recordset2.EOF Or Not Recordset2.BOF Then %>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%session("shenpiid")=r("id")%>
<td style="word-break:break-all;Width:fixed">
<hr width="95%" size="1" color="#999999" height="1">
<%=HTMLEncode(Recordset2.Fields.Item("审批意见").Value)%><br>
提交:<a href="#" title="审批人:<%=Recordset2("审批人姓名")%> 部门:<%=Recordset2("审批人部门")%>"><%=(Recordset2.Fields.Item("审批人姓名").Value)%></a> 结果: <span class="style42"><%=Recordset2.Fields.Item("审批签阅结果").Value%></span>
<%imgp=Recordset2.Fields.Item("电子签名").Value%>
<a href="<%=imgp%>" target="_blank"><img src="<%=imgp%>" width="150" height="80" border="0"></a><br>
<br>
<%if Recordset2("最后更新日期")="2006-10-1" then %>
<%=(Recordset2.Fields.Item("审批时间").Value)%>
<%else%>
<span class="style39">更新:<%=(Recordset2.Fields.Item("最后更新时间").Value)%></span> <%=(Recordset2.Fields.Item("审批时间").Value)%>
<%end if%></td>
</tr>
</table>
<% End If ' end Not Recordset2.EOF Or NOT Recordset2.BOF %>
<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
Recordset2.MoveNext()
Wend
%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">会签:</div></td>
<td colspan="2" valign="top" bgcolor="#FFFFFF"><%=(r.Fields.Item("会签人列表").Value)%> 已签: <%=mid((r.Fields.Item("已会签人列表").Value),2,10000)%></td>
</tr>
<%if r("是否使用签名")="是" then%>
<%end if%>
</table>
</form></td>
</tr>
</table>
<p><a href="javascript:history.go(-1)">返回</a> <span class="style2"><a href="javascript:window.print()">我要打印</a></span></p>
</div>
</html>
<%
r.Close()
Set r = Nothing
%>
<%
Recordset11.Close()
Set Recordset11 = Nothing
%>
<%
jimi.Close()
Set jimi = Nothing
%>
<%
Recordset21.Close()
Set Recordset21 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -