" else if rs.recordcount<8 then for i=1 to 8 if not rs.eof then title=rs("Title") if len(title)>15 then title=mid(title,1,15)&".." end if pubdate=rs("PubDate") response.Write "" rs.movenext end if next else do until rs.eof title=rs("Title") if len(title)>15 then title=mid(title,1,15)&".." end if response.Write "

" rs.movenext loop end if end if conn.close:set conn=nothing %> 
  <% Set conn=Server.CreateObject("ADODB.Connection") conn.open "driver={microsoft access driver (*.mdb)};dbq="&session("path") strSQL="select * from news order by PubDate desc" set rs=conn.execute(strSQL) if rs.eof then response.Write "暂无新闻!
"&"·"&title&"("&pubdate&")"&"
"&"·"&title&"
 
<% if session("loginlag")="yes" then response.Write "

"&session("name")&"您好!欢迎您进入上海华电站网站后台管理!" else response.Write "

"&_ "
"&_ ""&_ ""&_ ""&_ ""&_ ""&_ " "&_ ""&_ ""&_ ""&_ " "&_ ""&_ ""&_ ""&_ ""&_ "
用户:
密码:
"&_ "
"&_ "" end if %>