[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] filemanager/templates/base widgets.xsl, 1.2 app_data.
From: |
ceb |
Subject: |
[Phpgroupware-cvs] filemanager/templates/base widgets.xsl, 1.2 app_data.xsl, 1.3 |
Date: |
Thu, 24 Feb 2005 14:54:24 -0000 |
Update of filemanager/templates/base
Modified Files:
Branch: MAIN
widgets.xsl lines: +8 -7
app_data.xsl lines: +26 -8
Log Message:
update
====================================================
Index: filemanager/templates/base/widgets.xsl
diff -u filemanager/templates/base/widgets.xsl:1.1
filemanager/templates/base/widgets.xsl:1.2
--- filemanager/templates/base/widgets.xsl:1.1 Thu Dec 30 09:17:57 2004
+++ filemanager/templates/base/widgets.xsl Thu Jan 20 01:13:30 2005
@@ -1,11 +1,12 @@
+<!-- $Id$ -->
- <!--A widget is something like an input box, image etc, or a
composite/virtual
- widget like a "seperator" or a "label". These are used throughout the
filemanager
- as a cunning way of avoiding putting any HTML in the app
+<!--A widget is something like an input box, image etc, or a composite/virtual
+widget like a "seperator" or a "label". These are used throughout the
filemanager
+as a cunning way of avoiding putting any HTML in the app
- NB:This means that someone clever could write an XSLT that converted
to, say,
- Mozilla XUL, or QT's XML-UI, or a GTK glade interface etc (I dare you!)
- -->
+NB:This means that someone clever could write an XSLT that converted to, say,
+Mozilla XUL, or QT's XML-UI, or a GTK glade interface etc (I dare you!) -->
+
<xsl:template match="widget">
<xsl:variable name="type"><xsl:value-of
select="type"/></xsl:variable>
<xsl:choose>
@@ -56,7 +57,6 @@
</input>
</xsl:otherwise>
</xsl:choose>
- <xsl:apply-templates select="widget" />
</xsl:template>
<xsl:template name="img">
@@ -104,6 +104,7 @@
</xsl:for-each>
</table>
</xsl:template>
+
<xsl:template match="table_head">
<tr class="th">
<xsl:apply-templates select="table_col"/>
====================================================
Index: filemanager/templates/base/app_data.xsl
diff -u filemanager/templates/base/app_data.xsl:1.2
filemanager/templates/base/app_data.xsl:1.3
--- filemanager/templates/base/app_data.xsl:1.2 Tue Jan 18 23:54:13 2005
+++ filemanager/templates/base/app_data.xsl Thu Jan 20 01:13:30 2005
@@ -1,5 +1,11 @@
+<!-- $Id$ -->
+
<xsl:template name="app_data">
- <xsl:apply-templates select="index" />
+ <xsl:choose>
+ <xsl:when test="index">
+ <xsl:apply-templates select="index" />
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
<xsl:template match="index">
@@ -7,6 +13,11 @@
<form enctype="multipart/form-data" action="{$form_action}">
<table class="app_header" width="100%">
<tr>
+ <td>
+ <xsl:apply-templates
select="filemanager_nav" />
+ </td>
+ </tr>
+ <tr>
<td class="tr_text" align="left" width="33%" >
<xsl:apply-templates select="img_up/widget" />
<xsl:value-of
select="help_up"/>
@@ -20,12 +31,12 @@
<td align="right" >
<xsl:choose>
<xsl:when test="img_ok">
- <xsl:apply-templates
select="img_cancel" />
- <xsl:apply-templates
select="button_cancel" />
- <xsl:apply-templates
select="img_ok" />
- <xsl:apply-templates
select="button_ok" />
- <xsl:apply-templates
select="action" />
- <xsl:apply-templates
select="fileman" />
+ <xsl:apply-templates
select="img_cancel/widget" />
+ <xsl:apply-templates
select="button_cancel/widget" />
+ <xsl:apply-templates
select="img_ok/widget" />
+ <xsl:apply-templates
select="button_ok/widget" />
+ <xsl:apply-templates
select="action/widget" />
+ <xsl:apply-templates
select="fileman/widget" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="summary/file_count" /> files <br />
@@ -34,6 +45,9 @@
</xsl:choose>
</td>
</tr>
+ <tr class="th">
+ <td colspan="3" align="center"><xsl:value-of
select="lang_show"/>1 5 10 15 <xsl:value-of select="lang_upload_fields"/></td>
+ </tr>
<tr>
<td colspan="3">
<xsl:apply-templates select="files" />
@@ -44,7 +58,6 @@
<xsl:apply-templates select="buttons" />
</td>
</tr>
- <hr />
<xsl:apply-templates select="uploads" />
<xsl:apply-templates select="add_moz_sidebar" />
@@ -115,6 +128,7 @@
<xsl:template match="uploads" >
<xsl:apply-templates/>
</xsl:template>
+
<!--Debug output-->
<xsl:template match="body_data">
<div style="border:1px dashed #000000; background-color:
yellow;">
@@ -142,3 +156,7 @@
</script>
<a href="javascript:addMozillaPanel();"><xsl:value-of
select="link_label" /></a>
</xsl:template>
+
+ <xsl:template match="filemanager_nav">
+
+ </xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] filemanager/templates/base widgets.xsl, 1.2 app_data.xsl, 1.3,
ceb <=