Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Restrictions -->
- <div id="restrictions.table" style="display:none; margin-top:5px; margin-bottom:5px">
- <!-- Source -->
- <div class="row">
- <span class="labelField">
- <xsl:value-of select="/root/gui/strings/porCatInfoTab"/>
- </span>
- <select class="content" name="siteId" id="siteId">
- <option value="">
- <xsl:if test="/root/gui/searchDefaults/siteId=''">
- <xsl:attribute name="selected"/>
- </xsl:if>
- <xsl:value-of select="/root/gui/strings/any"/>
- </option>
- <xsl:variable name="source" select="siteid/text()"/>
- <xsl:variable name="sourceName" select="name/text()"/>
- <option value="/root/gui/sources/record[name='ISRIC']/siteid/text()">
- <xsl:if test="$source=/root/gui/searchDefaults/siteId">
- <xsl:attribute name="selected"/>
- </xsl:if>
- <xsl:value-of select="/root/gui/sources/record[name='ISRIC']/name"/>
- </option>
- <xsl:for-each select="/root/gui/sources/record">
- <xsl:variable name="source" select="siteid/text()"/>
- <xsl:variable name="sourceName" select="name/text()"/>
- <xsl:if test="$sourceName != 'ISRIC'">
- <option value="{$source}">
- <xsl:if test="$source=/root/gui/searchDefaults/siteId">
- <xsl:attribute name="selected"/>
- </xsl:if>
- <xsl:value-of select="$sourceName"/>
- </option>
- </xsl:if>
- </xsl:for-each>
- <!--</xsl:for-each> -->
- </select>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement