<!-- getlegaquestiondetail.vm --> <!----------------------------------------------------------------------------\ | getlegaquestiondetail.vm | |-----------------------------------------------------------------------------| | Author: Ray D. Leyendecker | | Adi Mishra | | | | Website: http://www.legadero.com | |-----------------------------------------------------------------------------| | Manages the responses for specified questions. | |-----------------------------------------------------------------------------| | Copyright (c) 2000 - 2005 Legadero Software Inc. | | All Rights Reserved. | \-----------------------------------------------------------------------------> #set ($savebutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.save.label")) #set ($savebuttonhint_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.save.hint")) #set ($cancelbutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.cancel.label")) #set ($cancelbuttonhint_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.cancel.hint")) #set ($deletebutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.delete.label")) #set ($deletebuttonhint_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.delete.hint")) #set ($saveascopybutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.saveascopy.label")) #set ($saveascopybuttonhint_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "Controls", "controls.buttons.saveascopy.hint")) #set ($windowtitle_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.windowtitle")) #set ($changeresponsetypeconfirm_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.changeresponsetypeconfirm")) #set ($question_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.question")) #set ($questionlabel_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.questionlabel")) #set ($instructionslabel_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.instructionslabel")) #set ($resourcetype_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.resourcetype")) #set ($responsetype_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.responsetype")) #set ($tag_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.tag")) #set ($required_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.required")) #set ($whenchecked_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.whenchecked")) #set ($access_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.access")) #set ($public_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.public")) #set ($sensitive_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.sensitive")) #set ($advancedoptions_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.advancedoptions")) #set ($summarizeanswer_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.summarizeanswer")) #set ($noadvancedoptions_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.noadvancedoptions")) #set ($viewoptions_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.viewoptions")) #set ($position_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.position")) #set ($showinview_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showinview")) #set ($showinxaxis_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showinxaxis")) #set ($showinyaxis_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showinyaxis")) #set ($showinsize_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showinsize")) #set ($showascost_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showascost")) #set ($showasbenefit_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showasbenefit")) #set ($summarylabel_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.summarylabel")) #set ($summarycalculation_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.summarycalculation")) #set ($summaryformatting_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.summaryformatting")) #set ($none_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.none")) #set ($formatascurrency_text = $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.formatascurrency")) #set ($setquestionalert_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.setquestionalert")) #set ($showsummaryalert_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showsummaryalert")) #set ($hideTrackerView = true) #if ($availableViewList.indexOf("MyTrackerMainView") != -1 ) #set ($hideTrackerView = false) #end #set ($hideSummaryView = true) #if ($availableViewList.indexOf("SummaryMainView") != -1 ) #set ($hideSummaryView = false) #end #set ($hideExecutionProfileView = true) #if ($availableViewList.indexOf("ExecutionProfileMainView") != -1 ) #set ($hideExecutionProfileView = false) #end #set ($hideExecutionProfileOverviewTab = true) #if ($availableViewList.indexOf("ExecutionProfileTab") != -1 ) #set ($hideExecutionProfileOverviewTab = $hideExecutionProfileView) #end #set ($hideImpactProfileView = true) #if ($availableViewList.indexOf("ImpactProfileMainView") != -1 ) #set ($hideImpactProfileView = false) #end #set ($hideImpactProfileGraphView = true) #if ($availableViewList.indexOf("ImpactProfileGraphView") != -1 ) #set ($hideImpactProfileGraphView = $hideImpactProfileView ) #end #set ($hideBusinessAlignmentView = true) #if ($availableViewList.indexOf("BusinessAlignmentMainView") != -1 ) #set ($hideBusinessAlignmentView = false) #end #set ($hideBusinessAlignmentGraphView = true) #if ($availableViewList.indexOf("BusinessAlignmentGraphView") != -1 ) #set ($hideBusinessAlignmentGraphView = $hideBusinessAlignmentView) #end #set ($hideBusinessAlignmentTableView = true) #if ($availableViewList.indexOf("BusinessAlignmentTableView") != -1 ) #set ($hideBusinessAlignmentTableView = $hideBusinessAlignmentView) #end #set ($hideBalancingView = true) #if ($availableViewList.indexOf("BusinessAlignmentBalancingView") != -1 ) #set ($hideBalancingView = $hideBusinessAlignmentView) #end <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>$windowtitle_text</title> <link rel="stylesheet" type="text/css" href="../themes/$theme/main.css" /> <link rel="stylesheet" type="text/css" href="../themes/$theme/xmenu.css" /> <style> .floatingMessage { display:none; height:30px ; width: 400px ; border: 1px solid black ; background-color: #FDFE88 ; filter: progid:DXImageTransform.Microsoft.Shadow(color='#777777', Direction=135, Strength=3); } #advanceSettingsDesc { display: none ; } </style> #parse("common_js.vm") #parse("systemmanager_js.vm") <script type="text/javascript" src="../common/system/systemmanager.js"></script> <script type="text/javascript" src="../common/system/communication.js"></script> #parse ("formvalidator.vm") <script type="text/javascript" src="../common/system/formvalidator.js"></script> <script type="text/javascript" src="../common/system/modalwindow.js"></script> #parse("itimpactdialogs_js.vm") <script type="text/javascript" src="../common/application/itimpact/itimpactdialogs.js"></script> <script type="text/javascript" src="../common/application/itimpact/itimpactadminmanager.js"></script> <script type="text/javascript" src="../common/system/xmenu.js"></script> #parse ("changedetector.vm") <script type="text/javascript" src="../common/system/changedetector.js"></script> <script type="text/javascript"> //<![CDATA[ <!-- var originalQuestion = unescapeBT('$legaQuestion.getQuestion()') ; var originalInstructions = unescapeBT('$legaQuestion.getInstructions()') ; var originalSummaryLabel = unescapeBT('$legaQuestion.getSummaryLabel()') ; var originalsummaryFormattingType = '$legaQuestion.getFormatting()' ; var originalResponseType = '$legaQuestion.getLegaResponseTypeId()' ; var newOriginalResponseType = '$legaQuestion.getLegaResponseTypeId()' ; var originalValueSummaryCalculation = '$legaQuestion.getLegaSummaryTypeId()' ; var originalIsRequired = "$legaQuestion.getRequired()" ; var originalIsReadOnly = "$legaQuestion.getReadOnly()" ; var originalHasHtml = "$legaQuestion.getHasHtml()" ; var originalTag = "$legaQuestion.getTag()" ; var lpcp = null ; var summaryColumnId = '$legaQuestion.getLegaQuestionId()'; var summaryListTable = new Array($responseTypeList.size()); #foreach ($rt in $responseTypeList) summaryListTable['$rt.getLegaResponseTypeId()'] = '$rt.getSummaryList()'; #end var responseNameTable = new Array($summaryTypeList.size()); #foreach ($st in $summaryTypeList) responseNameTable['$st.getLegaSummaryTypeId()'] = '$st.getName()'; #end var selectedSummaryType = '$legaQuestion.getLegaSummaryTypeId()'; #set ($headerType = $legaQuestion.getLegaResponseTypeId().equals("100000000001")) var dcd = new DocumentChangeDetector() ; function FormItems() { this.question = "" ; this.instructions = "" ; this.responseType = "" ; this.summaryLabel = "" ; this.summaryFormattingType = "" ; this.valueSummaryCalculation = "" ; this.isValid = true ; this.message = "" ; this.isRequired = "FALSE" ; this.isReadOnly = "N" ; this.hasHtml = "N" ; this.idTag = ""; } /* * Initialize this page. */ function init() { initSystemManager() ; lpcp = new LPCP(document.forms[0]) ; initializeFormControls() ; updateSummaryList() ; if (originalResponseType.length == 0) { var rtList = document.formData.responseTypeList ; var rtoptions = rtList.options ; } if (originalValueSummaryCalculation.length == 0) { var vtList = document.formData.summaryTypeList ; if (vtList) { var vtoptions = vtList.options ; originalValueSummaryCalculation = vtoptions[vtList.selectedIndex].value ; } } document.formData.question.focus() ; // Initialize the change detector. dcd.init() } /* * Initialize any form controls with their respective data. */ function initializeFormControls() { document.formData.question.value = unescapeBT('$legaQuestion.getQuestion()') ; document.formData.instructions.value = unescapeBT('$legaQuestion.getInstructions()') ; document.formData.idTag.value = unescapeBT('$legaQuestion.getTag()') ; document.formDisplay.vcolumn.value = unescapeBT('$legaQuestion.getSummaryLabel()') ; } /* * Returns true if the specified element is selected. */ function isChecked(element) { return element.checked; } /* * Displays the Summary Column Order Detail dialog. */ function showSummaryColumnOrderDetail(viewName, columnId, isChecked) { var thisLabel = ""; #if ($canSave) thisLabel = escapeBT(document.formDisplay.vcolumn.value); #else thisLabel = escapeBT(originalSummaryLabel); #end if (isChecked) showSummaryColumnOrderManager(viewName, columnId, thisLabel); else alert("$showsummaryalert_text"); } /* * Returns true if any changes were made to this form; otherwise false. */ function changesMade(formValues) { var changes = (formValues.question != originalQuestion) ; changes = changes || (formValues.instructions != originalInstructions) ; changes = changes || (formValues.summaryLabel != originalSummaryLabel) ; changes = changes || (formValues.summaryFormattingType != originalsummaryFormattingType) ; changes = changes || (formValues.responseType != originalResponseType) ; changes = changes || (formValues.valueSummaryCalculation != originalValueSummaryCalculation) ; changes = changes || (formValues.isRequired != originalIsRequired) ; changes = changes || (formValues.hasHtml != originalHasHtml) ; changes = changes || (formValues.isReadOnly != originalIsReadOnly) ; changes = changes || (formValues.idTag != originalTag) ; return changes ; } /* * Validates this form. */ function validateForm() { var formValues = new FormItems() ; #if ($canSave) formValues.question = document.formData.question.value ; formValues.instructions = document.formData.instructions.value ; formValues.idTag = document.formData.idTag.value ; var rtList = document.formData.responseTypeList ; var rtoptions = rtList.options ; formValues.responseType = rtoptions[rtList.selectedIndex].value ; var vtList = document.formDisplay.summaryTypeList ; var vtoptions = vtList.options ; formValues.valueSummaryCalculation = vtoptions[vtList.selectedIndex].value ; var sfList = document.formDisplay.summaryFormattingList ; var sfoptions = sfList.options ; formValues.summaryFormattingType = sfoptions[sfList.selectedIndex].value ; formValues.summaryLabel = document.formDisplay.vcolumn.value ; formValues.isRequired = (document.all.isrequired.checked) ? "TRUE" : "FALSE" ; formValues.isReadOnly = (document.all.isreadonly.checked) ? "Y" : "N" ; formValues.hasHtml = (document.all.hashtml.checked) ? "Y" : "N" ; #else formValues.question = originalQuestion ; formValues.responseType = originalResponseType ; formValues.summaryLabel = originalSummaryLabel ; formValues.valueSummaryCalculation = originalValueSummaryCalculation ; formValues.isRequired = originalIsRequired ; formValues.isReadOnly = originalIsReadOnly ; formValues.hasHtml = originalHasHtml ; #end return formValues ; } /* * Saves this question by making a call to persist the information * contained in this web page. */ function setLegaQuestion(mode) { if (!mode) mode = ""; var formValues = validateForm(); // Is the response type a core data item. var origResponseTypeIsCoreData = isCoreData(originalResponseType) ; var responseTypeIsCoreData = isCoreData(formValues.responseType) ; var responseTypeIsHeader = isHeaderType(formValues.responseType) ; if ( !responseTypeIsCoreData && !responseTypeIsHeader && ( #if (!$hideExecutionProfileView) (isChecked(document.formDisplay.$V_EXECUTION_PROFILE_TABLE)) || #else false || #end #if (!$hideImpactProfileGraphView) (isChecked(document.formDisplay.$_IMPACT_PROFILE_GRAPH_VIEW)) || #else false || #end #if (!$hideBusinessAlignmentGraphView) (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW)) || (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW)) || #else false || #end #if (!$hideBusinessAlignmentTableView) (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_TABLE_VIEW)) || (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW)) || (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW)) || #else false || #end #if (!$hideBalancingView ) (isChecked(document.formDisplay.$_BUSINESS_ALIGNMENT_BALANCING_VIEW)) #else false #end ) && (formValues.summaryLabel.length == 0)) alert("$setquestionalert_text"); else { var displayEntries = "" ; i = 0 ; while (document.formDisplay.elements[i]) { if (document.formDisplay.elements[i].type == "checkbox") { if (document.formDisplay.elements[i].checked) { if (displayEntries.length > 0) { displayEntries += "," ; } displayEntries += document.formDisplay.elements[i].name ; } } i++ ; } if (formValues.isValid) { if (responseTypeIsCoreData || responseTypeIsHeader) // No advanced settings for core data response types. { displayEntries = "" ; formValues.summaryLabel = "" ; formValues.valueSummaryCalculation = "000000000004" ; formValues.summaryFormattingType = "" ; } var itimpactAdminManager = new ITimpactAdminManager() ; var lqId = "$legaQuestion.getLegaQuestionId()"; var qName = formValues.question; var instructions = formValues.instructions; var accessList = document.getElementById("accessPrivilege"); var access = accessList[accessList.selectedIndex].value; if (mode == "COPY") { lqId = "COPY_" + lqId; qName = qName + "(COPY)"; } var lfq = new LegaQuestion( lqId, qName, formValues.responseType, displayEntries, formValues.summaryLabel, formValues.valueSummaryCalculation, formValues.summaryFormattingType, null, null, null, formValues.isRequired, formValues.isReadOnly, formValues.hasHtml, formValues.idTag, instructions, access) ; var xmlMethodSignature = itimpactAdminManager.setLegaQuestion(lfq.serializeXML()); #if (!$newquestion) if ((newOriginalResponseType == "000000000008") && (formValues.responseType == "000000000006")) { lpcp.invoke(xmlMethodSignature); } else if ( (!origResponseTypeIsCoreData) && (newOriginalResponseType.length != 0) && (formValues.responseType != originalResponseType) ) { if (confirm("$changeresponsetypeconfirm_text")) { lpcp.invoke(xmlMethodSignature) ; } } else #end lpcp.invoke(xmlMethodSignature) ; } else { alert(formValues.message) ; document.formData.question.focus() ; } } } /* * Removes this question from the system. * Prompts the user for confirmation. */ function deleteLegaQuestion() { #set ($param1_text = $legaQuestion.getLegaQuestionId()) if (confirm('$CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.changeresponsetypeconfirm", "$param1_text")')) { var itimpactAdminManager = new ITimpactAdminManager() ; var xmlMethodSignature = itimpactAdminManager.removeLegaQuestion('$legaQuestion.getLegaQuestionId()'); lpcp.invoke(xmlMethodSignature) ; } } /* * Updates the summary list based on response type settings. */ function updateSummaryList() { var rtList = document.formData.responseTypeList ; var rtoptions = rtList.options ; var selectedResponseId = rtoptions[rtList.selectedIndex].value ; var summaryList = summaryListTable[selectedResponseId] ; var sumArray = buildArrayFromList(summaryList); var size = sumArray.length ; var optionsArray = new Array(size) ; for (var i = 0 ; i < size ; i++) { optionsArray[i] = new Option(responseNameTable[sumArray[i]], sumArray[i]); } var vtList = document.formDisplay.summaryTypeList; vtList.options.length = 0; for (var i = 0 ; i < size ; i++) { vtList.options[i] = optionsArray[i] ; if (selectedSummaryType == optionsArray[i].value) vtList.options[i].selected = true; } /* If the selected response type is a core data item then disable the advanced options and display a comment.*/ if (selectedResponseId == "000000000120") { hideAdvancedOptions() ; hideRequiredOptions() ; displayReadOnlyOptions() ; } else if (isHeaderType(selectedResponseId)) { hideAdvancedOptions() ; hideRequiredOptions() ; } else if (isCoreData(selectedResponseId)) { hideAdvancedOptions() ; displayRequiredOptions() ; hideReadOnlyOptions() ; } else { displayAdvancedOptions() ; displayRequiredOptions() ; displayReadOnlyOptions() ; } // if numeric or multiple choice, allow currency, else only option 1 var summaryFormattingList = document.all.summaryFormattingList; summaryFormattingList.options.length = 0; if ((selectedResponseId == '000000000001')) { var option0 = new Option("$none_text", ""); var option1 = new Option("$formatascurrency_text", "000000000001"); summaryFormattingList.options[0] = option0; summaryFormattingList.options[1] = option1; #if ($legaQuestion.getFormatting().equals("000000000001")) summaryFormattingList.options[1].selected = true; #else summaryFormattingList.options[0].selected = true; #end } else { var option0 = new Option("$none_text", ""); summaryFormattingList.options[0] = option0; summaryFormattingList.options[0].selected = true; } } /* * Determines if the specified response type is a core data item. */ function isCoreData(responseTypeID) { // Check if the selected response type is a core data item. var isCoreDataResponseType = ((responseTypeID == "000000000010") || (responseTypeID == "000000000011") || (responseTypeID == "000000000012") || (responseTypeID == "000000000013") || (responseTypeID == "000000000020") || (responseTypeID == "000000000021") || (responseTypeID == "000000000022") || (responseTypeID == "000000000023") || (responseTypeID == "000000000024") || (responseTypeID == "000000000025") || (responseTypeID == "000000000030") || (responseTypeID == "000000000102") || (responseTypeID == "000000000110") || (responseTypeID == "000000000111") || (responseTypeID == "000000000112") || (responseTypeID == "000000000113") || (responseTypeID == "000000000114") || (responseTypeID == "000000000115") || (responseTypeID == "000000000120") || (responseTypeID.indexOf("2000") == 0) ); return isCoreDataResponseType ; } function isHeaderType(responseTypeID) { // Check if the selected response type is a header item. var isHeaderType = ((responseTypeID == "100000000001")) ; return isHeaderType ; } /* * Displays the advance settings component. */ function hideAdvancedOptions() { document.all.coreDataMessage.style.display = "block" ; document.all.advanceSettingsDesc.style.display = "none" ; document.all.advancedOptions.style.display = "none" ; } /* * Hides the advance settings component. */ function displayAdvancedOptions() { document.all.coreDataMessage.style.display = "none" ; document.all.advanceSettingsDesc.style.display = "block" ; document.all.advancedOptions.style.display = "block" ; } /* * Displays the required settings component. */ function hideRequiredOptions() { document.all.requiredOptions.style.display = "none" ; } /* * Hides the required settings component. */ function displayRequiredOptions() { document.all.requiredOptions.style.display = "block" ; } /* * Displays the readonly settings component. */ function hideReadOnlyOptions() { document.all.readonlyOptions.style.display = "none" ; } /* * Hides the readonly settings component. */ function displayReadOnlyOptions() { document.all.readonlyOptions.style.display = "block" ; } /* * Closes this window. Notifies the user if any changes have occurred. */ function closeWindow() { var closeWin = true ; #if ($canSave) if (dcd.checkForChanges()) { closeWin = confirm(dcd.getMessage()) ; } #end if (closeWin) { close() ; } } /*----- Menubar ------*/ function showMenu() { } var menubar = new XMenuBar("menubar","left") ; #if ($canSave) var menuButtonSave = new XMenuButton("$savebutton_text", "../themes/$theme/images/save16x16.gif","setLegaQuestion()","$savebuttonhint_text") ; menubar.add(menuButtonSave) ; #end #if (($canSave) && (!$newquestion)) var menuButtonCopy = new XMenuButton("$saveascopybutton_text", "../common/system/menuimages/saveasnew16x16.gif","setLegaQuestion('COPY')","$saveascopybuttonhint_text") ; menubar.add(menuButtonCopy) ; #end #if (($canDelete) && (!$newquestion)) var menuButtonDelete = new XMenuButton("$deletebutton_text", "../common/system/menuimages/delete.gif","deleteLegaQuestion()","$deletebuttonhint_text") ; menubar.add(menuButtonDelete) ; #end var menuButtonCancel = new XMenuButton("$cancelbutton_text", "../themes/$theme/images/cancel16x16.gif","closeWindow()","$cancelbuttonhint_text") ; menubar.add(menuButtonCancel) ; //--> //]]> </script> </head> <body onload='init()' style="height: 100vh"> <form id='formPosting' name='formPosting' method='post' action='../servlet/LPCPRouter' onSubmit="return false"> <input type='hidden' name='xmlMethodSignature'/> </form> <form name='formData' style="height: 100%"> <table style="border-collapse:collapse;width:100%;height:100%"> <tr> <td style="height:auto;padding:0px"> <!-- Navigation Buttons. --> <table style="border-collapse:collapse;width:100%"> <tr> <td> <script> menubar.draw() ; </script> </td> </tr> </table> </td> </tr> <tr> <td style="height:100%;"> <div style="width:100%;height:100%;overflow:auto"> <table style="border-collapse:collapse;width:100%"> <tr> <td style="padding:5px"> <table style="border-collapse:collapse;width:100%;height:100%;border:1px solid black;background-color:#FFFFFF"> <tr> <td colspan='2' style="padding:0px;border-bottom:1px solid black;text-align:center;background-image:url('../themes/$theme/images/bottom.png');width:100%"> <span class="systemLabel"> $question_text </span> </td> </tr> <tr> <td style="padding-left:2px;width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> $questionlabel_text </span> </td> <td style="width:100%"> <textarea id='question' name='question' rows='4' wrap class="formControl"></textarea> </td> </tr> <tr> <td style="padding-left:2px;width:auto;white-space:nowrap;vertical-align:top"> </td> <td style="width:100%"> <span class="systemLabel"> Html: <input id="hashtml" type="checkbox" #if ($legaQuestion.getHasHtml().equals("Y")) checked #end /> </span> </td> </tr> <tr> <td style="padding-left:2px;width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> $instructionslabel_text </span> </td> <td style="width:100%"> <textarea id='instructions' name='instructions' rows='4' wrap class="formControl"></textarea> </td> </tr> <tr> <td style="padding-left:2px;width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> $responsetype_text </span> </td> <td style="width:100%"> <select class="formControl" id='responseTypeList' name='responseTypeList' onChange="updateSummaryList()" > #foreach ($lfrt in $responseTypeList) #set ($typeName = $CommonFunctions.displayReady($lfrt.getName())) #set ($typeID = $lfrt.getLegaResponseTypeId()) #if ($typeID == $legaQuestion.getLegaResponseTypeId()) <option value="$typeID" selected>$typeName</option> #else <option value="$typeID">$typeName</option> #end #end </select> </td> </tr> <tr> <td style="width:auto;white-space:nowrap"> <span class="systemLabel"> $tag_text </span> </td> <td style="width:100%"> <input class="formControl" id='idTag' name='idTag' type='text' value='' onkeypress="return handleEnter(this, event)" /> </td> </tr> <tr> <td colspan='2'> <div id="requiredOptions" style="display:none;height:100%"> <table style="border-collapse:collapse;width:100%;height:0%;border:0px;background-color:#FFFFFF"> <tr> <td style="padding-left:2px;padding-right:34px;width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> $required_text </span> </td> <td style="width:100%;padding:0px"> <input id="isrequired" type="checkbox" #if ($legaQuestion.getRequired().equals("TRUE")) checked #end /> <span class="systemText" style="font-size:7pt"> $whenchecked_text </span> </td> </tr> </table> </div> </td> </tr> <tr> <td colspan='2'> <div id="readonlyOptions" style="display:none;height:100%"> <table style="border-collapse:collapse;width:100%;height:0%;border:0px;background-color:#FFFFFF"> <tr> <td style="padding-left:2px;padding-right:34px;width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> Read Only: </span> </td> <td style="width:100%;padding:0px"> <input id="isreadonly" type="checkbox" #if ($legaQuestion.getReadOnly().equals("Y")) checked #end /> </td> </tr> </table> </div> </td> </tr> <tr> <td style="vertical-align:top;padding-left:2px"> <span class="systemLabel" style="white-space:nowrap">$access_text</span> </td> <td style="width:100%"> <span class="systemText"> <select id="accessPrivilege" class="formControl"> #if ($legaQuestion.getAccess().equals("Sensitive")) <option value="Public">$public_text</option> <option value="Sensitive" selected>$sensitive_text</option> #else <option value="Public" selected>$public_text</option> <option value="Sensitive">$sensitive_text</option> #end </select> </span> </td> </tr> </table> </td> </tr> </form> <form name='formDisplay'> <tr> <td style="padding:5px;height:65%"> <table style="border-collapse:collapse;width:100%;height:100%;border:1px solid black;background-color:#FFFFFF"> <tr> <td colspan='2' style="height:auto;padding:0px;border-bottom:1px solid black;text-align:center;background-image:url('../themes/$theme/images/bottom.png');width:100%"> <span class="systemLabel"> $advancedoptions_text </span> </td> </tr> <tr> <td colspan='2' class='tablebodyhint' style="padding:0px;border:1px solid gray;text-align:center;width:100%;height:auto"> <div id="advanceSettingsDesc"> <span class="systemText"> $summarizeanswer_text </span> </div> </td> </tr> <tr> <td style="width:100%;height:100%;text-align:center"> <div id="coreDataMessage" class="floatingMessage"> <table style="border-collapse:collapse;width:100%;height:100%"> <tr> <td style="vertical-align:middle;text-align:center"> <span class="systemLabel" style="padding:3px"> $noadvancedoptions_text </span> </td> </tr> </table> </div> <div id="advancedOptions" style="display:none;height:100%"> <table style="border-collapse:collapse;width:100%;height:100%;background-color:#FFFFFF"> <tr> <td style="width:auto;white-space:nowrap;vertical-align:top"> <span class="systemLabel"> $viewoptions_text </span> </td> <td style="width:100%"> <table style="border-collapse:collapse;width:100%;height:100%;border:1px solid black;background-color:#FFFFFF"> <!-- Execution Profile Table View --> #if (!$hideExecutionProfileOverviewTab) <tr> #if ($legaQuestion.getDisplayList().indexOf("$V_EXECUTION_PROFILE_TABLE") != -1) <td class='tablebody' width='0%'><input type='checkbox' id="$V_EXECUTION_PROFILE_TABLE" name="$V_EXECUTION_PROFILE_TABLE" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$V_EXECUTION_PROFILE_TABLE" name="$V_EXECUTION_PROFILE_TABLE"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.getTermFromResourceBundle($currentUserId,"AdminDialogs","getalllegaformsandquestions.showintable",$CommonFunctions.displayReady($V_EXECUTION_PROFILE_TABLE_LABEL))</span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$V_EXECUTION_PROFILE_TABLE', summaryColumnId, isChecked(document.all.$V_EXECUTION_PROFILE_TABLE))">$position_text</a> </td> </tr> #end <!-- Execution Profile Resources Table View --> #if (!$hideExecutionProfileOverviewTab) <tr> #if ($legaQuestion.getDisplayList().indexOf("$V_EXECUTION_RESOURCES_TABLE") != -1) <td class='tablebody' width='0%'><input type='checkbox' id="$V_EXECUTION_RESOURCES_TABLE" name="$V_EXECUTION_RESOURCES_TABLE" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$V_EXECUTION_RESOURCES_TABLE" name="$V_EXECUTION_RESOURCES_TABLE"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.getTermFromResourceBundle($currentUserId,"AdminDialogs","getalllegaformsandquestions.showintable",$CommonFunctions.displayReady($V_EXECUTION_RESOURCES_TABLE_LABEL))</span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$V_EXECUTION_RESOURCES_TABLE', summaryColumnId, isChecked(document.all.$V_EXECUTION_RESOURCES_TABLE))">$position_text</a> </td> </tr> #end <!-- Impact Profile Table View --> #if (!$hideImpactProfileTableView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_IMPACT_PROFILE_TABLE_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_IMPACT_PROFILE_TABLE_VIEW" name="$_IMPACT_PROFILE_TABLE_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_IMPACT_PROFILE_TABLE_VIEW" name="$_IMPACT_PROFILE_TABLE_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText"> $CommonFunctions.getTermFromResourceBundle($currentUserId, "AdminDialogs", "getlegaquestiondetail.showinview", "$_IMPACT_PROFILE_TABLE_VIEW_LABEL") </span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_IMPACT_PROFILE_TABLE_VIEW', summaryColumnId, isChecked(document.all.$_IMPACT_PROFILE_TABLE_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Bubble View --> #if (!$hideBusinessAlignmentBubbleView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_BUBBLE_CHART_VIEW_LABEL): $showinxaxis_text </span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_BUBBLE_X_VIEW))">$position_text</a> </td> </tr> <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_BUBBLE_CHART_VIEW_LABEL): $showinyaxis_text </span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_BUBBLE_Y_VIEW))">$position_text</a> </td> </tr> <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW" name="$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_BUBBLE_CHART_VIEW_LABEL): $showinsize_text </span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_BUBBLE_SIZE_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Graph Cost View --> #if (!$hideBusinessAlignmentGraphView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW" name="$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW" name="$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_GRAPH_VIEW_LABEL): $showascost_text</span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_GRAPH_COST_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Graph Benefit View --> #if (!$hideBusinessAlignmentGraphView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW" name="$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW" name="$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_GRAPH_VIEW_LABEL): $showasbenefit_text</span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_GRAPH_BENEFIT_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Table View --> #if (!$hideBusinessAlignmentTableView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_TABLE_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.getTermFromResourceBundle($currentUserId,"AdminDialogs","getalllegaformsandquestions.showin",$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_TABLE_VIEW_LABEL))</span></td> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_TABLE_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_TABLE_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Table Cost View --> #if (!$hideBusinessAlignmentTableView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_TABLE_VIEW_LABEL): $showascost_text</span></td> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_TABLE_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_TABLE_COST_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Table Benefit View --> #if (!$hideBusinessAlignmentTableView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW" name="$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_TABLE_VIEW_LABEL): $showasbenefit_text</span></td> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_TABLE_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_TABLE_BENEFIT_VIEW))">$position_text</a> </td> </tr> #end <!-- Business Alignment Balancing View --> #if (!$hideBalancingView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_BUSINESS_ALIGNMENT_BALANCING_VIEW") != -1) <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BALANCING_VIEW" name="$_BUSINESS_ALIGNMENT_BALANCING_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_BUSINESS_ALIGNMENT_BALANCING_VIEW" name="$_BUSINESS_ALIGNMENT_BALANCING_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.getTermFromResourceBundle($currentUserId,"AdminDialogs","getalllegaformsandquestions.showin",$CommonFunctions.displayReady($_BUSINESS_ALIGNMENT_BALANCING_VIEW_LABEL))</span></td> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_BUSINESS_ALIGNMENT_BALANCING_VIEW', summaryColumnId, isChecked(document.all.$_BUSINESS_ALIGNMENT_BALANCING_VIEW))">$position_text</a> </td> </tr> #end <!-- Impact Profile Graph View --> #if (!$hideImpactProfileGraphView) <tr> #if ($legaQuestion.getDisplayList().indexOf("$_IMPACT_PROFILE_GRAPH_VIEW") != -1) <td class='tablebody' width='0%' nowrap><input type='checkbox' id="$_IMPACT_PROFILE_GRAPH_VIEW" name="$_IMPACT_PROFILE_GRAPH_VIEW" checked></td> #else <td class='tablebody' width='0%'><input type='checkbox' id="$_IMPACT_PROFILE_GRAPH_VIEW" name="$_IMPACT_PROFILE_GRAPH_VIEW"></td> #end <td class="tableViewNameContainer"> <span class="systemText">$CommonFunctions.getTermFromResourceBundle($currentUserId,"AdminDialogs","getalllegaformsandquestions.showin",$CommonFunctions.displayReady($_IMPACT_PROFILE_GRAPH_VIEW_LABEL))</span> </td> <td class='tablebodysmall' width='0%' nowrap align='right'> <a href="javascript:showSummaryColumnOrderDetail('$_IMPACT_PROFILE_GRAPH_VIEW', summaryColumnId, isChecked(document.all.$_IMPACT_PROFILE_GRAPH_VIEW))">$position_text</a> </td> </tr> #end </table> </td> </tr> <tr> <td style="width:auto;white-space:nowrap"> <span class="systemLabel"> $summarylabel_text </span> </td> <td style="width:100%"> <input class="formControl" id='vcolumn' name='vcolumn' type='text' value='' onkeypress="return handleEnter(this, event)" /> </td> </tr> <tr> <td style="width:auto;white-space:nowrap"> <span class="systemLabel"> $summarycalculation_text </span> </td> <td style="width:100%"> <select class="formControl" id='summaryTypeList' name='summaryTypeList' /> </select> </td> </tr> <tr> <td style="width:auto;white-space:nowrap"> <span class="systemLabel"> $summaryformatting_text </span> </td> <td style="width:100%"> <select class="formControl" id='summaryFormattingList' name='summaryFormattingList' /> #if ($legaQuestion.getFormatting().length() == 0) <option value='' selected>$none_text</option> #else <option value=''>$none_text</option> #end #if ($legaQuestion.getFormatting().equals("000000000001")) <option value='000000000001' selected>$formatascurrency_text</option> #else <option value='000000000001'>$formatascurrency_text</option> #end </select> </td> </tr> </table> </div> </td> </tr> </table> </td> </tr> </form> </table> </div> </td> </tr> </table> </body> </html>