[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] filemanager/templates/base app_data.xsl,1.2
From: |
ceb |
Subject: |
[Phpgroupware-cvs] filemanager/templates/base app_data.xsl,1.2 |
Date: |
Thu, 24 Feb 2005 14:54:23 -0000 |
Update of filemanager/templates/base
Modified Files:
Branch: MAIN
app_data.xsl lines: +37 -28
Log Message:
update for xslt
====================================================
Index: filemanager/templates/base/app_data.xsl
diff -u filemanager/templates/base/app_data.xsl:1.1
filemanager/templates/base/app_data.xsl:1.2
--- filemanager/templates/base/app_data.xsl:1.1 Tue Jan 18 16:48:37 2005
+++ filemanager/templates/base/app_data.xsl Tue Jan 18 23:54:13 2005
@@ -1,21 +1,11 @@
<xsl:template name="app_data">
- <center>
- <form enctype="multipart/form-data">
- <xsl:attribute name="action"> <xsl:value-of
select="index/form_action"/> </xsl:attribute>
- <xsl:attribute name="method">post</xsl:attribute>
<xsl:apply-templates select="index" />
- <xsl:apply-templates select="files" />
- <xsl:apply-templates select="buttons" />
- <hr />
- <xsl:apply-templates select="uploads" />
- <xsl:call-template name="add_moz_sidebar" />
- </form>
- </center>
- <xsl:apply-templates select="body_data" />
</xsl:template>
<xsl:template match="index">
- <table class="app_header" width="100%">
+ <xsl:variable name="form_action" select="form_action" />
+ <form enctype="multipart/form-data" action="{$form_action}">
+ <table class="app_header" width="100%">
<tr>
<td class="tr_text" align="left" width="33%" >
<xsl:apply-templates select="img_up/widget" />
@@ -38,18 +28,35 @@
<xsl:apply-templates
select="fileman" />
</xsl:when>
<xsl:otherwise>
- <xsl:value-of
select="/*/*/summary/file_count" /> files <br />
- <xsl:value-of
select="/*/*/summary/usage" /> bytes
+ <xsl:value-of
select="summary/file_count" /> files <br />
+ <xsl:value-of
select="summary/usage" /> bytes
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
- </table>
+ <tr>
+ <td colspan="3">
+ <xsl:apply-templates select="files" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <xsl:apply-templates select="buttons" />
+ </td>
+ </tr>
+ <hr />
+ <xsl:apply-templates select="uploads" />
+
+ <xsl:apply-templates select="add_moz_sidebar" />
+
+ <xsl:apply-templates select="body_data" />
- <p><xsl:value-of select="errors" /></p>
- <hr />
+ <p><xsl:value-of select="errors" /></p>
+
+ </table>
+ </form>
</xsl:template>
-
+
<!--These templates print out the file list-->
<xsl:template match="files">
<table class="table">
@@ -67,9 +74,8 @@
</td>
</xsl:for-each>
</tr>
- <xsl:apply-templates select="file" />
+ <xsl:apply-templates select="file" />
</table>
-
</xsl:template>
<!--The template for each file -->
@@ -118,18 +124,21 @@
</xsl:template>
<!--This bit of Javascript will create a mozilla sidebar -->
- <xsl:template name="add_moz_sidebar">
- <script language="JavaScript">
- <xsl:text disable-output-escaping = "yes">
- function addMozillaPanel() {
+ <xsl:template match="add_moz_sidebar">
+ <script language="JavaScript">
+ <xsl:text disable-output-escaping="yes">
+ function addMozillaPanel()
+ {
var getURL_ID =
document.getElementById("getURL");
if ((typeof window.sidebar ==
"object") && (typeof window.sidebar.addPanel == "function"))
{
- window.sidebar.addPanel
("</xsl:text><xsl:value-of select="sidebar/label" /><xsl:text>",
+ window.sidebar.addPanel
("</xsl:text>
+ <xsl:value-of
select="label" />
+ <xsl:text
disable-output-escaping="yes">",
window.location.href+"&template=moz_sidebar&noheader=1","");
}
- }
+ }
</xsl:text>
</script>
- <a href="javascript:addMozillaPanel();"><xsl:value-of
select="sidebar/link_label" /></a>
+ <a href="javascript:addMozillaPanel();"><xsl:value-of
select="link_label" /></a>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] filemanager/templates/base app_data.xsl,1.2,
ceb <=