phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default invoice.xsl, 1.31, 1


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default invoice.xsl, 1.31, 1.32
Date: Wed, 06 Aug 2003 17:47:53 -0400

Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv14291/templates/default

Modified Files:
        invoice.xsl 
Log Message:
no message

Index: invoice.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/invoice.xsl,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** invoice.xsl 27 Jul 2003 15:53:25 -0000      1.31
--- invoice.xsl 6 Aug 2003 21:47:51 -0000       1.32
***************
*** 1165,1263 ****
                                </td>
                        </tr>
- 
- 
                </table>
                </div>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <tr class="th">
!                               <xsl:apply-templates 
select="table_header_debug"/>
                        </tr>
! 
!                               <xsl:apply-templates select="values_debug"/>
                                <xsl:apply-templates select="table_add"/>
                </table>
-               
- 
-       </xsl:template>
- 
- 
-       <xsl:template match="table_header_debug">
-               
-               <td class="th_text" width="10%" align="right">
-                       <xsl:value-of select="header"/>
-               </td>
-               
        </xsl:template>
  
!       <xsl:template match="values_debug">
                        <tr>
!                               <xsl:attribute name="class">
!                                       <xsl:choose>
!                                               <xsl:when test="@class">
!                                                       <xsl:value-of 
select="@class"/>
!                                               </xsl:when>
!                                               <xsl:when test="position() mod 
2 = 0">
!                                                       
<xsl:text>row_off</xsl:text>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       
<xsl:text>row_on</xsl:text>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
!                               </xsl:attribute>
! 
!                               <td align="right">
!                                       <xsl:value-of select="field_0"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="field_1"/>
!                               </td>
!                               <td>
!                                       <xsl:value-of select="field_2"/>
!                               </td>
!                               <td align="center">
!                                       <xsl:value-of select="field_3"/>
!                               </td>
!                               <td align="center">
!                                       <xsl:value-of select="field_4"/>
!                               </td>
!                               <td align="center">
!                                       <xsl:value-of select="field_5"/>
!                               </td>
                                <xsl:choose>
!                                       <xsl:when test="field_6!=''">
!                                               <td align="right">
!                                                       <xsl:value-of 
select="field_6"/>
!                                               </td>
                                        </xsl:when>
!                               </xsl:choose>
!                               <xsl:choose>
!                                       <xsl:when test="field_7!=''">
!                                               <td align="center">
!                                                       <xsl:value-of 
select="field_7"/>
!                                               </td>
!                                       </xsl:when>
!                               </xsl:choose>
!                               <xsl:choose>
!                                       <xsl:when test="field_8!=''">
!                                               <td align="center">
!                                                       <xsl:value-of 
select="field_8"/>
!                                               </td>
!                                       </xsl:when>
!                               </xsl:choose>
!                               <xsl:choose>
!                                       <xsl:when test="field_9!=''">
!                                               <td align="center">
!                                                       <xsl:value-of 
select="field_9"/>
!                                               </td>
!                                       </xsl:when>
!                               </xsl:choose>
!                               <xsl:choose>
!                                       <xsl:when test="field_10!=''">
!                                               <td align="center">
!                                                       <xsl:value-of 
select="field_10"/>
!                                               </td>
                                        </xsl:when>
                                </xsl:choose>
                        </tr>
        </xsl:template>
  
--- 1165,1202 ----
                                </td>
                        </tr>
                </table>
                </div>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <tr class="th">
!                               <xsl:call-template name="table_header"/>
                        </tr>
!                               <xsl:call-template name="values_debug"/>
                                <xsl:apply-templates select="table_add"/>
                </table>
        </xsl:template>
  
!       <xsl:template name="values_debug">
!               <xsl:for-each select="values" >
                        <tr>
!                       <xsl:attribute name="class">
                                <xsl:choose>
!                                       <xsl:when test="@class">
!                                               <xsl:value-of select="@class"/>
                                        </xsl:when>
!                                       <xsl:when test="position() mod 2 = 0">
!                                               <xsl:text>row_off</xsl:text>
                                        </xsl:when>
+                                       <xsl:otherwise>
+                                               <xsl:text>row_on</xsl:text>
+                                       </xsl:otherwise>
                                </xsl:choose>
+                       </xsl:attribute>
+                       <xsl:for-each select="row" >
+                               <td align="{align}">
+                                       <xsl:value-of select="value"/>          
                        
+                               </td>
+                       </xsl:for-each>
                        </tr>
+               </xsl:for-each>
        </xsl:template>
  





reply via email to

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