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.4,1.5


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default invoice.xsl,1.4,1.5
Date: Mon, 06 Jan 2003 03:30:01 -0500

Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv2746/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.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** invoice.xsl 2 Jan 2003 22:03:57 -0000       1.4
--- invoice.xsl 6 Jan 2003 08:29:57 -0000       1.5
***************
*** 22,28 ****
--- 22,47 ----
        
        <xsl:template match="list_invoice">
+               <div id="overDiv" style="position:absolute; 
visibility:hide;z-index:1;"></div>
+               <xsl:variable name="overlib_source"><xsl:value-of 
select="overlib_source"/></xsl:variable>
+               <SCRIPT LANGUAGE="JavaScript" SRC="{$overlib_source}"></SCRIPT>
+ 
                <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 colspan="2" align="center">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+                       </xsl:for-each>
+                       <xsl:for-each select="message" >
+                       <tr>
+                               <td colspan="2" align="center">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+                       </xsl:for-each>
+ 
                        <tr>
                                <td>
***************
*** 45,55 ****
                <form method="post" action="{$form_action}">
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:apply-templates 
select="table_header_list_invoice"/>
!                               <xsl:apply-templates 
select="values_list_invoice"/>
                        
                        <tr height="50">
                                <td>
                                        <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                       <input type="submit" 
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return 
true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
--- 64,79 ----
                <form method="post" action="{$form_action}">
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                       <xsl:apply-templates 
select="table_header_list_invoice"/>
                        
+                       <xsl:choose>
+                               <xsl:when 
test="values_list_invoice[invoice_id]">
+                                       <xsl:apply-templates 
select="values_list_invoice"/>
+ 
+                               </xsl:when>
+                       </xsl:choose>   
                        <tr height="50">
                                <td>
                                        <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                       <input type="submit" 
name="values[0][save]" value="{$lang_save}" onMouseout="window.status='';return 
true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
***************
*** 69,72 ****
--- 93,98 ----
        <xsl:template match="table_header_list_invoice">
                <xsl:variable name="sort_invoice"><xsl:value-of 
select="sort_invoice"/></xsl:variable>
+               <xsl:variable name="sort_invoice_date"><xsl:value-of 
select="sort_invoice_date"/></xsl:variable>
+               <xsl:variable name="sort_vendor_id"><xsl:value-of 
select="sort_vendor_id"/></xsl:variable>
                        <tr class="th">
                                <td class="th_text" width="5%" align="right">
***************
*** 74,78 ****
                                </td>
                                <td class="th_text" width="2%" align="right">
!                                       <xsl:value-of 
select="lang_invoice_date"/>
                                </td>
                                <td class="th_text" width="2%" align="right">
--- 100,104 ----
                                </td>
                                <td class="th_text" width="2%" align="right">
!                                       <a 
href="{$sort_invoice_date}"><xsl:value-of select="lang_invoice_date"/></a>
                                </td>
                                <td class="th_text" width="2%" align="right">
***************
*** 83,87 ****
                                </td>
                                <td class="th_text" width="4%" align="right">
!                                       <xsl:value-of select="lang_vendor_id"/>
                                </td>
                                <td class="th_text" width="5%" align="right">
--- 109,113 ----
                                </td>
                                <td class="th_text" width="4%" align="right">
!                                       <a 
href="{$sort_vendor_id}"><xsl:value-of select="lang_vendor_id"/></a>
                                </td>
                                <td class="th_text" width="5%" align="right">
***************
*** 89,92 ****
--- 115,121 ----
                                </td>
                                <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_type"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
                                        <xsl:value-of select="lang_period"/>
                                </td>
***************
*** 113,116 ****
--- 142,146 ----
  
        <xsl:template match="values_list_invoice">
+ 
                        <xsl:variable name="counter"><xsl:value-of 
select="counter"/></xsl:variable>
                        <xsl:variable name="current_user"><xsl:value-of 
select="current_user"/></xsl:variable>
***************
*** 130,142 ****
                                </xsl:attribute>
  
- 
-                               <td align="right">
-                                       <xsl:value-of select="invoice_id"/>
-                               </td>
                                <td align="right">
!                                       <xsl:value-of select="invoice_date"/>
                                </td>
                                <td align="right">
!                                       <xsl:value-of select="num_days"/>
                                </td>
                                <td align="right">
--- 160,191 ----
                                </xsl:attribute>
  
                                <td align="right">
!                                       <input type="hidden" 
name="values[{$counter}][invoice_id]" value="{invoice_id}">
!                                       </input>
!                                       <xsl:variable 
name="link_sub"><xsl:value-of select="link_sub"/>&amp;invoice_id=<xsl:value-of 
select="invoice_id"/></xsl:variable>
!                                       <xsl:variable 
name="lang_sub_help"><xsl:value-of select="lang_sub_help"/></xsl:variable>
!                                       <xsl:variable 
name="lang_sub"><xsl:value-of select="lang_sub"/></xsl:variable>
!                                       <a href="{$link_sub}"
!                                       
onMouseOver="overlib('{$lang_sub_help}', CAPTION, '{$lang_sub}')"
!                                       onMouseOut="nd()">
!                                       <xsl:value-of select="invoice_id"/></a> 
                                
!                               </td>
!                               <td align="right">
!                                       <xsl:variable 
name="lang_payment_date"><xsl:value-of 
select="lang_payment_date"/></xsl:variable>
!                                       <xsl:variable 
name="payment_date"><xsl:value-of select="payment_date"/></xsl:variable>
!                                       <a href="javascript:void()"
!                                       onMouseOver="overlib('{$payment_date}', 
CAPTION, '{$lang_payment_date}')"
!                                       onMouseOut="nd()">
!                                       <xsl:value-of 
select="invoice_date"/></a>                                                     
          
                                </td>
                                <td align="right">
!                                       <input type="hidden" 
name="values[{$counter}][sign_orig]" value="{sign_orig}">
!                                       </input>
!                                       <input type="hidden" 
name="values[{$counter}][num_days_orig]" value="{num_days}">
!                                       </input>
!                                       <input type="hidden" 
name="values[{$counter}][timestamp_invoice_date]" 
value="{timestamp_invoice_date}">
!                                       </input>
!                                       <input type="text" size="2" 
name="values[{$counter}][num_days]" value="{num_days}">
!                                       </input>
                                </td>
                                <td align="right">
***************
*** 144,163 ****
                                </td>
                                <td align="right">
!                                       <xsl:value-of select="vendor_id"/>
                                </td>
                                <td align="right">
                                        <xsl:value-of select="invoice_count"/>
                                </td>
                                <td align="right">
!                                       <xsl:value-of select="period"/>
                                </td>
                                <td align="center">
                                        <xsl:choose>
                                                <xsl:when test="kreditnota='1'">
!                                                       <input type="checkbox" 
name="kreditnota[{$counter}]" value="true" checked="checked" 
onMouseout="window.status='';return true;">
                                                        </input>
                                                </xsl:when>
                                                <xsl:otherwise>
!                                                       <input type="checkbox" 
name="kreditnota[{$counter}]" value="true" onMouseout="window.status='';return 
true;">
                                                        </input>                
                                        
                                                </xsl:otherwise>
--- 193,229 ----
                                </td>
                                <td align="right">
!                                       <xsl:variable 
name="vendor"><xsl:value-of select="vendor"/></xsl:variable>
!                                       <xsl:variable 
name="vendor_id"><xsl:value-of select="vendor_id"/></xsl:variable>
!                                       <a href="javascript:void()"
!                                       onMouseOver="overlib('{$vendor}', 
CAPTION, '{$vendor_id}')"
!                                       onMouseOut="nd()">
!                                       <xsl:value-of select="vendor_id"/></a>
! 
                                </td>
                                <td align="right">
+                                       <input type="hidden" 
name="values[{$counter}][invoice_count]" value="{invoice_count}">
+                                       </input>
                                        <xsl:value-of select="invoice_count"/>
                                </td>
+                               <td align="center">
+                                       <xsl:value-of select="type"/>
+                               </td>
                                <td align="right">
!                                       <xsl:variable 
name="link_period"><xsl:value-of 
select="link_period"/>&amp;invoice_id=<xsl:value-of 
select="invoice_id"/>&amp;period=<xsl:value-of select="period"/></xsl:variable>
!                                       <xsl:variable 
name="lang_period_help"><xsl:value-of select="lang_period_help"/></xsl:variable>
!                                       <xsl:variable 
name="lang_period"><xsl:value-of select="lang_period"/></xsl:variable>
!                                       <a href="javascript:var 
w=window.open('{$link_period}','','width=150,height=200,scrollbars,resizeable=YES')"
!                                       
onMouseOver="overlib('{$lang_period_help}', CAPTION, '{$lang_period}')"
!                                       onMouseOut="nd()">
!                                       <xsl:value-of select="period"/></a>     
                                
                                </td>
                                <td align="center">
                                        <xsl:choose>
                                                <xsl:when test="kreditnota='1'">
!                                                       <input type="checkbox" 
name="values[{$counter}][kreditnota]" value="true" checked="checked" 
onMouseout="window.status='';return true;">
                                                        </input>
                                                </xsl:when>
                                                <xsl:otherwise>
!                                                       <input type="checkbox" 
name="values[{$counter}][kreditnota]" value="true" 
onMouseout="window.status='';return true;">
                                                        </input>                
                                        
                                                </xsl:otherwise>
***************
*** 167,179 ****
                                        <xsl:choose>
                                                <xsl:when test="is_janitor">
!                                                       <input type="radio" 
name="sign[{$counter}]" value="sign_none" onMouseout="window.status='';return 
true;">
                                                        </input>                
                                        
                                                </xsl:when>
                                                <xsl:when test="is_supervisor">
!                                                       <input type="radio" 
name="sign[{$counter}]" value="sign_none" onMouseout="window.status='';return 
true;">
                                                        </input>                
                                        
                                                </xsl:when>
                                                <xsl:when 
test="is_budget_responsible">
!                                                       <input type="radio" 
name="sign[{$counter}]" value="sign_none" onMouseout="window.status='';return 
true;">
                                                        </input>                
                                        
                                                </xsl:when>
--- 233,245 ----
                                        <xsl:choose>
                                                <xsl:when test="is_janitor">
!                                                       <input type="radio" 
name="values[{$counter}][sign]" value="sign_none" 
onMouseout="window.status='';return true;">
                                                        </input>                
                                        
                                                </xsl:when>
                                                <xsl:when test="is_supervisor">
!                                                       <input type="radio" 
name="values[{$counter}][sign]" value="sign_none" 
onMouseout="window.status='';return true;">
                                                        </input>                
                                        
                                                </xsl:when>
                                                <xsl:when 
test="is_budget_responsible">
!                                                       <input type="radio" 
name="values[{$counter}][sign]" value="sign_none" 
onMouseout="window.status='';return true;">
                                                        </input>                
                                        
                                                </xsl:when>
***************
*** 188,192 ****
                                                        <xsl:choose>
                                                                <xsl:when 
test="jan_date=''">
!                                                                       <input 
type="radio" name="sign[{$counter}]" value="sign_janitor" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
--- 254,258 ----
                                                        <xsl:choose>
                                                                <xsl:when 
test="jan_date=''">
!                                                                       <input 
type="radio" name="values[{$counter}][sign]" value="sign_janitor" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
***************
*** 194,198 ****
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="supervisor = $current_user">
!                                                                               
        <input type="radio" name="sign[{$counter}]" value="sign_janitor" 
checked="checked" onMouseout="window.status='';return true;">
                                                                                
        </input>
                                                                                
</xsl:when>
--- 260,264 ----
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="supervisor = $current_user">
!                                                                               
        <input type="radio" name="values[{$counter}][sign]" 
value="sign_janitor" checked="checked" onMouseout="window.status='';return 
true;">
                                                                                
        </input>
                                                                                
</xsl:when>
***************
*** 223,227 ****
                                                        <xsl:choose>
                                                                <xsl:when 
test="super_date=''">
!                                                                       <input 
type="radio" name="sign[{$counter}]" value="sign_super" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
--- 289,293 ----
                                                        <xsl:choose>
                                                                <xsl:when 
test="super_date=''">
!                                                                       <input 
type="radio" name="values[{$counter}][sign]" value="sign_supervisor" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
***************
*** 229,233 ****
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="supervisor = $current_user">
!                                                                               
        <input type="radio" name="sign[{$counter}]" value="sign_supervisor" 
checked="checked" onMouseout="window.status='';return true;">
                                                                                
        </input>
                                                                                
</xsl:when>
--- 295,299 ----
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="supervisor = $current_user">
!                                                                               
        <input type="radio" name="values[{$counter}][sign]" 
value="sign_supervisor" checked="checked" onMouseout="window.status='';return 
true;">
                                                                                
        </input>
                                                                                
</xsl:when>
***************
*** 257,261 ****
                                                        <xsl:choose>
                                                                <xsl:when 
test="budget_date=''">
!                                                                       <input 
type="radio" name="sign[{$counter}]" value="sign_b_resp" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
--- 323,327 ----
                                                        <xsl:choose>
                                                                <xsl:when 
test="budget_date=''">
!                                                                       <input 
type="radio" name="values[{$counter}][sign]" value="sign_b_resp" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
***************
*** 263,267 ****
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="budget_responsible = $current_user">
!                                                                               
        <input type="radio" name="sign[{$counter}]" value="sign_b_resp" 
checked="checked" onMouseout="window.status='';return true;">
                                                                                
        </input>
                                                                                
</xsl:when>
--- 329,333 ----
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="budget_responsible = $current_user">
!                                                                               
        <input type="radio" name="values[{$counter}][sign]" value="sign_b_resp" 
checked="checked" onMouseout="window.status='';return true;">
                                                                                
        </input>
                                                                                
</xsl:when>
***************
*** 289,298 ****
                                                <xsl:when test="is_transfer= 
'1'">
                                                        <xsl:choose>
!                                                               <xsl:when 
test="transfer_date">
!                                                                       <input 
type="checkbox" name="transfer[{$counter}]" value="true" checked="checked" 
onMouseout="window.status='';return true;">
                                                                        </input>
                                                                </xsl:when>
                                                                <xsl:otherwise>
!                                                                       <input 
type="checkbox" name="transfer[{$counter}]" value="true" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:otherwise>
--- 355,364 ----
                                                <xsl:when test="is_transfer= 
'1'">
                                                        <xsl:choose>
!                                                               <xsl:when 
test="transfer_date=''">
!                                                                       <input 
type="checkbox" name="values[{$counter}][transfer]" value="true" 
onMouseout="window.status='';return true;">
                                                                        </input>
                                                                </xsl:when>
                                                                <xsl:otherwise>
!                                                                       <input 
type="checkbox" name="values[{$counter}][transfer]" value="true" 
checked="checked" onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:otherwise>





reply via email to

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