phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: ceb
Subject: [Phpgroupware-cvs] filemanager/templates/base app_data.xsl, 1.10 widgets.xsl, 1.7 edit.xsl, 1.3
Date: Thu, 24 Feb 2005 15:07:18 -0000

Update of filemanager/templates/base

Modified Files:
     Branch: MAIN
            app_data.xsl lines: +65 -35
            widgets.xsl lines: +10 -1
            edit.xsl lines: +22 -13

Log Message:
update

====================================================
Index: filemanager/templates/base/app_data.xsl
diff -u filemanager/templates/base/app_data.xsl:1.9 
filemanager/templates/base/app_data.xsl:1.10
--- filemanager/templates/base/app_data.xsl:1.9 Wed Jan 26 01:14:36 2005
+++ filemanager/templates/base/app_data.xsl     Thu Jan 27 01:55:40 2005
@@ -11,6 +11,9 @@
                        <xsl:when test="edit">
                                <xsl:apply-templates select="edit" />
                        </xsl:when>
+                       <xsl:when test="help">
+                               <xsl:apply-templates select="help" />
+                       </xsl:when>
                </xsl:choose>
        </xsl:template>

@@ -28,65 +31,81 @@
                <table width="100%" border="0" cellpadding="2" cellspacing="2">
                        <tr>
                                <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" 
/>
+                                       <nobr>
+                                               <xsl:apply-templates 
select="img_up/widget" />
+                                               <xsl:apply-templates 
select="help_up/widget" />
+                                       </nobr>
+                               </td>
+                               <td  width="5%">
+                                       <nobr>
+                                               <xsl:apply-templates 
select="img_home/widget" />
+                                               <xsl:apply-templates 
select="help_home/widget" />
+                                       </nobr>
+                               </td>
+                               <td valign="middle" width="10%">
+                                       <nobr>
+                                               <font size="3" 
color="maroon"><xsl:value-of select="current_dir" /></font><xsl:apply-templates 
select="help_dir/widget" />
+                                       </nobr>
+                               </td>
+                               <td align="center" valign="middle" width="35%">
+                                       <nobr>
+                                               <b><xsl:value-of 
select="lang_create_folder" /></b>
+                                               <xsl:apply-templates 
select="create_folder/widget" />
+                                               <xsl:apply-templates 
select="img_create_folder/widget" />
+                                               <xsl:apply-templates 
select="help_create_folder/widget" />
+                                       </nobr>
+                               </td>
+                               <td align="center" valign="middle" width="35%">
+                                       <nobr>
+                                               <b><xsl:value-of 
select="lang_create_file" /></b>
+                                               <xsl:apply-templates 
select="create_file/widget" />
+                                               <xsl:apply-templates 
select="img_create_file/widget" />
+                                               <xsl:apply-templates 
select="help_create_file/widget" />
+                                       </nobr>
                                </td>
                                <td width="5%" align="right">
-                                       <xsl:apply-templates 
select="img_refresh/widget" />
+                                       <nobr>
+                                               <xsl:apply-templates 
select="img_refresh/widget" />
+                                               <xsl:apply-templates 
select="help_refresh/widget" />
+                                       </nobr>
                                </td>
                        </tr>
                        <tr class="th">
-                               <td colspan="5" align="center">
+                               <td colspan="6" align="center">
                                        <xsl:value-of select="lang_show"/>
                                        <xsl:for-each 
select="show_upload_boxes">
                                                <xsl:apply-templates />
                                        </xsl:for-each>
                                        <xsl:value-of 
select="lang_upload_fields"/>
+                                       <xsl:apply-templates 
select="help_show_upload_fields/widget" />
                                </td>
                        </tr>
                        <tr>
-                               <td colspan="5">
+                               <td colspan="6">
                                        <table align="center" cellpadding="2" 
cellspacing="2">
                                                <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>
+                                                       <td 
align="center"><b><xsl:value-of select="lang_file"/></b><xsl:apply-templates 
select="help_upload_file/widget" /></td>
+                                                       <td 
align="center"><b><xsl:value-of select="lang_comment"/></b><xsl:apply-templates 
select="help_upload_comment/widget" /></td>
+                                                       
<td><xsl:apply-templates select="img_upload/widget"/><b><xsl:value-of 
select="lang_upload_files"/></b><xsl:apply-templates 
select="help_upload_files/widget" /></td>
                                                </tr>
                                                        <xsl:apply-templates 
select="uploads" />
                                        </table>
                                </td>
                        </tr>
                        <tr>
-                               <td colspan="5">
+                               <td colspan="6">
                                        <xsl:apply-templates select="files" />
                                </td>
                        </tr>
                        <tr height="20">
-                               <td colspan="5" />
+                               <td colspan="6" />
                        </tr>
                        <tr>
-                               <td>
-                                       <xsl:apply-templates 
select="menu/widget" />
+                               <td colspan="2">
+                                       <xsl:apply-templates 
select="menu/widget" /><xsl:apply-templates select="help_menu/widget" />
                                </td>
                                <td colspan="4">
-                                       <xsl:apply-templates 
select="dir_menu/widget" />
+                                       <xsl:apply-templates 
select="dir_menu/widget" /><xsl:apply-templates select="help_dir_list/widget" />
                                </td>
                        </tr>

@@ -106,7 +125,7 @@
                                <tr class="th">
                                <xsl:for-each select="file_attributes">
                                        <td>
-                                               <xsl:apply-templates />
+                                               <xsl:apply-templates 
select="widget"/><xsl:apply-templates select="help/widget"/>
                                        </td>
                                </xsl:for-each>
                                </tr>
@@ -194,7 +213,18 @@
                </center>
        </xsl:template>

-       <xsl:template match="filemanager_nav">
-
+       <xsl:template match="help">
+               <table>
+                       <tr>
+                               <td><xsl:value-of select="msg" /></td>
+                       </tr>
+                       <tr height="50" valign="bottom">
+                               <td align="center">
+                                       <input type="button">
+                                               <xsl:attribute 
name="value"><xsl:value-of select="lang_close"/></xsl:attribute>
+                                               <xsl:attribute 
name="onClick"><xsl:text>window.close();</xsl:text></xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+               </table>
        </xsl:template>
-

====================================================
Index: filemanager/templates/base/widgets.xsl
diff -u filemanager/templates/base/widgets.xsl:1.6 
filemanager/templates/base/widgets.xsl:1.7
--- filemanager/templates/base/widgets.xsl:1.6  Mon Jan 24 00:26:34 2005
+++ filemanager/templates/base/widgets.xsl      Thu Jan 27 01:55:40 2005
@@ -78,6 +78,15 @@
                                        <xsl:value-of select="caption"/>
                                </a>
                        </xsl:when>
+                       <xsl:when test='$type="text"'>
+                               <xsl:value-of select="caption"/>
+                       </xsl:when>
+                       <xsl:when test='$type="help"'>
+                               <a href="#">
+                                       <xsl:attribute 
name="onClick"><xsl:value-of disable-output-escaping="yes" 
select="onClick"/></xsl:attribute>
+                                       <font size="-2" 
color="maroon"><xsl:text>[?]</xsl:text></font>
+                               </a>
+                       </xsl:when>
                        <xsl:otherwise>
                                <xsl:if test="caption_start">
                                        <xsl:value-of select="caption_start"/>

====================================================
Index: filemanager/templates/base/edit.xsl
diff -u filemanager/templates/base/edit.xsl:1.2 
filemanager/templates/base/edit.xsl:1.3
--- filemanager/templates/base/edit.xsl:1.2     Wed Jan 26 01:14:36 2005
+++ filemanager/templates/base/edit.xsl Thu Jan 27 01:55:40 2005
@@ -10,23 +10,32 @@
        </xsl:template>

        <xsl:template match="filemanager_nav">
-               <table class="app_header" width="100%">
+               <table width="100%" border="0">
                        <tr>
-                               <td class="tr_text" align="left" width="33%" >
-                                                               
<xsl:apply-templates select="img_up/widget" />
-                                                               
<xsl:apply-templates select="img_home/widget" />
+                               <td width="5%">
+                                       <nobr>
+                                               <xsl:apply-templates 
select="img_up/widget" />
+                                               <xsl:apply-templates 
select="help_up/widget" />
+                                       </nobr>
                                </td>
-                               <td class="app_header" align="center" 
width="33%">
-                                       <h3>Editing file:
-                                               <xsl:value-of 
select="/*/*/*/filename"/>
-                                       </h3>
+                               <td width="5%">
+                                       <nobr>
+                                               <xsl:apply-templates 
select="img_home/widget" />
+                                               <xsl:apply-templates 
select="help_home/widget" />
+                                       </nobr>
                                </td>
-                               <td align="right" >
-                                       <table>
+                               <td align="left" valign="middle">
+                                       <font size="3" 
color="maroon"><xsl:value-of select="current_dir" /></font>
+                               </td>
+                               <td align="center" width="33%">
+                                       <b><xsl:value-of select="lang_edit"/> 
<xsl:value-of select="filename"/></b>
+                               </td>
+                               <td align="right" width="33%">
+                                       <table border="0" cellpadding="2" 
cellspacing="0">
                                                <tr>
                                                        <xsl:for-each 
select="nav_data">
                                                                <td>
-                                                                       
<xsl:apply-templates select="widget" />
+                                                                       
<xsl:apply-templates />
                                                                </td>
                                                        </xsl:for-each>
                                                </tr>
@@ -50,7 +59,7 @@
        </xsl:template>

        <xsl:template match="file_content">
-               <textarea name="edit_file_content" rows="50" cols="80" 
class="fileeditor"><xsl:value-of select="."/></textarea>
+               <textarea name="edit_file_content" rows="30" cols="80" 
class="fileeditor" wrap="VIRTUAL"><xsl:value-of select="." /></textarea>
        </xsl:template>








reply via email to

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