phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default pricebook.xsl,1.1,1.2


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default pricebook.xsl,1.1,1.2
Date: Sat, 01 Mar 2003 19:39:16 -0500

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

Modified Files:
        pricebook.xsl 
Log Message:
no message

Index: pricebook.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/pricebook.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pricebook.xsl       28 Feb 2003 19:39:00 -0000      1.1
--- pricebook.xsl       2 Mar 2003 00:39:12 -0000       1.2
***************
*** 9,12 ****
--- 9,15 ----
                                <xsl:apply-templates select="view"/>
                        </xsl:when>
+                       <xsl:when test="list_activities">
+                               <xsl:apply-templates select="list_activities"/>
+                       </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-templates select="list"/>
***************
*** 203,206 ****
--- 206,342 ----
                                                </xsl:attribute>
                                        </input>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="list_activities">
+               <xsl:variable name="check_source"><xsl:value-of 
select="check_source"/></xsl:variable>
+               <xsl:call-template name="app_header"/>
+               <xsl:call-template name="menu"/> 
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+               <xsl:for-each select="error" >
+                       <tr>
+                               <td class="th_text" colspan="2" align="center">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+               </xsl:for-each>
+               <xsl:for-each select="message" >
+                       <tr>
+                               <td class="th_text" colspan="2" align="center">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+               </xsl:for-each>
+                       <tr>
+                               <td align="left">
+                                       <xsl:call-template name="cat_filter"/>
+                               </td>
+                               <td align="right">
+                                       <xsl:call-template name="search_field"/>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
+               </table>
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                               <xsl:apply-templates 
select="table_header_activities"/>
+                               <xsl:apply-templates 
select="values_activities"/>
+               </table>
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                               <xsl:apply-templates select="table_add"/>
+               </table>
+       </xsl:template>
+ 
+       <xsl:template match="table_header_activities">
+               <xsl:variable name="sort_num"><xsl:value-of 
select="sort_num"/></xsl:variable>
+                       <tr class="th">
+                               <td class="th_text" width="10%" align="right">
+                                       <a href="{$sort_num}"><xsl:value-of 
select="lang_num"/></a>
+                               </td>
+                               <td class="th_text" width="20%" align="right">
+                                       <xsl:value-of select="lang_descr"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_unit"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_ns3420"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_base_descr"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_branch"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_vendor"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_dim_d"/>
+                               </td>
+                               <td class="th_text" width="5%" align="center">
+                                       <xsl:value-of select="lang_edit"/>
+                               </td>
+                               <td class="th_text" width="5%" align="center">
+                                       <xsl:value-of select="lang_delete"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="values_activities">
+               <xsl:variable name="lang_edit_statustext"><xsl:value-of 
select="lang_edit_statustext"/></xsl:variable>
+               <xsl:variable name="lang_delete_statustext"><xsl:value-of 
select="lang_delete_statustext"/></xsl:variable>
+               <xsl:variable name="lang_vendor_statustext"><xsl:value-of 
select="lang_vendor_statustext"/></xsl:variable>
+                       <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="left">
+                                       <xsl:value-of select="num"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="descr"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="unit"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="ns3420"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="base_descr"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="branch"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:variable 
name="link_vendor"><xsl:value-of select="link_vendor"/></xsl:variable>
+                                       <a href="{$link_vendor}" 
onMouseover="window.status='{$lang_vendor_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_vendor"/></a>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="dim_d"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:variable 
name="link_edit"><xsl:value-of select="link_edit"/></xsl:variable>
+                                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_edit"/></a>
+                               </td>
+                               <td align="center">
+                                       <xsl:variable 
name="link_delete"><xsl:value-of select="link_delete"/></xsl:variable>
+                                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_delete"/></a>
                                </td>
                        </tr>





reply via email to

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