⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 banner.xsl.svn-base

📁 由国外的一个著名的geonetwork修改而来
💻 SVN-BASE
字号:
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	<!--	main html banner	-->	<xsl:template name="banner">				<table width="100%">					<!-- title -->			<tr class="banner">				<td class="banner">					<img src="{/root/gui/url}/images/header-left.gif" alt="GeoNetwork opensource" align="top" />				</td>				<td align="right" class="banner">					<img src="{/root/gui/url}/images/header-right.gif" alt="World picture" align="top" />				</td>			</tr>						<!-- buttons -->			<tr class="banner">				<td class="banner-menu">					<xsl:choose>						<xsl:when test="/root/gui/reqService='main.home'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/home"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/locService}/main.home"><xsl:value-of select="/root/gui/strings/home"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:if test="string(/root/gui/results)!=''">						<xsl:choose>							<xsl:when test="/root/gui/reqService='main.present'">								<font class="banner-active"><xsl:value-of select="/root/gui/strings/result"/></font>							</xsl:when>							<xsl:otherwise>								<a class="banner" href="{/root/gui/locService}/main.present"><xsl:value-of select="/root/gui/strings/result"/></a>							</xsl:otherwise>						</xsl:choose>						|					</xsl:if>					<xsl:if test="string(/root/gui/session/userId)!=''">						<xsl:choose>							<xsl:when test="/root/gui/reqService='admin'">								<font class="banner-active"><xsl:value-of select="/root/gui/strings/admin"/></font>							</xsl:when>							<xsl:otherwise>								<a class="banner" href="{/root/gui/locService}/admin"><xsl:value-of select="/root/gui/strings/admin"/></a>							</xsl:otherwise>						</xsl:choose>						|					</xsl:if>					<xsl:choose>						<xsl:when test="/root/gui/reqService='feedback'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/contactUs"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/locService}/feedback"><xsl:value-of select="/root/gui/strings/contactUs"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/reqService='links'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/links"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/locService}/links"><xsl:value-of select="/root/gui/strings/links"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/reqService='about'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/about"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/locService}/about"><xsl:value-of select="/root/gui/strings/about"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/reqService='help'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/help"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/locService}/help"><xsl:value-of select="/root/gui/strings/help"/></a>						</xsl:otherwise>					</xsl:choose>				</td>				<td align="right" class="banner-menu">					<xsl:choose>						<xsl:when test="/root/gui/language='en'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/en"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/service}/en/main.home"><xsl:value-of select="/root/gui/strings/en"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/language='fr'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/fr"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/service}/fr/main.home"><xsl:value-of select="/root/gui/strings/fr"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/language='es'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/es"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/service}/es/main.home"><xsl:value-of select="/root/gui/strings/es"/></a>						</xsl:otherwise>					</xsl:choose>					|					<xsl:choose>						<xsl:when test="/root/gui/language='cn'">							<font class="banner-active"><xsl:value-of select="/root/gui/strings/cn"/></font>						</xsl:when>						<xsl:otherwise>							<a class="banner" href="{/root/gui/service}/cn/main.home"><xsl:value-of select="/root/gui/strings/cn"/></a>						</xsl:otherwise>					</xsl:choose>				</td>			</tr>						<!-- FIXME: should also contain links to last results and metadata -->						<!-- login -->			<tr class="banner">				<td class="banner-login">					<!-- FIXME					<button class="banner" onclick="goSubmit('{/root/gui/service}/es/main.present')">Last search results (11-20 of 73)</button>					<a class="banner" href="{/root/gui/service}/es/main.present">Last search results (11-20 of 73)<xsl:value-of select="/root/gui/strings/results"/></a>					-->				</td>				<xsl:choose>					<xsl:when test="string(/root/gui/session/userId)!=''">						<td align="right" class="banner-login">							<form name="logout" action="{/root/gui/locService}/user.logout" method="post">								<xsl:value-of select="/root/gui/strings/user"/>								<xsl:text>: </xsl:text>								<xsl:value-of select="/root/gui/session/name"/>								<xsl:text> </xsl:text>								<xsl:value-of select="/root/gui/session/surname"/>								<xsl:text> </xsl:text>								<button class="banner" onclick="goSubmit('logout')"><xsl:value-of select="/root/gui/strings/logout"/></button>							</form>						</td>					</xsl:when>					<xsl:otherwise>						<td align="right" class="banner-login">							<form name="login" action="{/root/gui/locService}/user.login" method="post">								<xsl:value-of select="/root/gui/strings/username"/>								<input class="banner" type="text" name="username" size="10" onkeypress="return entSub('login')"/>								<xsl:value-of select="/root/gui/strings/password"/>								<input class="banner" type="password" name="password" size="10" onkeypress="return entSub('login')"/>								<button class="banner" onclick="goSubmit('login')"><xsl:value-of select="/root/gui/strings/login"/></button>							</form>						</td>					</xsl:otherwise>				</xsl:choose>			</tr>		</table>	</xsl:template></xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -