⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendgwfoxz.asp

📁 绿叶oa系统办公自动化 2008.工作日志管理,文件管理
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** 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" -->

<%function DbCombox() 
Dim gwtype
Dim gwtype_numRows
Set gwtype = Server.CreateObject("ADODB.Recordset")
gwtype.ActiveConnection = MM_oavbsconn_STRING
gwtype.Source = "SELECT 公文类型  FROM 公文类型  ORDER BY 排序 ASC"
gwtype.CursorType = 0
gwtype.CursorLocation = 2
gwtype.LockType = 1
gwtype.Open()
while not gwtype.eof 
msg = msg & "<option value=""" &gwtype("公文类型") & """>" & gwtype("公文类型") & "</option>" 
gwtype.movenext 
wend 
DbCombox = msg 
End function 
gwtype_numRows = 0
%>
<%
Dim Recordset1__u
Recordset1__u = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset1__u = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT *  FROM xzgwqianmingdata  WHERE useriddsfs='" + Replace(Recordset1__u, "'", "''") + "' and applying='是'"
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 机密程度  ORDER BY ID DESC"
jimi.CursorType = 0
jimi.CursorLocation = 2
jimi.LockType = 1
jimi.Open()
jimi_numRows = 0
%>
<%
yearvalue=request("yearvalue")
monthvalue=request("monthvalue")
dayvalue=request("dayvalue")
userdept=request("userdept")
if userdept="" then
	userdept=oabusyuserdept
end if
if yearvalue="" then
	yearvalue=year(date())
end if
if monthvalue="" then
	monthvalue=month(date())
end if
if dayvalue="" then
	dayvalue=day(date())
end if
%>
<script language=JavaScript>

function ds(sstr)
{
 var dstr="";
 
 for (i=0;i<sstr.length;i++)
 {   if (sstr.charAt(i)!=' ') dstr+=sstr.charAt(i);
 }
 return dstr;
}

function oninput()
{
var rid,title;
rid=ds(document.submitinput.vattend.value);
title=ds(document.submitinput.vtitle.value);
//显示日期
document.submitinput.vtime.value ="";
document.submitinput.vtime.value +=document.submitinput.fYear.value + "-" 
document.submitinput.vtime.value +=document.submitinput.fMonth.value + "-" 
document.submitinput.vtime.value +=document.submitinput.fDay.value + " " 
document.submitinput.vtime.value +=document.submitinput.fHour.value + ":" 
document.submitinput.vtime.value +=document.submitinput.fMinute.value + ""
//对用户是否输入信息进行判断
if((rid=="")||(title==""))

rphtml('vtitle','vplace','vaim','vattendother','vattend','vcompere','vspeaker');
document.submitinput.submit();
}
function add_users(to)
{
var return_value;
return_value=showModalDialog("userdeptlist.asp?muilt=yes&to=" + to,null,"dialogWidth:25;dialogHeight:16;dialogTop:250;dialogLeft:260;status:no;scrollbars:no;help:no");
if((typeof(return_value)=="undefined") ||(return_value=="*") || (return_value==""))
  return;
else
  var str1="";
  var str2="";
  tmpstr=return_value.split("*");
  str1=tmpstr[0];
  str2=tmpstr[1];
  document.submitinput.all(str2).value=str1 ;
}
</script>
<script language=VBScript>
function tof_Click()
if document.all("tof").checked Then
    document.all("his").style.display="none"
Else
    document.all("his").style.display="inline"
End IF
end function
</script>
<script language="JavaScript" src="/toall/gw/swfj.js"></script>
<script language="JavaScript" src="/toall/gw/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.submit1.value=' 发送..'

⌨️ 快捷键说明

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