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

📄 bbsuserinfomanage.jsp

📁 一个目前正在上线运行的JSP企业网站系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
<jsp:include page="/CheckLogin.jsp" flush="true"/>
<%Session m_session = new Session(session);%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
<title>bbs注册用户管理-- </title>
<link href="../css/txt.jsp" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/js/changestyle.js"></script>
</head>

<body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  <%
    Request m_request = new Request(request);
    int iPageSize = 18;
    int iPage = m_request.GetInt("Page");
    String strCurrentPageURL = request.getRequestURI();
    String strIDs = m_request.GetString("ID");
    String strMultUserID = m_request.GetString("MultUserID");
    String strMultSysID = m_request.GetString("MultSysID");
    String strUserName = m_request.GetString("UserName");
    String strOrderBy=m_request.GetString("OrderBy");
    String strIsDesc=m_request.GetString("IsDesc");
    String strOrderArrow="↑";
    if(strIsDesc.equalsIgnoreCase("True"))
    {
      strOrderArrow="↓";
    }
    else
    {
      strOrderArrow="↑";
    }
  %>
<script language="JavaScript">
function changeorder(orderBy)
{
  with(document.WebSiteDirManage)
  {
    if(OrderBy.value==orderBy)
    {
      if(IsDesc.value=="")
        IsDesc.value="True";
      else
        IsDesc.value="";
    }
    else
    {
      OrderBy.value=orderBy;
      IsDesc.value="";
      Page.value="1";
    }
  }
  document.WebSiteDirManage.submit();
}
   function changepage(pageNum)
   {
      with(document.WebSiteDirManage)
        {
    Page.value=pageNum;
         }
      document.WebSiteDirManage.submit();
    }
function checkWebSiteDir()
{
  var isIDCheck = false;
  var isIDCheck = false;

  with(document.WebSiteDir)
  {
    try
    {
      for(i=0;i<elements.length;i++)
      {
        if(elements[i].type=="checkbox"&&elements[i].name=="ID")
        {
          if(elements[i].checked)
          {
            isIDCheck = true;
            break;
          }
        }
      }
    }
    catch(ex)
    {
    }
  }
  if(!isIDCheck)
  {
    alert("请先选择注册用户,再进行删除操作!");
    return false;
  }
  return window.confirm('确实要删除这些用户吗?');
}

function checktall()
{
  var allselect=true;
  with(document.WebSiteDir)
  {
    if(selectall.value=="全部选择")
    {
      allselect = true;
      selectall.value="全部取消";
    }
    else
    {
      allselect = false;
      selectall.value="全部选择";
    }
    for(i=0;i<elements.length;i++)
    {
      if(elements[i].type=="checkbox")
        elements[i].checked = allselect;
    }
  }
}
function addUser(){
return false;
}
</script>
  <table width="100%" height="100%" border="0" align="center" cellspacing="0">
    <tr>
    <td align="center" valign="top"><p>&nbsp;</p>
 <font color="#000000"><b>论坛注册用户管理</b></font><br><br>
      <form name="WebSiteDirManage" action="<%=strCurrentPageURL%>?MultUserID=<%=strMultUserID%>&MultSysID=<%=strMultSysID%>" method="post">
        <input name="Page" type="hidden" value="<%=iPage%>">
        <input name="ID" type="hidden" value="<%=strIDs%>">
        <input name="UserName" type="hidden" value="<%=strUserName%>">
        <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
        <input name="IsDesc" type="hidden" value="<%=strIsDesc%>">
       </form>
       <form name="WebSiteDir" action="DelBBSUserInfo.jsp?MultUserID=<%=strMultUserID%>&MultSysID=<%=strMultSysID%>" method="post" onsubmit="return checkWebSiteDir();">
           <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
            <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
            <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
            <th width="3%" nowrap><font color="#000000">编号</font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UserName');return false;">用户名</a><%=(strOrderBy.equalsIgnoreCase("a.UserName"))?strOrderArrow:""%></font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.Password');return false;">密码</a><%=(strOrderBy.equalsIgnoreCase("a.Password"))?strOrderArrow:""%></font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.NickName');return false;">昵称</a><%=(strOrderBy.equalsIgnoreCase("b.NickName"))?strOrderArrow:""%></font></th>
            <th width="11%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.EMail');return false;">EMail</a><%=(strOrderBy.equalsIgnoreCase("a.EMail"))?strOrderArrow:""%></font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.RealName');return false;">真实姓名</a><%=(strOrderBy.equalsIgnoreCase("a.RealName"))?strOrderArrow:""%></font></th>
            <th width="15%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.LinkWay');return false;">联系方式</a><%=(strOrderBy.equalsIgnoreCase("a.LinkWay"))?strOrderArrow:""%></font></th>
            <th width="12%" nowrap><font color="#000000"><a href="" onclick="changeorder('b.PostName');return false;">职位</a><%=(strOrderBy.equalsIgnoreCase("b.PostName"))?strOrderArrow:""%></font></th>
            <th width="4%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.ArticleNum');return false;">发帖次数</a><%=(strOrderBy.equalsIgnoreCase("a.ArticleNum"))?strOrderArrow:""%></font></th>
            <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.RegTime');return false;">注册时间</a><%=(strOrderBy.equalsIgnoreCase("a.RegTime"))?strOrderArrow:""%></font></th>
            <th width="3%" nowrap><font color="#000000">修改</font></th>
            <th width="3%" nowrap><font color="#000000">删除</font></th>
            </tr>
  <%
     Vector vt = BBSUserInfoManager.getBBSUserBySearch( strIDs,  strUserName,  "", "", "", "", "", "", "","", "", "",strMultUserID,strMultSysID,"","","","",strOrderBy,strIsDesc);

    if(iPage<1)iPage=1;
    int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
    if(iPage>iPageCount) iPage=1;
    for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
    {

      String strID = ((Vector)vt.get(i)).get(0).toString();
      if(i % 2 == 0)
      {
        out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsSingle\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsSingle');\">");
      }
      else
      {
        out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsDouble\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsDouble');\">");
      }
      out.println("<td align=\"right\" valign=\"middle\"><img id=\"image" + i + "\" src=\"../images/lastpost1.gif\" style=\"display:none;\"> </td>");
      out.println("<td align=\"right\" valign=\"middle\">" + (i+1) + "</td>");
      out.println("<td align=\"left\" valign=\"middle\" title=\"" + ((Vector)vt.get(i)).get(1).toString() + "\" ><input type=\"checkbox\" name=\"ID\" value=\"" + strID + "\">" + ((Vector)vt.get(i)).get(1).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(2).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" >" + ((Vector)vt.get(i)).get(5).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(7).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\"  >" + ((Vector)vt.get(i)).get(8).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(9).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" >" + ((Vector)vt.get(i)).get(22).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(15).toString() + "&nbsp;</td>");
      out.println("<td align=\"left\" valign=\"middle\" >" +((Vector)vt.get(i)).get(10).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap ><a href=\"EditBBSUserInfo.jsp?MultUserID=" + strMultUserID + "&MultSysID=" + strMultSysID + "&ID=" + strID + "\">修改</a></td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap ><a href=\"DelBBSUserInfo.jsp?MultUserID=" + strMultUserID + "&MultSysID=" + strMultSysID + "&ID=" + strID + "\">删除</a></td>");
      out.println("</tr>");
    }
  %>
            <tr>
             <th  align="center" valign="top" colspan="8">
              <%
              if(iPage<2)
              out.print("首页&nbsp;&nbsp;上页");
              else
              out.print("<a href=\"\" onclick=\"changepage(" + 1 + ");return false;\">首页</a>&nbsp;&nbsp;<a href=\"\" onclick=\"changepage(" + (iPage-1) + ");return false;\">上页</a>");
              out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
              if(iPage>=iPageCount)
              out.print("下页&nbsp;&nbsp;末页");
              else
              out.print("<a href=\"\" onclick=\"changepage(" + (iPage+1) + ");return false;\">下页</a>&nbsp;&nbsp;<a href=\"\" onclick=\"changepage(" + iPageCount + ");return false;\">末页</a>");
              %>
             </th>
              <th  colspan="5">
                <input name="AddNew" type="button" value="新增" onclick="addUser()" style="background-color: #FFFFFF; border: 1 solid #000000">
                <input name="selectall" type="button" value="全部选择" onclick="checktall()" style="background-color: #FFFFFF; border: 1 solid #000000">
                <input name="subm" type="submit" value="删除" style="background-color: #FFFFFF; border: 1 solid #000000">
              </th>
            </tr>
           </table>
          </form>
        </td>
      </tr>
    </table>
  </body>
</html>

⌨️ 快捷键说明

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