📄 printinfo.asp
字号:
<!--#include file="headfiles/Connection.inc"-->
<%
dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
strSql=request("sql")
response.Write(strSql)
rs.Open strsql, conn, 3,1
'response.Write(rs.recordcount)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>打印预览</title>
<link href="headfiles/text.css" rel="stylesheet" type="text/css">
</head>
<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr align="center" bgcolor="#00CCFF" class="title1">
<td width="9%">职工号</td>
<td width="11%">姓名</td>
<td width="9%">性别</td>
<td width="9%">出生日期</td>
<td width="9%">政治面貌</td>
<td width="9%">民族</td>
<td width="9%">婚姻状况</td>
<td width="11%">出生地</td>
<td width="14%">毕业学校</td>
<td width="10%">详细介绍</td>
</tr>
<% do while not rs.eof %>
<tr bgcolor="#efefef"class="title" >
<td width="9%"> <div align="center"><font color="#49AAFA"><%=rs("Employee_ID")%></font></div></td>
<td width="11%"> <div align="center">
<div align="center"><%=rs("Employee_Name")%></div>
</div></td>
<td width="9%"><%=rs("Sex_Name")%></td>
<td width="9%"><%=rs("Employee_Birth")%></td>
<td width="9%"><%=rs("Political_Name")%></td>
<td width="9%"><%=rs("Nation_Name")%></td>
<td width="9%"><%=rs("Married_Name")%></td>
<td width="11%"><%=rs("Employee_NaPlace")%></td>
<td width="14%"><%=rs("Employee_Address")%></td>
<td width="10%"> </td>
</tr>
<% i=i+0
rs.movenext
if i>=rs.PageSize then exit do
loop
rs.close
set rs=nothing
conn.close
set conn=nothing %>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -