📄 cardcase_manage.asp
字号:
<%
'功能:查看所有名片夹
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
'------------------------------------------------
'------------------------------------------------取记录
'取名片夹记录 (返回rs对象)
'
where="where UserID="&LoginID '查寻条件
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from tbioaCardcase "&where&" order by ID desc"
rs.open sql,oConn,1,1
'------------------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<base target="FrmMain">
</head>
<body topmargin="10" leftmargin="10">
<!--#include file="cardcase_menu.html"-->
<hr width="100%" size=1 color="#000000">
<br>
<%
if rs.RecordCount=0 then
response.write "<BR><BR>暂时为空!"
else
%>
<table border="0" width="100%" cellspacing="10" cellpadding="0"><tr>
<%dim i: i=0
while not rs.EOF '循环
if (i mod 2 = 0) then response.write ("</tr><tr>")
i=i+1
%>
<td width="50%" align="center">
<table border="0" style="border-style: solid; border-width: 1; cursor: hand" width="90%" height="80" class="td1" onmouseout=className="td1" onmouseover=className="td2">
<tr>
<td rowspan="2" width="60">
<p align="center"><img border="0" src="../images/cardcase.gif" width="45" height="45">
</td>
<td><%=HtmlOut(rs("Title"))%></td>
<td width="115">名片张数:10 (张)</td>
</tr>
<tr>
<td colspan="2"><%=HtmlOut(rs("Body"))%></td>
</tr>
</table>
</td>
<%rs.MoveNext: wend%>
</tr></table>
<%
end if
rs.close
%>
</body>
</html>
<%'释放对象变量
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -