phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: filemanager/templates/default index.xsl,1.1,1.2


From: Jonathon Sim <address@hidden>
Subject: [Phpgroupware-cvs] CVS: filemanager/templates/default index.xsl,1.1,1.2
Date: Tue, 08 Apr 2003 17:00:53 -0400

Update of /cvsroot/phpgroupware/filemanager/templates/default
In directory subversions:/tmp/cvs-serv19268

Modified Files:
        index.xsl 
Log Message:
Adds a bit of prototype extended mozilla support.

Index: index.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/filemanager/templates/default/index.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** index.xsl   4 Mar 2003 00:33:07 -0000       1.1
--- index.xsl   8 Apr 2003 21:00:51 -0000       1.2
***************
*** 6,15 ****
                        <xsl:apply-templates select="index" />
                        <xsl:apply-templates select="files" />
-                       <xsl:apply-templates select="body_data" />
                        <xsl:apply-templates select="buttons" />
                        <hr />
                        <xsl:apply-templates select="uploads" />
                </form>
                </center>
        </xsl:template>
  
--- 6,16 ----
                        <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>
  
***************
*** 72,75 ****
--- 73,77 ----
        </xsl:template>
        
+       <!--The template for each file -->
        <xsl:template match="file">
                  <tr>
***************
*** 108,111 ****
                <xsl:apply-templates/>
        </xsl:template>
        
! 
--- 110,135 ----
                <xsl:apply-templates/>
        </xsl:template>
+       <!--Debug output-->
+       <xsl:template match="body_data">
+               <div style="border:1px dashed #000000; background-color: 
yellow;">
+                       <b>Debug output</b><br/>
+                       <xsl:copy-of select="." />
+               </div>
+       </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() {
!                                       var getURL_ID = 
document.getElementById("getURL");
!                                               if ((typeof window.sidebar == 
"object") &amp;&amp; (typeof window.sidebar.addPanel == "function")) 
!                                               { 
!                                                       window.sidebar.addPanel 
("</xsl:text><xsl:value-of select="sidebar/label" /><xsl:text>", 
!                                                       
window.location.href+"&amp;template=moz_sidebar&amp;noheader=1",""); 
!                                               }
!                                       }
!                       </xsl:text>
!               </script>
!               <a href="javascript:addMozillaPanel();"><xsl:value-of 
select="sidebar/link_label" /></a>
!       </xsl:template>





reply via email to

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