phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/base budget.xsl


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/templates/base budget.xsl
Date: Fri, 07 Apr 2006 13:27:37 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/04/07 13:27:37

Modified files:
        templates/base : budget.xsl 

Log message:
        

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/property/templates/base/budget.xsl.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: property/templates/base/budget.xsl
diff -u property/templates/base/budget.xsl:1.2 
property/templates/base/budget.xsl:1.3
--- property/templates/base/budget.xsl:1.2      Thu Apr  6 13:35:09 2006
+++ property/templates/base/budget.xsl  Fri Apr  7 13:27:37 2006
@@ -25,12 +25,28 @@
                                </xsl:when>
                        </xsl:choose>
                        <tr>
+                               <td align="left">
+                                       <xsl:call-template name="filter_year"/>
+                               </td>
+
+                               <td align="left">
+                                       <xsl:call-template 
name="filter_revision"/>
+                               </td>
+
+                               <td align="left">
+                                       <xsl:call-template 
name="filter_district"/>
+                               </td>
+
+                               <td align="left">
+                                       <xsl:call-template 
name="filter_grouping"/>
+                               </td>
+
                                <td align="right">
                                        <xsl:call-template name="search_field"/>
                                </td>
                        </tr>
                        <tr>
-                               <td colspan="3" width="100%">
+                               <td colspan="8" width="100%">
                                        <xsl:call-template name="nextmatchs"/>
                                </td>
                        </tr>
@@ -38,6 +54,28 @@
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                                <xsl:apply-templates 
select="table_header_budget"/>
                                <xsl:apply-templates select="values_budget"/>
+                               <tr>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td class="th_text" align="right">
+                                               <xsl:value-of select="sum"/>
+                                       </td>
+                                       <td>
+                                       </td>
+                                       <td>
+                                       </td>
+                               
+                               </tr>
                                <xsl:apply-templates select="table_add"/>
                </table>
        </xsl:template>
@@ -47,7 +85,8 @@
        <xsl:template match="table_header_budget">
                <xsl:variable name="sort_district_id"><xsl:value-of 
select="sort_district_id"/></xsl:variable>
                <xsl:variable name="sort_budget_cost"><xsl:value-of 
select="sort_budget_cost"/></xsl:variable>
-               <xsl:variable name="sort_b_group"><xsl:value-of 
select="sort_b_group"/></xsl:variable>
+               <xsl:variable name="sort_b_account"><xsl:value-of 
select="sort_b_account"/></xsl:variable>
+               <xsl:variable name="sort_grouping"><xsl:value-of 
select="sort_grouping"/></xsl:variable>
                <tr class="th">
                        <td class="th_text" width="5%" align="left">
                                <xsl:value-of select="lang_year"/>
@@ -56,7 +95,14 @@
                                <xsl:value-of select="lang_revision"/>
                        </td>
                        <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_b_group}"><xsl:value-of 
select="lang_b_group"/></a>
+                               <a href="{$sort_b_account}"><xsl:value-of 
select="lang_b_account"/></a>
+                       </td>
+
+                       <td class="th_text" width="5%" align="center">
+                               <xsl:value-of select="lang_name"/>
+                       </td>
+                       <td class="th_text" width="10%" align="left">
+                               <a href="{$sort_grouping}"><xsl:value-of 
select="lang_grouping"/></a>
                        </td>
 
                        <td class="th_text" width="10%" align="left">
@@ -99,8 +145,16 @@
                                        <xsl:value-of select="revision"/>
                                </td>
                                <td>
-                                       <xsl:value-of select="b_group"/>
+                                       <xsl:value-of select="b_account_id"/>
                                </td>
+
+                               <td>
+                                       <xsl:value-of select="b_account_name"/>
+                               </td>
+                               <td>
+                                       <xsl:value-of select="grouping"/>
+                               </td>
+
                                <td>
                                        <xsl:value-of select="district_id"/>
                                </td>
@@ -228,7 +282,7 @@
                                </xsl:choose>
                        </tr>
 
-                       <tr>
+       <!--            <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_b_group"/>
                                </td>
@@ -249,6 +303,15 @@
                                </xsl:choose>
 
                        </tr>
+       -->
+                               <xsl:choose>
+                                       <xsl:when test="value_b_account !=''">
+                                               <xsl:call-template 
name="b_account_view"/>
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                               <xsl:call-template 
name="b_account_form"/>
+                                       </xsl:otherwise>
+                               </xsl:choose>
 
                        <tr  align="left">
                                <td valign="top">
@@ -393,3 +456,102 @@
                        </xsl:otherwise>
                </xsl:choose>
        </xsl:template>
+
+       <xsl:template name="filter_year">
+               <xsl:variable name="select_action"><xsl:value-of 
select="select_action"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{$select_action}">
+                       <select name="year" onChange="this.form.submit();" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_year_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_year"/></option>
+                                       <xsl:apply-templates 
select="year_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+       <xsl:template match="year_list">
+       <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+
+
+       <xsl:template name="filter_revision">
+               <xsl:variable name="select_action"><xsl:value-of 
select="select_action"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{$select_action}">
+                       <select name="revision" onChange="this.form.submit();" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_revision_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_revision"/></option>
+                                       <xsl:apply-templates 
select="revision_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+       <xsl:template match="revision_list">
+       <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+
+       <xsl:template name="filter_grouping">
+               <xsl:variable name="select_action"><xsl:value-of 
select="select_action"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{$select_action}">
+                       <select name="grouping" onChange="this.form.submit();" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_grouping_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_grouping"/></option>
+                                       <xsl:apply-templates 
select="grouping_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+       <xsl:template match="grouping_list">
+       <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+
+




reply via email to

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