123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" messageBase="messages/AGS.xml,messages/portal.xml" requiredCapability="canUseEventStudio">
- <!--
- ===============================================================================================
- Process Response
- ===============================================================================================
- -->
- <xts:block id="doWait" mode="output" processor="XSLT" type="exec" mimeType="text/html">
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:agsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/dialog/" xmlns:out="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" exclude-result-prefixes="xts pf dp df xtsext SOAP-ENV bus cm SOAP-ENC">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- add any theme variables -->
- <df:variables/>
- <pf:variables/>
- <xsl:variable name="waitDialogStyle" select="/root/env/param[@name='waitDialogStyle']"/>
- <!-- start the output -->
- <xsl:template match="/root">
- <dp:page >
- <dp:script>
- <link rel="stylesheet" type="text/css" href="{$skin_root}/ags/ags.css"/>
- <script type="text/javascript" src="../ags/layout.js">//</script>
- <script language="javascript">
- var cancelled = false;
-
- function init(){
-
- parent.doOpenPopUpToSize("280", "200");
- document.body.style.cursor = "wait";
- var cf = parent.getConfigFrame();
- //just get on with the next command
- cf.getCommandStackManager().processCommandStack();
- }
-
- function cancelWait(){
- <xsl:choose>
- <xsl:when test="contains($waitDialogStyle, 'validate') or contains($waitDialogStyle, 'preview')">
- if(cancelled){
- return;
- }
- cancelled = true;
-
- var cButton = document.getElementById("cancel_button");
-
- if(cButton){
- getConfigFrame().setAsynchRequestCancelled(true);
- cButton.disabled = true;
- }
-
- var cancelLink = document.getElementById("cancel_link");
-
- if(cancelLink){
- cancelLink.disabled = true;
- }
-
- var message_div = document.getElementById("wait_message");
- var cancel_div = document.getElementById("canceling_message");
-
- message_div.style.display="none";
- cancel_div.style.display="";
-
- </xsl:when>
- <xsl:otherwise>
- parent.doClosePopUp();
- </xsl:otherwise>
- </xsl:choose>
- }
-
- </script>
- </dp:script>
- <dp:header help="false">
- <dp:title>
- <xsl:choose>
- <xsl:when test="contains($waitDialogStyle, 'validate')">
- <xsl:text><xts:string id="VALIDATE_PAGE_TITLE"/></xsl:text>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'save')">
- <xsl:text><xts:string id="ASS_TOOLBAR_SAVE_ALT"/></xsl:text>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'preview')">
- <xsl:text><xts:string id="ASS_TOOLBAR_PREVIEW_ALT"/></xsl:text>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'open')">
- <xsl:text><xts:string id="ASS_TOOLBAR_OPEN_ALT"/></xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text><xts:string id="RESET_AGENT_PAGE_TITLE"/></xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </dp:title>
- <dp:close>
- <a href="javascript:cancelWait()" id="cancel_link"><dp:closeMarker/></a>
- </dp:close>
- </dp:header>
- <utml:form>
- <table align="center" cellspacing="0" cellpadding="0" style="vertical-align:middle" border="0">
- <tr>
- <td align="center">
- <img src="{$skin_root}/branding/progress.gif" style="margin:5px;" width="48" height="48"/>
- </td>
- </tr>
- <tr>
- <td align="center" nowrap="nowrap" class="formText">
- <div id="wait_message">
- <xsl:choose>
- <xsl:when test="contains($waitDialogStyle, 'validate')">
- <xts:string id="VALIDATION_IN_PROGRESS"/>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'save')">
- <xts:string id="SELECT_VALUES_WAIT"/>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'preview')">
- <xts:string id="SELECT_VALUES_WAIT"/>
- </xsl:when>
- <xsl:when test="contains($waitDialogStyle, 'open')">
- <xts:string id="LOADING_IN_PROGRESS"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="RESET_AGENT_IN_PROGRESS"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <div id="canceling_message" style="display:none">
- <xts:string id="DIALOG_CANCELLING"/>
- </div>
- </td>
- </tr>
- <!--tr>
- <td style="width: 100% overflow:auto; height:25px">
- <span style="font-family: sans-serif; margin: 2px; font-size: 60%;width: 100%; color:grey;font-style:italic " id="wait_debug_message"/>
- </td>
- </tr-->
- </table>
- </utml:form>
- <xsl:if test="contains($waitDialogStyle, 'validate') or contains($waitDialogStyle, 'preview')">
- <dp:footer>
- <df:button df:id="DIALOG_CANCEL_BUTTON" id="cancel_button" df:style="href" df:href="#" onclick="cancelWait()"/>
- </dp:footer>
- </xsl:if>
- </dp:page>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|