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

📄 manageruser.java

📁 BBS-CS是采用JSP+JavaBean+Servlet开发的一套网络虚拟社区系统. 运行平台: Liunx + JDK + Apache + Tomcat + MYSQL 或 Window
💻 JAVA
字号:
package com.laoer.bbscs.user;import java.sql.*;import java.io.*;import java.util.*;import com.laoer.bbscs.db.*;//import com.laoer.bbscs.txthtml.*;/** * <p>Title: BBS-CS</p> * <p>Description: BBS-CS(BBS式虚拟社区系统)</p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: loveroom.com.cn</p> * @author 龚天乙(laoer) * @version 3.0 */public class ManagerUser {  String SQL = "";  DbTrans DBSQL;  //DoText myDoText;  ResultSet rs = null;  private boolean isSuper = false;  private boolean isBoard = false;  private boolean isBulletin = false;  private boolean isUserAdmin = false;  public ManagerUser() {      this.DBSQL = new DbTrans();  }  public void getManagerUser(String strUserID) {      SQL = "select * from adminuser where UID="+strUserID;      try {          rs = DBSQL.executeQuery(SQL);          if (rs.next()) {              if (rs.getInt("superadmin")==1) {                  this.isSuper = true;              }              if (rs.getInt("board")==1) {                  this.isBoard = true;              }              if (rs.getInt("bulletin")==1) {                  this.isBulletin = true;              }              if (rs.getInt("useradmin")==1) {                  this.isUserAdmin = true;              }          }          rs.close();      }      catch (SQLException e){      }  }  public boolean getIsSuper() {      return this.isSuper;  }  public boolean getIsBoard() {      return this.isBoard;  }  public boolean getIsBulletin() {      return this.isBulletin;  }  public boolean getUserAdmin() {      return this.isUserAdmin;  }  public void close() {      try {          DBSQL.close();      }      catch (SQLException e){      }  }}

⌨️ 快捷键说明

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