X
xanadu
Unregistered / Unconfirmed
GUEST, unregistred user!
我以VBScript写的asp程序想显示数据库里的内容,但是如果数据一多,
就调起来十分慢,想要分屏显示,就是像大富翁的待回答问题一样,可以
分成许多屏显示该数据库,不知怎样实现,敬请指教!
数据库是用VFP5.0建的.
库名:asic ;
表名: asic .
源程序如下:
<html>
<head>
<title>查询结果</title>
<style>
<!--
A:link {text-decoration: none;
color: "#000000"}
A:visited {text-decoration: none;
color: "#000000"}
A:active {text-decoration: none}
A:hover {text-decoration: underline;
color: "#616161"}
-->
</style>
</head>
<body topmargin="0" leftmargin="0">
<table border="1" width="100%" bgcolor="#456BCF" cellspacing="1" cellpadding="0" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td width="100%" checked="false"><p align="center"><font style="FONT-FAMILY: 宋体;
FONT-SIZE: 9pt" color="#FFFFFF"><strong>您所在的位置</strong>:主页=&gt;请您留言=&gt;ASIC中心留言版</font></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="center"><img src="blank.gif" alt="blank.gif (814 字节)" WIDTH="5" HEIGHT="5"></td>
</tr>
</table>
<%set conn=server.CreateObject("ADODB.CONNECTION")
conn.open "asic","",""
sql="SELECT*FROM asic ORDER BY 时间 DESC"
Set rs=conn.execute(sql)
On Error resume Next
rs.MoveFirst
do while Not rs.eof%>
<div align="center"><center>
<table border="0" width="100%" cellpadding="2">
<tr>
<td width="104%" align="center" bgcolor="#9992FA" colspan="4"><font color="#FFFF00"><strong><span style="font-size: 9pt"><%=Server.HTMLEncode(rs.Fields("姓名").value)%><%=Server.HTMLEncode(rs.Fields("性别").value)%>的留言版</span></strong></font></td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">姓名:</td>
<td width="20%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("姓名").value)%>
</td>
<td width="7%" align="center" bgcolor="#C4C4FF">E_mail:</td>
<td width="27%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("e_mail").value)%>
</td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">电话:</td>
<td width="20%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("电话").value)%>
</td>
<td width="7%" align="center" bgcolor="#C4C4FF">留言时间:</td>
<td width="27%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("时间").value)%>
</td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">留言:</td>
<td width="92%" bgcolor="#C4C4FF" colspan="3"><%=Server.HTMLEncode(rs.Fields("留言").value)%>
</td>
</tr>
</table>
</center></div>
<table border="0" width="100%" bordercolor="#000000" cellspacing="1" cellpadding="0" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#A39BFB" style="font-family: 宋体;
font-size: 9pt">
<tr>
<td width="100%"><p align="center"><a href="feedback.htm">【返回上页】</a></td>
</tr>
</table>
<p><% rs.MoveNext
loop %> <%rs.close
conn.close%></p>
</body>
</html>
就调起来十分慢,想要分屏显示,就是像大富翁的待回答问题一样,可以
分成许多屏显示该数据库,不知怎样实现,敬请指教!
数据库是用VFP5.0建的.
库名:asic ;
表名: asic .
源程序如下:
<html>
<head>
<title>查询结果</title>
<style>
<!--
A:link {text-decoration: none;
color: "#000000"}
A:visited {text-decoration: none;
color: "#000000"}
A:active {text-decoration: none}
A:hover {text-decoration: underline;
color: "#616161"}
-->
</style>
</head>
<body topmargin="0" leftmargin="0">
<table border="1" width="100%" bgcolor="#456BCF" cellspacing="1" cellpadding="0" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#000000">
<tr>
<td width="100%" checked="false"><p align="center"><font style="FONT-FAMILY: 宋体;
FONT-SIZE: 9pt" color="#FFFFFF"><strong>您所在的位置</strong>:主页=&gt;请您留言=&gt;ASIC中心留言版</font></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><p align="center"><img src="blank.gif" alt="blank.gif (814 字节)" WIDTH="5" HEIGHT="5"></td>
</tr>
</table>
<%set conn=server.CreateObject("ADODB.CONNECTION")
conn.open "asic","",""
sql="SELECT*FROM asic ORDER BY 时间 DESC"
Set rs=conn.execute(sql)
On Error resume Next
rs.MoveFirst
do while Not rs.eof%>
<div align="center"><center>
<table border="0" width="100%" cellpadding="2">
<tr>
<td width="104%" align="center" bgcolor="#9992FA" colspan="4"><font color="#FFFF00"><strong><span style="font-size: 9pt"><%=Server.HTMLEncode(rs.Fields("姓名").value)%><%=Server.HTMLEncode(rs.Fields("性别").value)%>的留言版</span></strong></font></td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">姓名:</td>
<td width="20%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("姓名").value)%>
</td>
<td width="7%" align="center" bgcolor="#C4C4FF">E_mail:</td>
<td width="27%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("e_mail").value)%>
</td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">电话:</td>
<td width="20%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("电话").value)%>
</td>
<td width="7%" align="center" bgcolor="#C4C4FF">留言时间:</td>
<td width="27%" align="center" bgcolor="#C4C4FF"><%=Server.HTMLEncode(rs.Fields("时间").value)%>
</td>
</tr>
<tr>
<td width="12%" align="center" bgcolor="#C4C4FF">留言:</td>
<td width="92%" bgcolor="#C4C4FF" colspan="3"><%=Server.HTMLEncode(rs.Fields("留言").value)%>
</td>
</tr>
</table>
</center></div>
<table border="0" width="100%" bordercolor="#000000" cellspacing="1" cellpadding="0" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#A39BFB" style="font-family: 宋体;
font-size: 9pt">
<tr>
<td width="100%"><p align="center"><a href="feedback.htm">【返回上页】</a></td>
</tr>
</table>
<p><% rs.MoveNext
loop %> <%rs.close
conn.close%></p>
</body>
</html>