phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] filemanager/templates/base widgets.xsl, 1.3 app_data.


From: ceb
Subject: [Phpgroupware-cvs] filemanager/templates/base widgets.xsl, 1.3 app_data.xsl, 1.4
Date: Thu, 24 Feb 2005 15:09:17 -0000

Update of filemanager/templates/base

Modified Files:
     Branch: MAIN
            widgets.xsl lines: +19 -11
            app_data.xsl lines: +41 -36

Log Message:
update

====================================================
Index: filemanager/templates/base/widgets.xsl
diff -u filemanager/templates/base/widgets.xsl:1.2 
filemanager/templates/base/widgets.xsl:1.3
--- filemanager/templates/base/widgets.xsl:1.2  Thu Jan 20 01:13:30 2005
+++ filemanager/templates/base/widgets.xsl      Fri Jan 21 01:41:05 2005
@@ -25,10 +25,19 @@
                        <xsl:when test='$type="seperator"'>
                                <br />
                        </xsl:when>
+                       <xsl:when test='$type="empty"'>
+                               &nbsp;
+                       </xsl:when>
                        <xsl:when test='$type="img"'>
-                               <xsl:variable name="link"><xsl:value-of 
select="link"/></xsl:variable>
                                <xsl:choose>
+                                       <xsl:when test="name">
+                                               <xsl:variable name="name" 
select="name"/>
+                                               <xsl:variable name="src" 
select="src"/>
+                                               <xsl:variable name="title" 
select="title"/>
+                                               <input type="image" 
name="{$name}" value="True" src="{$src}" title="{$title}" alt="{$title}" 
border="0" />
+                                       </xsl:when>
                                        <xsl:when test="link">
+                                               <xsl:variable 
name="link"><xsl:value-of select="link"/></xsl:variable>
                                                <a class="none">
                                                        <xsl:attribute 
name="href"><xsl:value-of select="link"/></xsl:attribute>
                                                        <xsl:call-template 
name="img" />
@@ -61,11 +70,11 @@

        <xsl:template name="img">
                <xsl:element name="img">
-                       <xsl:attribute name="border">0</xsl:attribute>
                        <xsl:attribute name="src"><xsl:value-of 
select="src"/></xsl:attribute>
-                       <xsl:attribute name="alt"><xsl:value-of 
select="alt"/></xsl:attribute>
-                       <xsl:attribute name="valign">center</xsl:attribute>
-                       <xsl:value-of select="caption" />
+                       <xsl:attribute name="alt"><xsl:value-of 
select="title"/></xsl:attribute>
+                       <xsl:attribute name="title"><xsl:value-of 
select="title"/></xsl:attribute>
+                       <xsl:attribute name="border">0</xsl:attribute>
+                       <!--<xsl:attribute 
name="valign">center</xsl:attribute>-->
                </xsl:element>
        </xsl:template>

@@ -85,7 +94,7 @@
        </xsl:template>

        <xsl:template match="table">
-               <table>
+               <table width="80%" border="0" cellpadding="2" cellspacing="2">
                        <xsl:attribute name="class"><xsl:value-of 
select="class"/></xsl:attribute>
                        <xsl:apply-templates select="table_head"/>
                        <xsl:for-each select="table_row">
@@ -111,15 +120,14 @@
                </tr>
        </xsl:template>

-       <xsl:template name="table_row">
-               <xsl:param name="class">tr</xsl:param>
-               <tr class="{$class}">
+       <xsl:template match="table_row">
+               <tr>
                        <xsl:apply-templates select="table_col" />
                </tr>
        </xsl:template>

        <xsl:template match="table_col">
-               <td>
+               <td align="center">
                        <xsl:apply-templates />
                </td>
        </xsl:template>

====================================================
Index: filemanager/templates/base/app_data.xsl
diff -u filemanager/templates/base/app_data.xsl:1.3 
filemanager/templates/base/app_data.xsl:1.4
--- filemanager/templates/base/app_data.xsl:1.3 Thu Jan 20 01:13:30 2005
+++ filemanager/templates/base/app_data.xsl     Fri Jan 21 01:41:05 2005
@@ -10,46 +10,51 @@

        <xsl:template match="index">
                <xsl:variable name="form_action" select="form_action" />
-               <form enctype="multipart/form-data" action="{$form_action}">
-               <table class="app_header" width="100%">
+               <form enctype="multipart/form-data" action="{$form_action}" 
method="POST">
+               <table width="100%" border="0" cellpadding="2" cellspacing="2">
                        <tr>
-                               <td>
-                                       <xsl:apply-templates 
select="filemanager_nav" />
+                               <td width="5%">
+                                       <xsl:apply-templates 
select="img_up/widget" />
+                                       <xsl:value-of select="help_up" />
+                               </td>
+                               <td width="20%">
+                                       <xsl:apply-templates 
select="img_home/widget" />&nbsp;
+                                       <font size="4" 
color="maroon"><xsl:value-of select="current_dir" /></font>
+                                       <xsl:value-of select="help_home" />
+                               </td>
+                               <td align="center" width="35%">
+                                       <b><xsl:value-of 
select="lang_create_folder" /></b>&nbsp;
+                                       <xsl:apply-templates 
select="create_folder/widget" />&nbsp;
+                                       <xsl:apply-templates 
select="img_create_folder/widget" />&nbsp;
+                                       <xsl:value-of 
select="help_create_folder" />
+                               </td>
+                               <td align="center" width="35%">
+                                       <b><xsl:value-of 
select="lang_create_file" /></b>&nbsp;
+                                       <xsl:apply-templates 
select="create_file/widget" />&nbsp;
+                                       <xsl:apply-templates 
select="img_create_file/widget" />&nbsp;
+                                       <xsl:value-of select="help_create_file" 
/>
                                </td>
-                       </tr>
-                       <tr>
-                               <td class="tr_text" align="left" width="33%" >
-                                                               
<xsl:apply-templates select="img_up/widget" />
-                                                               <xsl:value-of 
select="help_up"/>
-                                                               
<xsl:apply-templates select="img_home/widget" />
-                                                               <xsl:value-of 
select="help_home"/>
-                               </td>
-                               <td class="app_header" align="center" 
width="33%">
-                                                       <h3>    
<xsl:apply-templates select="img_dir/widget" />
-                                                       <xsl:value-of 
select="dir"/> </h3>
-                               </td>
-                               <td align="right" >
-                                       <xsl:choose>
-                                               <xsl:when test="img_ok">
-                                                       <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 />
-                                                       <xsl:value-of 
select="summary/usage" /> bytes
-                                               </xsl:otherwise>
-                                       </xsl:choose>
+                               <td width="5%" align="right">
+                                       <xsl:apply-templates 
select="img_refresh/widget" />
                                </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>
+                               <td colspan="5" 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">
+                               <td colspan="5">
+                                       <table width="60%" align="center" 
cellpadding="0" cellspacing="0">
+                                               <tr>
+                                                       <td 
align="center"><b><xsl:value-of select="lang_file"/></b></td>
+                                                       <td 
align="center"><b><xsl:value-of select="lang_comment"/></b></td>
+                                                       
<td><xsl:apply-templates select="img_upload/widget"/>&nbsp;<b><xsl:value-of 
select="lang_upload_files"/></b></td>
+                                               </tr>
+                                                       <xsl:apply-templates 
select="uploads" />
+                                       </table>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td colspan="5">
                                        <xsl:apply-templates select="files" />
                                </td>
                        </tr>
@@ -58,7 +63,7 @@
                                        <xsl:apply-templates select="buttons" />
                                </td>
                        </tr>
-                       <xsl:apply-templates select="uploads" />
+

                        <xsl:apply-templates select="add_moz_sidebar" />

@@ -72,7 +77,7 @@

 <!--These templates print out the file list-->
        <xsl:template match="files">
-                       <table class="table">
+                       <table width="100%" border="0" cellpadding="2" 
cellspacing="2">
                                <tr class="th">
                                <xsl:for-each select="/*/*/file_attributes/*">
                                        <td class="th_text">






reply via email to

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