📄 pic_news.jsp
字号:
<%News pcinews = news.loadPicNews();
newsList = news.loadNewNews();
News hot=new News();
Vector hotnews = new Vector();
hotnews = hot.loadHotNews();
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<btody>
<tr>
<td width="15" class="td4">
<img border="0" src="img/null.gif"></td>
<td width="525" class="td5" align="center">
<img border="0" src="img/null.gif"><b>热点推荐</b></td>
<td width="20" class="td6">
<img border="0" src="img/jiao3.gif"></td>
</tr>
</tbody>
<tbody>
<tr>
<td width="548" colspan="3" class="td7">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr>
<td width="200" align="center"><%if(pcinews.getimgsrc()!=null){%><a href='news.jsp?news_id=<%=pcinews.getnews_id()%>'><img border="0" src='<%=pcinews.getimgsrc()%>'><br><%=pcinews.getnews_title()%></a><%}%></td>
<td width="350"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<%if(hotnews.size()>0){
for(int ii=0;ii<hotnews.size();ii++){
News hot_news = (News)hotnews.elementAt(ii);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='260'><a href='cata1.jsp?cata0_id="+hot_news.getcata0_id()+"&cata0_name="+hot_news.getcata0_name()+"'>["+hot_news.getcata0_name()+"]</a> <a href='news.jsp?news_id="+hot_news.getnews_id()+"'>"+hot_news.getnews_title()+"</a></td>");
out.println("<td width='75' valign='bottom'><font color=#808080>["+hot_news.getdat().substring(0,10)+"]</font></td>\n</tr>");
}}%>
</table></td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td width="15">
<img border="0" src="img/jao5.gif"></td>
<td width="525" class="td8">
<img border="0" src="img/null.gif"></td>
<td width="20" class="td9">
<img border="0" src="img/null.gif"></td>
</tr>
</tbody>
</table>
<img src="img/null.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tbody>
<tr>
<td width="15" class="td4">
<img border="0" src="img/null.gif"></td>
<td width="525" class="td5" align="center">
<img border="0" src="img/null.gif"><b>最新更新</b></td>
<td width="20" class="td6">
<img border="0" src="img/jiao3.gif"></td>
</tr>
</tbody>
<tbody>
<tr>
<td width="548" colspan="3" class="td7" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="50%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<%if(newsList.size()>0){
for(int i=0;i<10;i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='259'><a href='cata1.jsp?cata0_id="+newsall.getcata0_id()+"&cata0_name="+newsall.getcata0_name()+"'>["+newsall.getcata0_name()+"]</a> <a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
//out.println("<td width='50' valign='bottom'><font color=#808080>["+newsall.getdat().substring(5,10)+"]</font></td>\n</tr>");
}}%>
</table>
</td>
<td width="50%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<%if(newsList.size()>10){
for(int i=10;i<newsList.size();i++){
News newsall= (News)newsList.elementAt(i);
out.println("<tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\n<td width='15' valign='top'><img src='img/bullet.gif'></td>");
out.println("<td width='259'><a href='cata1.jsp?cata0_id="+newsall.getcata0_id()+"&cata0_name="+newsall.getcata0_name()+"'>["+newsall.getcata0_name()+"]</a> <a href='news.jsp?news_id="+newsall.getnews_id()+"'>"+newsall.getnews_title()+"</a></td>\n</tr>");
//out.println("<td width='50' align='right' valign='bottom'><font color=#808080>["+newsall.getdat().substring(5,10)+"]</font></td>\n</tr>");
}}%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td width="15">
<img border="0" src="img/jao5.gif"></td>
<td width="525" class="td8">
<img border="0" src="img/null.gif"></td>
<td width="20" class="td9">
<img border="0" src="img/null.gif"></td>
</tr>
</tbody>
</table>
<img src="img/null.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tbody>
<tr>
<td width="15" class="td4">
<img border="0" src="img/null.gif"></td>
<td width="525" class="td5" align="center">
<img border="0" src="img/null.gif"><b>>>分类导航</b></td>
<td width="20" class="td6">
<img border="0" src="img/jiao3.gif"></td>
</tr>
</tbody>
<tbody>
<tr>
<td width="100%" colspan="3" class="td7" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<%if(cata0List.size()>0){
for(int i=0;i<cata0List.size();i++){
Cata cata0all= (Cata)cata0List.elementAt(i);
out.println("<tr>\n<td width='21'><img border='0' src='img/bullet1.gif'></td>");
out.println("<td width='518'><b>"+cata0all.getcata_name()+"</b></td>\n</tr>");
out.println("<tr>\n<td width='21' bgcolor='#F8FbFF'><img src='img/null.gif'></td>");
out.println("<td width='518' bgcolor='#F8FbFF'>");
Cata cata1 = new Cata();
Vector cata1List = cata1.Cata1All(cata0all.getcata_id());
for(int j=0;j<cata1List.size();j++){
Cata cata1all= (Cata)cata1List.elementAt(j);
if(j>0 && j%6==0){
out.println("<a href='cata1.jsp?cata0_id="+cata0all.getcata_id()+"&cata0_name="+cata0all.getcata_name()+"'>"+cata1all.getcata_name()+"</a><font color=#808080>["+cata1all.getcata_coun()+"]</font><br>");
}
else{
out.println("<a href='cata1.jsp?cata0_id="+cata0all.getcata_id()+"&cata0_name="+cata0all.getcata_name()+"'>"+cata1all.getcata_name()+"</a><font color=#808080>["+cata1all.getcata_coun()+"]</font> ");
}
}
out.println("</td>\n</tr>");
}}%>
</table>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td width="15">
<img border="0" src="img/jao5.gif"></td>
<td width="525" class="td8">
<img border="0" src="img/null.gif"></td>
<td width="20" class="td9">
<img border="0" src="img/null.gif"></td>
</tr>
</tbody>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -