Changeset 8526 for trunk/gsdl3/web/interfaces/default/transform/style.xsl
- Timestamp:
- 2004-11-12T14:04:08+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/style.xsl
r7473 r8526 11 11 <xsl:param name="library_name"/> 12 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> 13 <!-- global style info goes here --> 14 <xsl:template name="globalStyle"> 15 <style type="text/css"> 16 <xsl:text disable-output-escaping="yes"> 17 a.brownbutton {text-decoration:none; color:#345437; 18 font-weight: bold; vertical-align: middle; } 19 a:visited.brownbutton { color:#345437; } 20 a:hover.brownbutton {color: red; } 21 td.brownbutton { background-image: url(interfaces/default/images/brownbutton.gif); height: 20; text-align: center; vertical-align: middle; } 22 td.brownbuttonoff { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center; color:#345437; 23 font-weight: bold;} 24 td.navbar { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center; font-weight:bold; color:#345437;} 25 a.navbar, a:visited.navbar { text-decoration: none; font-size: larger; color:#345437;} 26 a:hover.navbar {color:red;} 27 td.navbaroff {background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center; font-weight:bold; color: #c6aa69; font-size: larger;} 28 body {background-color: #ffffff; background-image: url(interfaces/default/images/chalk.gif); color:#000066 } 29 a {color: #006666; } 30 a:visited {color: #666633} 31 a:hover {color: #cc9900} 32 </xsl:text> 33 </style> 34 </xsl:template> 35 17 36 18 37 <!-- the main page layout template is here --> … … 20 39 <html> 21 40 <xsl:call-template name="pageHead"/> 22 <body xsl:use-attribute-sets="body-style">41 <body> 23 42 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 24 43 <td valign="top" width="65"><!-- a space for our side bar--> … … 38 57 </xsl:template> 39 58 40 <xsl:attribute-set name="body-style"> 41 <xsl:attribute name="bgcolor">#ffffff</xsl:attribute> 42 <xsl:attribute name="text">#000000</xsl:attribute> 43 <xsl:attribute name="link">#006666</xsl:attribute> 44 <xsl:attribute name="alink">#cc9900</xsl:attribute> 45 <xsl:attribute name="vlink">#666633</xsl:attribute> 46 <xsl:attribute name="background">interfaces/default/images/chalk.gif</xsl:attribute> 47 </xsl:attribute-set> 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 61 <xsl:attribute-set name="td-navbar"> 62 <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute> 63 <xsl:attribute name='height'>20</xsl:attribute> 64 <xsl:attribute name='align'>center</xsl:attribute> 65 </xsl:attribute-set> 66 59 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 60 <xsl:template name="pageHead"> 61 <head> 62 <title> 63 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 64 </title> 65 <xsl:call-template name="globalStyle"/> 66 <xsl:call-template name="pageStyle"/> 67 </head> 68 </xsl:template> 69 70 67 71 <xsl:template name="greenstonePageBanner"> 68 72 <center><img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute></img></center> … … 108 112 <table cellspacing='4'> 109 113 <tr> 110 <td xsl:use-attribute-sets="td-brownbutton">111 <a style="text-decoration:none" href="{$library_name}?a=p&sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>112 < b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></font></b>114 <td class="brownbutton"> 115 <a class="brownbutton" href="{$library_name}?a=p&sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute> 116 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 113 117 </a> 114 118 </td> 115 119 <xsl:choose> 116 120 <xsl:when test="$pageType='help'"> 117 <td xsl:use-attribute-sets="td-brownbutton-off">118 < b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b>121 <td class="brownbuttonoff"> 122 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 119 123 </td> 120 124 </xsl:when> 121 125 <xsl:otherwise> 122 <td xsl:use-attribute-sets="td-brownbutton">123 <a style="text-decoration:none" href="{$library_name}?a=p&sa=help&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>124 < b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b>126 <td class="brownbutton"> 127 <a class="brownbutton" href="{$library_name}?a=p&sa=help&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute> 128 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 125 129 </a> 126 130 </td> … … 129 133 <xsl:choose> 130 134 <xsl:when test="$pageType='pref'"> 131 <td xsl:use-attribute-sets="td-brownbutton-off">132 < b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b>135 <td class="brownbuttonoff"> 136 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 133 137 </td> 134 138 </xsl:when> 135 139 <xsl:otherwise> 136 <td xsl:use-attribute-sets="td-brownbutton">137 <a style="text-decoration:none" href="{$library_name}?a=p&sa=pref&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>138 < b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b>140 <td class="brownbutton"> 141 <a class="brownbutton" href="{$library_name}?a=p&sa=pref&c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute> 142 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 139 143 </a> 140 144 </td> … … 149 153 </xsl:template> 150 154 155 151 156 <xsl:template name="navigationBar"> 152 157 <xsl:param name="collName"/> 153 158 <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/> 154 159 <xsl:variable name="this-service" select="/page/pageResponse/service/@name"/> 155 <xsl:choose><xsl:when test="$this-element/serviceList/service"> 156 <table border='0' cellspacing='0' width='100%'> 157 <tr> 158 <xsl:for-each select="$this-element/serviceList/service"> 159 <xsl:variable name="action"><xsl:choose> 160 <xsl:when test="@name=$this-service">CURRENT</xsl:when> 161 <xsl:when test="@type='query'">q</xsl:when> 162 <xsl:when test="@type='browse'">b</xsl:when> 163 <xsl:when test="@type='process'">pr</xsl:when> 164 <xsl:when test="@type='applet'">a</xsl:when> 165 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise> 166 </xsl:choose></xsl:variable> 167 <xsl:choose> 168 <xsl:when test="$action='CURRENT'"> 169 <td xsl:use-attribute-sets="td-navbar"><b><nobr><font size='+1' color='{$colour-navbar-selected-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></td> 170 </xsl:when> 171 <xsl:when test="$action !='DO_NOT_DISPLAY'"> 172 <td xsl:use-attribute-sets="td-navbar"><a style="text-decoration:none" href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:if test="displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute></xsl:if><b><nobr><font size='+1' color='{$colour-navbar-link-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></a></td> 173 </xsl:when> 174 </xsl:choose> 175 </xsl:for-each> 176 </tr> 177 </table> 160 <xsl:choose> 161 <xsl:when test="$this-element/serviceList/service"> 162 <table border='0' cellspacing='0' width='100%'> 163 <tr> 164 <xsl:for-each select="$this-element/serviceList/service"> 165 <xsl:variable name="action"><xsl:choose> 166 <xsl:when test="@name=$this-service">CURRENT</xsl:when> 167 <xsl:when test="@type='query'">q</xsl:when> 168 <xsl:when test="@type='browse'">b</xsl:when> 169 <xsl:when test="@type='process'">pr</xsl:when> 170 <xsl:when test="@type='applet'">a</xsl:when> 171 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise> 172 </xsl:choose></xsl:variable> 173 <xsl:choose> 174 <xsl:when test="$action='CURRENT'"> 175 <td class="navbaroff"><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></td> 176 </xsl:when> 177 <xsl:when test="$action !='DO_NOT_DISPLAY'"> 178 <td class="navbar"><a class="navbar" href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:if test="displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute></xsl:if><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></a></td> 179 </xsl:when> 180 </xsl:choose> 181 </xsl:for-each> 182 </tr> 183 </table> 178 184 </xsl:when> 179 185 <xsl:otherwise> 180 <table border='0' cellspacing='0' width='100%'><tr><td xsl:use-attribute-sets="td-navbar"> </td></tr></table>186 <table border='0' cellspacing='0' width='100%'><tr><td class="navbar"> </td></tr></table> 181 187 </xsl:otherwise> 182 188 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.