📄 boardd.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="ubbcode.asp" -->
<%
dim id
id = request("id")
if id="" then
id=1
end if
sql = " select * from board where id="&id
set rs = Server.CreateObject("Adodb.Recordset")
rs.open sql,conn,0,1
%>
<html>
<head>
<title>:::宜兴市人民医院:::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../image/main.css" type="text/css">
</head>
<body bgcolor="#CCCCCC" text="#000000" leftmargin="0" topmargin="0" background="bg.gif">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="770">
<!-- fwtable fwsrc="未命名-1.png" fwbase="head.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="../image/spacer.gif" width="770" height="1" border="0" alt=""></td>
<td><img src="../image/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="770" height="148">
<param name=movie value="../image/head-5.swf">
<param name=quality value=high>
<embed src="../image/head-5.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="770" height="148">
</embed>
</object> </td>
<td><img src="../image/spacer.gif" width="1" height="49" border="0" alt=""></td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0" height="20" bgcolor="#cccccc">
<tr>
<td align="left" valign="middle"> <form name="form1" method="post" action="query.asp">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <input name="keyword" type="text" id="keyword" size="12" maxlength="12">
</td>
<td> <input name="submit" type="image" src="../image/jiansuo.jpg" align="absmiddle" width="74" height="28">
<img src="../image/swsy.jpg" width="79" height="28" align="absmiddle">
<img src="../image/soucang.jpg" width="78" height="28" align="absmiddle">
</td>
</tr>
</table>
</form></td>
<td width="157" align="center"> <table width="95%" height="25" border="0" cellpadding="0" cellspacing="0" background="image/time.jpg">
<tr>
<td align="center" valign="middle"> <script language="">
function date(id)
{
today=new Date();
week_=new Array();
week_[0]="星期日";
week_[1]="星期一";
week_[2]="星期二";
week_[3]="星期三";
week_[4]="星期四";
week_[5]="星期五";
week_[6]="星期六";
week=week_[today.getDay()];
year=today.getYear();
month=today.getMonth()+1;
day=today.getDate();
hour=today.getHours();
minute=today.getMinutes();
second=today.getSeconds();
if (id=="week"){
return week}
else {
if (id=="year"){return year+'年'}
else {
if (id=="month"){return month+'月'}
else {
if (id=="day"){return day+'日'}
else {
if (id=="hour"){return hour}
else {
if (id=="minute"){return minute}
else {
if (id=="second"){return second;}
}
}
}
}
}
}
}
document.write(date("year"));
document.write(date("month"));
document.write(date("day"));
document.write(date("week"));
</script> </td>
</tr>
</table></td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0" height="184" bgcolor="#cccccc">
<tr>
<td width="152" valign="top" align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- fwtable fwsrc="keshi.png" fwbase="keshi.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td width="99%"><img src="../image/spacer.gif" width="159" height="1" border="0" alt=""></td>
<td width="1%"><img src="../image/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td width="99%"><img name="keshi_r1_c1" src="../image/keshi_r1_c1.jpg" width="159" height="30" border="0" alt=""></td>
<td width="1%"><img src="../image/spacer.gif" width="1" height="30" border="0" alt=""></td>
</tr>
<tr>
<td background="../image/keshi_bg.jpg" align="center" width="99%" height="430">
<iframe width="90%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" align="top" height="95%" src="depart_index.asp"></iframe>
</td>
<td width="1%" height="430"><img src="../image/spacer.gif" width="1" height="406" border="0" alt=""></td>
</tr>
<tr>
<td width="99%"><img name="keshi_r3_c1" src="../image/keshi_r3_c1.jpg" width="159" height="21" border="0" alt=""></td>
<td width="1%"><img src="../image/spacer.gif" width="1" height="21" border="0" alt=""></td>
</tr>
</table>
</td>
<td width="618" align="center" valign="top"> <br>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0" style="border:solid 1 #6382de">
<tr>
<td style="line-height:18px"><%= ubbcode(rs("content")) %></td>
</tr>
</table>
<table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<%rs.close
set rs=server.createobject("adodb.recordset")
sql="select * from board where id<"&request("id")&" order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then%>
<img src="bulletno.gif" align="absmiddle">上篇公告:已经没有了
<%else%>
<br>
<img src="bullet.gif" align="absmiddle"><a href="boardd.asp?id=<%=rs("id")%>">上篇公告</a>
<%end if%>
<br>
<% rs.close
set rs=server.createobject("adodb.recordset")
sql="select * from board where id>"&request("id")&" order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then%>
<img src="bulletno.gif" align="absmiddle">下篇新闻:已经没有了
<%else%>
<img src="bullet.gif" align="absmiddle"><a href="boardd.asp?id=<%=rs("id")%>">下篇信息</a>
<%end if%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0" height="69">
<tr>
<td background="../image/bottom_bg.gif"> </td>
</tr>
</table>
</div>
</body>
</html>
<% rs.close
set rs=nothing
closedatabase %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -