mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
update xslt
This commit is contained in:
parent
754a43388c
commit
d537066c83
@ -1237,6 +1237,8 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
||||
$this->msgbox('',False,'phpgw');
|
||||
}
|
||||
|
||||
$var['app_tpl'] = '';
|
||||
|
||||
switch($GLOBALS['phpgw_info']['flags']['currentapp'])
|
||||
{
|
||||
case 'home':
|
||||
@ -1245,6 +1247,16 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
||||
case 'about':
|
||||
$var['about'] = True;
|
||||
break;
|
||||
default:
|
||||
$menuaction = get_var('menuaction',Array('GET'));
|
||||
$xslt_app = get_var('xslt_app',Array('GET'));
|
||||
|
||||
if ($menuaction && $GLOBALS['phpgw_info']['flags']['xslt_app'])
|
||||
{
|
||||
$app_function = strrchr($menuaction,'.');
|
||||
$var['app_tpl'] = substr($app_function,1,strlen($app_function));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
$var['lang_powered_by'] = lang('powered by');
|
||||
|
@ -384,6 +384,15 @@
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
/* dont call the xslt_app_tpl if app isnt ported to xslt */
|
||||
switch($GLOBALS['phpgw_info']['flags']['currentapp'])
|
||||
{
|
||||
case 'notes':
|
||||
$GLOBALS['phpgw_info']['flags']['xslt_app'] = True;
|
||||
break;
|
||||
}
|
||||
|
||||
if($continue_app_data)
|
||||
{
|
||||
/* Make sure user is keeping his password in order */
|
||||
|
@ -1,5 +1,9 @@
|
||||
<!-- $Id$ -->
|
||||
|
||||
<xsl:template name="app_delete">
|
||||
<xsl:apply-templates select="delete"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="delete">
|
||||
<xsl:call-template name="app_header"/>
|
||||
<table cellpadding="2" cellspacing="2" align="center">
|
||||
|
@ -104,8 +104,17 @@
|
||||
<xsl:when test="about">
|
||||
<xsl:call-template name="about"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$app_tpl > 0">
|
||||
<xsl:call-template name="$app_tpl"/>
|
||||
</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"/>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<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="app_tpl"><xsl:value-of select="app_tpl"/></xsl:variable>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
|
||||
@ -155,6 +155,18 @@
|
||||
<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>
|
||||
|
@ -20,6 +20,7 @@
|
||||
<xsl:variable name="phpgw_body" select="phpgw_body"/>
|
||||
<xsl:variable name="greybar" select="greybar"/>
|
||||
<xsl:variable name="phpgw_statustext" select="lang_phpgw_statustext"/>
|
||||
<xsl:variable name="app_tpl" select="app_tpl"/>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset={$charset}"/>
|
||||
@ -104,6 +105,18 @@
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user