Ignore:
Timestamp:
09/14/06 17:04:51 (6 years ago)
Author:
sam
Message:

Ajout Wtooltip & modif WlinkCaller ds crossRefUiWidget

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_crossRefTableUiWidget/xhtmlContent.xsl.xsl

    r6471 r6539  
    2323                        <xsl:template match="*"> 
    2424                                <xsl:variable name="vIndex" select="java:com.scenari.m.ge.generator.web.CrossRefEntry.getIndexAsIdSrcNode($vDialog, '{sm:refEntries/@key}', '{$vSortKeyPath}', {si(count(//sm:forCaller), 'true()', 'false()')}, '{$vSortKeyMode}', '', {$vRegExpFilter})" /> 
    25                                 <xsl0:apply-templates select="sm:content/*" mode="contentTpl" /> 
     25                                <xsl0:apply-templates select="sm:content/node()" mode="contentTpl" /> 
    2626                        </xsl:template> 
    2727                        <xsl0:apply-templates select="sm:content/*" mode="indexTpl" /> 
     
    5757        </xsl0:template> 
    5858        <xsl0:template match="sm:WLinkCaller" mode="contentTpl"> 
    59                 <a href="{{@url}}" class="{@commonClass}"> 
    60                         <xsl0:apply-templates select="sm:label/*" mode="contentTpl" /> 
    61                 </a> 
     59                <a class="{@commonClass}"> 
     60                        <xsl0:choose> 
     61                                <xsl0:when test="sm:link/@windowOptions"> 
     62                                        <xsl0:attribute name="href">javascript:window.open(&quot;{@url}&quot;,<xsl0:choose> 
     63                                                <xsl0:when test="sm:link/@target='newWindow'">&quot;_blank&quot;</xsl0:when> 
     64                                                <xsl0:when test="sm:link/@target='sameWindow'">&quot;_self&quot;</xsl0:when> 
     65                                                <xsl0:when test="sm:link/@target='namedWindow'">&quot;<xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/>&quot;</xsl0:when> 
     66                                                <xsl0:otherwise>&quot;_self&quot;</xsl0:otherwise> 
     67                                        </xsl0:choose>,&quot;<xsl0:value-of select="sm:link/@windowOptions"/>&quot;)?void(0):void(0)</xsl0:attribute> 
     68                                </xsl0:when> 
     69                                <xsl0:otherwise> 
     70                                        <xsl0:attribute name="href">{@url}</xsl0:attribute> 
     71                                        <xsl0:attribute name="target"> 
     72                                                <xsl0:choose> 
     73                                                        <xsl0:when test="sm:link/@target='newWindow'">_blank</xsl0:when> 
     74                                                        <xsl0:when test="sm:link/@target='sameWindow'">_self</xsl0:when> 
     75                                                        <xsl0:when test="sm:link/@target='namedWindow'"><xsl0:value-of select="si(sm:link/@windowName, sm:link/@windowName, '_blank')"/></xsl0:when> 
     76                                                        <xsl0:otherwise>_self</xsl0:otherwise> 
     77                                                </xsl0:choose> 
     78                                        </xsl0:attribute> 
     79                                </xsl0:otherwise> 
     80                        </xsl0:choose> 
     81                        <xsl0:choose> 
     82                                <xsl0:when test="count(sm:label/node()) = 0">&#160;</xsl0:when> 
     83                                <xsl0:otherwise><span><xsl0:apply-templates select="sm:label/node()" mode="contentTpl" /></span></xsl0:otherwise> 
     84                        </xsl0:choose></a> 
    6285        </xsl0:template> 
     86         
     87        <!-- sm:WTooltip ===================================================================== --> 
     88        <xsl0:template match="sm:WTooltip" mode="contentTpl"> 
     89                <span class="{si(@commonClass, @commonClass, 'ttCrossRef')}_a"> 
     90                        <scTooltip> 
     91                                <xsl0:attribute name="trigger"><xsl0:value-of select="si(sm:tooltip/@trigger, sm:tooltip/@trigger, 'onmouseover')"/></xsl0:attribute> 
     92                                <xsl0:attribute name="class"><xsl0:value-of select="si(@commonClass, @commonClass, 'ttCrossRef')"/></xsl0:attribute> 
     93                                <xsl0:attribute name="options"><xsl0:value-of select="si(sm:tooltip/@displayOptions, sm:tooltip/@displayOptions, '')"/></xsl0:attribute> 
     94                                <xsl0:if test="sm:tooltip/sm:ttTitle"><scTooltipTitle><span><xsl0:apply-templates select="sm:tooltip/sm:ttTitle/node()" mode="contentTpl"/></span></scTooltipTitle></xsl0:if> 
     95                                <xsl0:if test="sm:tooltip/sm:ttContent"><scTooltipContent><span><xsl0:apply-templates select="sm:tooltip/sm:ttContent/node()" mode="contentTpl"/></span></scTooltipContent></xsl0:if> 
     96                        </scTooltip> 
     97                        <xsl0:choose> 
     98                                <xsl0:when test="count(sm:label/node()) = 0">&#160;</xsl0:when> 
     99                                <xsl0:otherwise><xsl0:apply-templates select="sm:label/node()" mode="contentTpl"/></xsl0:otherwise> 
     100                        </xsl0:choose></span> 
     101        </xsl0:template> 
     102         
     103         
     104         
    63105        <xsl0:template match="sm:titlePageCaller" mode="contentTpl"> 
    64106                <xsl:value-of select="@titlePage" /> 
Note: See TracChangeset for help on using the changeset viewer.