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

📄 doeditrole.jsp

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JSP
字号:
<%@ page import="org.gridsphere.services.core.user.User"%><%@ page import="java.util.List"%><%@ taglib uri="/portletUI" prefix="ui" %><%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %><portlet:defineObjects/><% List<User> userList = (List<User>)request.getAttribute("userList"); %><ui:messagebox beanId="msg"/><% if (request.getAttribute("canEdit") == null) { %><ui:group key="ROLE_EDIT_MSG"><ui:form>    <ui:hiddenfield beanId="roleHF"/>    <ui:hiddenfield beanId="isNewRoleHF"/>    <ui:table>        <ui:tablerow>            <ui:tablecell>                <ui:text key="ROLENAME"/>                <ui:textfield size="10" beanId="roleNameTF"/>            </ui:tablecell>            <ui:tablecell>                <ui:text key="ROLEDESC"/>                <ui:textfield beanId="roleDescTF"/>            </ui:tablecell>            <ui:tablecell>                <ui:actionsubmit action="doSaveRole" key="ROLE_SAVE"/>            </ui:tablecell>        </ui:tablerow>    </ui:table></ui:form></ui:group><% } %><% if (request.getAttribute("newrole") == null) { %><ui:group key="ROLE_EDITUSER_MSG"><ui:form name="roleform">   <ui:hiddenfield beanId="roleHF"/>    <% if (request.getAttribute("nousers") == null) { %>    <ui:frame>        <ui:tablerow>            <ui:tablecell>    <ui:text key="ROLE_ADD_USER"/><ui:listbox beanId="addusersLB"/><ui:actionsubmit action="doAddUser" key="ROLE_ADD_USER_ACTION"/>            </ui:tablecell>        </ui:tablerow>    </ui:frame>    <% } %>    <p/>    <% if (!userList.isEmpty()) { %>    <ui:table beanId="userTable">        <ui:tablerow header="true">            <ui:tablecell>                <ui:checkbox name="all" onClick="GridSphere_CheckAll(document.roleform.userCB, this)"/>                <ui:text key="SELECT"/>            </ui:tablecell>            <ui:tablecell><ui:text key="FULLNAME"/></ui:tablecell>            <ui:tablecell><ui:text key="USERNAME"/></ui:tablecell>            <ui:tablecell><ui:text key="EMAILADDRESS"/></ui:tablecell>            <ui:tablecell><ui:text key="ORGANIZATION"/></ui:tablecell>        </ui:tablerow>        <% for (User user : userList) { %>        <ui:tablerow>            <ui:tablecell>                <ui:checkbox name="userCB" value="<%= user.getID() %>"/>            </ui:tablecell>            <ui:tablecell>                <ui:text value="<%= user.getFullName() %>"/>            </ui:tablecell>            <ui:tablecell>                <ui:text value="<%= user.getUserName() %>"/>            </ui:tablecell>            <ui:tablecell>                <a href="<%= "mailto:" + user.getEmailAddress() %>"><%= user.getEmailAddress() %>                </a>            </ui:tablecell>            <ui:tablecell>                <ui:text value="<%= user.getOrganization() %>"/>            </ui:tablecell>        </ui:tablerow>        <% } %>    </ui:table>    <ui:actionsubmit action="doRemoveUser" key="ROLE_REMOVE_USER"/>    <% } %></ui:form></ui:group><% } %><h3><ui:actionlink action="doReturn" key="ROLE_SHOW_ROLES"/></h3>

⌨️ 快捷键说明

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