[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/skins/default phpgw_content.xsl, 1.1.2.1 phpgw.xs
From: |
seek3r |
Subject: |
[Phpgroupware-cvs] api/skins/default phpgw_content.xsl, 1.1.2.1 phpgw.xsl, 1.1.1.1.2.33 |
Date: |
Fri, 25 Feb 2005 00:21:00 +0100 |
Update of api/skins/default
Added Files:
Branch: proposal-branch
phpgw_content.xsl lines: +96 -0
Modified Files:
Branch: proposal-branch
phpgw.xsl lines: +32 -135
Log Message:
using hidden iframe for performance benefit
====================================================
Index: phpgw_content.xsl
<?xml version="1.0"?>
<!-- $Id: phpgw_content.xsl,v 1.1.2.1 2005/02/24 23:21:06 seek3r Exp $ -->
<!-- $Source: /cvsroot/phpgroupware/api/skins/default/Attic/phpgw_content.xsl,v
$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes"/>
<xsl:variable name="baseurl" select="/PHPGW/API/baseurl"/>
<xsl:variable name="basepath" select="/PHPGW/API/basepath"/>
<xsl:variable name="api_image_path"><xsl:value-of
select="/PHPGW/API/basepath"/>/api/skins/<xsl:value-of
select="/PHPGW/API/prefs/api.skin" />/images</xsl:variable>
<xsl:variable name="app_image_path"><xsl:value-of
select="/PHPGW/API/basepath"/>/<xsl:value-of select="/PHPGW/API/op/appname"
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin"
/>/images</xsl:variable>
<xsl:template match="/">
<html>
<body bgcolor="#e5e5e5"
onLoad="parent.document.getElementById('appspace').innerHTML =
document.getElementById('appcontent').innerHTML;">
<!-- <body bgcolor="#e5e5e5"
onLoad="alert(parent.document.getElementById('appspace').innerHTML);"> -->
<!--<xsl:apply-templates select="PHPGW/API/hooks/hooks_item" />-->
<div id="appcontent">
<xsl:choose>
<xsl:when test="PHPGW/APP != '' or /PHPGW/APPHTML">
<form method="POST" name="phpgw_form"
action="{/PHPGW/API/baseurl}">
<xsl:if test="//*/nextop != ''">
<input type="hidden" name="nextop"
value="{//*/nextop}" />
</xsl:if>
<table cellSpacing="0" cellPadding="0"
width="100%" border="0">
<tr>
<td vAlign="top" height="100%">
<table align="center"
class="box" cellSpacing="1" cellPadding="0" width="100%" border="0">
<tr>
<td
height="23" colSpan="2" align="center" class="articletitle">
<table border="0" align="center" width="100%">
<tr>
<td align="left" width="5%">
<xsl:if test="/PHPGW/API/form_lock = 1">
<input type="image" name="op"
value="api.statecache.clear" src="{$api_image_path}/clear.png" />
</xsl:if>
</td>
<td align="center">
<xsl:choose>
<xsl:when test="/PHPGW/API/title">
<xsl:value-of
select="/PHPGW/API/title"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="app"
select="/PHPGW/API/op/appname"/>
<xsl:value-of
select="/PHPGW/API/apps/apps_item[name=$app]/title"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="/PHPGW/API/subtitle"> - <xsl:value-of
select="/PHPGW/API/subtitle"/></xsl:if>
</td>
<td align="right" width="5%">
<xsl:if test="/PHPGW/API/form_lock = 1">
<input type="image" name="op"
value="api.statecache.minimize" src="{$api_image_path}/min.png" /></xsl:if>
<xsl:if
test="count(/PHPGW/API/op_history/op_history_item) != 1">
<input type="image" name="op"
value="api.statecache.close" src="{$api_image_path}/close.png" />
<input type="hidden" name="position_id"
value="{/PHPGW/API/current_history_position}" />
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
<tr
align="center">
<td
height="20" colSpan="2" bgColor="#efefef" class="mainnote">
<xsl:apply-templates select="PHPGW/API/msgbox" />
<xsl:choose>
<xsl:when test="/PHPGW/APPHTML">
<xsl:value-of disable-output-escaping="yes"
select="/PHPGW/APPHTML" />
</xsl:when>
<xsl:otherwise>
<br />
<xsl:apply-templates select="PHPGW/APP" />
<br />
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="PHPGW/API/msgbox" />
</xsl:otherwise>
</xsl:choose>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="hooks_item">
</xsl:template>
</xsl:stylesheet>
====================================================
Index: api/skins/default/phpgw.xsl
diff -u api/skins/default/phpgw.xsl:1.1.1.1.2.32
api/skins/default/phpgw.xsl:1.1.1.1.2.33
--- api/skins/default/phpgw.xsl:1.1.1.1.2.32 Tue Jul 6 07:24:19 2004
+++ api/skins/default/phpgw.xsl Thu Feb 24 23:21:06 2005
@@ -19,8 +19,22 @@
</xsl:for-each>
<link rel="icon" href="favicon.ico" type="image/x-ico" />
<link rel="shortcut icon" href="favicon.ico" />
+
+ <script type="text/javascript">
+<![CDATA[<!---
+ var baseurl = '';
+
+ function set_baseurl (url) {
+ baseurl = url;
+ };
+
+ function get_content(op) {
+ document.getElementById('appframespace').src =
baseurl+'?phpgw_content=true&op='+op;
+ }
+//-->]]>
+ </script>
</head>
-<body bgcolor="#e5e5e5">
+<body bgcolor="#e5e5e5" onLoad="javascript: set_baseurl ({$baseurl});">
<div style="position:absolute; left:4; top:4; bottom:0; padding:0;
width:98%; height:99%;">
<table class="box" height="90%" cellSpacing="0" cellPadding="1"
width="100%" bgcolor="#ffffff" border="0">
<tr>
@@ -39,7 +53,7 @@
<td align="center" width="10%"><img height="60"
border="0"><xsl:attribute name="src"><xsl:value-of select="$basepath"
/>/<xsl:value-of select="icon" /></xsl:attribute></img></td>
</xsl:when>
<xsl:otherwise>
-
<td align="center" width="10%"><a
href="{$baseurl}&op={name}.base.start"><img height="60"
border="0"><xsl:attribute name="src"><xsl:value-of select="$basepath"
/>/<xsl:value-of select="name" />/skins/<xsl:value-of
select="/PHPGW/API/prefs/api.skin"
/>/images/icon.png</xsl:attribute></img></a></td>
</xsl:otherwise>
+
<td align="center" width="10%"><a href="javascript:
get_content('{name}.base.start');"><img height="60" border="0"><xsl:attribute
name="src"><xsl:value-of select="$basepath" />/<xsl:value-of select="name"
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin"
/>/images/icon.png</xsl:attribute></img></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<td
width="*"> </td>
@@ -53,7 +67,7 @@
<td align="center" class="mainnote"><xsl:value-of
select="title" /></td>
</xsl:when>
<xsl:otherwise>
-
<td align="center" class="mainnote"><a
href="{$baseurl}&op={name}.base.start"><xsl:value-of select="title"
/></a></td>
+
<td align="center" class="mainnote"><a href="javascript:
get_content('{name}.base.start');"><xsl:value-of select="title" /></a></td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
@@ -111,7 +125,16 @@
<td width="100%" height="20" align="left"
vAlign="top"><font class="fake_link"><xsl:value-of select="title" /></font></td>
</xsl:when>
<xsl:otherwise>
-
<td width="100%" height="20" align="left"
vAlign="top"><a href="{$baseurl}&op={$op}"><xsl:value-of select="title"
/></a></td>
+
<td width="100%" height="20" align="left"
vAlign="top">
+
<xsl:choose>
+
<xsl:when
test="$op='api.base.logout'">
+
<a
href="{$baseurl}&op={$op}"><xsl:value-of select="title" /></a>
+
</xsl:when>
+
<xsl:otherwise>
+
<a href="javascript:
get_content('{$op}');"><xsl:value-of select="title" /></a>
+
</xsl:otherwise>
+
</xsl:choose>
+
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
@@ -152,81 +175,10 @@
</td>
<td width="2"> </td>
<td valign="top">
- <table border="0"
cellSpacing="0" cellPadding="0" width="99%">
- <tr>
- <td>
-
<!--<xsl:apply-templates select="PHPGW/API/hooks/hooks_item" />-->
-
<xsl:choose>
-
<xsl:when test="PHPGW/APP != '' or /PHPGW/APPHTML">
-
<form method="POST" name="phpgw_form" action="{/PHPGW/API/baseurl}">
-
<xsl:if test="//*/nextop != ''">
-
<input type="hidden" name="nextop" value="{//*/nextop}"
/>
-
</xsl:if>
-
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
-
<tr>
-
<td vAlign="top" height="100%">
-
<table align="center" class="box"
cellSpacing="1" cellPadding="0" width="100%" border="0">
-
<tr>
-
<td height="23"
colSpan="2" align="center" class="articletitle">
-
<table
border="0" align="center" width="100%">
-
<tr>
-
<td align="left" width="5%">
-
<xsl:if test="/PHPGW/API/form_lock = 1">
-
<input type="image" name="op" value="api.statecache.clear"
src="{$api_image_path}/clear.png" />
-
</xsl:if>
-
</td>
-
<td align="center">
-
<xsl:choose>
-
<xsl:when test="/PHPGW/API/title">
-
<xsl:value-of select="/PHPGW/API/title"/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:variable name="app"
select="/PHPGW/API/op/appname"/>
-
<xsl:value-of
select="/PHPGW/API/apps/apps_item[name=$app]/title"/>
-
</xsl:otherwise>
-
</xsl:choose>
-
<xsl:if test="/PHPGW/API/subtitle"> - <xsl:value-of
select="/PHPGW/API/subtitle"/></xsl:if>
-
</td>
-
<td align="right" width="5%">
-
<xsl:if test="/PHPGW/API/form_lock = 1">
-
<input type="image" name="op" value="api.statecache.minimize"
src="{$api_image_path}/min.png" /></xsl:if>
-
<xsl:if test="count(/PHPGW/API/op_history/op_history_item) != 1">
-
<input type="image" name="op" value="api.statecache.close"
src="{$api_image_path}/close.png" />
-
<input type="hidden" name="position_id"
value="{/PHPGW/API/current_history_position}" />
-
</xsl:if>
-
</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
<tr align="center">
-
<td height="20"
colSpan="2" bgColor="#efefef" class="mainnote">
-
<xsl:apply-templates select="PHPGW/API/msgbox" />
-
<xsl:choose>
-
<xsl:when test="/PHPGW/APPHTML">
-
<xsl:value-of disable-output-escaping="yes" select="/PHPGW/APPHTML" />
-
</xsl:when>
-
<xsl:otherwise>
-
<br />
-
<xsl:apply-templates select="PHPGW/APP" />
-
<br />
-
</xsl:otherwise>
-
</xsl:choose>
-
</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
</table>
-
</form>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:apply-templates select="PHPGW/API/msgbox" />
-
</xsl:otherwise>
-
</xsl:choose>
- </td>
- </tr>
- </table>
+ <div
id="appspace">Loading...</div>
+ <!--<xsl:apply-templates
select="PHPGW/API/hooks/hooks_item" />-->
+ <iframe src="javascript:
get_content('{/PHPGW/API/op/opname}');" name="appframespace" id="appframespace"
width="0" height="0" frameborder="0">
+ </iframe>
</td>
</tr>
</table>
@@ -240,61 +192,6 @@
</html>
</xsl:template>
-<!--
-<xsl:template name="inside_app_box">
- <xsl:param name="title" select="''" />
-
- <table cellSpacing="0" cellPadding="0" width="100%" border="0">
- <tr>
- <td vAlign="top" height="100%">
-
- <table align="center" class="box"
cellSpacing="1" cellPadding="0" width="100%" border="0">
- <tr>
- <td height="23" colSpan="2"
align="center" class="articletitle">
-
- <table border="0"
align="center" width="100%">
- <tr>
- <td
align="center">
-
<xsl:choose>
-
<xsl:when test="/PHPGW/API/title">
-
<xsl:value-of select="/PHPGW/API/title"/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:variable name="app" select="/PHPGW/API/op/appname"/>
-
<xsl:value-of
select="/PHPGW/API/apps/apps_item[name=$app]/title"/>
-
</xsl:otherwise>
-
</xsl:choose>
-
<xsl:if test="/PHPGW/API/subtitle"> - <xsl:value-of
select="/PHPGW/API/subtitle"/></xsl:if>
- </td>
- <td
align="right" width="5%">
-
<input type="image" name="op" value="api.statecache.pause"
src="{$api_image_path}/min.png" /> <input type="image" name="op"
value="api.statecache.cancel" src="{$api_image_path}/close.png" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr align="center">
- <td height="20" colSpan="2"
bgColor="#efefef" class="mainnote">
- <xsl:apply-templates
select="PHPGW/API/msgbox" />
- <xsl:choose>
- <xsl:when
test="/PHPGW/APPHTML">
-
<xsl:value-of disable-output-escaping="yes" select="/PHPGW/APPHTML" />
- </xsl:when>
- <xsl:otherwise>
- <br />
-
<xsl:apply-templates select="PHPGW/APP" />
- <br />
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</xsl:template>
--->
-
<xsl:template match="hooks_item">
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/skins/default phpgw_content.xsl, 1.1.2.1 phpgw.xsl, 1.1.1.1.2.33,
seek3r <=