📄 news.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page language="java" import="java.util.*,popten.web.*,popten.util.*" %>
<%@ page errorPage="error.jsp" %>
<%News news1=new News();
News listnews=news1.loadNews(request);%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><%=listnews.getnews_title()%></title>
<meta name="description" content="POPTEN-博腾十大排行榜,为你提供最新、最全的十大排行榜,十大首富,十大票房,十大美女,十大丑女,十大搜索,十大中文网站,top,top10">
<link rel="stylesheet" type="text/css" href="style/style.css">
</head>
<body>
<%@ include file="head.jsp"%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bgcolor="#ffffff" width="760" >
<tbody>
<tr>
<td width="200" valign="top"><%@ include file="left.jsp"%><table width="185" cellspacing="0" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
<tbody>
<tr>
<td width="100%" colspan="2" class="td3">
<img border="0" src="img/jiao2.gif" width="20" height="20"><b>
本类TOP10</b></td>
</tr>
<tr>
<td width="100%" colspan="2" class="td1"><center><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<%
TopNews.addNews(listnews.getnews_id(),listnews.getnews_title());
newsList=news.loadToptenCata2News(listnews.getcata2_id());
for(int i=0;i<newsList.size();i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#FFF2EC';\" onmouseout=\"this.bgColor='#FFFAF8';\">\n<td width='12' height='15'><img src='img/bullet.gif'></td>");
out.println("<td width='100%'><a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
}
%>
</table></td>
</tr>
<tr>
<td width="170" class="td2" height="15">
<img border="0" src="img/null.gif" width="2" height="2"></td>
<td width="15" align="right" height="15" bgcolor="#F2F8FF">
<img border="0" src="img/jao4.gif" width="15" height="15"></td>
</tr>
</tbody>
</table></td>
<td width="560" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff" height="100%">
<tr>
<td width="15" class="td4">
<img border="0" src="img/null.gif" width="2" height="2"></td>
<td width="525" class="td5">
<img border="0" src="img/null.gif" width="2" height="2">当前位置:<a href="index.jsp">网站首页</a> >> <a href="cata1.jsp?cata0_id=<%=listnews.getcata0_id()%>&cata0_name=<%=listnews.getcata0_name()%>"><%=listnews.getcata0_name()%></a> >> <a href="cata1.jsp?cata0_id=<%=listnews.getcata0_id()%>&cata0_name=<%=listnews.getcata0_name()%>"><%=listnews.getcata1_name()%></a> >> <a href="cata2.jsp?cata2_id=<%=listnews.getcata2_id()%>&cata2_name=<%=listnews.getcata2_name()%>&act=1"><%=listnews.getcata2_name()%></a></td>
<td width="20" class="td6">
<img border="0" src="img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" valign="top" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="100%" align="center"><font style="font-size: 11pt"><%=listnews.getnews_title()%></font></td>
</tr>
<tr>
<td width="100%" align="center">出处:<font color=#808080><%=listnews.getsour()%></font> 日期:<font color=#808080><%=listnews.getdat()%></font> 阅读数:<font color=#808080><%=listnews.getcoun()%></font></td>
</tr>
<tr>
<td width="100%"><jsp:include page="ads/ads.jsp" /><p><%=listnews.getconten()%></p><br><center><form method="POST" action="commenok.jsp">
<p>如果你对本排行有不同看法请在此发表高见!<br><input type="hidden" name="news_id" value="<%=listnews.getnews_id()%>"><input type="hidden" name="news_title" value="<%=listnews.getnews_title()%>">
<textarea rows="5" name="commen_content" cols="71"></textarea></p>
<p><input border="0" src="img/button-ok.gif" name="Submit" type="image" class="button" width="64" height="21"></p>
</form></center>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
<%@ include file="foot.htm"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -