update xslt

This commit is contained in:
ceb 2002-10-28 03:01:01 +00:00
parent 680483d4e4
commit 8544075f7e
3 changed files with 147 additions and 108 deletions

View File

@ -1,24 +1,24 @@
<!-- $Id$ --> <!-- $Id$ -->
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable> <xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable> <xsl:variable name="theme_css_file" select="theme_css_file"/>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable> <xsl:variable name="charset" select="charset"/>
<xsl:variable name="onload"><xsl:value-of select="onload"/></xsl:variable> <xsl:variable name="onload" select="onload"/>
<xsl:variable name="home_link"><xsl:value-of select="home_link"/></xsl:variable> <xsl:variable name="home_link" select="home_link"/>
<xsl:variable name="prefs_link"><xsl:value-of select="prefs_link"/></xsl:variable> <xsl:variable name="prefs_link" select="prefs_link"/>
<xsl:variable name="logout_link"><xsl:value-of select="logout_link"/></xsl:variable> <xsl:variable name="logout_link" select="logout_link"/>
<xsl:variable name="about_link"><xsl:value-of select="about_link"/></xsl:variable> <xsl:variable name="about_link" select="about_link"/>
<xsl:variable name="home_img"><xsl:value-of select="home_img"/></xsl:variable> <xsl:variable name="home_img" select="home_img"/>
<xsl:variable name="prefs_img"><xsl:value-of select="prefs_img"/></xsl:variable> <xsl:variable name="prefs_img" select="prefs_img"/>
<xsl:variable name="logout_img"><xsl:value-of select="logout_img"/></xsl:variable> <xsl:variable name="logout_img" select="logout_img"/>
<xsl:variable name="about_img"><xsl:value-of select="about_img"/></xsl:variable> <xsl:variable name="about_img" select="about_img"/>
<xsl:variable name="home_title"><xsl:value-of select="home_title"/></xsl:variable> <xsl:variable name="home_title" select="home_title"/>
<xsl:variable name="prefs_title"><xsl:value-of select="prefs_title"/></xsl:variable> <xsl:variable name="prefs_title" select="prefs_title"/>
<xsl:variable name="logout_title"><xsl:value-of select="logout_title"/></xsl:variable> <xsl:variable name="logout_title" select="logout_title"/>
<xsl:variable name="about_title"><xsl:value-of select="about_title"/></xsl:variable> <xsl:variable name="about_title" select="about_title"/>
<xsl:variable name="navbar_format"><xsl:value-of select="navbar_format"/></xsl:variable> <xsl:variable name="navbar_format" select="navbar_format"/>
<xsl:variable name="app_tpl"><xsl:value-of select="app_tpl"/></xsl:variable> <xsl:variable name="app_tpl" select="app_tpl"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/> <meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
@ -39,13 +39,20 @@
<table width="100%" cellspacing="0" cellpadding="2"> <table width="100%" cellspacing="0" cellpadding="2">
<tr width="100%"> <tr width="100%">
<td colspan="4"> <td colspan="4">
<table cellspacing="0" cellpadding="0" width="100%"> <xsl:choose>
<tr> <xsl:when test="navbar_format = 'text'">
<xsl:apply-templates select="applications"> <xsl:value-of disable-output-escaping="yes" select="app_tabs"/>
<xsl:with-param name="navbar_format" select="navbar_format"/> </xsl:when>
</xsl:apply-templates> <xsl:otherwise>
</tr> <table cellspacing="0" cellpadding="0" width="100%">
</table> <tr>
<xsl:apply-templates select="applications">
<xsl:with-param name="navbar_format" select="navbar_format"/>
</xsl:apply-templates>
</tr>
</table>
</xsl:otherwise>
</xsl:choose>
</td> </td>
</tr> </tr>
<tr width="100%"> <tr width="100%">
@ -53,23 +60,32 @@
<xsl:choose> <xsl:choose>
<xsl:when test="current_users"> <xsl:when test="current_users">
<xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable> <xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable>
<td width="25%" class="info"><a href="{$url_current_users}"><xsl:value-of select="current_users"/></a></td> <td width="25%" nowrap="nowrap" class="info"><a href="{$url_current_users}"><xsl:value-of select="current_users"/></a></td>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<td width="25%"></td> <td width="25%"> </td>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<td class="info" width="25%" align="right"><xsl:value-of select="user_info_date"/></td> <td width="25%" class="info" align="right"><xsl:value-of select="user_info_date"/></td>
<td width="25%"> <xsl:choose>
<table cellspacing="0" cellpadding="0" align="right"> <xsl:when test="navbar_format = 'text'">
<tr> <td align="right">
<td><a href="{$home_link}" onMouseOver="" onMouseOut=""><img src="{$home_img}" border="0" name="nine" alt="{$home_title}" title="{$home_title}"/></a></td> <xsl:value-of disable-output-escaping="yes" select="base_tabs"/>
<td><a href="{$prefs_link}" onMouseOver="" onMouseOut=""><img src="{$prefs_img}" border="0" name="ten" alt="{$prefs_title}" title="{$prefs_title}"/></a></td> </td>
<td><a href="{$logout_link}" onMouseOver="" onMouseOut=""><img src="{$logout_img}" border="0" name="eleven" alt="{$logout_title}" title="{$logout_title}"/></a></td> </xsl:when>
<td><a href="{$about_link}" onMouseOver="" onMouseOut=""><img src="{$about_img}" border="0" name="about" alt="{$about_title}" title="{$about_title}"/></a></td> <xsl:otherwise>
</tr> <td>
</table> <table cellspacing="0" cellpadding="0" align="right">
</td> <tr>
<td><a href="{$home_link}" onMouseOver="" onMouseOut=""><img src="{$home_img}" border="0" name="nine" alt="{$home_title}" title="{$home_title}"/></a></td>
<td><a href="{$prefs_link}" onMouseOver="" onMouseOut=""><img src="{$prefs_img}" border="0" name="ten" alt="{$prefs_title}" title="{$prefs_title}"/></a></td>
<td><a href="{$logout_link}" onMouseOver="" onMouseOut=""><img src="{$logout_img}" border="0" name="eleven" alt="{$logout_title}" title="{$logout_title}"/></a></td>
<td><a href="{$about_link}" onMouseOver="" onMouseOut=""><img src="{$about_img}" border="0" name="about" alt="{$about_title}" title="{$about_title}"/></a></td>
</tr>
</table>
</td>
</xsl:otherwise>
</xsl:choose>
</tr> </tr>
</table> </table>
</td> </td>
@ -119,13 +135,19 @@
</xsl:template> </xsl:template>
<xsl:template match="applications"> <xsl:template match="applications">
<xsl:param name="navbar_format" select="'icon'"/> <xsl:param name="navbar_format"/>
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable> <xsl:variable name="url" select="url"/>
<xsl:variable name="name"><xsl:value-of select="name"/></xsl:variable> <xsl:variable name="icon" select="icon"/>
<xsl:variable name="icon"><xsl:value-of select="icon"/></xsl:variable> <xsl:variable name="title" select="title"/>
<xsl:variable name="title"><xsl:value-of select="title"/></xsl:variable> <td align="center">
<td> <a href="{$url}">
<a href="{$url}" onMouseOver="" onMouseOut=""><img src="{$icon}" border="0" alt="{$title}" title="{$title}" name="{$name}"/></a> <xsl:if test="$navbar_format != 'text'">
<img src="{$icon}" border="0" alt="{$title}" title="{$title}"/>
</xsl:if>
<xsl:if test="$navbar_format != 'icons'">
<br/><xsl:value-of select="title"/>
</xsl:if>
</a>
</td> </td>
</xsl:template> </xsl:template>

View File

@ -3,9 +3,14 @@ body,p,td,th,table,input,form,option
color: #000000; color: #000000;
} }
body
{
background-color: #F5F5F5;
}
a:link,a:active,a:visited a:link,a:active,a:visited
{ {
color: #336699; color: darkgreen;
} }
a:hover a:hover
@ -13,20 +18,21 @@ a:hover
color: #cc0000; color: #cc0000;
} }
.info
{
color: #000000;
}
.login,.portal,.about .login,.portal,.about
{ {
background-color: #FFE4C4; background-color: #AABBCC;
border-color: #000000; border-color: #000000;
} }
.info
{
color: #FFFFFF;
}
.portal_text .portal_text
{ {
color: #FFFFFF; color: #FFFFFF;
background-color: #bd524a;
} }
.th_bright,.app_header .th_bright,.app_header
@ -36,17 +42,22 @@ a:hover
.row_on .row_on
{ {
background-color: #EEEEFF; background-color: #D3DCE3;
} }
.row_off .row_off
{ {
background-color: #FFFFEE; background-color: #EEEEEE;
} }
.th,.navbar .th
{ {
background-color: #FFE4C4; background-color: #bd524a;
}
.navbar
{
background-color: maroon;
} }
.cal_today .cal_today

View File

@ -1,24 +1,25 @@
<!-- $Id$ --> <!-- $Id$ -->
<xsl:template match="phpgw"> <xsl:template match="phpgw">
<xsl:variable name="phpgw_css_file"><xsl:value-of select="phpgw_css_file"/></xsl:variable> <xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
<xsl:variable name="theme_css_file"><xsl:value-of select="theme_css_file"/></xsl:variable> <xsl:variable name="theme_css_file" select="theme_css_file"/>
<xsl:variable name="charset"><xsl:value-of select="charset"/></xsl:variable> <xsl:variable name="charset" select="charset"/>
<xsl:variable name="logo_img"><xsl:value-of select="logo_img"/></xsl:variable> <xsl:variable name="logo_img" select="logo_img"/>
<xsl:variable name="home_link"><xsl:value-of select="home_link"/></xsl:variable> <xsl:variable name="home_link" select="home_link"/>
<xsl:variable name="prefs_link"><xsl:value-of select="prefs_link"/></xsl:variable> <xsl:variable name="prefs_link" select="prefs_link"/>
<xsl:variable name="logout_link"><xsl:value-of select="logout_link"/></xsl:variable> <xsl:variable name="logout_link" select="logout_link"/>
<xsl:variable name="about_link"><xsl:value-of select="about_link"/></xsl:variable> <xsl:variable name="about_link" select="about_link"/>
<xsl:variable name="home_img"><xsl:value-of select="home_img"/></xsl:variable> <xsl:variable name="home_img" select="home_img"/>
<xsl:variable name="prefs_img"><xsl:value-of select="prefs_img"/></xsl:variable> <xsl:variable name="prefs_img" select="prefs_img"/>
<xsl:variable name="logout_img"><xsl:value-of select="logout_img"/></xsl:variable> <xsl:variable name="logout_img" select="logout_img"/>
<xsl:variable name="about_img"><xsl:value-of select="about_img"/></xsl:variable> <xsl:variable name="about_img" select="about_img"/>
<xsl:variable name="home_title"><xsl:value-of select="home_title"/></xsl:variable> <xsl:variable name="home_title" select="home_title"/>
<xsl:variable name="prefs_title"><xsl:value-of select="prefs_title"/></xsl:variable> <xsl:variable name="prefs_title" select="prefs_title"/>
<xsl:variable name="logout_title"><xsl:value-of select="logout_title"/></xsl:variable> <xsl:variable name="logout_title" select="logout_title"/>
<xsl:variable name="about_title"><xsl:value-of select="about_title"/></xsl:variable> <xsl:variable name="about_title" select="about_title"/>
<xsl:variable name="phpgw_body"><xsl:value-of select="phpgw_body"/></xsl:variable> <xsl:variable name="phpgw_body" select="phpgw_body"/>
<xsl:variable name="greybar"><xsl:value-of select="greybar"/></xsl:variable> <xsl:variable name="greybar" select="greybar"/>
<xsl:variable name="phpgw_statustext" select="lang_phpgw_statustext"/>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/> <meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
@ -33,20 +34,20 @@
<link rel="stylesheet" type="text/css" href="{$theme_css_file}"/> <link rel="stylesheet" type="text/css" href="{$theme_css_file}"/>
</head> </head>
<body> <body>
<table width="100%" height="100%" cellspacing="0" cellpadding="0"> <table width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr> <tr height="30">
<td colspan="3" valign="top"> <td colspan="2" valign="top">
<!-- BEGIN top_part --> <!-- BEGIN top_part -->
<table class="navbar" width="100%" cellspacing="0" cellpadding="0" border="0"> <table class="navbar" height="30" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr> <tr valign="bottom">
<td valign="bottom"> <td>
<a href="http://www.phpgroupware.org" target="_blank"> <a href="http://www.phpgroupware.org" target="_blank" title="{$phpgw_statustext}">
<img src="{$logo_img}" border="0"/></a> <img src="{$logo_img}" border="0"/></a>
</td> </td>
<td class="portal_text" width="99%" valign="bottom" align="center"> <td class="info" width="99%" align="center">
<xsl:value-of select="user_info"/> <xsl:value-of select="user_info"/>
</td> </td>
<td valign="bottom" align="right" rowspan="2" nowrap="true"> <td rowspan="2" nowrap="nowrap">
<table cellspacing="0" cellpadding="0" border="0"> <table cellspacing="0" cellpadding="0" border="0">
<tr> <tr>
<td><a href="{$home_link}"><img src="{$home_img}" border="0" alt="{$home_title}" title="{$home_title}"/></a></td> <td><a href="{$home_link}"><img src="{$home_img}" border="0" alt="{$home_title}" title="{$home_title}"/></a></td>
@ -70,7 +71,7 @@
<tr height="20" valign="top"> <tr height="20" valign="top">
<td class="left"> <td class="left">
</td> </td>
<td style="padding-left: 5px"> <td align="right">
<xsl:choose> <xsl:choose>
<xsl:when test="current_users"> <xsl:when test="current_users">
<xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable> <xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable>
@ -78,29 +79,19 @@
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</td> </td>
<td align="right">
<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"/>
</td>
</tr> </tr>
<!-- END top_part 2 --> <!-- END top_part 2 -->
<tr valign="top"> <tr valign="top">
<td class="left" width="32"> <td class="left" width="32">
<!-- BEGIN left_part --> <!-- BEGIN left_part -->
<table cellspacing="0" cellpadding="0" valign="top" class="left"> <table cellspacing="0" cellpadding="0" valign="top" class="left">
<xsl:apply-templates select="applications"/> <xsl:apply-templates select="applications">
<xsl:with-param name="navbar_format" select="navbar_format"/>
</xsl:apply-templates>
</table> </table>
<!-- END left_part --> <!-- END left_part -->
</td> </td>
<td width="100%" height="100%" valign="top" align="center" colspan="2" style="padding-left: 5px"> <td width="100%" height="100%" valign="top" align="center" style="padding-left: 5px">
<xsl:choose> <xsl:choose>
<xsl:when test="msgbox_data"> <xsl:when test="msgbox_data">
<xsl:call-template name="msgbox"/> <xsl:call-template name="msgbox"/>
@ -119,10 +110,19 @@
</xsl:choose> </xsl:choose>
</td> </td>
</tr> </tr>
<tr> <tr class="navbar">
<td colspan="3" class="navbar"> <td colspan="2" align="center" class="info">
<!-- BEGIN bottom_part --> <!-- BEGIN bottom_part -->
&nbsp; <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 --> <!-- END bottom_part -->
</td> </td>
</tr> </tr>
@ -132,14 +132,20 @@
</xsl:template> </xsl:template>
<xsl:template match="applications"> <xsl:template match="applications">
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable> <xsl:param name="navbar_format"/>
<xsl:variable name="name"><xsl:value-of select="name"/></xsl:variable> <xsl:variable name="url" select="url"/>
<xsl:variable name="img_src_over"><xsl:value-of select="img_src_over"/></xsl:variable> <xsl:variable name="icon" select="icon"/>
<xsl:variable name="icon"><xsl:value-of select="icon"/></xsl:variable> <xsl:variable name="title" select="title"/>
<xsl:variable name="title"><xsl:value-of select="title"/></xsl:variable>
<tr> <tr>
<td class="left"> <td class="left">
<a href="{$url}"><img src="{$icon}" border="0" alt="{$title}" title="{$title}" name="{$name}"/></a> <a href="{$url}">
<xsl:if test="$navbar_format != 'text'">
<img src="{$icon}" border="0" alt="{$title}" title="{$title}"/>
</xsl:if>
<xsl:if test="$navbar_format != 'icons'">
<br/><xsl:value-of select="title"/>
</xsl:if>
</a>
</td> </td>
</tr> </tr>
</xsl:template> </xsl:template>