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

📄 forumperms.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
					<%		if( userID == -1 ) { %>
						<option value="<%= userID %>">◎匿名过客
					<%		} else if( userID == 0 ) { %>
						<option value="<%= userID %>">◎所有注册用户
					<%		} else { %>
						<option value="<%= userID %>"><%= user.getUsername() %>				
					<%		} %>
					<%		} catch( UserNotFoundException unfe ) {} %>
					<%	} %>
					</select><br>
					(<input type="checkbox" id="cb03"
					  onclick="selAllListBox(this.form.usersWithPerm,this);">
					<label for="cb03">全选</label>) <br>
					<input type="submit" value="删除">
				</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>
					拥有<font color="#008000">创建论题</font>许可:
					<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 %>">◎匿名过客
					<%		} else if( userID == 0 ) { %>
						<option value="<%= userID %>">◎所有注册用户
					<%		} 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">全选</label>) <br>
					<input type="submit" value="删除">
				</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>
					拥有<font color="#008000">回复帖子</font>许可:
					<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 %>">◎匿名过客
					<%		} else if( userID == 0 ) { %>
						<option value="<%= userID %>">◎所有注册用户
					<%		} 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">全选</label>) <br>
					<input type="submit" value="删除">
				</td>
		</form>
			</tr>
			</table>
			<%-- /user permission summary --%>
			
			<p>
			<hr size="0" width="75%">
			<p>
			
			<%-- group permission summary --%>
			用户组 在此论坛的许可的详细情况:
			<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>
					拥有<font color="#008000">论坛浏览</font>许可:
					<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">全选</label>) <br>
					<input type="submit" value="删除">
				</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>
					拥有<font color="#008000">创建论题</font>许可:
					<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">全选</label>) <br>
					<input type="submit" value="删除">
				</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>
					拥有<font color="#008000">回复帖子</font>许可:
					<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">全选</label>) <br>
					<input type="submit" value="删除">
				</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%">
	增加新<b>用户</b>许可
	</td>
	<td width="1%" nowrap>
	(<a href="createUser.jsp">增加一个新用户</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>设置</td>
				<td width="1%">
					<select name="userList" size="2" multiple>
					<option value="-1">◎匿名过客
					<option value="0">◎所有注册用户
					</select>
					(<input type="checkbox" id="cb01"
					  onclick="selAllListBox(this.form.userList,this);">
					<label for="cb01">全选</label>)
					<br>
					<input type="text" size="20" name="userListField"
					 value="输入用户名"
					 onclick="this.select();">
					<br>
				</td>
				<td>在此论坛中有</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">全选</label>)
				</td>
				<td>的许可</td>
			</tr>
			<tr>
				<td colspan="5" align="center">
				<input type="submit" name="" value="增加用户许可">
				</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%">
	增加新<b>用户组</b>许可
	</td>
	<td width="1%" nowrap>
	(<a href="createGroup.jsp">增加一个新用户组</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>设置</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">全选</label>)
				</td>
				<td>在此论坛中拥有</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">全选</label>)
				</td>
				<td>的许可</td>
			</tr>
			<tr>
				<td colspan="5" align="center">
				<input type="submit" name="" value="增加用户组许可">
				</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 + -