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

📄 pagestandard.jsp

📁 本系统有十分强大的功能
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%-- ***** BEGIN LICENSE BLOCK *****
   - Version: MPL 1.1
   -
   - The contents of this file are subject to the Mozilla Public License Version
   - 1.1 (the "License"); you may not use this file except in compliance with
   - the License. You may obtain a copy of the License at
   - http://www.mozilla.org/MPL/
   -
   - Software distributed under the License is distributed on an "AS IS" basis,
   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
   - for the specific language governing rights and limitations under the
   - License.
   -
   - The Original Code is the OpenCustomer CRM.
   -
   - The Initial Developer of the Original Code is
   - Thomas Bader (Bader & Jene Software-Ingenieurb黵o).
   - Portions created by the Initial Developer are Copyright (C) 2005
   - the Initial Developer. All Rights Reserved.
   -
   - Contributor(s):
   -   Thomas Bader <thomas.bader@bader-jene.de>
   -
   - ***** END LICENSE BLOCK ***** --%>
   
<%@ include file="/tiles/page.jsp" %>

<%@ page import="org.opencustomer.webapp.Globals" %>
<%@ page import="org.opencustomer.framework.webapp.util.TagUtility" %>
<%@ page import="org.opencustomer.webapp.auth.Right" %>
<%@ page import="org.opencustomer.db.vo.system.UserVO" %>
<%@ page import="org.opencustomer.framework.db.vo.EntityAccess" %>

<tiles:insert definition="standard">
	<tiles:put name="page.title">
		<panel:title/>
	</tiles:put>
	<tiles:put name="page.content">

	<html:errors/>

	<panel:edit focus="userName"><%
		UserVO user = (UserVO)pageContext.getAttribute("panel_user");

        boolean isActiveUser = false;
        if(pageContext.getAttribute("panel_isActiveUser") != null)
            isActiveUser = (Boolean)pageContext.getAttribute("panel_isActiveUser"); 
        
        boolean isLdapUser = false;
        if(pageContext.getAttribute("panel_isLdapUser") != null)
            isLdapUser = (Boolean)pageContext.getAttribute("panel_isLdapUser"); 
	%>
		<fieldset class="unit">
			<table>
				<tr>
					<td class="label">
						<common:label property="userName" errorStyleId="error"><bean:message key="entity.system.user.userName"/></common:label>
					</td>
					<td>
						<html:text property="userName" styleId="userName" maxlength="255" styleClass="full" disabled="<%=isLdapUser%>"/>
					</td>
				</tr>
				<tr>
					<td class="label">
						<common:label property="userPassword" errorStyleId="error"><bean:message key="entity.system.user.password"/></common:label>
					</td>
					<td>
						<html:password property="userPassword" styleId="userPassword" maxlength="255" styleClass="full" disabled="<%=isActiveUser||isLdapUser%>"/>
					</td>
				</tr>
			</table>
		</fieldset>
		<fieldset class="unit">
			<table>
				<tr>
					<td class="label">
						<common:label property="person" errorStyleId="error"><bean:message key="entity.crm.person"/></common:label>
					</td>
					<td>
						<logic:present name="panel_user" property="person" scope="page">
						<bean:write name="panel_user" property="person.firstName" scope="page"/> <bean:write name="panel_user" property="person.lastName" scope="page"/>
						</logic:present>
						<logic:notPresent name="panel_user" property="person" scope="page">
						<bean:message key="default.select.none"/>
						</logic:notPresent>
					</td>
					<td class="action">
						<oc:authenticate right="<%=Right.ADMINISTRATION_USERMANAGEMENT_WRITE.getLabel()%>">
						<panel:editable condition="true">
						<logic:present name="panel_user" property="person" scope="page">
						<html:image property="doRemovePerson" pageKey="image.icon.delete.url" titleKey="image.icon.delete.text" altKey="image.icon.delete.text"/>
						</logic:present>
						<logic:notPresent name="panel_user" property="person" scope="page">
						<html:img pageKey="image.icon.delete_grey.url" titleKey="image.icon.delete_grey.text" altKey="image.icon.delete_grey.text"/>
						</logic:notPresent>
						</panel:editable>
						<panel:editable condition="false">
						<html:img pageKey="image.icon.delete_grey.url" titleKey="image.icon.delete_grey.text" altKey="image.icon.delete_grey.text"/>
						</panel:editable>
						
						<panel:editable condition="true">
						<logic:present name="panel_entity" property="profile.role" scope="page">
						<logic:equal name="panel_entity" property="profile.role.admin" scope="page" value="false">
						<html:image property="doAddPerson" pageKey="image.icon.add.url" titleKey="image.icon.add.text" altKey="image.icon.add.text"/>
						</logic:equal>
						<logic:equal name="panel_entity" property="profile.role.admin" scope="page" value="true">
						<html:img pageKey="image.icon.add_grey.url" titleKey="image.icon.add_grey.text" altKey="image.icon.add_grey.text"/>
						</logic:equal>
						</logic:present>
						<logic:notPresent name="panel_entity" property="profile.role" scope="page">
						<html:img pageKey="image.icon.add_grey.url" titleKey="image.icon.add_grey.text" altKey="image.icon.add_grey.text"/>
						</logic:notPresent>
						</panel:editable>
						<panel:editable condition="false">
						<html:img pageKey="image.icon.add_grey.url" titleKey="image.icon.add_grey.text" altKey="image.icon.add_grey.text"/>
						</panel:editable>
						</oc:authenticate>
					</td>
				</tr>
				<tr>
					<td class="label">
						<common:label property="locale" errorStyleId="error"><bean:message key="entity.system.user.locale"/></common:label>
					</td>
					<td class="data" colspan="2">
						<html:select property="locale" styleId="locale" styleClass="full">
							<html:optionsCollection name="panel_locales" label="localizedName" value="locale"/>
						</html:select>
					</td>
				</tr>				
			</table>
		</fieldset>		
		<fieldset class="unit">
			<table>
				<tr>
					<td class="label">
						<common:label property="role" errorStyleId="error"><bean:message key="entity.system.role"/></common:label>
					</td>
					<td>
						<logic:present name="panel_entity" property="profile.role" scope="page">
						<bean:write name="panel_entity" property="profile.role.name" scope="page"/>
						</logic:present>
						<logic:notPresent name="panel_entity" property="profile.role" scope="page">
						<bean:message key="default.select.none"/>
						</logic:notPresent>
					</td>
					<td class="action">
						<oc:authenticate right="<%=Right.ADMINISTRATION_USERMANAGEMENT_WRITE.getLabel()%>">
						<panel:editable condition="true">
							<logic:equal name="panel_isLdapUser" scope="page" value="false">
							<html:image property="doAddRole" pageKey="image.icon.add.url" titleKey="image.icon.add.text" altKey="image.icon.add.text" disabled="<%=isLdapUser%>"/>
							</logic:equal>
							<logic:equal name="panel_isLdapUser" scope="page" value="true">
							<html:img pageKey="image.icon.add_grey.url" titleKey="image.icon.add_grey.text" altKey="image.icon.add_grey.text"/>
							</logic:equal>
						</panel:editable>
						<panel:editable condition="false">
							<html:img pageKey="image.icon.add_grey.url" titleKey="image.icon.add_grey.text" altKey="image.icon.add_grey.text"/>
						</panel:editable>
						</oc:authenticate>
						<oc:authenticate right="<%=Right.ADMINISTRATION_ROLE_READ.getLabel()%>">
							<panel:image property="doJumpRole" pageKey="image.icon.jump.url" titleKey="image.icon.jump.text" altKey="image.icon.jump.text" enable="true"/>
						</oc:authenticate>
					</td>
				</tr>
				<tr>
					<td class="label">
						<common:label property="usergroup" errorStyleId="error"><bean:message key="entity.system.usergroup"/></common:label>
					</td>
					<td colspan="2">
						<div style="margin-top: 5px;">
							<table class="inner">
								<oc:authenticate right="<%=Right.ADMINISTRATION_USERMANAGEMENT_WRITE.getLabel()%>">
								<tr>

⌨️ 快捷键说明

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