📄 printworksheet.asp
字号:
<%
'************************************************************************************************
' 文件名: printworksheet.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 魏霖
' 日 期 : 2002-11-18
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 :
' 版 本 :
'*******************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/commonpage.inc" -->
<!-- #include file="printworksheet.inc" -->
<%
call CheckSecurity()
dim iRight:iRight=HasRight(ID_WORKSHEET)
if iRight=2 or iRight=1 then
else
Response.Clear
Response.Redirect "../include/error.asp?error=只有具有工作单查询和更新权限的人员才能访问该网页&"
Response.End
end if
'*******************************************************************************
' 服务器端代码
dim pWorksheetid:pWorksheetid=GetParam("worksheetid")
if IsEmpty(pWorksheetid) then
Response.Clear
Response.Redirect "../include/error.asp?error=没有把工单号传过来&"
Response.End
end if
dim conn:set conn=DBConnection
%>
<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../include/common.css" type="text/css">
<style>
input {color:blue}
</style>
<style type="text/css" media=screen>.noprint {visibility:visible;}</style>
<style type="text/css" media=print>.noprint {visibility:hidden;}</style>
<OBJECT id=closes classid="CLSID:ADB880A6-D8FF-11CF-9377-00AA003B7A11"><param name="Command" value="close"></OBJECT>
<OBJECT id=WB classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 width=0></OBJECT>
<script language="JavaScript">
function doPrintSetup() { WB.ExecWB(8,1) } // 打印设置
function doPrintPreview() { WB.ExecWB(7,1) } // 打印预览
function doPrint() { WB.ExecWB(6,1) } // 打印
function closethis() { closes.click(); return; } // 关闭窗口
</script>
<script language="javascript">
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>
<%
'*******************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------
Response.Write "<table border=0 cellspacing=0 cellpadding=0 width=700 align=center style=""border:2px solid outset""><tr><td>" & vbLF
Response.Write printWorksheetForm
Response.Write "</td></tr></table>"
Response.Write "<table border=0 align=center class=noprint align=center height=40>" & vbLF & _
"<tr><td colspan=7>" & vbLF & _
"<img border=0 src=""../images/button/preview.gif"" style=""cursor:hand"" OnClick=""JavaScript:doPrintPreview();"">" & vbLF & _
" " & vbLF & _
"<img border=0 src=""../images/button/print.gif"" style=""cursor:hand"" OnClick=""JavaScript:doPrint();"">" & vbLF & _
" " & vbLF & _
"<img border=0 src=""../images/button/close.gif"" style=""cursor:hand"" OnClick=""JavaScript:closes.Click();"">" & vbLF & _
"</td></tr>" & vbLF & _
"</table>"
'-------------------------------------------------------------------------------
' 主体到这里结束
'*******************************************************************************
Disconnect(conn)
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -