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

📄 _usermanager__jsp.java

📁 一套大型Office网络办公系统
💻 JAVA
字号:
/*
 * 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 _usermanager__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.bbsuser user;
      user = (test.bbsuser) pageContext.getAttribute("user");
      if (user == null) {
        user = new test.bbsuser();
        pageContext.setAttribute("user", user);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      String tempSTR,whereTo;byte[] tmpbyte;int method;tempSTR=(String)session.getValue("adminlogin");if (tempSTR!="true") {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.forward("adminlog.jsp");
      if (true) return;
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      }tempSTR=null;tempSTR=request.getParameter("method");if (tempSTR==null){ method=0;}else{ method=java.lang.Integer.parseInt(tempSTR);}//'method=1    '改积分//'method=2    '除名//'method=3    '显示用户资料String strSQL;java.sql.ResultSet sqlRst;int i;int userid,userclass;String username,userpassword,useremail,userhomepage,hpname,usersex,comefrom,usersign;String sel;String dateandtime,userbirthday;//Dim dateandtime//Dim userbirthday
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      if (method==1) {//'method=1    '改积分method=3;  //  '显示用户资料  改完积分后显示tempSTR=null;tempSTR=request.getParameter("userclass");if (tempSTR==null){		  userclass=0;}else  { userclass=java.lang.Integer.parseInt(tempSTR);}username=request.getParameter("username");tmpbyte=username.getBytes("ISO8859_1");username=new String(tmpbyte);user.changeUserClass(username,userclass);}  //END IF method==1
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      if (method==2) {//'method=2    '除名username=request.getParameter("username");tmpbyte=username.getBytes("ISO8859_1");username=new String(tmpbyte);user.delUser(username);}  //'end if method=2 
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
                  sqlRst=user.listUser(1);i=1;while (sqlRst.next()) {//'  and  i<=10     if (i==1){  sel="selected";}else{  sel="";}username=sqlRst.getString("username");
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((username));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((sel));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((username));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      i++;}  //end whilesqlRst.close();
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      if (method==3)  {username=request.getParameter("username");tmpbyte=username.getBytes("ISO8859_1");username=new String(tmpbyte);     userid=0;	 userpassword="";	 useremail="";	 userhomepage="";	 hpname="";	 usersex="";	 comefrom="";	 userclass=0;	 usersign="";	 dateandtime="";     userbirthday="";if (user.getUserInfo(username)){     userid=user.getUserId();     username=user.getUserName();	 userpassword=user.getUserPassword();	 useremail=user.getUserEmail();	 userhomepage=user.getUserHomepage();	 hpname=user.getUserHomepagename();	 usersex=user.getUserSex();	 comefrom=user.getUserComefrom();	 userclass=user.getUserClass();	 usersign=user.getUserSign();dateandtime="";userbirthday="";}
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
      out.print((username));
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      out.print((useremail));
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print((usersex));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print((userbirthday));
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      out.print((comefrom));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      out.print((hpname));
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print((userhomepage));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print((dateandtime));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      out.print((userclass));
      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      out.print((usersign));
      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      out.print((username));
      pageContext.write(_jsp_string22, 0, _jsp_string22.length);
      out.print((username));
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      }  //'End if
      pageContext.write(_jsp_string24, 0, _jsp_string24.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(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() != 2058990000)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _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);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_usermanager__jsp.java", "d:\\guestbook\\jsp-access\\usermanager.jsp");
    _caucho_line_map.add("/usermanager.jsp", 1, 1);
    _caucho_line_map.add("/incdb.jsp", 2, 1);
    _caucho_line_map.add("/usermanager.jsp", 1, 35);
    _caucho_line_map.add("/incdb.jsp", 2, 38);
    _caucho_line_map.add("d:\\guestbook\\jsp-access\\usermanager.jsp", 4, 44);
    _caucho_line_map.add(5, 51);
    _caucho_line_map.add(13, 67);
    _caucho_line_map.add(14, 70);
    _caucho_line_map.add(63, 120);
    _caucho_line_map.add(81, 154);
    _caucho_line_map.add(113, 198);
    _caucho_line_map.add(113, 200);
    _caucho_line_map.add(113, 202);
    _caucho_line_map.add(114, 204);
    _caucho_line_map.add(128, 214);
    _caucho_line_map.add(165, 278);
    _caucho_line_map.add(168, 280);
    _caucho_line_map.add(169, 282);
    _caucho_line_map.add(170, 284);
    _caucho_line_map.add(171, 286);
    _caucho_line_map.add(174, 288);
    _caucho_line_map.add(175, 290);
    _caucho_line_map.add(178, 292);
    _caucho_line_map.add(179, 294);
    _caucho_line_map.add(182, 296);
    _caucho_line_map.add(191, 298);
    _caucho_line_map.add(192, 300);
    _caucho_line_map.add(200, 302);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/incdb.jsp"), 972283860000L, 251L);
    _caucho_depends.add(depend);
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/usermanager.jsp"), 1006593428000L, 5472L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string22;
  private static byte []_jsp_string11;
  private static byte []_jsp_string18;
  private static byte []_jsp_string23;
  private static byte []_jsp_string19;
  private static byte []_jsp_string6;
  private static byte []_jsp_string15;
  private static byte []_jsp_string17;
  private static byte []_jsp_string1;
  private static byte []_jsp_string21;
  private static byte []_jsp_string4;
  private static byte []_jsp_string20;
  private static byte []_jsp_string0;
  private static byte []_jsp_string10;
  private static byte []_jsp_string3;
  private static byte []_jsp_string24;
  private static byte []_jsp_string2;
  private static byte []_jsp_string12;
  private static byte []_jsp_string14;
  private static byte []_jsp_string13;
  private static byte []_jsp_string9;
  private static byte []_jsp_string16;
  private static byte []_jsp_string5;
  private static byte []_jsp_string7;
  private static byte []_jsp_string8;
  static {
    try {
      _jsp_string22 = "&amp;method=2\" target=\"_self\">除名</a>&nbsp;  \r\n           <input type=\"hidden\" name=\"username\" value=\"".getBytes("GB2312");
      _jsp_string11 = " \r\n<div align=\"center\"> \r\n  <center> \r\n  <table border=\"0\" width=\"600\"> \r\n    <tr> \r\n      <td width=\"100%\" colspan=\"4\" bgcolor=\"#5d91c0\"> \r\n        <p align=\"center\"><b><font color=\"#FFFFFF\">".getBytes("GB2312");
      _jsp_string18 = "</td> \r\n    </tr> \r\n    <tr> \r\n      <td width=\"50%\" align=\"left\" colspan=\"2\">注册时间:".getBytes("GB2312");
      _jsp_string23 = "\">  \r\n           <input type=\"hidden\" name=\"method\" value=\"1\">  \r\n         </form>  \r\n      </td>  \r\n    </tr>  \r\n  </table>  \r\n  </center>  \r\n</div>  \r\n".getBytes("GB2312");
      _jsp_string19 = "</td> \r\n      <td width=\"50%\" align=\"left\" colspan=\"2\">积分:".getBytes("GB2312");
      _jsp_string6 = "                          \r\n                <option value=\"".getBytes("GB2312");
      _jsp_string15 = "</td> \r\n      <td width=\"25%\">来自:".getBytes("GB2312");
      _jsp_string17 = "</td> \r\n      <td width=\"75%\" colspan=\"3\">".getBytes("GB2312");
      _jsp_string1 = "<!--开始导入packages-->\r\n".getBytes("GB2312");
      _jsp_string21 = "</td> \r\n    </tr> \r\n    <tr> \r\n      <td width=\"25%\"> \r\n        <p align=\"center\"></td> \r\n      <td width=\"25%\"></td> \r\n      <td width=\"50%\" colspan=\"2\"> \r\n        <form method=\"POST\" action=\"usermanager.jsp\"> \r\n           加:<input type=\"text\" name=\"userclass\" size=\"5\" value=\"0\"><input type=\"submit\" value=\"改积分\" name=\"B1\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  \r\n            <a href=\"usermanager.jsp?username=".getBytes("GB2312");
      _jsp_string4 = " \r\n\r\n".getBytes("GB2312");
      _jsp_string20 = "</td> \r\n    </tr> \r\n    <tr> \r\n      <td width=\"100%\" colspan=\"4\">签名:<br>".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string10 = "            \r\n              </select><input type=\"submit\" value=\"查询\" name=\"B1\"></p>\r\n        <input type=\"hidden\" name=\"method\" value=\"3\">\r\n      </form>\r\n    </td>\r\n  </tr>\r\n</table>\r\n  </center>\r\n</div>\r\n\r\n".getBytes("GB2312");
      _jsp_string3 = "\r\n<html>\r\n\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<title>New Page 1</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/css02.css\">\r\n</head>\r\n\r\n<body>\r\n<table border=\"0\" width=\"100%\">\r\n  <tr>\r\n    <td width=\"25%\" align=\"center\"><a href=\"boardmanager.jsp\" target=\"_self\">版面管理</a></td>\r\n    <td width=\"25%\" align=\"center\"><a href=\"usermanager.jsp\" target=\"_self\">注册用户管理</a></td>\r\n    <td width=\"25%\" align=\"center\"><a href=\"emaillist.jsp\" target=\"_self\">用户邮件列表</a></td>\r\n    <td width=\"25%\" align=\"center\"><a href=\"boardmanager.jsp?method=6\" target=\"_self\">退出</a></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"100%\" colspan=\"4\">\r\n      <hr>\r\n    </td>\r\n  </tr>\r\n</table>\r\n".getBytes("GB2312");
      _jsp_string24 = "  \r\n \r\n</body>  \r\n</html> \r\n  \r\n".getBytes("GB2312");
      _jsp_string2 = "\r\n<!--导入结束-->\r\n".getBytes("GB2312");
      _jsp_string12 = "档案</font></b></td> \r\n    </tr> \r\n    <tr> \r\n      <td width=\"25%\">EMAIL:".getBytes("GB2312");
      _jsp_string14 = "</td> \r\n      <td width=\"25%\">生日:".getBytes("GB2312");
      _jsp_string13 = "</td> \r\n      <td width=\"25%\">性别:".getBytes("GB2312");
      _jsp_string9 = "</option>            \r\n".getBytes("GB2312");
      _jsp_string16 = "</td> \r\n    </tr> \r\n    <tr> \r\n      <td width=\"25%\">主页名:".getBytes("GB2312");
      _jsp_string5 = " \r\n\r\n<div align=\"center\">\r\n  <center>\r\n\r\n<table border=\"0\" width=\"500\">\r\n  <tr>\r\n    <td width=\"100%\">\r\n      <form method=\"POST\" action=\"usermanager.jsp\">\r\n        <p align=\"center\"><select size=\"1\" name=\"username\">            \r\n\r\n".getBytes("GB2312");
      _jsp_string7 = "\" ".getBytes("GB2312");
      _jsp_string8 = ">".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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