<%@ page import="org.opencms.workplace.commons.*" %><% // initialize the workplace class CmsPropertyCustom wp = new CmsPropertyCustom(pageContext, request, response); if (wp.isForwarded()) { return; } String additionalScript = ""; //////////////////// start of switch statement switch (wp.getAction()) { case CmsPropertyCustom.ACTION_CLOSEPOPUP_SAVE: //////////////////// ACTION: save edited properties for the current resource type and close the popup window wp.actionEdit(request); case CmsPropertyCustom.ACTION_CLOSEPOPUP: //////////////////// ACTION: close the popup window %> <% break; case CmsPropertyCustom.ACTION_CANCEL: //////////////////// ACTION: cancel button pressed, close dialog wp.actionDeleteResource(); wp.actionCloseDialog(); break; case CmsPropertyCustom.ACTION_SAVE_EDIT: //////////////////// ACTION: save edited properties for the current resource type wp.actionEdit(request); wp.actionCloseDialog(); break; case CmsPropertyCustom.ACTION_EDIT: default: //////////////////// ACTION: show edit properties window wp.setParamAction(wp.DIALOG_SAVE_EDIT); %><%= wp.htmlStart(null, wp.getParamTitle()) %> <%= wp.bodyStart("dialog", "onload=\"window.setTimeout('doSet()',50);\"") %> <%= wp.dialogStart() %>
<%= wp.dialogContentStart(wp.getParamTitle()) %> <%= wp.paramsAsHidden() %> <%= wp.buildEditForm() %> <%= wp.dialogContentEnd() %> <%= wp.dialogButtonsOkCancelAdvanced(null, null, "value=\""+wp.key(Messages.GUI_PROPERTY_ADVANCED_0)+"\" onclick=\"submitAdvanced();\"") %>
<%= wp.dialogEnd() %> <% if (wp.showNavigation()) { %> <% } %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %> <% } //////////////////// end of switch statement %>