📄 perms.jsp
字号:
</label> </td> <% for (int i=0; i<permGroupDef.length; i++) { String cbName = "cb_update_g_" + group.getID() + "_" + permGroupDef[i]; %> <td class="jive-perm-cell"> <input type="hidden" name="was<%= cbName %>" value="<%= permGroupDef[i] %>"> <input type="checkbox" name="<%= cbName %>" value="<%= permGroupDef[i] %>" <%= ((perms.hasPermission(permGroupDef[i])) ? " checked" : "") %> onclick="alertButtons(this.form,'update,cancel');"> </td> <% } %> <td align="center" bgcolor="#ffffff"> <a href="perms.jsp?remove=true&removetype=group&group=<%= group.getID() %>&cat=<%= categoryID %>&forum=<%= forumID %>&permGroup=<%= permGroup %>" title="Click to remove all permissions for this group." onclick="return confirm('Are you sure you want to remove all permissions for this group?');" ><img src="images/button_delete.gif" width="17" height="17" border="0"></a> </td> </tr> <% } } %> <tr> <td> </td> <td colspan="<%= permGroupDef.length %>"> <br> <center style="padding:2px 0px 2px 0px;"> <input type="submit" name="update" value="Save Changes" disabled> <input type="submit" name="cancel" value="Cancel" disabled> </center> </td> <td> <td> </tr> </table> </div> </td> </tr><% } else { %> <tr> <td> <script language="JavaScript" type="text/javascript"> function selectAll(el) { var items = el.elements; for (var i=0; i<items.length; i++) { if (items[i].type == 'checkbox' && items[i].name == 'newperm') { items[i].checked = true; } } } </script> <div class="jive-userlist"> <table class="jive-perm-box" cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td> <p> Follow the steps below to grant new user or group permissions: (Note, it is not possible to set permissions for "Anyone" or "Registered Users" here. To do this, use the Permissions Summary page.) </p> <table cellpadding="2" cellspacing="1" border="0" width="100%"> <tr valign="top"> <td width="1%" nowrap> <b>1</b> </td> <td width="99%"> Choose the permission(s): [<a href="#" onclick="selectAll(document.permform);return false;">select all</a>] </td> </tr> <% if (noPermSelected) { %> <tr> <td> </td> <td> <span class="jive-error-text"> Please choose a permission type. </span> </td> </tr> <% } %> <tr> <td> </td> <td> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <% for (int i=0; i<permGroupDef.length; i++) { String permGroupName = (String)permNames.get(new Long(permGroupDef[i])); %> <tr> <td width="1%"> <input type="checkbox" name="newperm" value="<%= permGroupDef[i] %>" id="pgn<%= i %>" <%= ((contains(newPerms, permGroupDef[i])) ? "checked" : "") %>> </td> <td width="99%"> <label for="pgn<%= i %>"><%= permGroupName %></label> </td> </tr> <% } %> </table> </td> </tr> <tr valign="top"> <td width="1%" nowrap> <b>2</b> </td> <td width="99%"> Choose a user or group to grant the permission(s) to: </td> </tr> <% if (noPermTargetSelected) { %> <tr valign="top"> <td width="1%"> </td> <td width="99%"> <span class="jive-error-text"> Please apply the specified permission to a user or group. </span> </td> </tr> <% }%> <tr> <td> </td> <td> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td width="1%"> <input type="checkbox" name="userlistcb" name="spefuser" onchange="this.form.userlist.focus();" id="spefusercb" <%= ((userlist != null) ? "checked" : "") %>> </td> <td width="99%"> <label for="spefusercb"> A Specific User: (enter username - separate multiple usernames with commas) </label> </td> </tr> <% if (userErrors.size() > 0) { String errorMsg = ""; String list = ""; String sep = ", "; for (int i=0; i<userErrors.size(); i++) { list += (String)userErrors.get(i); if ((i+1) < userErrors.size()) { list += sep; } } if (userErrors.size() == 1) { errorMsg = "The user " + list + " was not found."; } else { errorMsg = "The users " + list + " were not found."; } %> <tr> <td width="1%"> </td> <td width="99%"> <span class="jive-error-text"> <%= errorMsg %> </span> </td> </tr> <% } %> <tr> <td width="1%"> </td> <td width="99%"> <input type="text" size="30" name="userlist" value="<%= ((userlist != null) ? userlist : "") %>" onclick="this.form.userlistcb.checked=true;" onblur="if(this.value==''){this.form.userlistcb.checked=false;}else{this.form.userlistcb.checked=true;}"> </td> </tr> <tr> <td width="1%"> <input type="checkbox" name="grouplistcb" name="spefgroup" onchange="this.form.grouplist.focus();" id="spefgroupcb" <%= ((grouplist != null) ? "checked" : "") %>> </td> <td width="99%"> <label for="spefgroupcb"> A Specific Group: (enter group name - separate multiple group names with commas) </label> </td> </tr> <% if (groupErrors.size() > 0) { String errorMsg = ""; String list = ""; String sep = ", "; for (int i=0; i<groupErrors.size(); i++) { list += (String)groupErrors.get(i); if ((i+1) < groupErrors.size()) { list += sep; } } if (groupErrors.size() == 1) { errorMsg = "The group " + list + " was not found."; } else { errorMsg = "The groups " + list + " were not found."; } %> <tr> <td width="1%"> </td> <td width="99%"> <span class="jive-error-text"> <%= errorMsg %> </span> </td> </tr> <% } %> <tr> <td width="1%"> </td> <td width="99%"> <input type="text" size="30" name="grouplist" value="<%= ((grouplist != null) ? grouplist : "") %>" onclick="this.form.grouplistcb.checked=true;" onblur="if(this.value==''){this.form.grouplistcb.checked=false;}else{this.form.grouplistcb.checked=true;}"> </td> </tr> </table> </td> </tr> <tr valign="top"> <td width="1%" rowspan="2" nowrap> <b>3</b> </td> <td width="99%"> Done: </td> </tr> <tr> <td> <input type="submit" name="doAdd" value="Grant New Permission"> <input type="submit" name="cancel" value="Cancel"> </td> </tr> </table> </td> </tr> </table> </div> </td> </tr><% } %></table></div><% if ("perms".equals(show)) { %> <br> <p><b>Legend</b></p> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr> <td align="center" width="1%">*</td> <td align="center" width="1%">-</td> <td width="98%"> Special permission type - Anyone and Registered Users can not be removed, only cleared. </td> </tr> <tr> <td width="1%" align="center"> <table bgcolor="#999999" cellpadding="1" cellspacing="0" border="0"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td bgcolor="#ffcccc"><img src="images/blank.gif" width="10" height="10" border="0"></td> </tr> </table> </td> </tr> </table> </td> <td align="center" width="1%">-</td> <td width="98%"> System admin - do not delete all system admin users. You need at least one to login to this tool. </td> </tr> <tr> <td align="center" width="1%"><input type="checkbox" name="" value="" onfocus="blur();return false;" onclick="blur();return false;" checked></td> <td align="center" width="1%">-</td> <td width="98%"> Indicates a permission is <b>set</b>. </td> </tr> <tr> <td align="center" width="1%"><input type="checkbox" name="" value="" onfocus="blur();return false;" onclick="blur();return false;"></td> <td align="center" width="1%">-</td> <td width="98%"> Indicates a permission is <b>not set</b>. </td> </tr> </table> <br><% } %><!-- call the setCBState methods --><script language="JavaScript" type="text/javascript">setInitialState(document.permform);</script></form><%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -