📄 hyxw_005f3_jsp.java
字号:
out.print(ni.getNewsdate().substring(8,10));
out.write("]</td>\r\n </tr>\r\n ");
lastnewsi++;}
out.write("\r\n </tbody>\r\n </table>\r\n <table cellspacing=0 cellpadding=0 width=\"200\" align=center border=0>\r\n <tbody>\r\n <tr> \r\n <td> </td>\r\n </tr>\r\n <tr> \r\n <td bgcolor=#440000 height=1></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <table cellspacing=0 cellpadding=0 width=\"190\" align=center border=0 height=\"20\">\r\n <tbody>\r\n <tr> \r\n <td>◆ <strong>热点新闻<font color=#ff0000> TOP10</font>: </strong></td>\r\n </tr>\r\n <tr> \r\n <td bgcolor=#440000 height=1></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <table cellspacing=0 cellpadding=0 width=\"200\" align=center border=0 height=\"25\">\r\n <tbody>\r\n ");
int topnewsi=0;
while(topnewsi<vcttopnews.size()){
NewsInfo ni=(NewsInfo)vcttopnews.elementAt(topnewsi);
out.write("\r\n <tr> \r\n <td valign=top width=\"18\" height=25> <div align=right><strong>.</strong></div></td>\r\n <td width=\"120\" height=\"25\" align=\"left\" valign=middle><a target=\"_blank\" href=\"newsdetailservlet?id=");
out.print(ni.getId());
out.write('"');
out.write('>');
out.print((ni.getTitle().length()>10?ni.getTitle().substring(0,8)+"...":ni.getTitle()));
out.write("</a></td>\r\n <td width=\"62\" height=\"25\" align=\"left\" valign=middle><font size=\"-1\">人气:");
out.print(ni.getSeecount());
out.write(" \r\n </font></td>\r\n </tr>\r\n ");
topnewsi++;}
out.write("\r\n </tbody>\r\n </table>\r\n <p> </p>\r\n <p> </p>\r\n <p> </p>\r\n <br> </td>\r\n <td width=1 bgcolor=#440000 height=271 rowspan=0></td>\r\n <td width=\"600\" valign=top><img \r\n height=27 src=\"image/vb_bullet.gif\" width=30> 您的位置:<a href=\"index.jsp\">首页</a> \r\n -> ");
out.print(typevia);
out.write("<br>\r\n <table width=\"600\" height=\"25\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#FFFFFF\">\r\n ");
int newsi=0;
while(newsi<vct.size()){
NewsInfo ni=new NewsInfo(); ni=(NewsInfo)vct.elementAt(newsi);
out.write("\r\n <tr> \r\n <td height=\"21\" width=\"46\">[");
out.print(ni.getComefrom());
out.write("]</td>\r\n <td width=\"281\"><font\r\n color=#440000>-><a href=\"newsdetailservlet?id=");
out.print(ni.getId());
out.write("\" target=\"_blank\">");
out.print(ni.getTitle());
out.write("</a></font></td>\r\n <td height=\"21\" width=\"112\"><span class=style17><font color=#917402>提交人:");
out.print(ni.getAuthor());
out.write(" \r\n </font></span></td>\r\n <td height=\"21\" width=\"68\"><font color=#917402>");
out.print(ni.getNewsdate() );
out.write("</font></td>\r\n <td height=\"21\" width=\"61\"><font color=#917402><span class=style9>人气:");
out.print(ni.getSeecount());
out.write("</span></font></td>\r\n </tr>\r\n ");
newsi++;}
out.write("\r\n </table>\r\n <br>\r\n <form action=\"hyxwservlet?type=");
out.print(type);
out.write("\" name=\"myform\" method=\"Post\">\r\n <table width=\"600\" border=\"0\">\r\n <tr>\r\n <td> \r\n ");
if (pageno==1){
out.write("\r\n <font color=\"#999999\">首页 上一页</font> \r\n ");
}else{
out.write("\r\n <a href=\"hyxwservlet?type=");
out.print(type);
out.write("&pageno=1\"> 首页</a> <a href=\"hyxwservlet?type=");
out.print(type);
out.write("&pageno=");
out.print(pageno-1);
out.write("\"> \r\n 上一页</a> \r\n ");
}
if(pageno==(count%pagesize==0?count/pagesize:count/pagesize+1)){
out.write("\r\n <font color=\"#999999\">下一页 末页</font> \r\n ");
}else{
out.write("\r\n <a href=\"hyxwservlet?type=");
out.print(type);
out.write("&pageno=");
out.print(pageno+1);
out.write("\"> 下一页</a> \r\n <a href=\"hyxwservlet?type=");
out.print(type);
out.write("&pageno=");
out.print((count%pagesize==0?count/pagesize:count/pagesize+1));
out.write("\"> \r\n 末页</a> \r\n ");
}
out.write("\r\n 当前页 \r\n <input name=\"pageno\" type=\"text\" size=\"4\" value=\"");
out.print(pageno);
out.write("\">\r\n <input name=\"button\" type=\"button\" onclick=\"window.location='hyxwservlet?type=");
out.print(type);
out.write("&pageno='+myform.pageno.value\" value=\"go\"/>\r\n 页数 ");
out.print(pageno);
out.write('/');
out.print(count%pagesize==0?count/pagesize:count/pagesize+1);
out.write(" 每页:");
out.print(pagesize);
out.write(" 总数:");
out.print(count);
out.write("</td>\r\n </tr>\r\n </table>\r\n\t</form>\r\n\r\n <br>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n<div align=center>\r\n <table cellspacing=0 cellpadding=0 width=800 align=center border=0>\r\n <tbody>\r\n <tr>\r\n <td> <div align=center><img height=30 src=\"image/di.gif\"\r\n width=800></div></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n</div>\r\n</body>\r\n</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -