Changeset 19879 in main for trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/Page.xslt
- Timestamp:
- 02/20/20 22:56:16 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ibisph-view/src/main/webapp/xslt/html/indicator/profile/Page.xslt
r19868 r19879 68 68 <xsl:template name="Page.options"> 69 69 <xsl:param name="title"/> 70 <xsl:param name=" isSummary" select="false()"/>70 <xsl:param name="pageType"/> 71 71 72 72 <div class="ContentOptions"> 73 73 <h3><xsl:value-of select="$title"/></h3> 74 74 75 <table class="SingleRowTable"> 76 <tr> 77 <td><label for="indicatorViews"><h4>Data Views:</h4></label></td> 78 <td><label for="moreInformation"><h4>More Information:</h4></label></td> 79 <td><label for="relatedIndicators"><h4>Related Indicator Reports:</h4></label></td> 80 <td><label for="relatedIndicators"><h4>Associated Health Topics:</h4></label></td> 81 </tr> 82 <tr> 83 <td> 84 <xsl:variable name="currentIndicatorViewName" select="$indicatorView/NAME"/> 85 <select name="indicatorViews" id="indicatorViews" onchange="location=this.value; this.value='';"> 86 <xsl:for-each select="$indicator/INDICATOR_VIEWS/INDICATOR_VIEW"> 87 <option value="{concat($ibis.contextPath, 'indicator/view/', NAME, '.html')}"> 88 <xsl:if test="NAME = $currentIndicatorViewName"> 89 <xsl:attribute name="selected" select="'selected'"/> 90 </xsl:if> 91 <xsl:value-of select="TITLE"/> 92 </option> 93 </xsl:for-each> 94 <option value="{concat($ibis.contextPath, 'indicator/summary/', $indicator/NAME, '.html')}"> 95 <xsl:if test="true() = $isSummary"> 96 <xsl:attribute name="selected" select="'selected'"/> 97 </xsl:if> 98 Summary Report 99 </option> 100 </select> 101 </td> 75 <div class="Container"> 76 <div> 77 <label for="indicatorViews"><h4>Data Views:</h4></label> 78 <xsl:variable name="currentIndicatorViewName" select="$indicatorView/NAME"/> 79 <select name="indicatorViews" id="indicatorViews" onchange="location=this.value; this.value='';"> 80 <xsl:if test="('summary' != $pageType) and ('view' != $pageType)"> 81 <option value="javascript:location" selected="selected"></option> 82 </xsl:if> 83 <xsl:for-each select="$indicator/INDICATOR_VIEWS/INDICATOR_VIEW"> 84 <option value="{concat($ibis.contextPath, 'indicator/view/', NAME, '.html')}"> 85 <xsl:if test="('view' = $pageType) and (NAME = $currentIndicatorViewName)"> 86 <xsl:attribute name="selected" select="'selected'"/> 87 </xsl:if> 88 <xsl:value-of select="TITLE"/> 89 </option> 90 </xsl:for-each> 91 <option value="{concat($ibis.contextPath, 'indicator/summary/', $indicator/NAME, '.html')}"> 92 <xsl:if test="'summary' = $pageType"> 93 <xsl:attribute name="selected" select="'selected'"/> 94 </xsl:if> 95 Summary Report 96 </option> 97 </select> 98 </div> 102 99 103 <td> 104 <select name="moreInformation" id="moreInformation" onchange="location=this.value; this.value='';"> 105 <option value="javascript:location"></option> 106 <option value="{concat($ibis.contextPath, 'indicator/facts/', $indicator/NAME, '.html')}">Important Facts</option> 107 <xsl:if test="string-length($indicator/SERVICES_AVAILABLE_TO_PUBLIC) != 0"> 108 <option value="{concat($ibis.contextPath, 'indicator/services/', $indicator/NAME, '.html')}">Available Services</option> 100 <div> 101 <label for="moreInformation"><h4>More Information:</h4></label> 102 <select name="moreInformation" id="moreInformation" onchange="location=this.value; this.value='';"> 103 <xsl:if test="('services' != $pageType) and ('facts' != $pageType) and ('resources' != $pageType)"> 104 <option value="javascript:location" selected="selected"></option> 109 105 </xsl:if> 110 <option value="{concat($ibis.contextPath, 'indicator/resources/', $indicator/NAME, '.html')}">Resources & Links</option> 111 </select> 112 </td> 106 <option value="{concat($ibis.contextPath, 'indicator/facts/', $indicator/NAME, '.html')}"> 107 <xsl:if test="'facts' = $pageType"> 108 <xsl:attribute name="selected" select="'selected'"/> 109 </xsl:if> 110 Important Facts 111 </option> 112 <xsl:if test="string-length($indicator/SERVICES_AVAILABLE_TO_PUBLIC) != 0"> 113 <option value="{concat($ibis.contextPath, 'indicator/services/', $indicator/NAME, '.html')}"> 114 <xsl:if test="'services' = $pageType"> 115 <xsl:attribute name="selected" select="'selected'"/> 116 </xsl:if> 117 Available Services 118 </option> 119 </xsl:if> 120 <option value="{concat($ibis.contextPath, 'indicator/resources/', $indicator/NAME, '.html')}"> 121 <xsl:if test="'resources' = $pageType"> 122 <xsl:attribute name="selected" select="'selected'"/> 123 </xsl:if> 124 Resources & Links 125 </option> 126 </select> 127 </div> 113 128 114 <td> 115 <select name="relatedIndicators" id="relatedIndicators" onchange="location=this.value; this.value='';"> 116 <option value="javascript:location"></option> 117 <xsl:for-each select="$indicator/RELATIONS/RELATION/RELATED_INDICATORS/RELATED_INDICATOR"> 118 <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> 119 <option value="{concat($ibis.contextPath, 'indicator/summary/', NAME, '.html')}"><xsl:value-of select="TITLE"/></option> 120 </xsl:for-each> 121 </select> 122 </td> 129 <xsl:if test="0 != count($indicator/RELATIONS/RELATION/RELATED_INDICATORS/RELATED_INDICATOR)"> 130 <div> 131 <label for="relatedIndicators"><h4>Related Indicator Reports:</h4></label> 132 <select name="relatedIndicators" id="relatedIndicators" onchange="location=this.value; this.value='';"> 133 <option value="javascript:location"></option> 134 <xsl:for-each select="$indicator/RELATIONS/RELATION/RELATED_INDICATORS/RELATED_INDICATOR"> 135 <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> 136 <option value="{concat($ibis.contextPath, 'indicator/summary/', NAME, '.html')}"><xsl:value-of select="TITLE"/></option> 137 </xsl:for-each> 138 </select> 139 </div> 140 </xsl:if> 123 141 124 <td> 125 <select name="associatedHealthTopics" id="associatedHealthTopics" onchange="location=this.value; this.value='';"> 126 <option value="javascript:location"></option> 127 <xsl:for-each select="$indicator/TOPICS/TOPIC"> 128 <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> 129 <option value="{ibis:getCompleteURL(URL)}"><xsl:value-of select="TITLE"/></option> 130 </xsl:for-each> 131 </select> 132 </td> 133 </tr> 134 </table> 142 <xsl:if test="0 != count($indicator/TOPICS/TOPIC)"> 143 <div> 144 <label for="relatedIndicators"><h4>Associated Health Topics:</h4></label> 145 <select name="associatedHealthTopics" id="associatedHealthTopics" onchange="location=this.value; this.value='';"> 146 <option value="javascript:location"></option> 147 <xsl:for-each select="$indicator/TOPICS/TOPIC"> 148 <xsl:sort select="SORT_ORDER" order="ascending" data-type="number"/> 149 <option value="{ibis:getCompleteURL(URL)}"><xsl:value-of select="TITLE"/></option> 150 </xsl:for-each> 151 </select> 152 </div> 153 </xsl:if> 154 </div> 135 155 </div> 136 156 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.