📄 _newsadmin__jsp.java
字号:
}
//\u4f7f\u7528for\u5faa\u73af\u4f9d\u6b21\u8bfb\u53d6\u5e76\u663e\u793a\u4fe1\u606f\uff0c\u6807\u9898\u957f\u5ea6\u4e0d\u8d85\u8fc726\u4e2a\u5b57\u6bcd;
for(j=iNext;j<iNext+iPageStop;j++)
{
o_New =(News)v_News.elementAt(j);
NewsId = o_New.getNewsId();
cateid = o_New.getCateId();
strTitle = o_New.getTitle();
if(strTitle.length()>26)
strTitle = strTitle.substring(0,25) + "......";
iHits = o_New.getHits();
sPostTime = o_New.getPostTime();
iattpic = o_New.getAttpic();
sPoster = o_New.getPoster();
if (!sPoster.equals("--")){
User o_User = new User();
o_User.setUserName(sPoster);
if(o_User.getUser())
sPoster = o_User.getEmpName();
}
if (j%2==0)
strbg = strBG1;
else
strbg = strBG2;
//\u4e0b\u9762\u7684HTML\u4ee3\u7801\u5c06\u8bbe\u7f6e\uff08\u9644\u56fe\uff09\u6807\u8bb0\u3001\u94fe\u63a5\u548c\u9009\u62e9\u590d\u9009\u6846
out.write(_jsp_string7, 0, _jsp_string7.length);
out.print((strbg));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((NewsId));
out.write(_jsp_string9, 0, _jsp_string9.length);
out.print((strTitle));
out.write(_jsp_string10, 0, _jsp_string10.length);
if (iattpic==1){
out.write(_jsp_string11, 0, _jsp_string11.length);
}
out.write(_jsp_string12, 0, _jsp_string12.length);
if(isNew(sPostTime)){
out.write(_jsp_string13, 0, _jsp_string13.length);
}
out.write(_jsp_string14, 0, _jsp_string14.length);
out.print((strbg));
out.write(_jsp_string15, 0, _jsp_string15.length);
out.print((sPostTime));
out.write(_jsp_string16, 0, _jsp_string16.length);
out.print((strbg));
out.write(_jsp_string15, 0, _jsp_string15.length);
out.print((sPoster));
out.write(_jsp_string17, 0, _jsp_string17.length);
out.print((strbg));
out.write(_jsp_string18, 0, _jsp_string18.length);
out.print((NewsId));
out.write(_jsp_string19, 0, _jsp_string19.length);
out.print((strbg));
out.write(_jsp_string20, 0, _jsp_string20.length);
out.print((NewsId));
out.write(_jsp_string21, 0, _jsp_string21.length);
out.print((strbg));
out.write(_jsp_string15, 0, _jsp_string15.length);
out.print((iHits));
out.write(_jsp_string22, 0, _jsp_string22.length);
}//end for
out.write(_jsp_string23, 0, _jsp_string23.length);
//\u663e\u793a\u9875\u7801\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='NewsAdmin.jsp?page="+k+"'>"+k+"</a></b>]");
else
out.println("[<b>"+"<a href='NewsAdmin.jsp?cateid="+iCate+"&page="+k+"'>"+k+"</a></b>]");
}
}
//in the middle page and iTotal%MaxPerPage==0
// System.out.println("----currentpage>1 and condition 1-- iNext="+iNext +", and iFinish="+iFinish);
if(iTotal==0)
{
out.write(_jsp_string24, 0, _jsp_string24.length);
}
out.write(_jsp_string25, 0, _jsp_string25.length);
out.print((strCateId));
out.write(_jsp_string26, 0, _jsp_string26.length);
}
catch(Exception e)
{ System.out.println(e.toString());}
out.write(_jsp_string27, 0, _jsp_string27.length);
}
else
out.println("\u4f60\u6ca1\u6709\u6dfb\u52a0\u7684\u6743\u9650");
} 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/admin/NewsAdmin.jsp"), 5743042492044449407L, 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_string27;
private final static char []_jsp_string11;
private final static char []_jsp_string12;
private final static char []_jsp_string20;
private final static char []_jsp_string0;
private final static char []_jsp_string4;
private final static char []_jsp_string5;
private final static char []_jsp_string13;
private final static char []_jsp_string6;
private final static char []_jsp_string25;
private final static char []_jsp_string2;
private final static char []_jsp_string15;
private final static char []_jsp_string3;
private final static char []_jsp_string16;
private final static char []_jsp_string8;
private final static char []_jsp_string23;
private final static char []_jsp_string14;
private final static char []_jsp_string24;
private final static char []_jsp_string7;
private final static char []_jsp_string17;
private final static char []_jsp_string1;
private final static char []_jsp_string18;
private final static char []_jsp_string10;
private final static char []_jsp_string21;
private final static char []_jsp_string26;
private final static char []_jsp_string9;
private final static char []_jsp_string22;
private final static char []_jsp_string19;
static {
_jsp_string27 = "\r\n<input type=hidden name=\"check1\">\r\n</form>\r\n</BODY>\r\n</HTML>\r\n".toCharArray();
_jsp_string11 = "(\u9644\u56fe)".toCharArray();
_jsp_string12 = "\r\n ".toCharArray();
_jsp_string20 = "\"><input type=\"checkbox\" name=\"check1\" id=\"".toCharArray();
_jsp_string0 = " \r\n\r\n\r\n".toCharArray();
_jsp_string4 = "\"><font style='TEXT-DECORATION: underline'>".toCharArray();
_jsp_string5 = "</a></font> |\r\n ".toCharArray();
_jsp_string13 = "<img src=\"../images/news.gif\" border=\"0\">".toCharArray();
_jsp_string6 = "\r\n</td></tr></table>\r\n<center>\r\n<table border=\"1\" cellspacing=\"0\" width=\"100%\" bgcolor=\"#F0F8FF\" bordercolorlight=\"#4DA6FF\" bordercolordark=\"#ECF5FF\">\r\n <tr>\r\n <td width=\"40%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u6807 \u9898</strong></td>\r\n <td width=\"26%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u63d0\u4ea4\u65f6\u95f4</strong></td>\r\n <td width=\"16%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u63d0\u4ea4\u4eba</strong></td>\r\n <td width=\"6%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u4fee\u6539</strong></td>\r\n <td width=\"6%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u9009\u62e9</td>\r\n <td width=\"6%\" align=\"center\" bgcolor=\"#FEEC85\"><strong>\u70b9\u51fb</strong></td>\r\n </tr>\r\n".toCharArray();
_jsp_string25 = "\r\n <p align=\"center\">\r\n <input type=\"button\" value=\"\u6dfb\u52a0\u65b0\u95fb\" onclick=\"news90('news_add.jsp')\">\r\n <input type=\"button\" value=\"\u5168 \u9009\" onclick=\"sltAll()\">\r\n <input type=\"button\" value=\"\u6e05 \u7a7a\" onclick=\"sltNull()\">\r\n <input type=\"submit\" value=\"\u5220 \u9664\" name=\"tijiao\" onclick=\"SelectChk(".toCharArray();
_jsp_string2 = "\r\n\r\n\r\n<html>\r\n<head>\r\n<title>\u4fe1\u606f\u7ba1\u7406</title>\r\n<link rel=\"stylesheet\" href=\"../style.css\">\r\n<script language=\"javascript\">\r\n\r\nfunction news90(url) {\r\n var wth=window.screen.width; \r\n var hth=window.screen.heigth;\r\n var lefth,topth;\r\n if(wth==1024)\r\n {\r\n hth=500;\r\n lefth =147;\r\n wth=730;\r\n topth=44;\r\n }\r\n else if(wth==800)\r\n {\r\n hth=500;\r\n lefth =35;\r\n wth=730;\r\n topth=10;\r\n }\r\n else\r\n {\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\r\nfunction SelectChk(scateid)\r\n{\r\n var s=false; //\u662f\u5426\u6709\u9009\u4e2d\u8bb0\u5f55\u7684\u6807\u8bb0\r\n var check1id,n=0;\r\n var strid,strurl;\r\n //\u8fd4\u56de\u5f53\u524d\u9875\u9762\u7684check1\u590d\u9009\u6846\u6570\u91cf\r\n var nn = self.document.all.item(\"check1\")\r\n //\u4f9d\u6b21\u5bf9\u6bcf\u4e2a\u590d\u9009\u6846\u8fdb\u884c\u5224\u65ad\r\n for (j=0;j<nn.length;j++)\r\n {\r\n //\u5224\u65ad\u5f53\u524d\u590d\u9009\u6846\u662f\u5426\u88ab\u9009\u4e2d\r\n if (self.document.all.item(\"check1\",j).checked)\r\n {\r\n n = n + 1; // \u8ba1\u6570\r\n s=true; // \u8bbe\u7f6e\u6807\u8bb0\r\n //\u590d\u9009\u6846\u7684id\u5c31\u662f\u4fe1\u606f\u7f16\u53f7\r\n check1id = self.document.all.item(\"check1\",j).id+\"\";\r\n //\u8bbe\u7f6e\u590d\u9009\u6846\u7f16\u53f7\u5217\u8868\r\n if(n==1)\r\n strid = check1id;\r\n else\r\n strid = strid + \",\" + check1id;\r\n }\r\n }\r\n if(scateid==null)\r\n scateid=\"-1\";\r\n // \u8bbe\u7f6e\u5220\u9664\u6570\u636e\u8981\u6267\u884c\u7684url\r\n strurl = \"news_delt.jsp?strid=\" + strid;\r\n // \u5982\u679c\u6ca1\u6709\u9009\u62e9\u8bb0\u5f55\uff0c\u5219\u63d0\u793a\u9009\u62e9\r\n if(!s) {\r\n alert(\"\u8bf7\u9009\u62e9\u8981\u5220\u9664\u7684\u4fe1\u606f!\");\r\n return false;\r\n }\r\n //\u786e\u5b9a\u662f\u5426\u5220\u9664\r\n if ( confirm(\"\u4f60\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e9b\u4fe1\u606f\u5417\uff1f\")) {\r\n form1.action = strurl;\r\n form1.submit();\r\n }\r\n}\r\nfunction sltAll()\r\n{\r\n var nn = self.document.all.item(\"check1\");\r\n for(j=0;j<nn.length;j++)\r\n {\r\n self.document.all.item(\"check1\",j).checked = true;\r\n }\r\n}\r\nfunction sltNull()\r\n{\r\n var nn = self.document.all.item(\"check1\");\r\n for(j=0;j<nn.length;j++)\r\n {\r\n self.document.all.item(\"check1\",j).checked = false;\r\n }\r\n}\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<table align=center border='0' width='100%'>\r\n<tr><td align='center'>\r\n".toCharArray();
_jsp_string15 = "\">".toCharArray();
_jsp_string3 = "\r\n <a href=\"NewsAdmin.jsp?cateid=".toCharArray();
_jsp_string16 = "</td>\r\n <td align=\"center\" bgcolor=\"".toCharArray();
_jsp_string8 = "\"><a href=\"../ShowNews.jsp?id=".toCharArray();
_jsp_string23 = "\r\n</table></center>\r\n ".toCharArray();
_jsp_string14 = "\r\n </td>\r\n <td align=\"center\" bgcolor=\"".toCharArray();
_jsp_string24 = "\r\n <p align=center style='COLOR:Red ;FONT-SIZE: 9pt'> \u8fd8 \u6ca1 \u6709 \u4efb \u4f55 \u4fe1 \u606f</p>\r\n ".toCharArray();
_jsp_string7 = "\r\n <tr>\r\n <td bgcolor=\"".toCharArray();
_jsp_string17 = "</td>\r\n <td align=\"center\" bgcolor=\"".toCharArray();
_jsp_string1 = "\r\n".toCharArray();
_jsp_string18 = "\"><a href=\"news_edit.jsp?id=".toCharArray();
_jsp_string10 = "</a>".toCharArray();
_jsp_string21 = "\"></td>\r\n <td align=\"center\" bgcolor=\"".toCharArray();
_jsp_string26 = ")\"></p>\r\n ".toCharArray();
_jsp_string9 = "\" onClick=\"return news90(this.href)\">".toCharArray();
_jsp_string22 = "</td>\r\n </tr>\r\n ".toCharArray();
_jsp_string19 = "\" onclick=\"return news90(this.href)\">\u4fee\u6539</a></td>\r\n <td align=\"center\" bgcolor=\"".toCharArray();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -