forked from extern/egroupware
update xslt
This commit is contained in:
parent
680483d4e4
commit
8544075f7e
@ -1,24 +1,24 @@
|
||||
<!-- $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="onload"><xsl:value-of select="onload"/></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_img"><xsl:value-of select="home_img"/></xsl:variable>
|
||||
<xsl:variable name="prefs_img"><xsl:value-of select="prefs_img"/></xsl:variable>
|
||||
<xsl:variable name="logout_img"><xsl:value-of select="logout_img"/></xsl:variable>
|
||||
<xsl:variable name="about_img"><xsl:value-of select="about_img"/></xsl:variable>
|
||||
<xsl:variable name="home_title"><xsl:value-of select="home_title"/></xsl:variable>
|
||||
<xsl:variable name="prefs_title"><xsl:value-of select="prefs_title"/></xsl:variable>
|
||||
<xsl:variable name="logout_title"><xsl:value-of select="logout_title"/></xsl:variable>
|
||||
<xsl:variable name="about_title"><xsl:value-of select="about_title"/></xsl:variable>
|
||||
<xsl:variable name="navbar_format"><xsl:value-of select="navbar_format"/></xsl:variable>
|
||||
<xsl:variable name="app_tpl"><xsl:value-of select="app_tpl"/></xsl:variable>
|
||||
<xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
|
||||
<xsl:variable name="theme_css_file" select="theme_css_file"/>
|
||||
<xsl:variable name="charset" select="charset"/>
|
||||
<xsl:variable name="onload" select="onload"/>
|
||||
<xsl:variable name="home_link" select="home_link"/>
|
||||
<xsl:variable name="prefs_link" select="prefs_link"/>
|
||||
<xsl:variable name="logout_link" select="logout_link"/>
|
||||
<xsl:variable name="about_link" select="about_link"/>
|
||||
<xsl:variable name="home_img" select="home_img"/>
|
||||
<xsl:variable name="prefs_img" select="prefs_img"/>
|
||||
<xsl:variable name="logout_img" select="logout_img"/>
|
||||
<xsl:variable name="about_img" select="about_img"/>
|
||||
<xsl:variable name="home_title" select="home_title"/>
|
||||
<xsl:variable name="prefs_title" select="prefs_title"/>
|
||||
<xsl:variable name="logout_title" select="logout_title"/>
|
||||
<xsl:variable name="about_title" select="about_title"/>
|
||||
<xsl:variable name="navbar_format" select="navbar_format"/>
|
||||
<xsl:variable name="app_tpl" select="app_tpl"/>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
|
||||
@ -39,13 +39,20 @@
|
||||
<table width="100%" cellspacing="0" cellpadding="2">
|
||||
<tr width="100%">
|
||||
<td colspan="4">
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<xsl:apply-templates select="applications">
|
||||
<xsl:with-param name="navbar_format" select="navbar_format"/>
|
||||
</xsl:apply-templates>
|
||||
</tr>
|
||||
</table>
|
||||
<xsl:choose>
|
||||
<xsl:when test="navbar_format = 'text'">
|
||||
<xsl:value-of disable-output-escaping="yes" select="app_tabs"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<table cellspacing="0" cellpadding="0" width="100%">
|
||||
<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>
|
||||
</tr>
|
||||
<tr width="100%">
|
||||
@ -53,23 +60,32 @@
|
||||
<xsl:choose>
|
||||
<xsl:when test="current_users">
|
||||
<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:otherwise>
|
||||
<td width="25%"></td>
|
||||
<td width="25%"> </td>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="info" width="25%" align="right"><xsl:value-of select="user_info_date"/></td>
|
||||
<td width="25%">
|
||||
<table cellspacing="0" cellpadding="0" align="right">
|
||||
<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>
|
||||
<td width="25%" class="info" align="right"><xsl:value-of select="user_info_date"/></td>
|
||||
<xsl:choose>
|
||||
<xsl:when test="navbar_format = 'text'">
|
||||
<td align="right">
|
||||
<xsl:value-of disable-output-escaping="yes" select="base_tabs"/>
|
||||
</td>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" align="right">
|
||||
<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>
|
||||
</table>
|
||||
</td>
|
||||
@ -119,13 +135,19 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="applications">
|
||||
<xsl:param name="navbar_format" select="'icon'"/>
|
||||
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
|
||||
<xsl:variable name="name"><xsl:value-of select="name"/></xsl:variable>
|
||||
<xsl:variable name="icon"><xsl:value-of select="icon"/></xsl:variable>
|
||||
<xsl:variable name="title"><xsl:value-of select="title"/></xsl:variable>
|
||||
<td>
|
||||
<a href="{$url}" onMouseOver="" onMouseOut=""><img src="{$icon}" border="0" alt="{$title}" title="{$title}" name="{$name}"/></a>
|
||||
<xsl:param name="navbar_format"/>
|
||||
<xsl:variable name="url" select="url"/>
|
||||
<xsl:variable name="icon" select="icon"/>
|
||||
<xsl:variable name="title" select="title"/>
|
||||
<td align="center">
|
||||
<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>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -3,9 +3,14 @@ body,p,td,th,table,input,form,option
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
a:link,a:active,a:visited
|
||||
{
|
||||
color: #336699;
|
||||
color: darkgreen;
|
||||
}
|
||||
|
||||
a:hover
|
||||
@ -13,20 +18,21 @@ a:hover
|
||||
color: #cc0000;
|
||||
}
|
||||
|
||||
.info
|
||||
{
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.login,.portal,.about
|
||||
{
|
||||
background-color: #FFE4C4;
|
||||
background-color: #AABBCC;
|
||||
border-color: #000000;
|
||||
}
|
||||
|
||||
.info
|
||||
{
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.portal_text
|
||||
{
|
||||
color: #FFFFFF;
|
||||
background-color: #bd524a;
|
||||
}
|
||||
|
||||
.th_bright,.app_header
|
||||
@ -36,17 +42,22 @@ a:hover
|
||||
|
||||
.row_on
|
||||
{
|
||||
background-color: #EEEEFF;
|
||||
background-color: #D3DCE3;
|
||||
}
|
||||
|
||||
.row_off
|
||||
{
|
||||
background-color: #FFFFEE;
|
||||
background-color: #EEEEEE;
|
||||
}
|
||||
|
||||
.th,.navbar
|
||||
.th
|
||||
{
|
||||
background-color: #FFE4C4;
|
||||
background-color: #bd524a;
|
||||
}
|
||||
|
||||
.navbar
|
||||
{
|
||||
background-color: maroon;
|
||||
}
|
||||
|
||||
.cal_today
|
@ -1,24 +1,25 @@
|
||||
<!-- $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="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_img"><xsl:value-of select="home_img"/></xsl:variable>
|
||||
<xsl:variable name="prefs_img"><xsl:value-of select="prefs_img"/></xsl:variable>
|
||||
<xsl:variable name="logout_img"><xsl:value-of select="logout_img"/></xsl:variable>
|
||||
<xsl:variable name="about_img"><xsl:value-of select="about_img"/></xsl:variable>
|
||||
<xsl:variable name="home_title"><xsl:value-of select="home_title"/></xsl:variable>
|
||||
<xsl:variable name="prefs_title"><xsl:value-of select="prefs_title"/></xsl:variable>
|
||||
<xsl:variable name="logout_title"><xsl:value-of select="logout_title"/></xsl:variable>
|
||||
<xsl:variable name="about_title"><xsl:value-of select="about_title"/></xsl:variable>
|
||||
<xsl:variable name="phpgw_body"><xsl:value-of select="phpgw_body"/></xsl:variable>
|
||||
<xsl:variable name="greybar"><xsl:value-of select="greybar"/></xsl:variable>
|
||||
<xsl:variable name="phpgw_css_file" select="phpgw_css_file"/>
|
||||
<xsl:variable name="theme_css_file" select="theme_css_file"/>
|
||||
<xsl:variable name="charset" select="charset"/>
|
||||
<xsl:variable name="logo_img" select="logo_img"/>
|
||||
<xsl:variable name="home_link" select="home_link"/>
|
||||
<xsl:variable name="prefs_link" select="prefs_link"/>
|
||||
<xsl:variable name="logout_link" select="logout_link"/>
|
||||
<xsl:variable name="about_link" select="about_link"/>
|
||||
<xsl:variable name="home_img" select="home_img"/>
|
||||
<xsl:variable name="prefs_img" select="prefs_img"/>
|
||||
<xsl:variable name="logout_img" select="logout_img"/>
|
||||
<xsl:variable name="about_img" select="about_img"/>
|
||||
<xsl:variable name="home_title" select="home_title"/>
|
||||
<xsl:variable name="prefs_title" select="prefs_title"/>
|
||||
<xsl:variable name="logout_title" select="logout_title"/>
|
||||
<xsl:variable name="about_title" select="about_title"/>
|
||||
<xsl:variable name="phpgw_body" select="phpgw_body"/>
|
||||
<xsl:variable name="greybar" select="greybar"/>
|
||||
<xsl:variable name="phpgw_statustext" select="lang_phpgw_statustext"/>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
|
||||
@ -33,20 +34,20 @@
|
||||
<link rel="stylesheet" type="text/css" href="{$theme_css_file}"/>
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="3" valign="top">
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0">
|
||||
<tr height="30">
|
||||
<td colspan="2" valign="top">
|
||||
<!-- BEGIN top_part -->
|
||||
<table class="navbar" width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td valign="bottom">
|
||||
<a href="http://www.phpgroupware.org" target="_blank">
|
||||
<table class="navbar" height="30" width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr valign="bottom">
|
||||
<td>
|
||||
<a href="http://www.phpgroupware.org" target="_blank" title="{$phpgw_statustext}">
|
||||
<img src="{$logo_img}" border="0"/></a>
|
||||
</td>
|
||||
<td class="portal_text" width="99%" valign="bottom" align="center">
|
||||
<td class="info" width="99%" align="center">
|
||||
<xsl:value-of select="user_info"/>
|
||||
</td>
|
||||
<td valign="bottom" align="right" rowspan="2" nowrap="true">
|
||||
<td rowspan="2" nowrap="nowrap">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<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">
|
||||
<td class="left">
|
||||
</td>
|
||||
<td style="padding-left: 5px">
|
||||
<td align="right">
|
||||
<xsl:choose>
|
||||
<xsl:when test="current_users">
|
||||
<xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable>
|
||||
@ -78,29 +79,19 @@
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</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>
|
||||
<!-- END top_part 2 -->
|
||||
<tr valign="top">
|
||||
<td class="left" width="32">
|
||||
<!-- BEGIN left_part -->
|
||||
<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>
|
||||
<!-- END left_part -->
|
||||
</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:when test="msgbox_data">
|
||||
<xsl:call-template name="msgbox"/>
|
||||
@ -119,10 +110,19 @@
|
||||
</xsl:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="navbar">
|
||||
<!-- BEGIN bottom_part -->
|
||||
|
||||
<tr class="navbar">
|
||||
<td colspan="2" align="center" class="info">
|
||||
<!-- 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>
|
||||
@ -132,14 +132,20 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="applications">
|
||||
<xsl:variable name="url"><xsl:value-of select="url"/></xsl:variable>
|
||||
<xsl:variable name="name"><xsl:value-of select="name"/></xsl:variable>
|
||||
<xsl:variable name="img_src_over"><xsl:value-of select="img_src_over"/></xsl:variable>
|
||||
<xsl:variable name="icon"><xsl:value-of select="icon"/></xsl:variable>
|
||||
<xsl:variable name="title"><xsl:value-of select="title"/></xsl:variable>
|
||||
<xsl:param name="navbar_format"/>
|
||||
<xsl:variable name="url" select="url"/>
|
||||
<xsl:variable name="icon" select="icon"/>
|
||||
<xsl:variable name="title" select="title"/>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
|
Loading…
Reference in New Issue
Block a user