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

📄 writeword.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<%
dim filesize
set rs=server.createobject("adodb.recordset")
 sql="select signature,signaturename from userlist where uid='"&session("uid")&"'"
 rs.open sql,conn,1,1
 filesize=rs("signature").actualsize
 if filesize>1 then
 signaturename=rs("signaturename")
 end if
 rs.close
 set rs=nothing
  LocalFile="writeword.asp"
  TempleFile="loadsignature.asp"
  HttpUrl="http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME") 
  HttpUrl=Left(HttpUrl,Len(HttpUrl)-Len(LocalFile))
  HttpUrl=HttpUrl & TempleFile

%> 
<html>
<head>
<title>办公自动化(OA)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<script language="JavaScript">
function emend() {
web.emend()
}
function unemend() {
web.unemend()
}
function signature() {
var tt,localfile
var HttpUrl,cc
tt="<%=signaturename%>"
if (tt=="") {
alert("您没有签名图章,请与管理员联系!")
return false
}

else {
localfile="c:\\windows\\temp\\temp1234\\"+tt;
HttpUrl="<%=HttpUrl%>";
cc=web.download(HttpUrl,tt);
       if (cc) {
      web.signature(localfile)
        }
     else 
       {
	   alert("下载领导签名失败!");
       return false;
       }

    }

}
function protect() {
web.protect()
}
function unprotect() {
web.unprotect()
}
function pagehead(){
web.pagehead()
}
function pagefoot(){
web.pagefoot()
}
function insertpageno() {
web.insertpageno()
}
function printout() {
web.printout()
}
function pagesetup() {
web.pagesetup()
}
function closedoc(){
web.closedoc()
}
function savedoc() {
writer="<%=session("username")%>"
web.setusername(writer)
web.emend()
web.savedoc()
window.close()
}

</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<table width="100%" cellpadding="0" cellspacing="0" align="center">
   <tr> 
   <td valign="top"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="600">
        <tr height="25" valign="middle"> 
            
          <td height="507" valign="top" align="left"> <object width="100%" classid="clsid:8C9AA244-AC33-47F9-8968-CC114654A6EC" codebase="web.ocx" id="web" height="570">
            </object></td>
          </tr>
          <tr height="25" valign="middle">
            
          <td height="30" valign="middle" align="left"> 
            <div align="center"> 
              <input type="button" name="signature" value="领导签名" onClick="return signature()" style="width:80px;height:24px">
              <input type="button" name="save" value="保存退出" onClick="savedoc()" style="width:80px;height:24px">
       <input type="button" name="save2" value=" 关 闭 " onClick="window.close()" style="width:80px;height:24px">
              
            </div>
            </td>
          </tr>
        </table>
			  
            
         
    </td>
  </tr>
</table>
   <script language=javascript>
				 localfile="c:\\windows\\temp\\temp1234\\"+"<%=request("documentname")%>"
                web.writefile(localfile)
               </script>

</body>
</html>

⌨️ 快捷键说明

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