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

📄 admingroupprivilege.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="../common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/> - <bean:message key="jsp.admincenter.title"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="../common/include/adminheader.jsp" %>
<%String sessionToken=ParameterUtils.getString(request,"sessionToken");%>
<script languge="JavaScript">
  function putin() {
    var objLeftSelect = document.modifygroup.source;
    var objRightSelect = document.modifygroup.destination;
    if(objLeftSelect.selectedIndex==-1)
      alert("Please select the forum moved in.");
    else {
      //get value
      var strName = objLeftSelect.options[objLeftSelect.selectedIndex].text;
      var strvalue = objLeftSelect.options[objLeftSelect.selectedIndex].value;
      if(strvalue==0)
        alert("Can't move catalog.");
      else {
        //create the object of option
        var objOption = new Option(strName,strvalue);
        objRightSelect.options[objRightSelect.options.length] = objOption;
        //objRightSelect.add(objOption, pos);
        //delete has been moved
        objLeftSelect.remove(objLeftSelect.selectedIndex);
      }
    }
  }
  function getout() {
    var objLeftSelect = document.modifygroup.source;
    var objRightSelect = document.modifygroup.destination;
    if(objRightSelect.selectedIndex==-1)
      alert("Please select the forum moved out.");
    else {
      //gets value
      var strName = objRightSelect.options[objRightSelect.selectedIndex].text;
      var strvalue = objRightSelect.options[objRightSelect.selectedIndex].value;
      //create the object of option
      var objOption = new Option(strName,strvalue);
      objLeftSelect.options[objLeftSelect.options.length] = objOption;
      //objLeftSelect.add(objOption, pos);
      //delete value moved.
      objRightSelect.remove(objRightSelect.selectedIndex);
    }
  }
  function getForumID() {
    var forumSize=document.modifygroup.destination.options.length;
    var forumID="";
    for(i=0;i<forumSize;i++) {
      forumID+=document.modifygroup.destination.options[i].value+",";
    }
    document.modifygroup.forumIDAll.value=forumID;
    return true;
  }
  function readGroupPrivilege() {
    var groupID=document.modifygroup.groupID.value;
    var groupPrivilege=document.modifygroup.groupPrivilege.value;
    location.href="bbs_adminGroupManager.do?action=editGroupPrivilege&groupPrivilege="+groupPrivilege+"&groupID="+groupID+"&sessionToken=<%=sessionToken%>";
  }
</script>
</head>
<%
int groupID=ParameterUtils.getInt(request,"groupID");
%>
<body bgcolor="#555555" topmargin=5 leftmargin=5>
<table width=95% cellpadding=0 cellspacing=1 border=0 bgcolor=#000000 align=center>
 <tr>
  <td>
  <table width=100% cellpadding=0 cellspacing=1 border=0>
   <tr>
    <td width=28% valign=top bgcolor=#FFFFFF>
    <lybbs:typeLeftTag/>
  </td>
  <td width=70% valign=top bgcolor=#FFFFFF>
   <table width=100% cellpadding=6 cellspacing=0 border=0>
    <form action="bbs_adminGroupManager.do" method="post" name="modifygroup">
    <input type=hidden name="groupID" value="<bean:write name="groupBean" property="groupID"/>">
    <input type=hidden name="checkAction" value="yes">
    <input type=hidden name="action" value="editGroupPrivilege">
    <input type=hidden name="sessionToken" value="<%=sessionToken%>">
    <tr>
     <td bgcolor=#333333" colspan=2>
      <font color=#FFFFFF><b><bean:message key="jsp.admincenter.usermanager.usergroup"/></b></font>
     </td>
    </tr>
    <tr>
     <td bgcolor=#FFFFFF colspan=2>
      <font color=#333333><bean:message key="jsp.admincenter.usermanager.groupprivilegecomment"/></font>
     </td>
    </tr>
    <tr>
     <td bgcolor=#EEEEEE align=center colspan=2>
      <font color=#333333><bean:message key="jsp.admincenter.usermanager.groupprivilege"/></font>
     </td>
    </tr>
    <tr>
     <td width=35%>
       <font color=#333333><b><bean:message key="jsp.admincenter.usermanager.groupname"/>:</b></font>
     </td>
     <td>
       <bean:write name="groupBean" property="groupName"/>
     </td>
    </tr>
    <logic:iterate id="element" name="catalogListBean">
    <tr>
     <td bgcolor=#EEEEEE width=20% nowrap>
      <font color=#333333><bean:message key="jsp.admincenter.forum.catalogname"/>:&nbsp;&nbsp;<b><bean:write name="element" property="catalogName"/></b></font>
     </td>
     <td bgcolor=#EEEEEE>
     </td>
    </tr>
    <bean:define id="objCatalogID" name="element" property="catalogID"/>
    <lybbs:typeGroupForumListTag catalogID="<%=Integer.parseInt(objCatalogID.toString())%>" groupID="<%=groupID%>"/>
    </logic:iterate>
    <tr>
      <td align=center colspan=2>
        <input type=submit name=submit value="<bean:message key="common.lybbs.submit"/>">
      </td>
    </tr>
    </form>
   </table>
   </td>
   </tr>
  </table>
  </td>
 </tr>
</table>
</body>
</html:html>

⌨️ 快捷键说明

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