<%@ page import=" org.opencms.workplace.commons.*, org.opencms.workplace.CmsDialog, org.opencms.widgets.CmsCalendarWidget "%><% // initialize the workplace class CmsPublishScheduled wp = new CmsPublishScheduled(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("publishscheduled"); %><%= wp.htmlStart() %> <%@page import="org.opencms.workplace.CmsWorkplace"%> <%= CmsCalendarWidget.calendarIncludes(wp.getLocale()) %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %>
<%= wp.paramsAsHidden() %> <%= wp.dialogContentStart(wp.getParamTitle()) %> <%@ include file="includes/resourceinfo.txt" %> <%= wp.dialogSpacer() %> <%= wp.dialogBlockStart(wp.key(Messages.GUI_PUBLISH_SCHEDULED_0)) %>
<%= wp.key(Messages.GUI_LABEL_DATE_PUBLISH_SCHEDULED_0) %>  <%= wp.key(Messages.GUI_CALENDAR_CHOOSE_DATE_0) %>
<%= wp.key(Messages.GUI_LABEL_DATE_RESET_PUBLISH_SCHEDULED_0) %>
<%= 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(), CmsPublishScheduled.PARAM_PUBLISHSCHEDULEDDATE, "triggernewpublishscheduleddate", "cR", false, false, true, null, true) %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% break; case CmsDialog.ACTION_DEFAULT: default: %> <%= wp.buildLockDialog() %> <% } //////////////////// end of switch statement %>