?? _newslist__jsp.java
字號:
iFinish = iTotal - iNext ;
// \u8ba1\u7b97\u7ed3\u675f\u4f4d\u7f6e
if(iFinish>MaxPerPage)
iPageStop = MaxPerPage;
else
iPageStop = iFinish;
}
// \u663e\u793a\u8bb0\u5f55\u5185\u5bb9
for(j=iNext;j<iNext+iPageStop;j++)
{
//\u4ece\u6570\u7ec4v_Info\u4e2d\u83b7\u53d6\u4e00\u6761\u4fe1\u606f\u7684\u6570\u636e
o_News =(News)v_News.elementAt(j);
newsid = o_News.getNewsId();
cateid = o_News.getCateId();
strTitle = o_News.getTitle();
// \u9898\u76ee\u7684\u957f\u5ea6\u53ea\u663e\u793a30
if(strTitle.length()>30)
strTitle = strTitle.substring(0,25) + "......";
iHits = o_News.getHits();
sPostTime = o_News.getPostTime();
iattpic = o_News.getAttpic();
sPoster = o_News.getPoster();
// \u6839\u636e\u7528\u6237\u540d\u5f97\u5230\u5458\u5de5\u59d3\u540d
if (!sPoster.equals("--")){
User o_User = new User();
o_User.setUserName(sPoster);
if(o_User.getUser())
sPoster = o_User.getEmpName();
}
out.write(_jsp_string3, 0, _jsp_string3.length);
out.print((newsid));
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print((strTitle));
out.write(_jsp_string5, 0, _jsp_string5.length);
// \u5224\u65ad\u662f\u5426\u6709\u56fe\u7247\u4fe1\u606f
if (iattpic==1){
out.write(_jsp_string6, 0, _jsp_string6.length);
}
out.write(_jsp_string7, 0, _jsp_string7.length);
// \u5224\u65ad\u5982\u679c\u4e3a3\u5929\u5185\u4fe1\u606f\uff0c\u663e\u793anew\u56fe\u7247\uff0c\u65b9\u6cd5\u5728admin/InfoComm.jsp\u4e2d
if(isNew(sPostTime)){
out.write(_jsp_string8, 0, _jsp_string8.length);
}
out.write(_jsp_string9, 0, _jsp_string9.length);
out.print((sPostTime));
out.write(_jsp_string10, 0, _jsp_string10.length);
out.print((sPoster));
out.write(_jsp_string11, 0, _jsp_string11.length);
out.print((iHits));
out.write(_jsp_string12, 0, _jsp_string12.length);
}//end for
out.write(_jsp_string13, 0, _jsp_string13.length);
// \u663e\u793a\u9875\u6570\u3001\u8bb0\u5f55\u4fe1\u606f
if(iMaxPage>1)
{
for(int k=1;k<iMaxPage+1;k++)
{
if(k==currentpage)
out.println("[<b>"+k+"</b>]");
else if(strCateId==null)
out.println("[<b>"+"<a href='NewsList.jsp?page="+k+"'>"+k+"</a></b>]");
else
out.println("[<b>"+"<a href='NewsList.jsp?cateid="+iCate+"&page="+k+"'>"+k+"</a></b>]");
}
}
//\u5982\u679ciTotal=0\uff0c\u5219\u8868\u793a\u6ca1\u6709\u4efb\u4f55\u4fe1\u606f\u3002
if(iTotal==0)
{
out.write(_jsp_string14, 0, _jsp_string14.length);
}
}
catch(Exception e)
{ System.out.println(e.toString());}
out.write(_jsp_string15, 0, _jsp_string15.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
com.caucho.jsp.QJspFactory.freePageContext(pageContext);
}
}
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public java.util.ArrayList _caucho_getDependList()
{
return _caucho_depends;
}
public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
{
super._caucho_addDepend(depend);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.server.util.CauchoSystem.getVersionId() != 5022137076587403036L)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Dependency depend;
depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
{
return _jsp_functionMap;
}
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
com.caucho.server.webapp.WebApp webApp
= (com.caucho.server.webapp.WebApp) config.getServletContext();
com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
com.caucho.loader.DynamicClassLoader loader;
loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
String resourcePath = loader.getResourcePathSpecificFirst();
mergePath.addClassPath(resourcePath);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("news/NewsList.jsp"), -3399395316109261950L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
depend = new com.caucho.vfs.Depend(appDir.lookup("news/admin/NewsComm.jsp"), 7147789067385854643L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
private final static char []_jsp_string1;
private final static char []_jsp_string3;
private final static char []_jsp_string6;
private final static char []_jsp_string7;
private final static char []_jsp_string0;
private final static char []_jsp_string14;
private final static char []_jsp_string15;
private final static char []_jsp_string5;
private final static char []_jsp_string9;
private final static char []_jsp_string8;
private final static char []_jsp_string13;
private final static char []_jsp_string4;
private final static char []_jsp_string12;
private final static char []_jsp_string11;
private final static char []_jsp_string10;
private final static char []_jsp_string2;
static {
_jsp_string1 = "\r\n\r\n\r\n<html>\r\n<head>\r\n<title>\u65b0\u95fb\u5217\u8868</title>\r\n<link rel=\"stylesheet\" href=\"style.css\">\r\n<script language=\"javascript\">\r\n// \u5728\u6307\u5b9a\u4f4d\u7f6e\u6253\u5f00\u6307\u5b9a\u5927\u5c0f\u7684\u7a97\u53e3\r\nfunction news90(url) {\r\n // \u5f97\u5230\u5c4f\u5e55\u7684\u957f\u5ea6\u3001\u5bbd\u5ea6\r\n var wth=window.screen.width; \r\n var hth=window.screen.heigth;\r\n var lefth,topth;\r\n // \u5982\u679c\u5206\u8fa8\u7387\u4e3a1024*768\uff0cx\u3001y\u5750\u6807\r\n if(wth==1024)\r\n {\r\n lefth =147;\r\n topth=134;\r\n }\r\n // \u5982\u679c\u5206\u8fa8\u7387\u4e3a800*600\r\n else if(wth==800)\r\n {\r\n lefth =35;\r\n topth=50;\r\n }\r\n // \u6307\u5b9a\u7a97\u53e3\u957f\u5ea6\u548c\u5bbd\u5ea6\r\n hth=500;\r\n wth=730;\r\n\r\n var oth=\"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=\"+lefth+\",top=\"+topth;\r\n oth = oth+\",width=\"+wth+\",height=\"+hth ;\r\n var news90=window.open(url,\"news90\",oth);\r\n news90.focus();\r\n return false;\r\n}\r\n</script>\r\n</head>\r\n\r\n<body link=\"#000080\" vlink=\"#080080\">\r\n<form id=\"form1\" name=\"form1\" method=\"POST\">\r\n".toCharArray();
_jsp_string3 = "\r\n <tr>\r\n <td><a href=\"ShowNews.jsp?id=".toCharArray();
_jsp_string6 = "(\u9644\u56fe)".toCharArray();
_jsp_string7 = "\r\n ".toCharArray();
_jsp_string0 = " \r\n\r\n\r\n".toCharArray();
_jsp_string14 = "\r\n <p align=center style='COLOR:Red ;FONT-SIZE: 9pt'> \u8fd8 \u6ca1 \u6709 \u4efb \u4f55 \u65b0 \u95fb</p>\r\n ".toCharArray();
_jsp_string15 = "\r\n</form>\r\n</BODY>\r\n</HTML>".toCharArray();
_jsp_string5 = "</a>\r\n ".toCharArray();
_jsp_string9 = "\r\n </td>\r\n <td align=\"center\">".toCharArray();
_jsp_string8 = "<img src=\"images/news.gif\" border=\"0\">".toCharArray();
_jsp_string13 = "\r\n</table></center>\r\n ".toCharArray();
_jsp_string4 = "\" onClick=\"return news90(this.href)\">".toCharArray();
_jsp_string12 = "</td>\r\n </tr>\r\n ".toCharArray();
_jsp_string11 = "</td>\r\n <td align=\"center\">".toCharArray();
_jsp_string10 = "</td>\r\n <td align=\"center\">".toCharArray();
_jsp_string2 = "\r\n<center>\r\n<table border=\"1\" cellspacing=\"0\" width=\"100%\" bordercolorlight=\"#4DA6FF\" bordercolordark=\"#ECF5FF\">\r\n <tr>\r\n <td width=\"40%\" align=\"center\" bgcolor=\"#F0F8FF\"><strong>\u6807 \u9898</strong></td>\r\n <td width=\"30%\" align=\"center\" bgcolor=\"#F0F8FF\"><strong>\u63d0\u4ea4\u65f6\u95f4</strong></td>\r\n <td width=\"20%\" align=\"center\" bgcolor=\"#F0F8FF\"><strong>\u63d0\u4ea4\u4eba</strong></td>\r\n <td width=\"10%\" align=\"center\" bgcolor=\"#F0F8FF\"><strong>\u70b9\u51fb</strong></td>\r\n </tr>\r\n".toCharArray();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -