📄 _index__jsp.java
字号:
/*
* JSP generated by Resin-3.0.4 (built Thu, 06 Nov 2003 04:19:27 PST)
*/
package _webback._xinwen;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.util.*;
import hymn.web.*;
public class _index__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, request, response, "../error.jsp", true, 8192, true);
javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
javax.servlet.http.HttpSession session = pageContext.getSession();
javax.servlet.ServletContext application = pageContext.getServletContext();
response.setContentType("text/html; charset=GBK");
request.setCharacterEncoding("GBK");
try {
out.write(_jsp_string0, 0, _jsp_string0.length);
String str=null;
str=request.getParameter("typeid");
Admin.chkLogin(session,str);
News news = new News();
Vector newsList = new Vector();
newsList = news.loadAll(str);
//\u5206\u9875\u5f00\u59cb
int pagenum;//\u663e\u793a\u7684\u9875\u6570
int pagesize;//\u4e00\u9875\u663e\u793a\u7684\u884c\u6570
int pagecoun;//\u603b\u9875\u6570
int rowcoun;//\u603b\u7684\u8bb0\u5f55\u6570
String strPage = request.getParameter("pagenum");
if(strPage==null){//\u8868\u660e\u5728QueryString\u4e2d\u6ca1\u6709page\u8fd9\u4e00\u4e2a\u53c2\u6570\uff0c\u6b64\u65f6\u663e\u793a\u7b2c\u4e00\u9875\u6570\u636e
pagenum = 0;
}
else{//\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6574\u578b
pagenum = Integer.parseInt(strPage);
if(pagenum<1) pagenum = 0;
}
pagesize=15;
rowcoun=newsList.size();
if (rowcoun==0)
{
String s="\u5f53\u524d\u680f\u76ee\u6ca1\u6709\u4fe1\u606f <a href='insert.jsp?typeid="+str+"' target='_self'>\u6dfb\u52a0\u6b64\u680f\u76ee\u4fe1\u606f</a>";
throw new Exception(s);
}
News newsall= (News)newsList.elementAt(0);
pagecoun=(rowcoun+pagesize-1) / pagesize;
int stopage=pagenum+15;//\u672c\u9875\u7684\u6700\u540e\u4e00\u6761\u8bb0\u5f55
if(stopage>rowcoun)stopage=rowcoun;
out.write(_jsp_string1, 0, _jsp_string1.length);
out.print((news.getdescription(str)));
out.write(_jsp_string2, 0, _jsp_string2.length);
for(int i=pagenum;i<stopage;i++){
newsall=(News)newsList.elementAt(i);
out.write(_jsp_string3, 0, _jsp_string3.length);
out.print((newsall.getnews_id()));
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print((newsall.getnews_title()));
out.write(_jsp_string5, 0, _jsp_string5.length);
out.print((newsall.getnews_pdate()));
out.write(_jsp_string6, 0, _jsp_string6.length);
out.print((newsall.getnews_hit()));
out.write(_jsp_string7, 0, _jsp_string7.length);
out.print((newsall.getnews_id()));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((str));
out.write(_jsp_string9, 0, _jsp_string9.length);
out.print((pagenum));
out.write(_jsp_string10, 0, _jsp_string10.length);
out.print((newsall.getnews_id()));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((str));
out.write(_jsp_string9, 0, _jsp_string9.length);
out.print((pagenum));
out.write(_jsp_string11, 0, _jsp_string11.length);
}
out.write(_jsp_string12, 0, _jsp_string12.length);
out.print((pagecoun));
out.write(_jsp_string13, 0, _jsp_string13.length);
if(pagenum!=0){out.println("<a href='index.jsp?pagenum="+(pagenum-15)+"&typeid="+str+"'>\u4e0a\u4e00\u9875</a>");}
for(int j=0;j<pagecoun;j++){
if(j*15==pagenum){
out.println("["+(j+1)+"]");
}
else{
out.println("<a href='index.jsp?pagenum="+j*15+"&typeid="+str+"'>"+(j+1)+"</a>");
}
}
if(pagenum<15*(pagecoun-1)){out.println("<a href='index.jsp?pagenum="+(pagenum+15)+"&typeid="+str+"'>\u4e0b\u4e00\u9875</a> ");}
out.write(_jsp_string14, 0, _jsp_string14.length);
out.print((str));
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 com.caucho.java.LineMap _caucho_line_map;
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.util.CauchoSystem.getVersionId() != -1693742288)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.make.Dependency depend;
depend = (com.caucho.make.Dependency) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public com.caucho.java.LineMap _caucho_getLineMap()
{
return _caucho_line_map;
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.java.LineMap lineMap,
com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.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);
_caucho_line_map = new com.caucho.java.LineMap("_index__jsp.java", "foo");
_caucho_line_map.add("/webback/xinwen/index.jsp", 4, 30);
_caucho_line_map.add(56, 96);
_caucho_line_map.add(71, 98);
_caucho_line_map.add(75, 104);
_caucho_line_map.add(75, 106);
_caucho_line_map.add(79, 110);
_caucho_line_map.add(79, 112);
_caucho_line_map.add(79, 114);
_caucho_line_map.add(79, 116);
_caucho_line_map.add(79, 118);
_caucho_line_map.add(79, 120);
_caucho_line_map.add(79, 122);
_caucho_line_map.add(83, 126);
_caucho_line_map.add(84, 128);
_caucho_line_map.add(99, 150);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("webback/xinwen/index.jsp"), "AgQ46GTlpPwh/epcvt9PSg==", false);
_caucho_depends.add(depend);
}
private final static char []_jsp_string6;
private final static char []_jsp_string11;
private final static char []_jsp_string15;
private final static char []_jsp_string0;
private final static char []_jsp_string3;
private final static char []_jsp_string1;
private final static char []_jsp_string5;
private final static char []_jsp_string4;
private final static char []_jsp_string10;
private final static char []_jsp_string12;
private final static char []_jsp_string14;
private final static char []_jsp_string8;
private final static char []_jsp_string9;
private final static char []_jsp_string13;
private final static char []_jsp_string2;
private final static char []_jsp_string7;
static {
_jsp_string6 = "</font></td>\r\n <td width=\"22%\">\r\n<p align=\"center\"><font color=#808080>[".toCharArray();
_jsp_string11 = "\" onclick=\"return confirm('\u60a8\u786e\u5b9a\u8981\u5220\u9664\u6b64\u6761\u6570\u636e\u5417\uff1f');\">\u5220\u9664</a></td>\r\n </tr>\r\n ".toCharArray();
_jsp_string15 = "' target='_self'>\u6dfb\u52a0\u6b64\u680f\u76ee\u4fe1\u606f</a></font>\r\n \r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n \r\n</table></td>\r\n </tr>\r\n </table>\r\n </center>\r\n</body>\r\n</html>\r\n\r\n".toCharArray();
_jsp_string0 = "\r\n\r\n\r\n".toCharArray();
_jsp_string3 = "\r\n <tr onmouseover=\"this.bgColor='#deeeff';\" onmouseout=\"this.bgColor='#f2f8ff';\">\r\n <td width=\"60%\"><a href=javascript:openwin('news.jsp?news_id=".toCharArray();
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n<title>hymn</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../images/style.css\">\r\n</head>\r\n<script language=javascript>\r\n function openwin(url){\r\n window.open(url,\"\",\"toolbar=0,location=0,status=0,menubar=0,resizable=0,scrollbars=1,top=100,left=100\"); \r\n }\r\n </script>\r\n<body>\r\n<br>\r\n<center>\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"100%\" bgcolor=\"#f2f8ff\">\r\n <tr>\r\n <td width=\"15\" class=\"td4\">\r\n \r\n <th width=\"525\" class=\"td5\">\r\n <font color=\"#0099FF\"><B>".toCharArray();
_jsp_string5 = "</a></td>\r\n <td width=\"18%\">\r\n<p align=\"center\"><font color=#808080>".toCharArray();
_jsp_string4 = "')>".toCharArray();
_jsp_string10 = "\">\u7f16\u8f91</a> <a href=\"delnews.jsp?news_id=".toCharArray();
_jsp_string12 = "\r\n <tr>\r\n <td colspan=\"3\"><p align=\"right\">\u5171 ".toCharArray();
_jsp_string14 = "</td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">\r\n \r\n <font color=\"#0099FF\"> <a href='insert.jsp?typeid=".toCharArray();
_jsp_string8 = "&typeid=".toCharArray();
_jsp_string9 = "&pagenum=".toCharArray();
_jsp_string13 = " \u9875\r\n ".toCharArray();
_jsp_string2 = "</B></font></th>\r\n <td width=\"20\" class=\"td6\">\r\n </td>\r\n </tr>\r\n <tr>\r\n <td width=\"100%\" colspan=\"3\" class=\"td7\" valign=\"top\" align=\"center\">\r\n <table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"98%\" bordercolor=\"#DEEEFF\">\r\n <tr>\r\n <th width=\"60%\"> \r\n <p align=\"center\">\u6807\u9898</th>\r\n <th width=\"18%\">\r\n<p align=\"center\">\u65e5\u671f</th>\r\n <th width=\"22%\"> \r\n <p align=\"center\">\u6d4f\u89c8\u6b21\u6570</th>\r\n </tr>\r\n ".toCharArray();
_jsp_string7 = "]</font> <a href=\"editnews.jsp?news_id=".toCharArray();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -