added xsl tpls

This commit is contained in:
ceb 2002-09-29 21:17:35 +00:00
parent 00b6e9a3a7
commit 7a84f2ef14
6 changed files with 64 additions and 13 deletions

View File

@ -1,9 +1,8 @@
<!-- $Id$ --> <!-- $Id$ -->
<xsl:template name="about"> <xsl:template match="about">
<table cellpadding="2" cellspacing="2" width="80%" align="center"> <table cellpadding="2" cellspacing="2" width="80%" align="center">
<xsl:variable name="phpgw_logo"><xsl:value-of select="phpgw_logo"/></xsl:variable> <xsl:variable name="phpgw_logo"><xsl:value-of select="phpgw_logo"/></xsl:variable>
<xsl:variable name="phpgw_version"><xsl:value-of select="phpgw_version"/></xsl:variable>
<tr> <tr>
<td> <td>
<a href="http://www.phpgroupware.org" target="_blank"><img src="{$phpgw_logo}" border="0"></a> <a href="http://www.phpgroupware.org" target="_blank"><img src="{$phpgw_logo}" border="0"></a>
@ -11,7 +10,7 @@
</tr> </tr>
<tr> <tr>
<td align="center"> <td align="center">
<xsl:value-of select="phpgw_version"/> <xsl:value-of select="lang_version"/><xsl:text>: </xsl:text><xsl:value-of select="phpgw_version"/>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -32,7 +31,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="2" align="center"> <td colspan="2" align="center">
<xsl:value-of select="lang_app_version"/><xsl:text>: </xsl:text><xsl:value-of select="app_version"/> <xsl:value-of select="lang_version"/><xsl:text>: </xsl:text><xsl:value-of select="app_version"/>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -2,6 +2,7 @@
<xsl:template name="phpgw"> <xsl:template name="phpgw">
<xsl:variable name="css_path"><xsl:value-of select="css_path"/></xsl:variable> <xsl:variable name="css_path"><xsl:value-of select="css_path"/></xsl:variable>
<xsl:variable name="phpgw_charset"><xsl:value-of select="phpgw_charset"/></xsl:variable>
<xsl:variable name="phpgw_bg"><xsl:value-of select="phpgw_bg"/></xsl:variable> <xsl:variable name="phpgw_bg"><xsl:value-of select="phpgw_bg"/></xsl:variable>
<xsl:variable name="phpgw_onload"><xsl:value-of select="phpgw_onload"/></xsl:variable> <xsl:variable name="phpgw_onload"><xsl:value-of select="phpgw_onload"/></xsl:variable>
<xsl:variable name="phpgw_top_table_height"><xsl:value-of select="phpgw_top_table_height"/></xsl:variable> <xsl:variable name="phpgw_top_table_height"><xsl:value-of select="phpgw_top_table_height"/></xsl:variable>
@ -12,32 +13,31 @@
<xsl:variable name="phpgw_bottom_table_height"><xsl:value-of select="phpgw_bottom_table_height"/></xsl:variable> <xsl:variable name="phpgw_bottom_table_height"><xsl:value-of select="phpgw_bottom_table_height"/></xsl:variable>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={phpgw_head_charset}"/> <meta http-equiv="Content-Type" content="text/html; charset={$phpgw_charset}"/>
<meta name="AUTHOR" content="phpGroupWare http://www.phpgroupware.org"/> <meta name="author" content="phpGroupWare http://www.phpgroupware.org"/>
<meta name="description" content="phpGroupWare"/> <meta name="description" content="phpGroupWare"/>
<meta name="keywords" content="phpGroupWare"/> <meta name="keywords" content="phpGroupWare"/>
<meta name="robots" content="noindex"/> <meta name="robots" content="noindex"/>
<base target="{phpgw_head_target}"/>
<link rel="icon" href="favicon.ico" type="image/x-ico"/> <link rel="icon" href="favicon.ico" type="image/x-ico"/>
<link rel="shortcut icon" href="favicon.ico"/> <link rel="shortcut icon" href="favicon.ico"/>
<title><xsl:value-of select="phpgw_website_title"/></title> <title><xsl:value-of select="phpgw_website_title"/></title>
<xsl:apply-templates select="head_js"/> <xsl:apply-templates select="head_js"/>
<link rel="stylesheet" type="text/css" href="{$css_path}"> <link rel="stylesheet" type="text/css" href="{$css_path}">
</head> </head>
<body background="{$phpgw_bg}" onLoad="{phpgw_onload}"> <body background="{$phpgw_bg}" onLoad="{$phpgw_onload}">
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0"> <table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="100%" height="{$phpgw_top_table_height}" valign="top" colspan="3"> <td width="100%" height="{$phpgw_top_table_height}" valign="top" colspan="3">
<xsl:apply-templates select="phpgw_top"/> <xsl:call-template name="phpgw_top"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width="{$phpgw_left_table_width}" height="{$phpgw_body_table_height}" valign="top"> <td width="{$phpgw_left_table_width}" height="{$phpgw_body_table_height}" valign="top">
<xsl:apply-templates select="phpgw_left"/> <xsl:call-template name="phpgw_left"/>
</td> </td>
<td width="{$phpgw_body_table_width}" height="{$phpgw_body_table_height}" valign="top"> <td width="{$phpgw_body_table_width}" height="{$phpgw_body_table_height}" valign="top">
<xsl:apply-templates select="phpgw_msg_box"/> <xsl:call-template name="phpgw_msg_box"/>
<xsl:apply-templates select="phpgw_body"/> <xsl:call-template name="phpgw_body"/>
</td> </td>
<td width="{$phpgw_right_table_width}" height="{$phpgw_body_table_height}" align="right" valign="top"> <td width="{$phpgw_right_table_width}" height="{$phpgw_body_table_height}" align="right" valign="top">
<xsl:apply-templates select="phpgw_right"/> <xsl:apply-templates select="phpgw_right"/>
@ -45,7 +45,7 @@
</tr> </tr>
<tr> <tr>
<td width="100%" height="{$phpgw_bottom_table_height}" valign="top" colspan="3"> <td width="100%" height="{$phpgw_bottom_table_height}" valign="top" colspan="3">
<xsl:apply-templates select="phpgw_bottom"/> <xsl:call-template name="phpgw_bottom"/>
</td> </td>
</tr> </tr>
</table> </table>

View File

@ -0,0 +1,15 @@
<!-- $Id$ -->
<xsl:template name="phpgw_bottom">
<xsl:variable name="phpgw_url"><xsl:value-of select="phpgw_url"/></xsl:variable>
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="navbar">
<tr>
<td valign="middle" align="center">
<xsl:text>Powered by </xsl:text>
<a href="{phpgw_url}" target="_blank"><xsl:text>phpGroupWare</xsl:text></a>
<xsl:text> version </xsl:text>
<xsl:value-of select="phpgw_version"/>
</td>
</tr>
</table>
</xsl:template>

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<xsl:template name="phpgw_left">
<table width="100%" cellspacing="0" cellpadding="0">
</table>
</xsl:template>

View File

@ -0,0 +1,6 @@
<!-- $Id$ -->
<xsl:template name="phpgw_right">
<table width="100%" cellspacing="0" cellpadding="0">
</table>
</xsl:template>

View File

@ -0,0 +1,25 @@
<!-- $Id$ -->
<xsl:template name="phpgw_top">
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="navbar">
<xsl:apply-templates select="app_list"/>
</tr>
<tr>
<td>
<xsl:value-of select="user_info"/>
</td>
</tr>
<tr>
<td><xsl:value-of select="current_users"/></td>
</tr>
</table>
</xsl:template>
<xsl:template match="app_list">
<xsl:variable name="app_link"><xsl:value-of select="app_link"/></xsl:variable>
<xsl:variable name="app_icon"><xsl:value-of select="app_icon"/></xsl:variable>
<td>
<a href="{$app_link}" target="_top"><img src="{$app_icon}" border="0"></a>
</td>
</xsl:template>