这是整个网页的代码,麻烦再帮忙看看吧!
<html>
<head>
<title>::西南交通大学后勤集团::</title>
<%
sub ShowNews(str) '显示新闻或通知列表
dim rs '新闻获取数据集
dim i
Call DBConnectBegin()
set rs= server.CreateObject("ADODB.Recordset")
if str<> "" then
rs.Open "select * from News where subclass ='" & str & "' order by date desc",oConn ,1,1
if not rs.EOF and not rs.BOF then
for i=1 to 15
if not rs.EOF then
Response.Write " <p><a href=../news/shownews.asp?id="& rs("id")&" target=_blank>"&rs("title") & " " & rs("date") & "</a> </p>"
rs.MoveNext
end if
next
else
Response.Write "<p>尚未有信息可供显示</p>"
end if
end if
end sub
sub ShowIntroduction() '显示部门列表
Call DBConnectBegin()
dim adors '获取部门介绍数据集
dim i
set adors= server.CreateObject("ADODB.Recordset")
adors.Open "select * from Introduction where mainclass='集团概况' and subclass='部门介绍'",oConn ,1,1
if not adors.EOF and not adors.BOF then
while not adors.EOF
Response.Write " <tr valign=center class=tb > "
i=1
while i<=4 and not adors.EOF
Response.Write "<td>◇<a href=../group/detaildepartment.asp?id="& adors("id")&" target=_blank>" & adors("title") & "</A></td>"
adors.MoveNext
i=i+1
wend
Response.Write "</tr>"
wend
else
Response.Write "<tr> 尚未有部门介绍 </tr>"
end if
end sub
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../images/index.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.style1 {color: #D6C4EE}
-->
</style>
</head>
<!--#include file = "../inc/conn.asp" -->
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#330033"
bgcolor="#ffffff" class="words"> <!--DWLayoutTable-->
<!--#include file="top.htm"-->
<tr bordercolor="#330033">
<td width="173" height="676" valign="top" bgColor="#cc99cc">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#cc99cc" height="731"> <!--DWLayoutTable-->
<tr>
<td width="13" height="59"></td>
<td width="146" valign="top" height="59">
<P><!--DWLayoutEmptyCell--> </P>
<div align="center" ><h5>24小时为您服务</h5></div>
<p></p>
<p><div align="center" class="words"> 集团热线: 66361616</div></p>
<p><div align="center" class="words"> 水电维修: 87600485</div></p>
<p><div align="center" class="words"> 公寓服务: 87601400</div></p>
<p><div align="center" class="words"> 医院急诊: 87600481</div></p>
</td>
<td width="14" height="59"></td>
</tr>
<tr>
<td height="25"></td>
<td valign="top" height="25">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#996699">
<tr>
<td width="142" height="19" valign="bottom" bordercolor="#ffffff" bgcolor="#996699"
class="words">
<div align="center"><font color="#ffffff"><strong>服务栏目</strong></font></div>
</td>
</tr>
</table>
</td>
<td height="25"></td>
</tr>
<tr>
<td height="18"></td>
<td height="18"></td>
<td height="18"></td>
</tr>
<tr>
<td height="168"></td>
<td valign="top" bordercolor="#cc99cc" height="168">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#996699">
<tr>
<td width="142" height="90" valign="top" bordercolor="#cc99cc" class="words">
<div align="center"><br>
<!--#include file = "lanmu.htm" -->
</div>
</td>
</tr>
</table>
</td>
<td height="168"></td>
</tr>
<tr>
<td height="25"></td>
<td valign="top" height="25"><!--DWLayoutEmptyCell--> </td>
<td height="25"></td>
</tr>
<tr>
<td height="25"></td>
<td valign="top" bordercolor="#ffffff" height="25">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#996699" bgcolor="#cc99cc">
<tr>
<td width="142" height="20" valign="middle" bordercolor="#ffffff" bgcolor="#996699"
class="words">
<div align="center"><font color="#ffffff"><strong>友情链接</strong></font></div>
</td>
</tr>
</table>
</td>
<td height="25"></td>
</tr>
<tr>
<td height="18"></td>
<td height="18"></td>
<td height="18"></td>
</tr>
<tr>
<td height="393"></td>
<td valign="top" height="393">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#996699" height="231" bordercolorlight="#CC99CC" bordercolordark="#CC99CC" bgcolor="#CC99CC">
<tr>
<td width="142" height="229" valign="top" bordercolor="#cc99cc" bgcolor="#CC99CC" bordercolorlight="#CC99CC" bordercolordark="#CC99CC">
<div align="center">
<p> </p>
<p><a href="http://www. height="30" src="../images/中国高校.gif" width="87" border="0"></a></p>
<p><a href="http://61.236.145.209:111"><IMG height="30" src="../images/四川高校.gif" width="87" border="0"></a></p>
<p><a href="http://www.swjtu. height="30" src="../images/head1.jpg" width="87" border="0"></a></p>
<p><a href="http://www. height="30" src="../images/幼儿.gif" width="87" border="0"></a></p>
<p><a href="../hqwy2/hqwy.htm"><IMG height="30" src="../images/物管.gif" width="87" border="0"></a></p>
<p><a href="../sdzx/index.asp"><IMG height="30" src="../images/水电中心主页.gif" width="87" border="0"></a></p>
<p><a href="../饮食中心网页/index.html"><IMG height="30" src="../images/饮食.gif" width="87" border="0"></a></p>
<p><a href="http://ftp2.swjtu. height="31" src="../images/yanghua.gif" width="87" border="0"></a></p>
<p><a href="http://bbs.swjtu. height="31" src="../images/jinbbs.gif" width="87" border="0"></a></p>
<p><a href="http://www. height="31" src="../images/singnet.gif" width="87" border="0"></a></p>
</div>
</td>
</tr>
<font size="1" color="#0000FF">
<b>
<td bgcolor="#CC99CC" bordercolor="#CC99CC" bordercolorlight="#CC99CC" bordercolordark="#CC99CC">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</b>
</font>
<p><b><font color="#0000FF" size="1">第<script src="http://counter.个访问者</font></b>
</table>
</td>
</tr>
</table>
</td>
<td width="577" valign="top" background="images/danwei.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/danwei.gif"
height="674"> <!--DWLayoutTable-->
<tr>
<td width="19" rowspan="6" height="522"> </td>
<td width="3" height="21"><STRONG><FONT size="2" color="#330066"></FONT></STRONG></td>
<td width="470" height="21"><STRONG><FONT size="2" color="#330066"></FONT></STRONG></td>
<td width="1" height="21"><STRONG><FONT size="2" color="#330066"></FONT></STRONG></td>
<td width="42" rowspan="7" valign="top" height="675"><STRONG><FONT size="2" color="#330066"></FONT></STRONG></td>
</tr>
<tr>
<td colspan="3" valign="top" height="13"><STRONG><FONT size="2" color="#330066">集团新闻:.</FONT></STRONG></td>
</tr>
<tr>
<td height="207" width="3"><FONT color="#330066"></FONT></td>
<td colspan="2" valign="top" height="207">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#cc99cc">
<tr>
<td width="467" height="203" valign="middle" bordercolor="#ffffff" class="tb">
<p><FONT color="#330066">
<%
shownews("新闻综述")
%>
</FONT>
</p>
</td>
</tr>
<tr>
<td height="20" valign="bottom" bordercolor="#ffffff" class="tb">
<div align="right"><FONT color="#330066">>>>></FONT><a href="../news/index.asp?mclass=集团信息&sclass=新闻综述"><FONT color="#330066">更多新闻</FONT></a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" valign="top" height="13">
<P><FONT size="2" color="#330066"><STRONG></STRONG></FONT> </P>
<P><FONT color="#330066" size="2"><STRONG>相关通知:.</STRONG></FONT></P>
</td>
</tr>
<tr>
<td height="198" width="3"></td>
<td colspan="2" valign="top" height="198">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#cc99cc"> <!--DWLayoutTable-->
<tr>
<td width="467" height="174" valign="top" bordercolor="#ffffff" class="tb"><br>
<p>
<p>
<%
shownews("通知")
%>
</p>
</td>
</tr>
<tr>
<td height="20" valign="bottom" bordercolor="#ffffff" class="tb">
<div align="right">>>>><a href="../news/index.asp?mclass=集团信息&sclass=通知">更多通知</a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="14" colspan="3" valign="top">
<P><FONT size="2" color="#330066"><STRONG></STRONG></FONT> </P>
<P><FONT color="#330066" size="2"><STRONG>后勤集团单位:.</STRONG></FONT></P>
</td>
</tr>
<tr>
<td height="168" width="19"> </td>
<td height="168" width="3"> </td>
<td valign="top" height="168">
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#cc99cc" height="140"> <!--DWLayoutTable-->
<tr>
<td>
<table width="100%" border="0" height="100%">
<%
showintroduction()
%>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" height="100%">
<p>
<p>
<!--#include file="gundong.html"-->
</table>
</td>
</tr>
<tr>
<td>
<p> </p>
<p> </p>
<p> </p>
<!--#include file="bottom.htm"-->
</td>
</tr>
</td>
</tr> <!-- -->
<p> </p>
<p> </p>
</tr>
</table>
</html>