pagestandard.jsp

来自「开源项目CRM之OpenCustomer」· JSP 代码 · 共 140 行

JSP
140
字号
<%-- ***** 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.application.web.module.calendar.Constants" %>
<%@ page import="org.opencustomer.web.util.TagUtility" %>
<%@ page import="org.opencustomer.application.auth.Right" %>
<%@ page import="org.opencustomer.db.vo.EntityAccess" %>

<tiles:insert definition="calendar.event.edit">
	<tiles:put name="page.content">

	<html:form action="/calendar/event/edit/processPageStandard" focus="title" styleClass="default">
		<html:errors/>
		<div class="slider">
			<html:submit property="doPageStandard" disabled="true" styleClass="active"><bean:message key="domain.calendar.event.pageStandard"/></html:submit><% 
			%><html:submit property="doPageRecurrence"><bean:message key="domain.calendar.event.pageRecurrence"/></html:submit><%
			%><html:submit property="doPageSystem"><bean:message key="domain.calendar.event.pageSystem"/></html:submit>
		</div>
		<div class="tabbedPage">
			<fieldset class="unit">
				<legend><bean:message key="domain.calendar.event.block.common"/></legend>
				<table>
					<tr>
						<td class="label">
							<buj:label property="title" errorStyleId="error"><bean:message key="entity.calendar.event.title"/></buj:label>
						</td>
						<td>
							<html:text property="title" styleId="title" maxlength="255" styleClass="full"/>
						</td>
					</tr>
					<tr>
						<td class="label">
							<buj:label property="startDate" errorStyleId="error"><bean:message key="entity.calendar.event.startDate"/></buj:label>
						</td>
						<td>
							<table class="partial">
								<colgroup>
									<col width="1*"/>
									<col width="1*"/>
								</colgroup>
								<tr>
									<td style="padding-right: 10px;"><html:text property="startDate" styleId="startDate" styleClass="full"/></td>
									<td style="padding-left: 10px;"><html:text property="startTime" styleId="startTime" styleClass="full"/></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td class="label">
							<buj:label property="endDate" errorStyleId="error"><bean:message key="entity.calendar.event.endDate"/></buj:label>
						</td>
						<td>
							<table class="partial">
								<colgroup>
									<col width="1*"/>
									<col width="1*"/>
								</colgroup>
								<tr>
									<td style="padding-right: 10px;"><html:text property="endDate" styleId="endDate" styleClass="full"/></td>
									<td style="padding-left: 10px;"><html:text property="endTime" styleId="endTime" styleClass="full"/></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td class="label">
							<buj:label property="allDay" errorStyleId="error"><bean:message key="entity.calendar.event.allDay"/></buj:label>
						</td>
						<td>
							<html:checkbox property="allDay" styleId="allDay"/>
						</td>
					</tr>
					<tr>
						<td class="label">
							<buj:label property="occupied" errorStyleId="error"><bean:message key="entity.calendar.event.occupied"/></buj:label>
						</td>
						<td>
							<html:checkbox property="occupied" styleId="occupied"/>
						</td>
					</tr>
				</table>
			</fieldset>
			<fieldset class="unit">
				<legend><buj:label property="description" errorStyleId="error"><bean:message key="entity.calendar.event.description"/></buj:label></legend>
				<table>
					<tr>
						<td>
							<html:textarea property="description" styleId="description"/>
						</td>
					</tr>
				</table>
			</fieldset>
			<fieldset class="action">
				<buj:authenticate right="<%=Right.CALENDAR_COMMON_WRITE.getLabel()%>">
				<buj:entityAccess name="<%=Constants.EVENT_KEY%>" scope="session" access="<%=EntityAccess.Access.WRITE%>"> <%
            	Object id   = TagUtility.lookupString(pageContext, Constants.EVENT_KEY, "id", "session", true);
                if(id == null) { %>
				<html:submit property="doDelete" styleClass="left" disabled="true"><bean:message key="image.button.delete.text"/></html:submit><%
				} else { %>
				<html:submit property="doDelete" styleClass="left"><bean:message key="image.button.delete.text"/></html:submit><%
				} %>
				</buj:entityAccess>
				</buj:authenticate>
				<html:submit property="doCancel"><bean:message key="image.button.cancel.text"/></html:submit>
				<buj:authenticate right="<%=Right.CALENDAR_COMMON_WRITE.getLabel()%>">	
				<buj:entityAccess name="<%=Constants.EVENT_KEY%>" scope="session" access="<%=EntityAccess.Access.WRITE%>">
				<html:submit property="doSave"><bean:message key="image.button.save.text"/></html:submit>
				</buj:entityAccess>
				</buj:authenticate>
			</fieldset>
		</div>
	</html:form>
	
	</tiles:put>
</tiles:insert>

⌨️ 快捷键说明

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