📄 fzhuanfa.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<!--#include file="../../Connections/gongyobngwenjianxitongvbs.asp" -->
<!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<%
' *** 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
%>
<%
Dim levels__MMColParam
levels__MMColParam = "1"
If (Session("names") <> "") Then
levels__MMColParam = Session("names")
End If
%>
<%
Dim levels
Dim levels_numRows
Set levels = Server.CreateObject("ADODB.Recordset")
levels.ActiveConnection = MM_oavbsconn_STRING
levels.Source = "SELECT 姓名,操作名称 FROM levelssdfgsfgtrgrthe5fgbdnjyu76 WHERE 姓名 = '" + Replace(levels__MMColParam, "'", "''") + "' and 操作名称='管理人事照片与附件'"
levels.CursorType = 0
levels.CursorLocation = 2
levels.LockType = 1
levels.Open()
levels_numRows = 0
%>
<%if not levels.eof or not levels.bof then%>
<%
function DbCombox()
Dim Recordset3
Dim Recordset3_numRows
Set Recordset3 = Server.CreateObject("ADODB.Recordset")
Recordset3.ActiveConnection = MM_oavbsconn_STRING
Recordset3.Source = "SELECT 部门 FROM sms部门表 WHERE 开关='开' and 部门<>'对所有人群发' ORDER BY 排序 asc"
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()
while not Recordset3.eof
msg = msg & "<option value=""" &Recordset3("部门") & """>" & Recordset3("部门") & "</option>"
Recordset3.movenext
wend
Recordset3.close
set Recordset3 = nothing
DbCombox = msg
End function
Recordset3_numRows = 0
%>
<%
Dim files__d
files__d = "1"
If (request("id") <> "") Then
files__d = request("id")
End If
%>
<script language ="javascript" >
Citys = new Array();
<%
Dim shi
Dim shi_numRows
Set shi = Server.CreateObject("ADODB.Recordset")
shi.ActiveConnection = MM_oavbsconn_STRING
shi.Source = "SELECT names,部门 FROM usertertggbng where idzhuangtai='开通' ORDER BY 排序 ASC"
i = 0
shi.CursorType = 0
shi.CursorLocation = 2
shi.LockType = 1
shi.Open()
while not shi.eof
shi_numRows = 0
%>
Citys[<%=i%>] =new Array("<%=shi("部门")%>","<%=shi("names")%>");
<%
i = i + 1
shi.movenext
wend
shi.close
set shi = nothing
%>
function changeselect(selvalue){
var selvalue = selvalue;
var i;
document.form1.City.length = 0 ;
document.form1.City.options[document.form1.City.length] = new Option("请选择对象","");
for (i = 0 ;i <Citys.length;i++){
if(Citys[i][0]==selvalue){
document.form1.City.options[document.form1.City .length] = new Option(Citys[i][1],Citys[i][1]);
}
}
}
</script>
<%
dim s_filename
Dim files
Dim files_numRows
dim varfnames'下载部分使用
Set files = Server.CreateObject("ADODB.Recordset")
files.ActiveConnection = MM_gongyobngwenjianxitongvbs_STRING
files.Source = "SELECT * FROM 电子附件 WHERE id=" + Replace(files__d, "'", "''") + " and 属性='电子附件' ORDER BY ID DESC"
files.CursorType = 0
files.CursorLocation = 2
files.LockType = 1
files.Open()
files_numRows = 0
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT names,部门 FROM usertertggbng where idzhuangtai='开通' ORDER BY 排序 DESC"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<% if not files.eof then
dimpath=files("文件路径")
n=files("文件名")
end if%>
<html>
<head>
<script language="JavaScript">
<!--
function dis(){
document.form1.submit.value=' 发送..'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.bumen.value=="请选择部门") {
window.alert ("请您选择部门!")
return false
}
if ((form1.City.value=="请选择对象")||(form1.City.value=="")) {
window.alert ("请选择接收对象!")
return false
}
return true
}
//-->
</SCRIPT>
<script language="JavaScript">
<!--
function check1() {
if (document.form2.接收部门.value=="null") {
window.alert ("请您选择部门!")
return false
}
if (document.form2.标题.value=="") {
window.alert ("请您输入标题!")
document.form2.标题.focus
return false
}
return true
}
//-->
</SCRIPT>
<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>
<script>
function SummaryFromText(){
if (iEditorType==0)
{
var Summary = content1.getHTML();
}
else{
var Summary = a1.content.value;
}
Summary=Summary.substring(1,250)
Summary=cleanHtml(Summary);
a1.summary.value=Summary;
}
</SCRIPT>
<script>
function change(obj,i) {
he=parseInt(obj.style.height);
if (he>=80&&he<=400)
obj.style.height=he+i+'px';
else
obj.style.height='80px';
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
.tx1 {height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #0000FF}
.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}
-->
</style>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style6 {
color: #FFFFFF;
font-weight: bold;
}
.style9 {font-size: 12px}
.style10 {color: #FFFFFF}
.style13 {color: #000000}
-->
</style>
</head>
<body>
<form action="../../f/asp/userfolderasdffqerdfv/adminfiles/accessfiles/zhuanfaupfileintodatalogfordiazifujian.asp" method="post" name="form1" onSubmit="return dis()">
<div align="center">
<br>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="21"><img src="../../img/bbs/leftlin1.gif" width="6" height="21"></td>
<td width="936" bgcolor="#5AAE18"><div align="center"><span class="style10"><span class="style13 style5 style6"><span class="style6 style3"><span class="style6">文 件 转 发 </span></span></span></span></div></td>
<td width="6" height="21"><img src="../../img/bbs/rightlin1.gif" width="6" height="21"></td>
</tr>
</table>
<table width="80%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" height="155" border="0" cellpadding="3" cellspacing="0" bgcolor="#399CA0">
<tr bgcolor="#FFFFFF">
<td><div align="right">接收人:</div></td>
<td width="511"><select name="bumen" onchange ="changeselect(document.form1.bumen.options[document.form1.bumen.selectedIndex].value)">
<option value="请选择部门" selected>请选择部门</option>
<option value="对所有人群发">对所有人群发</option>
<%=DbCombox()%>
</select>
<select name="City" id="City">
<option selected>请选择对象</option>
<option value="对所有人群发">对所有人群发</option>
</select>
<input name="filepath111" type="hidden" class="tx" id="filepath111" style="width:350" value="upfiles" size="20"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td rowspan="2"><div align="center"><img src="../gw/img/gif/1.gif" width="37" height="35"></div></td>
<td> <a href="del/delimg/fredirect.asp?id=<%=(files.Fields.Item("ID").Value)%>&n=<%=(files.Fields.Item("文件名").Value)%>" target="_blank"><%=(files.Fields.Item("文件名").Value)%></a><br>
<input name="fname" type="hidden" id="fname" value="<%=n%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td> <input name="fpath" type="hidden" id="fpath" value="<%=dimpath%>">
<input name="daxiao" type="hidden" id="daxiao" value="<%=(files.Fields.Item("文件大小").Value)%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td> </td>
<td><input name="huizhi" type="checkbox" id="huizhi" value="是">
<span class="style9">对方收到后,让oa小秘书提醒我 <img src="../../img/oaserver.gif" width="25" height="26"></span> <br>
<br><div id=his style=display:none ><textarea name="fuyan" cols="44" rows="5" id="fuyan"></textarea><br><a href="javascript:SummaryFromText()"></a><br> <a href="javascript:change(document.all.fuyan,-20)"><img src="../../img/minus.gif" border=0 title="缩小文本框"></a> <a href="javascript:change(document.all.fuyan,20)"><img src="../../img/plus.gif" border=0 title="放大文本框"></a></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="69"><div align="center"></div></td>
<td><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><span class="style9"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 转 发 " onClick='return check();'>
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></FONT></STRONG><FONT color=#ffffff><strong><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG>
<input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " >
<STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input type=checkbox name=tof onClick=tof_Click() >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></strong></FONT></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></font></strong></FONT></STRONG></span></span><span class="style13"> 附言</span><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><span class="style9"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff> <img src="../../img/sjyf.gif" width="11" height="18"></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></font></strong></FONT></STRONG></span></span>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="8" colspan="2"></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
</div>
<p> </p>
</form>
</body>
</html>
<%
files.Close()
Set files = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
levels.Close()
Set levels = Nothing
%>
<%else%>
<%
levels.Close()
Set levels = Nothing
%>
<%
response.write"<script>alert('"&Session("names")&"很抱歉,您没有管理人事附件的权限。');location='"&request.ServerVariables("HTTP_REFERER")&"'</script>"
%>
<%response.end()
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -