Changeset 5132 for trunk/gsdl3/web/interfaces
- Timestamp:
- 2003-08-13T12:23:09+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/style.xsl
r5119 r5132 10 10 <xsl:param name="interface_name"/> 11 11 <xsl:param name="library_name"/> 12 13 <!-- some global variables --> 14 <xsl:variable name="colour-button-text">#345437</xsl:variable> 15 <xsl:variable name="colour-navbar-link-text">#345437</xsl:variable> 16 <xsl:variable name="colour-navbar-selected-text">#c6aa69</xsl:variable> 12 17 13 18 <!-- the main page layout template is here --> … … 21 26 </td> 22 27 <td> 23 <!--<center>-->24 28 <table width="100%"> 25 29 <tr><td> … … 28 32 </td></tr> 29 33 </table> 30 <!--</center>-->31 34 </td> 32 35 </table> … … 44 47 </xsl:attribute-set> 45 48 49 <xsl:attribute-set name="td-brownbutton"> 50 <xsl:attribute name='background'>interfaces/default/images/brownbutton.gif</xsl:attribute> 51 <xsl:attribute name='height'>20</xsl:attribute> 52 <xsl:attribute name='align'>center</xsl:attribute> 53 </xsl:attribute-set> 54 55 <xsl:attribute-set name="td-brownbutton-off"> 56 <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute> 57 <xsl:attribute name='height'>20</xsl:attribute> 58 <xsl:attribute name='align'>center</xsl:attribute> 59 </xsl:attribute-set> 60 46 61 <xsl:template name="greenstonePageBanner"> 47 62 <center> … … 77 92 <xsl:template name="standardPageBanner"> 78 93 <xsl:param name="collName"/> 94 <xsl:param name="pageType"/> 79 95 <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/> 80 96 <table width="100%"> … … 105 121 <table cellspacing='4'> 106 122 <tr> 107 <td height='20' background='interfaces/default/images/brownbutton.gif'>123 <td xsl:use-attribute-sets="td-brownbutton"> 108 124 <a style="text-decoration:none" href="{$library_name}?a=p&sa=home"> 109 <b>< xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home')"/></b>125 <b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></font></b> 110 126 </a> 111 127 </td> 112 <td height='20' background='interfaces/default/images/brownbutton.gif'> 113 <a style="text-decoration:none" href="{$library_name}?a=p&sa=help"> 114 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help')"/></b> 115 </a> 116 </td> 117 <td height='20' background='interfaces/default/images/brownbutton.gif'> 118 <a style="text-decoration:none" href="{$library_name}?a=p&sa=pref"> 119 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref')"/></b> 120 </a> 121 </td></tr> 128 <xsl:choose> 129 <xsl:when test="$pageType='help'"> 130 <td xsl:use-attribute-sets="td-brownbutton-off"> 131 <b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b> 132 </td> 133 </xsl:when> 134 <xsl:otherwise> 135 <td xsl:use-attribute-sets="td-brownbutton"> 136 <a style="text-decoration:none" href="{$library_name}?a=p&sa=help&c={$collName}"> 137 <b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b> 138 </a> 139 </td> 140 </xsl:otherwise> 141 </xsl:choose> 142 <xsl:choose> 143 <xsl:when test="$pageType='pref'"> 144 <td xsl:use-attribute-sets="td-brownbutton-off"> 145 <b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b> 146 </td> 147 </xsl:when> 148 <xsl:otherwise> 149 <td xsl:use-attribute-sets="td-brownbutton"> 150 <a style="text-decoration:none" href="{$library_name}?a=p&sa=pref&c={$collName}"> 151 <b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b> 152 </a> 153 </td> 154 </xsl:otherwise> 155 </xsl:choose> 156 </tr> 122 157 </table> 123 158 </td> 124 159 </tr> 125 160 </table> 161 <p/> 126 162 </xsl:template> 127 163 … … 144 180 <xsl:choose> 145 181 <xsl:when test="$action='CURRENT'"> 146 <td> </td><td align='center' ><b><nobr> <font size='+1' color=' #c6aa69'><xsl:value-of select="displayItem[@name='name']"/></font> </nobr></b></td><td height='17'> </td>182 <td> </td><td align='center' ><b><nobr> <font size='+1' color='{$colour-navbar-selected-text}'><xsl:value-of select="displayItem[@name='name']"/></font> </nobr></b></td><td height='17'> </td> 147 183 </xsl:when> 148 184 <xsl:when test="$action !='DO_NOT_DISPLAY'"> 149 <td> </td><td align='center'><a style="text-decoration:none" href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:attribute name='onMouseOver'>rollover('<xsl:value-of select="displayItem[@name='description']"/>')</xsl:attribute><b><nobr> <font size='+1' color=' #345437'><xsl:value-of select="displayItem[@name='name']"/></font> </nobr></b></a></td><td> </td>185 <td> </td><td align='center'><a style="text-decoration:none" href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:attribute name='onMouseOver'>rollover('<xsl:value-of select="displayItem[@name='description']"/>')</xsl:attribute><b><nobr> <font size='+1' color='{$colour-navbar-link-text}'><xsl:value-of select="displayItem[@name='name']"/></font> </nobr></b></a></td><td> </td> 150 186 </xsl:when> 151 187 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.