<%@ page import=" org.opencms.workplace.commons.*, org.opencms.workplace.CmsDialog, org.opencms.widgets.CmsCalendarWidget "%><% // initialize the workplace class CmsAvailability wp = new CmsAvailability(pageContext, request, response); //////////////////// start of switch statement switch (wp.getAction()) { case CmsDialog.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed wp.actionCloseDialog(); break; case CmsDialog.ACTION_OK: case CmsDialog.ACTION_WAIT: //////////////////// ACTION: main touching action (with optional wait screen) wp.actionUpdate(); break; case CmsDialog.ACTION_LOCKS_CONFIRMED: //////////////////// ACTION: show touch dialog (default) wp.setParamAction("availability"); %><%= wp.htmlStart() %> <%@page import="org.opencms.workplace.CmsWorkplace"%> <%= CmsCalendarWidget.calendarIncludes(wp.getLocale()) %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %>
<%= wp.paramsAsHidden() %> <%= wp.dialogContentStart(wp.getParamTitle()) %><% if (wp.isMultiOperation()) { //%> <%@ include file="includes/multiresourcelist.txt" %><% } else { //%> <%@ include file="includes/resourceinfo.txt" %><% } %> <%= wp.dialogSpacer() %> <%= wp.buildCheckRecursive() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_AVAILABILITY_0)) %>
<%= wp.key(Messages.GUI_LABEL_DATE_RELEASED_0) %>  <%= wp.key(Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>
<%= wp.key(Messages.GUI_AVAILABILITY_RESET_RELEASE_0) %>
<%= wp.key(Messages.GUI_LABEL_DATE_EXPIRED_0) %>  <%= wp.key(Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>
<%= wp.key(Messages.GUI_AVAILABILITY_RESET_EXPIRE_0) %>
<%= wp.dialogBlockEnd() %> <%= wp.dialogSpacer() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_NOTIFICATION_SETTINGS_0)) %> <%= wp.buildCheckboxModifySiblings() %> <%= wp.buildResponsibleList() %>
<%= wp.key(Messages.GUI_NOTIFICATION_INTERVAL_0) %> <%= wp.buildInputNotificationInterval() %>  
<%= wp.key(Messages.GUI_AVAILABILITY_ENABLE_NOTIFICATION_0) %> <%= wp.buildCheckboxEnableNotification() %>  
<%= wp.dialogBlockEnd() %> <%= wp.dialogContentEnd() %> <%= wp.dialogButtonsOkCancel() %>
<%= wp.dialogEnd() %> <% /** * This initializes the JS calendar.

* * @param inputFieldId the ID of the input field where the date is pasted to * @param triggerButtonId the ID of the button which triggers the calendar * @param align initial position of the calendar popup element * @param singleClick if true, a single click selects a date and closes the calendar, otherwise calendar is closed by doubleclick * @param weekNumbers show the week numbers in the calendar or not * @param mondayFirst show monday as first day of week * @param disableFunc JS function which determines if a date should be disabled or not * @param showTime true if the time selector should be shown, otherwise false */ %> <%= CmsCalendarWidget.calendarInit(wp.getMessages(), CmsAvailability.PARAM_RELEASEDATE, "triggernewreleasedate", "cR", false, false, true, null, true) %> <%= CmsCalendarWidget.calendarInit(wp.getMessages(), CmsAvailability.PARAM_EXPIREDATE, "triggernewexpiredate", "cR", false, false, true, null, true) %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% break; case CmsDialog.ACTION_DEFAULT: default: %> <%= wp.buildLockDialog() %> <% } //////////////////// end of switch statement %>