コード例 #1
0
 public String getSignature(String userid) {
   beanGetdata bgd = new beanGetdata();
   bgd.executeSelect("select signature from t_user where user_id = '" + userid + "'");
   if (bgd.getRowCount() < 1) {
     return "";
   } else {
     return "<BR><BR>------------------------------------------------------------------------------------<BR>"
         + strFormat(bgd.getFieldValue(1, 0));
   }
 }
コード例 #2
0
 // 获取用户权限
 public String getUserRight(String userid) {
   beanGetdata bgd = new beanGetdata();
   bgd.executeSelect("select user_right from t_user where user_id = '" + userid + "'");
   if (bgd.getRowCount() == 0) return "0";
   return bgd.getFieldValue("user_right", 0);
 }
コード例 #3
0
 // 判断是不是管理员
 public boolean isAdmin(String userid) {
   beanGetdata bgd = new beanGetdata();
   bgd.executeSelect("select user_right from t_user where user_id = '" + userid + "'");
   if (bgd.getRowCount() == 0) return false;
   return isMenuShow(parseRight("6"), bgd.getFieldValue("user_right", 0));
 }