⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _bbslist__jsp.java

📁 一套大型Office网络办公系统
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
/*
 * JSP generated by Resin 2.0.3 (built Wed Oct 17 10:11:08 PDT 2001)
 */

import java.io.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class _bbslist__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;

  public String getServletInfo() { return "database handler"; }
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, 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=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      test.bbs bbs;
      bbs = (test.bbs) pageContext.getAttribute("bbs");
      if (bbs == null) {
        bbs = new test.bbs();
        pageContext.setAttribute("bbs", bbs);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      test.bbsboard board;
      board = (test.bbsboard) pageContext.getAttribute("board");
      if (board == null) {
        board = new test.bbsboard();
        pageContext.setAttribute("board", board);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      test.bbscom bbscom;
      bbscom = (test.bbscom) pageContext.getAttribute("bbscom");
      if (bbscom == null) {
        bbscom = new test.bbscom();
        pageContext.setAttribute("bbscom", bbscom);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      int boardid,method;String tempSTR;boardid=0;method=0;String delon="false";byte[] tmpbyte;tempSTR=request.getParameter("boardid");boardid=java.lang.Integer.parseInt(tempSTR);tempSTR=request.getParameter("method");if (tempSTR==null){ method=0;}else{method=java.lang.Integer.parseInt(tempSTR);}//'method=0正常显示贴子//'method=1搜索=主题//'method=2搜索=发言人//'method=3搜索=时间//'method=4搜索=精华贴(所有版面)//'method=8版主管理(DEL)
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      int iPageSize;                  //                    '每页显示的记录数int iPageCount;                 //                   '页面总数int iPageCurrent=0;               //                 '显示的当前页面int iPageLast=0;                  //                    '上一页int iPageNext=0;                  //                    '下一页int iRecordsShown; int iRecordsCount; //记录总数int iRecordsStart; //起始记录int i;//                            '循环变量String par="";//                          '查询参数 java.sql.ResultSet rs;				   java.sql.ResultSet sqlRst;				int bbsid,parentid,child,bbshits,length;String username,useremail,userip,expression,usersign,bbstopic,bbscontent,bbshot;String boardname,boardmaster,masterword,masteremail;String dateandtime;//java.util.Date dateandtime= new java.util.Date();username="";boardname="";boardmaster="";masterword="";masteremail="";board.updateBoardHits(boardid,1);   //'版面点击数加1if (board.getBoardInfo(boardid)){  boardname=board.getBoardName();  boardmaster=board.getBoardMaster();  masterword=board.getBoardMasterword();  masteremail=board.getBoardMasteremail();}        //'找出本版块资料,版名,版主,版主的话iRecordsCount=0;iPageCount=0;iPageSize =10;			//   '每页显示10条记录,可更改部分.//'如果是首次显示,则当前页为1,否则根据请求的页数显示 tempSTR=request.getParameter("pages");if (tempSTR==null){ iPageCurrent=1;}else{ iPageCurrent=java.lang.Integer.parseInt(tempSTR);}par=request.getParameter("par");if (par==null) {par="";}tmpbyte=par.getBytes("ISO8859_1");par=new String(tmpbyte);iRecordsCount=bbs.getRecordsCount(method,boardid,par);iPageCount=0;if (iRecordsCount!=0) {   iPageCount=iRecordsCount/iPageSize;   if ((iRecordsCount%iPageSize)!=0){      iPageCount++;					   //页面总数;   }}bbscom.setPages(iPageCount,iPageCurrent);iPageLast=bbscom.getPagesLast();iPageNext=bbscom.getPagesNext();iPageCurrent=bbscom.getPagesCurrent();if (method==8) {  //  '管理员开关//'method=8版主管理(DEL)  delon="false";  if (session.getValue("superlogin")!="true"){  // '非正常版主登录  
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
        }else{    delon="true";  }//' end if}  //'End if
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((masteremail));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      out.print((boardmaster));
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((boardname));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((masterword));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((boardid));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      out.print((boardid));
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((boardid));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      if (iPageCount>1) {
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      out.print((boardid));
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print((method));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((par));
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      }
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      if (iPageLast!=0) {
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print((boardid));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print((iPageLast));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      out.print((method));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((par));
      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      }
      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      if (iPageNext!=0) {
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print((boardid));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print((iPageNext));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -