123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: uipe
- (C) Copyright IBM Corp. 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <html>
- <head>
- <meta http-equiv="x-ua-compatible" content="IE=5" >
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta http-equiv="MSThemeCompatible" content="no"/>
- <meta http-equiv="imagetoolbar" content="no"/>
- <title>UIPE Launcher</title>
- <style>
- BODY
- {
- background-color: threedface;
- }
- BODY,
- INPUT,
- TABLE,
- SELECT
- {
- font-family: Arial;
- font-size: 10pt;
- }
- </style>
- <script>
- function CreateUIPEParameters()
- {
- var o = {};
- var v_sUIProfileStoreId = document.getElementById( "txtUIProfileStoreId" ).value;
- if ( v_sUIProfileStoreId )
- {
- o["uipe_UIProfileStoreID"] = v_sUIProfileStoreId;
- }
- var v_sUIProfileName = document.getElementById( "selUIProfile" ).options.item( document.getElementById( "selUIProfile" ).selectedIndex ).value;
- if ( v_sUIProfileName )
- {
- o["uipe_UIProfileName"] = v_sUIProfileName;
- }
- var v_sProductLocale = document.getElementById( "selProductLocale" ).options.item( document.getElementById( "selProductLocale" ).selectedIndex ).value;
- if ( v_sProductLocale )
- {
- o["uipe_productLocale"] = v_sProductLocale;
- }
- var v_sSkin = document.getElementById( "selSkin" ).options.item( document.getElementById( "selSkin" ).selectedIndex ).value;
- if ( v_sSkin )
- {
- o["uipe_skin"] = v_sSkin;
- }
-
- var sGateway = document.getElementById( "txtGateway" ).value;
- if ( sGateway )
- {
- o["ui.gateway"] = sGateway;
- }
- return o;
- }
- function GenerateQueryString()
- {
- var sURL = "?";
- var i = 0;
- for ( var s in UIPEParameters )
- {
- sURL += ( i++ > 0 ? "&" : "" ) + s + "=" + encodeURIComponent( UIPEParameters[s] );
- }
- return sURL;
- }
- function GenerateAppURL()
- {
- return document.getElementById( "txtUIPEPath" ).value;
- }
- function OnCopyClick()
- {
- UIPEParameters = CreateUIPEParameters();
- clipboardData.setData( "Text", GenerateAppURL() + GenerateQueryString() );
- }
- function OnLaunchClick()
- {
- UIPEParameters = CreateUIPEParameters();
- var sURL = GenerateAppURL();
- if ( !document.getElementById( "chkUseParameters" ).checked )
- {
- sURL += GenerateQueryString();
- delete UIPEParameters;
- }
-
- window.open( sURL, "_blank", "status=yes,toolbar=no,menubar=no,location=no,status=no" );
- }
- function OnLoad()
- {
- document.getElementById( "txtUIPEPath" ).value = document.location.href.replace(/UIPELauncher/gi, "uipe");
- }
- </script>
- <head>
- <body style="overflow:auto" onload="OnLoad()">
- <div style="margin-bottom:7px">
- <button onclick="OnCopyClick()" style="width:1.5in"><img src="../hal/images/btn_copy.gif" style="vertical-align:middle"/> Copy URL</button>
- <button onclick="OnLaunchClick()" style="margin-left:7px; width:1.5in"><img src="../pat/images/RunReportHTML.gif" style="vertical-align:middle"/> Launch</button>
- <label for="chkUseParameters">
- <input id="chkUseParameters" type="checkbox" checked="true"/>Use parameters
- </label>
- </div>
- <hr/>
- <table>
- <tr>
- <td style="padding-right: 40px; vertical-align:top">
- <div style="padding-top:2mm">UIPE URL:</div>
- <input id="txtUIPEPath" type="text" value="localhost" style="width:3in"/>
- <div style="padding-top:5mm">Gateway:</div>
- <div>
- <input id="txtGateway" type="text" value="" style="width:3in"/>
- </div>
- <div>
- <select id="selGateway" style="width:3in" size="2" onclick="document.getElementById( 'txtGateway' ).value=this.value">
- <option value="http://localhost/cognos/cgi-bin/cognos.cgi">http://localhost/cognos/cgi-bin/cognos.cgi</option>
- <option value="http://localhost/cognos/cgi-bin/cognosisapi.dll">http://localhost/cognos/cgi-bin/cognosisapi.dll</option>
- </select>
- </div>
- <div style="padding-top:5mm">Profile Store Id:</div>
- <div>
- <input id="txtUIProfileStoreId" type="text" value="" style="width:3in"/>
- </div>
- <div style="padding-top:5mm">UI Profile Name:</div>
- <div>
- <select id="selUIProfile" style="width:3in">
- <option value="Report Studio Professional">Report Studio Professional</option>
- <option value="Cognos Workspace Advanced">Cognos Workspace Advanced</option>
- <option value="Cognos Workspace Do More">Cognos Workspace Do More</option>
- </select>
- </div>
- <div>
- </td>
- <td style="vertical-align:top">
- <div style="padding-top:2mm">Skin:</div>
- <div>
- <select id="selSkin" style="width:2in">
- <option value=""></option>
- <option value="business">Business</option>
- <option value="classic">Classic</option>
- <option value="contemporary">Contemporary</option>
- <option value="corporate" selected>Corporate</option>
- <option value="modern">Modern</option>
- <option value="presentation">Presentation</option>
- </select>
- </div>
- <div style="padding-top:5mm">Product Locale:</div>
- <div>
- <select id="selProductLocale" style="width:1in">
- <option value=""></option>
- <option value="en" selected>en</option>
- <option value="fr">fr</option>
- <option value="de">de</option>
- <option value="ja">ja</option>
- <option value="ru">ru</option>
- </select>
- </div>
- </td>
- </tr>
- <tr>
- </tr>
- </table>
- </body>
- </html>
|