123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/portlets/utility/portlet-impl/html/edit.xslt#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
- xmlns:uix="http://developer.cognos.com/schemas/cps/logic/ui-ext/1/"
- xmlns:utml="http://developer.cognos.com/schemas/cps/logic/form/1/"
- xmlns:trustedSession="java:com.cognos.portal.utils.TrustedSessionHelper"
- exclude-result-prefixes="xts ui uix utml">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- declare global variables... -->
- <utml:variables/>
- <!-- create portal variable: $ui-consumer-info -->
- <ui:consumer/>
- <ui:property name="html-use-title" select="'html_use_title'"/>
- <ui:property name="html-url" select="'url'"/>
- <ui:property name="html-height" select="'html_height'"/>
- <ui:property name="channel" select="'channel'"/>
- <xsl:template match="/">
- <script language="javascript">
- function wsrp_rewrite_validate() {
- var cForm = document.wsrp_rewrite_form;
- if ( !wsrp_rewrite_isValidURL(cForm.p_url.value, cForm.p_channel.value=='') ) {
- window.alert("<xts:string id="IDS_UTI_ERR_INVALID_URL" encode="javascript"/>");
- cForm.p_url.focus();
- return false;
- } else if ( !wsrp_rewrite_isValidChannel(cForm.p_channel.value, false) ) {
- window.alert("<xts:string id="IDS_UTI_ERR_INVALID_CHANNEL_NAME" encode="javascript"/>");
- cForm.p_channel.focus();
- return false;
- } else if (!wsrp_rewrite_isValidBoundary(cForm.p_html_height.value,1,2000, true) ) {
- window.alert("<xts:string id="IDS_UTI_ERR_NUMBER_BETWEEN" encode="javascript"><xts:param name="min">1</xts:param><xts:param name="max">2000</xts:param></xts:string>");
- cForm.p_html_height.focus();
- return false;
- }
- return true;
- }
- </script>
- <uix:script-isValidURL/>
- <uix:script-isValidChannel/>
- <uix:script-isValidBoundary/>
- <ui:about/>
- <ui:help/>
- <utml:form name="wsrp_rewrite_form" method="post" utml:maintainPrevNavState="true">
- <utml:input type="hidden" name="cps-authToken" utml:update="false">
- <utml:value>
- <xsl:value-of select="trustedSession:staticGenerateAuthToken(string(/root/cookies/cookie[@name='usersessionid']))"/>
- </utml:value>
- </utml:input>
- <ui:page>
- <ui:page-description><xts:string id="IDS_UTI_HTM_DESC"/></ui:page-description>
- <ui:page-section>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_PRO_UIX_LABEL_TITLE"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <utml:radio-group name="p_html_use_title">
- <utml:default-value>
- <xsl:value-of select="$html-use-title"/>
- </utml:default-value>
- <table border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td valign="top">
- <utml:input type="radio" value="false" class="portlet-form-field"/>
- </td>
- <td class="portlet-form-field"><xts:string id="IDS_UTI_COM_LABEL_USE_URL"/></td>
- </tr>
- <tr>
- <td valign="top">
- <utml:input type="radio" value="true" class="portlet-form-field"/>
- </td>
- <td><xts:string id="IDS_UTI_COM_LABEL_TYPE_TITLE"/></td>
- </tr>
- <tr>
- <td valign="top" rowspan="2">
- <br/>
- </td>
- <td>
- <uix:title onfocus="wsrp_rewrite_form.p_html_use_title[1].checked = true;"/>
- </td>
- </tr>
- </table>
- </utml:radio-group>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_UTI_HTM_LABEL_HTML_CONTENT"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td class="portlet-msg-info"><xts:string id="IDS_UTI_HTM_LABEL_URL"/></td>
- </tr>
- <tr>
- <td>
- <utml:input name="p_url" type="text" size="100" class="portlet-form-input-field" stttype="url">
- <utml:value>
- <xsl:value-of select="$html-url"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- <ui:page-sub-section tailing-space="false">
- <ui:page-sub-section-title><xts:string id="IDS_UTI_COM_LABEL_CHANNEL_NAME"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td class="portlet-msg-info"><xts:string id="IDS_UTI_COM_DESC_CHANNEL"/></td>
- </tr>
- <tr>
- <td>
- <utml:input name="p_channel" type="text" size="20" class="portlet-form-input-field">
- <utml:value>
- <xsl:value-of select="$channel"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </ui:page-section>
- <ui:page-section>
- <ui:page-section-divider><xts:string id="IDS_UTI_COM_GROUP_VIEWING_OPTIONS"/></ui:page-section-divider>
- <ui:page-sub-section-group>
- <ui:page-sub-section>
- <ui:page-sub-section-title><xts:string id="IDS_UTI_HTM_LABEL_HEIGHT"/></ui:page-sub-section-title>
- <ui:page-sub-section-content>
- <table border="0" cellspacing="0" cellpadding="1">
- <tr>
- <td>
- <utml:input name="p_html_height" type="text" size="10" class="portlet-form-input-field">
- <utml:value>
- <xsl:value-of select="$html-height"/>
- </utml:value>
- </utml:input>
- </td>
- </tr>
- </table>
- </ui:page-sub-section-content>
- </ui:page-sub-section>
- </ui:page-sub-section-group>
- </ui:page-section>
- </ui:page>
- </utml:form>
- </xsl:template>
- </xsl:stylesheet>
|