📄 readwordff.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="readwordff.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.savedoc()
window.close()
}
</script>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle">
<td 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="30" valign="middle">
<td height="30" valign="middle" align="center">
<input type="button" name="emend" value="接受修订" onClick="emend()" style="width:80px;height:24px">
<input type="button" name="pagetop" value="插入页眉" onClick="pagehead()" style="width:80px;height:24px">
<input type="button" name="pagefoot" value="插入页脚" onClick="pagefoot()" style="width:80px;height:24px">
<input type="button" name="pageno" value="插入页码" onClick="insertpageno()" style="width:80px;height:24px">
<input type="button" name="pagesetup" value="页面设置" onClick="pagesetup()" style="width:80px;height:24px">
<input type="button" name="print" value=" 打 印 " onClick="printout()" style="width:80px;height:24px">
<input type="button" name="signature" value="个人签名" onClick="return signature()" style="width:80px;height:24px">
<input type="button" name="save3" value="保存退出" onClick="savedoc()" style="width:80px;height:24px">
<input type="button" name="save22" value=" 关 闭 " onClick="window.close()" style="width:80px;height:24px">
</td>
</tr>
</table>
<script language=javascript>
localfile="c:\\windows\\temp\\temp1234\\"+"<%=request("documentname")%>"
web.openfile(localfile)
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -