egroupware/phpgwapi/templates/funkwerk/phpgw.xsl

142 lines
6.5 KiB
XML
Raw Normal View History

2002-11-15 06:15:39 +01:00
<!-- $Id$ -->
<xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable>
<xsl:variable name="webserver_url"><xsl:value-of select="webserver_url"/></xsl:variable>
<xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable>
<xsl:variable name="home_link"><xsl:value-of select="home_link"/></xsl:variable>
<xsl:variable name="prefs_link"><xsl:value-of select="prefs_link"/></xsl:variable>
<xsl:variable name="logout_link"><xsl:value-of select="logout_link"/></xsl:variable>
<xsl:variable name="about_link"><xsl:value-of select="about_link"/></xsl:variable>
<xsl:variable name="home_statustext"><xsl:value-of select="home_statustext"/></xsl:variable>
<xsl:variable name="prefs_statustext"><xsl:value-of select="prefs_statustext"/></xsl:variable>
<xsl:variable name="logout_statustext"><xsl:value-of select="logout_statustext"/></xsl:variable>
<xsl:variable name="about_statustext"><xsl:value-of select="about_statustext"/></xsl:variable>
<xsl:variable name="app_tpl"><xsl:value-of select="app_tpl"/></xsl:variable>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
<meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/>
<meta name="robots" content="noindex"/>
<link rel="icon" href="favicon.ico" type="image/x-ico"/>
<link rel="shortcut icon" href="favicon.ico"/>
<title><xsl:value-of select="website_title"/></title>
<link rel="stylesheet" type="text/css" href="{$phpgw_css_file}"/>
<link rel="stylesheet" type="text/css" href="{$theme_css_file}"/>
</head>
<body>
<!-- BEGIN top_part -->
<table width="100%" height="100%" cellspacing="2" cellpadding="2" valign="top">
<tr>
<td width="131" height="30" valign="bottom" class="top_top">[phpGroupWare]</td>
<td height="30" width="19%" valign="bottom" class="user_info">[<xsl:value-of select="user_info_name"/>]</td>
<xsl:choose>
<xsl:when test="current_users">
<xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable>
<td class="admin_info" valign="bottom"><a href="{$url_current_users}">[<xsl:value-of select="current_users"/>]</a></td>
</xsl:when>
<xsl:otherwise>
<td class="admin_info"/>
</xsl:otherwise>
</xsl:choose>
<td height="30" width="19%" class="user_info" align="right" valign="bottom">[<xsl:value-of select="user_info_date"/>]</td>
</tr>
<tr align="right" height="30">
<td colspan="4" class="top_bottom">
<table cellpadding="2" cellspacing="2">
<tr class="top_bottom">
<td class="top_link"><a href="{$home_link}" onMouseOver="window.status='{$home_statustext}'; return true;" onMouseOut="window.status='';return true;" class="top_link">[<xsl:value-of select="home_title"/>]</a></td>
<td class="top_link"><a href="{$prefs_link}" onMouseOver="window.status='{$prefs_statustext}'; return true;" onMouseOut="window.status='';return true;" class="top_link">[<xsl:value-of select="prefs_title"/>]</a></td>
<td class="top_link"><a href="{$logout_link}" onMouseOver="window.status='{$logout_statustext}'; return true;" onMouseOut="window.status='';return true;" class="top_link">[<xsl:value-of select="logout_title"/>]</a></td>
<td class="top_link"><a href="{$about_link}" onMouseOver="window.status='{$about_statustext}'; return true;" onMouseOut="window.status='';return true;" class="top_link">[<xsl:value-of select="about_title"/>]</a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- END top_part -->
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr valign="top" width="100%">
<td width="17%">
<!-- BEGIN left_part -->
<table valign="top" cellpadding="2" cellspacing="2">
<xsl:apply-templates select="applications"/>
<tr>
<td/>
</tr>
</table>
<!-- END left_part -->
</td>
<td height="100%" width="80%" valign="top" align="center">
<xsl:choose>
<xsl:when test="msgbox_data">
<xsl:call-template name="msgbox"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="home">
<xsl:call-template name="portal"/>
</xsl:when>
<xsl:when test="about">
<xsl:call-template name="about"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="$app_tpl != ''">
<xsl:choose>
<xsl:when test="$app_tpl = 'delete'">
<xsl:call-template name="app_delete"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="app_data"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="body_data"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td width="3%"/>
</tr>
<tr valign="top">
<td colspan="3" align="center" valign="top" class="bottom">
<!-- BEGIN bottom_part -->
<xsl:value-of select="lang_powered_by"/>
<a href="http://www.phpgroupware.org" target="blank" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of select="lang_phpgw_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<xsl:text> phpGroupWare </xsl:text>
</a>
<xsl:text> </xsl:text><xsl:value-of select="lang_version"/><xsl:text> </xsl:text><xsl:value-of select="phpgw_version"/>
<!-- END bottom_part -->
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="applications">
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
<xsl:variable name="statustext"><xsl:value-of select="statustext"/></xsl:variable>
<tr>
<td height="30" width="131" valign="bottom" class="left">
<table class="left_app">
<tr>
<td class="left_app">
<a href="{$url}" onMouseOver="window.status='{$statustext}'; return true;" onMouseOut="window.status='';return true;" class="left">[<xsl:value-of select="title"/>]</a>
</td>
</tr>
</table>
</td>
</tr>
</xsl:template>