• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

动感首页更新实现之八 ------ 首页模板篇

发布: 2007-6-30 18:56 | 作者: admin | 来源: | 查看: 15次 | 进入软件测试论坛讨论

领测软件测试网 default.asp
@#下面就是本站首页显示的样本程序:http://asp.on.net.cn/
@#适用与本站所有的首页显示程序。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ASP动感在线 http://ASP.on.net.cn</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<p>首页模板!最新5条信息!</p>
<table width="60%" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="60%" valign="top" height="54">
<table width="100%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td height="5">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="8"><%
dim conn
dim connstr

on error resume next
connstr="DBQ="+server.mappath("/new/new.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
dim sql
dim rs
sql="select top 5 * from learning order by articleid desc"
Set rs= conn.execute(sql)

if rs.eof and rs.bof then
response.write "<p align=@#center@#> 还 没 有 任 何 文 章</p>"
else
%><%do while not rs.eof%><font color="#000099">○</font> <a href="<%=rs("url")%>" target="_blank"><%=rs("title")%></a>
<i><font color="#FF0000">(<%=rs("dateandtime")%>)</font></i><br>
<%=rs("content")%><br>
<%
rs.movenext
loop
rs.close
end if

set rs=nothing
conn.close
set conn=nothing
%> </td>
</tr>
<tr>
<td colspan="2">
<div align="right"><a href="new/index.asp">以前公告&gt;&gt;</a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center"> </div>
</td>
</tr>
</table>


</div>
</body>
</html>


作者:阿喔 出处:<ASP动感在线> http://asp.on.net.cn/

(待续)

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网