📄 forumperms.jsp
字号:
</select><br>
(<input type="checkbox" id="cb03"
onclick="selAllListBox(this.form.usersWithPerm,this);">
<label for="cb03">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
<form action="forumPerms.jsp">
<input type="hidden" name="forum" value="<%= forumID %>">
<input type="hidden" name="doRemoveUserPerm" value="true">
<input type="hidden" name="permType" value="<%= CREATE_THREAD %>">
<td align="center">
<b><%= usersWithThreadPerm.length %></b>
user<%= (usersWithThreadPerm.length==1)?"":"s" %>
with <font color="#008000">CREATE THREAD</font> permission:
<br>
<select size="5" name="usersWithPerm" multiple>
<% for( int i=0; i<usersWithThreadPerm.length; i++ ) { %>
<% try { %>
<% User user = manager.getUser(usersWithThreadPerm[i]); %>
<% int userID = user.getID(); %>
<% if( userID == -1 ) { %>
<option value="<%= userID %>">* Anonymous Users
<% } else if( userID == 0 ) { %>
<option value="<%= userID %>">* All Registered Users
<% } else { %>
<option value="<%= userID %>"><%= user.getUsername() %>
<% } %>
<% } catch( UserNotFoundException unfe ) {} %>
<% } %>
</select><br>
(<input type="checkbox" id="cb04"
onclick="selAllListBox(this.form.usersWithPerm,this);">
<label for="cb04">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
<form action="forumPerms.jsp">
<input type="hidden" name="forum" value="<%= forumID %>">
<input type="hidden" name="doRemoveUserPerm" value="true">
<input type="hidden" name="permType" value="<%= CREATE_MESSAGE %>">
<td align="center">
<b><%= usersWithMessagePerm.length %></b>
user<%= (usersWithMessagePerm.length==1)?"":"s" %>
with <font color="#008000">CREATE MESSAGE</font> permission:
<br>
<select size="5" name="usersWithPerm" multiple>
<% for( int i=0; i<usersWithMessagePerm.length; i++ ) { %>
<% try { %>
<% User user = manager.getUser(usersWithMessagePerm[i]); %>
<% int userID = user.getID(); %>
<% if( userID == -1 ) { %>
<option value="<%= userID %>">* Anonymous Users
<% } else if( userID == 0 ) { %>
<option value="<%= userID %>">* All Registered Users
<% } else { %>
<option value="<%= userID %>"><%= user.getUsername() %>
<% } %>
<% } catch( UserNotFoundException unfe ) {} %>
<% } %>
</select><br>
(<input type="checkbox" id="cb05"
onclick="selAllListBox(this.form.usersWithPerm,this);">
<label for="cb05">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
</tr>
</table>
<%-- /user permission summary --%>
<p>
<hr size="0" width="75%">
<p>
<%-- group permission summary --%>
Groups of this forum with a particular permission:
<p>
<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<form action="forumPerms.jsp">
<input type="hidden" name="forum" value="<%= forumID %>">
<input type="hidden" name="doRemoveGroupPerm" value="true">
<input type="hidden" name="permType" value="<%= READ %>">
<td align="center">
<b><%= groupsWithReadPerm.length %></b>
group<%= (groupsWithReadPerm.length==1)?"":"s" %>
with <font color="#008000">READ</font> permission:
<br>
<select size="5" name="groupsWithPerm">
<% for( int i=0; i<groupsWithReadPerm.length; i++ ) { %>
<% try { %>
<% Group group = manager.getGroup(groupsWithReadPerm[i]); %>
<option value="<%= group.getID() %>"><%= group.getName() %>
<% } catch( GroupNotFoundException gnfe ) {%> <%= groupsWithReadPerm[i] %> <%} %>
<% } %>
</select><br>
(<input type="checkbox" id="cb06"
onclick="selAllListBox(this.form.groupsWithPerm,this);">
<label for="cb06">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
<form action="forumPerms.jsp">
<input type="hidden" name="forum" value="<%= forumID %>">
<input type="hidden" name="doRemoveGroupPerm" value="true">
<input type="hidden" name="permType" value="<%= CREATE_THREAD %>">
<td align="center">
<b><%= groupsWithThreadPerm.length %></b>
group<%= (groupsWithThreadPerm.length==1)?"":"s" %>
with <font color="#008000">CREATE THREAD</font> permission:
<br>
<select size="5" name="groupsWithPerm">
<% for( int i=0; i<groupsWithThreadPerm.length; i++ ) { %>
<% try { %>
<% Group group = manager.getGroup(groupsWithThreadPerm[i]); %>
<option value="<%= group.getID() %>"><%= group.getName() %>
<% } catch( GroupNotFoundException gnfe ) {} %>
<% } %>
</select><br>
(<input type="checkbox" id="cb07"
onclick="selAllListBox(this.form.groupsWithPerm,this);">
<label for="cb07">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
<form action="forumPerms.jsp">
<input type="hidden" name="forum" value="<%= forumID %>">
<input type="hidden" name="doRemoveGroupPerm" value="true">
<input type="hidden" name="permType" value="<%= CREATE_MESSAGE %>">
<td align="center">
<b><%= groupsWithMessagePerm.length %></b>
group<%= (groupsWithMessagePerm.length==1)?"":"s" %>
with <font color="#008000">CREATE MESSAGE</font> permission:
<br>
<select size="5" name="groupsWithPerm">
<% for( int i=0; i<groupsWithMessagePerm.length; i++ ) { %>
<% try { %>
<% Group group = manager.getGroup(groupsWithMessagePerm[i]); %>
<option value="<%= group.getID() %>"><%= group.getName() %>
<% } catch( GroupNotFoundException gnfe ) {} %>
<% } %>
</select><br>
(<input type="checkbox" id="cb08"
onclick="selAllListBox(this.form.groupsWithPerm,this);">
<label for="cb08">Select All</label>) <br>
<input type="submit" value="Remove">
</td>
</form>
</tr>
</table>
<%-- /group permission summary --%>
</td>
</table>
</td>
</tr>
</table>
</td>
</table>
<%-- /Permissions summary table --%>
<p>
<%-- Add new user permission --%>
<form action="forumPerms.jsp" method="get">
<input type="hidden" name="doAddUserPerm" value="true">
<input type="hidden" name="forum" value="<%= forumID %>">
<table bgcolor="#666666" cellpadding="0" cellspacing="0" width="80%" align="center" border="0">
<td>
<table bgcolor="#666666" cellpadding="3" cellspacing="1" width="100%" border="0">
<tr bgcolor="#eeeeee">
<td width="99%">
Add new <b>user</b> permission
</td>
<td width="1%" nowrap>
(<a href="createUser.jsp">Create a new user</a>)
</td>
</tr>
<tr bgcolor="#ffffff">
<td colspan="2">
<table cellpadding="3" cellspacing="0" width="100%" border="0">
<td>
<p>
<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<td nowrap>I want</td>
<td>
<select name="userList" size="4" multiple>
<option value="-1">* Anonymous Users
<option value="0">* All Registered Users
<% while( allUsers.hasNext() ) { %>
<% User user = (User)allUsers.next(); %>
<option value="<%= user.getID() %>"><%= user.getUsername() %> (<%= user.getName() %>)
<% } %>
</select>
<br>
(<input type="checkbox" id="cb01"
onclick="selAllListBox(this.form.userList,this);">
<label for="cb01">Select All</label>)
</td>
<td>to be able to</td>
<td>
<select name="userPermTypes" size="<%= perms.length %>" multiple>
<% for( int i=0; i<perms.length; i++ ) { %>
<option value="<%= perms[i] %>"><%= permDescriptions[i] %>
<% } %>
</select>
<br>
(<input type="checkbox" id="cb02"
onclick="selAllListBox(this.form.userPermTypes,this);">
<label for="cb02">Select All</label>)
</td>
<td>this forum</td>
</tr>
<tr>
<td colspan="5" align="center">
<input type="submit" name="" value="Add User Permission">
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
</table>
</td>
</table>
</form>
<%-- /Add new user permission --%>
<p>
<%-- Add new group permission --%>
<form action="forumPerms.jsp" method="get">
<input type="hidden" name="doAddGroupPerm" value="true">
<input type="hidden" name="forum" value="<%= forumID %>">
<table bgcolor="#666666" cellpadding="0" cellspacing="0" width="80%" align="center" border="0">
<td>
<table bgcolor="#666666" cellpadding="3" cellspacing="1" width="100%" border="0">
<tr bgcolor="#eeeeee">
<td width="99%">
Add new <b>group</b> permission
</td>
<td width="1%" nowrap>
(<a href="createGroup.jsp">Create a new group</a>)
</td>
</tr>
<tr bgcolor="#ffffff">
<td colspan="2">
<table cellpadding="3" cellspacing="0" width="100%" border="0">
<td>
<p>
<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<td nowrap>I want</td>
<td>
<select name="groupList" size="4" multiple>
<% while( allGroups.hasNext() ) { %>
<% Group group = (Group)allGroups.next(); %>
<option value="<%= group.getID() %>"><%= group.getName() %>
<% } %>
</select>
<br>
(<input type="checkbox" id="cb11"
onclick="selAllListBox(this.form.groupList,this);">
<label for="cb11">Select All</label>)
</td>
<td>to be able to</td>
<td>
<select name="groupPermTypes" size="<%= perms.length %>" multiple>
<% for( int i=0; i<perms.length; i++ ) { %>
<option value="<%= perms[i] %>"><%= permDescriptions[i] %>
<% } %>
</select>
<br>
(<input type="checkbox" id="cb12"
onclick="selAllListBox(this.form.groupPermTypes,this);">
<label for="cb12">Select All</label>)
</td>
<td>this forum</td>
</tr>
<tr>
<td colspan="5" align="center">
<input type="submit" name="" value="Add Group Permission">
</td>
</tr>
</table>
</td>
</table>
</td>
</tr>
</table>
</td>
</table>
</form>
<%-- /Add new user permission --%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -