📄 print.asp
字号:
<%response.expires=0%>
<%Response.Buffer=true%>
<!-- #include file="../conn_lr.asp"-->
<!-- #include file="../css.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then
response.write("<script language=""javascript"">")
response.write("window.top.location.href='../../default.asp';")
response.write("</script>")
response.end
end if
%>
<html>
<head>
<title>打印图书详细资料</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<!-- #Include File=../inc/css.asp -->
<% '定义变量
dim Number,opFlag
'on error resume next
'获取输入参数:记录号和操作标志
Number=request("Number")
if Number="" then Number="0"
Number=Cint(Number)
opFlag=request("opFlag")
'创建记录访问对象
Set rs = Server.CreateObject("ADODB.Recordset")
'打开记录源,并定位到输入参数决定的记录号
rs.Open Session("SQL"),Session("conn"),1,3
rs.move Number
%>
<style>table{border:solid windowtext .5pt;border-right:none;border-bottom:none;}td{border:solid windowtext .5pt;border-left:none;border-top:none;mso-border-left-alt:solid windowtext .5pt;padding:0mm 5.4pt 0mm 5.4pt }</style>
</head>
<body id=all>
<br><center><big><%=rs("vtitle")%></big></center>
<table class=vtext width="95%" align="center" border=1>
<tbody>
<tr class=vtext >
<td noWrap align=left width=83 height="25" >
书 名:
</td>
<td align=middle colspan=5 width="602" ><%=rs("vtitle")%> </td>
</tr>
<tr class=vtext >
<td noWrap align=left width=83 height="25" >书 号:</td>
<td align=left width=190 >
<%=rs("vnumber")%> </td>
<td noWrap align=right width="54" >作者:</td>
<td align=left colspan="3" width="328" ><%=rs("vauthor")%> </td>
</tr>
<tr class=vtext >
<td align=left width=83 height="25" >关 键 字:</td>
<td align=left colspan=5 width="602"><%=rs("vkeyword")%> </td>
</tr>
<tr class=vtext >
<td align=left width=83 height="25" >开 本:</td>
<td align=left width=190 ><%=rs("vsize")%> </td>
<td align=right width="54" >装订:</td>
<td align=left width="110"><%=rs("vzd")%> </td>
<td align=right width="92">页 码:</td>
<td align=left width="96"><%=rs("vpage")%> </td>
</tr>
<tr class=vtext >
<td align=left width=83 height="25" >入库时间:</td>
<td align=left width="190" ><%=rs("vregtime")%> </td>
<td align=right width="54" >数量:</td>
<td align=left width="110" ><%=rs("vcount")%> </td>
<td align=right width="92" >已借出:</td>
<td align=left width="96" ><%=rs("voutcount")%> </td>
</tr>
<tr class=vtext >
<td noWrap align=left width=83 height="25" >出 版 社:</td>
<td align=left width=190 ><%=rs("vpublisher")%> </td>
<td noWrap align=right width="54" >版本:</td>
<td align=left colspan="3" width="328" ><%=rs("vver")%> </td>
</tr>
<tr class=vtext >
<td height="150" class="" valign="top" align="left" width="83">内容简介:</td>
<td colspan=5 class="" valign="top" width="602"><%=rs("vtext")%> </td>
</tr>
</table>
<script language=javascript>
window.print();
</script>
<% '关闭记录源
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -