egroupware_official/phpgwapi/templates/funkwerk/phpgw.xsl

194 lines
9.4 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="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>
2002-11-30 02:31:30 +01:00
<xsl:variable name="help_link"><xsl:value-of select="help_link"/></xsl:variable>
2002-11-15 23:31:51 +01:00
<xsl:variable name="about_img"><xsl:value-of select="about_img"/></xsl:variable>
2002-11-30 02:31:30 +01:00
<xsl:variable name="help_img"><xsl:value-of select="help_img"/></xsl:variable>
2002-11-15 06:15:39 +01:00
<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>
2002-11-30 02:31:30 +01:00
<xsl:variable name="help_statustext"><xsl:value-of select="help_statustext"/></xsl:variable>
2002-11-15 23:31:51 +01:00
<xsl:variable name="top_css_home"><xsl:value-of select="top_css_home"/></xsl:variable>
<xsl:variable name="top_css_prefs"><xsl:value-of select="top_css_prefs"/></xsl:variable>
<xsl:variable name="top_css_about"><xsl:value-of select="top_css_about"/></xsl:variable>
2002-11-30 02:31:30 +01:00
<xsl:variable name="top_css_help"><xsl:value-of select="top_css_help"/></xsl:variable>
2002-11-15 23:31:51 +01:00
<xsl:variable name="top_css"><xsl:value-of select="top_css"/></xsl:variable>
2002-11-15 06:15:39 +01:00
<xsl:variable name="app_tpl"><xsl:value-of select="app_tpl"/></xsl:variable>
2002-11-30 02:31:30 +01:00
<xsl:variable name="current_app" select="current_app"/>
2002-11-15 06:15:39 +01:00
<html>
<head>
<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>
2003-04-24 03:34:44 +02:00
<script type="text/javascript" language="javascript" src="{$webserver_url}/phpgwapi/templates/default/scripts.js"></script>
<xsl:choose>
<xsl:when test="app_java_script != ''">
<xsl:value-of disable-output-escaping="yes" select="app_java_script"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="app_java_script_url != ''">
<xsl:variable name="app_java_script_url" select="app_java_script_url"/>
<script type="text/javascript" language="javascript" src="{$webserver_url}/{$current_app}/templates/{$app_java_script_url}"></script>
</xsl:when>
</xsl:choose>
2002-11-15 06:15:39 +01:00
<link rel="stylesheet" type="text/css" href="{$phpgw_css_file}"/>
<link rel="stylesheet" type="text/css" href="{$theme_css_file}"/>
2003-04-24 03:34:44 +02:00
<xsl:choose>
<xsl:when test="app_css != ''">
<style type="text/css">
<xsl:text>&lt;!--</xsl:text>
<xsl:value-of disable-output-escaping="yes" select="app_css"/>
<xsl:text>--&gt;</xsl:text>
</style>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="app_css_url != ''">
<xsl:variable name="app_css_url" select="app_css_url"/>
<link rel="stylesheet" type="text/css" href="{$webserver_url}/{$current_app}/templates/{$app_css_url}"/>
</xsl:when>
</xsl:choose>
2002-11-15 06:15:39 +01:00
</head>
<body>
<!-- BEGIN top_part -->
<table width="100%" height="100%" cellspacing="2" cellpadding="2" valign="top">
<tr>
2003-04-21 03:24:14 +02:00
<td width="23%" height="30" valign="bottom" class="top_top"><a href="" target="blank" onMouseover="window.status='phpGroupWare --> home'; return true;" onMouseout="window.status=''; return true;" class="bottom">[phpGroupWare]</a></td>
2002-11-15 06:15:39 +01:00
<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>
2003-04-21 00:14:39 +02:00
<td class="admin_info" valign="bottom"><a href="{$url_current_users}" class="admin_info">[<xsl:value-of select="current_users"/>]</a></td>
2002-11-15 06:15:39 +01:00
</xsl:when>
<xsl:otherwise>
<td class="admin_info"/>
</xsl:otherwise>
</xsl:choose>
2003-05-04 01:24:23 +02:00
<td height="30" width="19%" class="date" align="right" valign="bottom">[<xsl:value-of select="user_info_date"/>]</td>
2002-11-15 06:15:39 +01:00
</tr>
<tr align="right" height="30">
<td colspan="4" class="top_bottom">
<table cellpadding="2" cellspacing="2">
<tr class="top_bottom">
2002-11-15 23:31:51 +01:00
<td class="top_menu"><a href="{$home_link}" onMouseOver="window.status='{$home_statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$top_css_home}">[<xsl:value-of select="home_title"/>]</a></td>
<xsl:if test="$prefs_link != ''">
<td class="top_menu"><a href="{$prefs_link}" onMouseOver="window.status='{$prefs_statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$top_css_prefs}">[<xsl:value-of select="prefs_title"/>]</a></td>
</xsl:if>
2002-11-15 23:31:51 +01:00
<td class="top_menu"><a href="{$logout_link}" onMouseOver="window.status='{$logout_statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$top_css}">[<xsl:value-of select="logout_title"/>]</a></td>
<td class="top_menu"><a href="{$about_link}" onMouseOver="window.status='{$about_statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$top_css_about}">[<xsl:value-of select="about_img"/>]</a></td>
2002-11-30 02:31:30 +01:00
<td class="top_menu"><a href="{$help_link}" onMouseOver="window.status='{$help_statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$top_css_help}" target="_blank">[<xsl:value-of select="help_img"/>]</a></td>
2002-11-15 06:15:39 +01:00
</tr>
</table>
</td>
</tr>
</table>
<!-- END top_part -->
2003-04-21 03:24:14 +02:00
<table width="100%" height="100%" cellspacing="0" cellpadding="0" valign="top">
2002-11-15 06:15:39 +01:00
<tr valign="top" width="100%">
2003-04-21 00:14:39 +02:00
<td width="131">
2002-11-15 06:15:39 +01:00
<!-- BEGIN left_part -->
2003-04-21 00:14:39 +02:00
<table valign="top" cellpadding="2" cellspacing="2" width="131">
2002-11-15 06:15:39 +01:00
<xsl:apply-templates select="applications"/>
</table>
<!-- END left_part -->
</td>
2003-04-21 00:14:39 +02:00
<td height="100%" width="100%" valign="top" align="center">
2003-04-22 05:36:49 +02:00
<table valign="top" cellpadding="2" cellspacing="2" width="100%">
2003-04-21 03:24:14 +02:00
<xsl:choose>
<xsl:when test="app_header">
<tr>
<td>
2003-04-21 00:14:39 +02:00
<xsl:attribute name="class">app_header</xsl:attribute>
<xsl:value-of disable-output-escaping="yes" select="app_header"/>
2003-04-21 03:24:14 +02:00
</td>
</tr>
</xsl:when>
</xsl:choose>
2003-04-21 00:14:39 +02:00
<tr>
<td align="center">
2002-11-15 06:15:39 +01:00
<xsl:choose>
<xsl:when test="msgbox_data">
<xsl:call-template name="msgbox"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
2002-11-30 02:31:30 +01:00
<xsl:when test="$current_app = 'home'">
2002-11-15 06:15:39 +01:00
<xsl:call-template name="portal"/>
</xsl:when>
2002-11-30 02:31:30 +01:00
<xsl:when test="$current_app = 'about'">
2002-11-15 06:15:39 +01:00
<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>
2003-04-21 00:14:39 +02:00
</td>
</tr>
</table>
2002-11-15 06:15:39 +01:00
</td>
<td width="3%"/>
</tr>
<tr valign="top">
<td colspan="3" align="center" valign="top" class="bottom">
<!-- BEGIN bottom_part -->
2002-11-16 02:33:18 +01:00
[<xsl:value-of select="lang_powered_by"/>
<a href="http://www.phpgroupware.org" target="blank" onMouseout="window.status='';return true;" class="bottom">
2002-11-15 06:15:39 +01:00
<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>
2002-11-16 02:33:18 +01:00
<xsl:text> </xsl:text><xsl:value-of select="lang_version"/><xsl:text> </xsl:text><xsl:value-of select="phpgw_version"/>]
2002-11-15 06:15:39 +01:00
<!-- 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>
2002-11-15 23:31:51 +01:00
<xsl:variable name="css"><xsl:value-of select="css"/></xsl:variable>
2002-11-15 06:15:39 +01:00
<tr>
<td height="30" width="131" valign="bottom" class="left">
2003-04-21 03:24:14 +02:00
<table class="left_app" cellpadding="2" cellspacing="2">
2002-11-15 06:15:39 +01:00
<tr>
<td class="left_app">
2002-11-15 23:31:51 +01:00
<a href="{$url}" onMouseOver="window.status='{$statustext}'; return true;" onMouseOut="window.status='';return true;" class="{$css}">[<xsl:value-of select="title"/>]</a>
2002-11-15 06:15:39 +01:00
</td>
</tr>
</table>
</td>
</tr>
</xsl:template>