- 1、本文档共46页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
News的全部代码
News的全部代码:1.Index.jsp%@ page contentType=text/html;charset=gb2312 %%@ include file=incoming/Common.jsp%%@ include file=incoming/ConnectDB.jsp%htmlheadtitle%=title%/titlelink href=incoming/style.css rel=stylesheet type=text/cssmeta http-equiv=Content-Type content=text/html; charset=gb2312/headbodycenter%@ include file=incoming/Header.jsp%table width=700 height=370 border=0 cellpadding=0 cellspacing=0 tr td width=143 valign=top background=images/left.jpgdiv align=center table width=100% border=0 cellspacing=0 cellpadding=0 tr td height=32 background=images/left_banner.gifdiv align=centerfont size=3 发新闻者排行/div/td /tr /table table width=100% height=97 border=0 cellpadding=0 cellspacing=0 tr td valign=topbr %sql1=SELECT * FROM Manager ORDER BY TotalNews DESC;rs1 = smt1.executeQuery(sql1);int i=0;while(rs1.next()){ %nbsp;a class=listfont size=3 %=i+1%.nbsp;nbsp;%=rs1.getString(ManagerID)%nbsp;nbsp;nbsp;共%=rs1.getInt(TotalNews)%篇新闻/aBR%i++;}% /td /tr /table /div /td td width=370 valign=topdiv align=center table width=100% height=50 border=0 cellpadding=0 cellspacing=0 tr tdnbsp;/td /tr /table table width=100% border=0 align=center cellpadding=0 cellspacing=0 id=table1 tbody %sql1=SELECT * FROM category;rs1 = smt1.executeQuery(sql1);while(rs1.next()) { %font color=#990000strongfont size=3 【%=rs1.getString(CategoryName)%】/strong/fontbrbr % sql2 = SELECT NewsID,Title FROM news WHERE CategoryID = +rs1.getString(CategoryID)+ ORDER BY AddDate DESC; rs2 = smt2.executeQuery(sql2); int j=1; while(rs2.next()) { if(j5){continue;} %img src=images/icon.gif width=8 height=6a href=ViewNews.jsp?id=%=rs2.getInt(NewsID)% target=_blankfont size=3 %=rs2.getString(Title)%/abr % j++; }%div align=righta href=ListNews.jsp?categoryid=%=rs1.getString(CategoryID)%categoryname=%=rs1.getString(CategoryName)%更多…/a/divbr % } % /tbody /table /div /td td width=187 valign=top background=images/right.giftable width=100% border=0 cellspacing=0 cellpadding=0 tr td height=32 background=images/left_banne
文档评论(0)