phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] filemanager/templates/base edit.xsl,1.4


From: ceb
Subject: [Phpgroupware-cvs] filemanager/templates/base edit.xsl,1.4
Date: Thu, 24 Feb 2005 15:06:51 -0000

Update of filemanager/templates/base

Modified Files:
     Branch: MAIN
            edit.xsl lines: +16 -13

Log Message:
update

====================================================
Index: filemanager/templates/base/edit.xsl
diff -u filemanager/templates/base/edit.xsl:1.3 
filemanager/templates/base/edit.xsl:1.4
--- filemanager/templates/base/edit.xsl:1.3     Thu Jan 27 01:55:40 2005
+++ filemanager/templates/base/edit.xsl Fri Jan 28 00:19:03 2005
@@ -4,7 +4,6 @@
                <form method="post">
                        <xsl:attribute name="action"><xsl:value-of 
select="form_action"/></xsl:attribute>
                        <xsl:apply-templates select="filemanager_nav" />
-                       <xsl:apply-templates select="preview" />
                        <xsl:apply-templates select="filemanager_edit" />
                </form>
        </xsl:template>
@@ -25,10 +24,10 @@
                                        </nobr>
                                </td>
                                <td align="left" valign="middle">
-                                       <font size="3" 
color="maroon"><xsl:value-of select="current_dir" /></font>
+                                       <font size="+1" 
color="maroon"><b><xsl:value-of select="current_dir" /></b></font>
                                </td>
                                <td align="center" width="33%">
-                                       <b><xsl:value-of select="lang_edit"/> 
<xsl:value-of select="filename"/></b>
+                                       <b><xsl:value-of 
select="lang_edit"/>&nbsp;<font size="+1" color="maroon"><xsl:value-of 
select="filename"/></font></b>
                                </td>
                                <td align="right" width="33%">
                                        <table border="0" cellpadding="2" 
cellspacing="0">
@@ -48,18 +47,22 @@

        <xsl:template match="filemanager_edit">
                <xsl:value-of select="output"/>
-               <xsl:value-of select="preview"/>
                <br />
                <xsl:apply-templates select="form_data/*" />
-               <xsl:apply-templates select="file_content" />
+               <xsl:choose>
+                       <xsl:when test="preview">
+                               <xsl:apply-templates select="preview" />
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <xsl:apply-templates select="file_content" />
+                       </xsl:otherwise>
+               </xsl:choose>
        </xsl:template>
-
-       <xsl:template match="preview">
-               <xsl:copy-of select="."/>
-       </xsl:template>
-
+
        <xsl:template match="file_content">
                <textarea name="edit_file_content" rows="30" cols="80" 
class="fileeditor" wrap="VIRTUAL"><xsl:value-of select="." /></textarea>
        </xsl:template>
-
-
+
+       <xsl:template match="preview">
+                       <xsl:value-of disable-output-escaping="yes" select="."/>
+       </xsl:template>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]