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.9,1.10


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default invoice.xsl,1.9,1.10
Date: Tue, 14 Jan 2003 14:20:12 -0500

Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv8810/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.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** invoice.xsl 11 Jan 2003 18:55:43 -0000      1.9
--- invoice.xsl 14 Jan 2003 19:20:10 -0000      1.10
***************
*** 24,29 ****
                                <xsl:apply-templates select="edit_period"/>
                        </xsl:when>
                        <xsl:otherwise>
!                               <xsl:apply-templates select="list_invoice"/>
                        </xsl:otherwise>
                </xsl:choose>
--- 24,35 ----
                                <xsl:apply-templates select="edit_period"/>
                        </xsl:when>
+                       <xsl:when test="list_voucher">
+                               <xsl:apply-templates select="list_voucher"/>
+                       </xsl:when>
+                       <xsl:when test="remark">
+                               <xsl:apply-templates select="remark"/>
+                       </xsl:when>
                        <xsl:otherwise>
!                               <xsl:apply-templates select="list_invoice_sub"/>
                        </xsl:otherwise>
                </xsl:choose>
***************
*** 74,81 ****
        
        
!       <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"/>
--- 80,112 ----
        
        
!       <xsl:template match="remark">
!               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                       <tr>
!                               <td colspan="2" align="center">
!                                       <xsl:value-of select="message"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td>
!                                       <textarea cols="60" rows="10" 
name="remark" wrap="virtual" onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_content_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                               <xsl:value-of select="remark"/> 
        
!                                       </textarea>
!                               </td>
!                       </tr>
! 
!               </table>
!       </xsl:template>
! 
!       <xsl:template match="list_voucher">
                <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:variable name="check_source"><xsl:value-of 
select="check_source"/></xsl:variable>
+               <SCRIPT LANGUAGE="JavaScript" SRC="{$check_source}"></SCRIPT>
  
                <xsl:call-template name="app_header"/>
***************
*** 115,128 ****
                </table>
                <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!               <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>
--- 146,188 ----
                </table>
                <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!               <form method="post" name="form" action="{$form_action}">
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                       <xsl:apply-templates 
select="table_header_list_voucher"/>
                        
                        <xsl:choose>
!                               <xsl:when 
test="values_list_voucher[voucher_id]">
!                                       <xsl:apply-templates 
select="values_list_voucher"/>
  
                                </xsl:when>
!                       </xsl:choose>
!                       <xsl:variable name="img_check"><xsl:value-of 
select="img_check"/></xsl:variable>
! 
!                       <tr>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td></td>
!                           <td>
!                            <a href="javascript:check_all('sign_none')"><img 
src="{$img_check}" border="0" height="16" width="21"/></a>
!                           </td>
!                           <td>
!                            <a 
href="javascript:check_all('sign_janitor')"><img src="{$img_check}" border="0" 
height="16" width="21"/></a>
!                           </td>
!                           <td>
!                            <a 
href="javascript:check_all('sign_supervisor')"><img src="{$img_check}" 
border="0" height="16" width="21"/></a>
!                           </td>
!                           <td>
!                             <a 
href="javascript:check_all('sign_budget_responsible')"><img src="{$img_check}" 
border="0" height="16" width="21"/> </a>
!                           </td>
!                           <td align="right">
!                             <a 
href="javascript:transfer_all('transfer')"><img src="{$img_check}" border="0" 
height="16" width="21" /></a>
!                           </td>
!                         </tr>
!                       
                        <tr height="50">
                                <td>
***************
*** 142,157 ****
                </form> 
        </xsl:template>
! 
! 
!       <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">
!                                       <a href="{$sort_invoice}"><xsl:value-of 
select="lang_invoice"/></a>
                                </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">
--- 202,217 ----
                </form> 
        </xsl:template>
!       
!       
!       <xsl:template match="table_header_list_voucher">
!               <xsl:variable name="sort_voucher"><xsl:value-of 
select="sort_voucher"/></xsl:variable>
!               <xsl:variable name="sort_voucher_date"><xsl:value-of 
select="sort_voucher_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">
!                                       <a href="{$sort_voucher}"><xsl:value-of 
select="lang_voucher"/></a>
                                </td>
                                <td class="th_text" width="2%" align="right">
!                                       <a 
href="{$sort_voucher_date}"><xsl:value-of select="lang_voucher_date"/></a>
                                </td>
                                <td class="th_text" width="2%" align="right">
***************
*** 194,198 ****
        </xsl:template>
  
!       <xsl:template match="values_list_invoice">
  
                        <xsl:variable name="counter"><xsl:value-of 
select="counter"/></xsl:variable>
--- 254,258 ----
        </xsl:template>
  
!       <xsl:template match="values_list_voucher">
  
                        <xsl:variable name="counter"><xsl:value-of 
select="counter"/></xsl:variable>
***************
*** 214,220 ****
  
                                <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>
--- 274,280 ----
  
                                <td align="right">
!                                       <input type="hidden" 
name="values[{$counter}][voucher_id]" value="{voucher_id}">
                                        </input>
!                                       <xsl:variable 
name="link_sub"><xsl:value-of select="link_sub"/>&amp;voucher_id=<xsl:value-of 
select="voucher_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>
***************
*** 222,226 ****
                                        
onMouseOver="overlib('{$lang_sub_help}', CAPTION, '{$lang_sub}')"
                                        onMouseOut="nd()">
!                                       <xsl:value-of select="invoice_id"/></a> 
                                
                                </td>
                                <td align="right">
--- 282,286 ----
                                        
onMouseOver="overlib('{$lang_sub_help}', CAPTION, '{$lang_sub}')"
                                        onMouseOut="nd()">
!                                       <xsl:value-of select="voucher_id"/></a> 
                                
                                </td>
                                <td align="right">
***************
*** 230,234 ****
                                        onMouseOver="overlib('{$payment_date}', 
CAPTION, '{$lang_payment_date}')"
                                        onMouseOut="nd()">
!                                       <xsl:value-of 
select="invoice_date"/></a>                                                     
          
                                </td>
                                <td align="right">
--- 290,294 ----
                                        onMouseOver="overlib('{$payment_date}', 
CAPTION, '{$lang_payment_date}')"
                                        onMouseOut="nd()">
!                                       <xsl:value-of 
select="voucher_date"/></a>                                                     
          
                                </td>
                                <td align="right">
***************
*** 237,241 ****
                                        <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}">
--- 297,301 ----
                                        <input type="hidden" 
name="values[{$counter}][num_days_orig]" value="{num_days}">
                                        </input>
!                                       <input type="hidden" 
name="values[{$counter}][timestamp_voucher_date]" 
value="{timestamp_voucher_date}">
                                        </input>
                                        <input type="text" size="2" 
name="values[{$counter}][num_days]" value="{num_days}">
***************
*** 263,267 ****
                                </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>
--- 323,327 ----
                                </td>
                                <td align="right">
!                                       <xsl:variable 
name="link_period"><xsl:value-of 
select="link_period"/>&amp;voucher_id=<xsl:value-of 
select="voucher_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>
***************
*** 376,380 ****
                                                        <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>
--- 436,440 ----
                                                        <xsl:choose>
                                                                <xsl:when 
test="budget_date=''">
!                                                                       <input 
type="radio" name="values[{$counter}][sign]" value="sign_budget_responsible" 
onMouseout="window.status='';return true;">
                                                                        
</input>                                                        
                                                                </xsl:when>
***************
*** 382,386 ****
                                                                        
<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>
--- 442,446 ----
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="budget_responsible = $current_user">
!                                                                               
        <input type="radio" name="values[{$counter}][sign]" 
value="sign_budget_responsible" checked="checked" 
onMouseout="window.status='';return true;">
                                                                                
        </input>
                                                                                
</xsl:when>
***************
*** 1228,1231 ****
--- 1288,1305 ----
        </xsl:template>
  
+ <!-- tax_code_list -->        
+ 
+       <xsl:template match="tax_code_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="id"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="id"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+ 
  <!-- export -->
  
***************
*** 1436,1437 ****
--- 1510,1712 ----
                </table>
        </xsl:template>
+ 
+ 
+ <!--list_invoice_sub-->
+ 
+       <xsl:template match="list_invoice_sub">
+               <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 colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
+               </table>
+               <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
+               <form method="post" action="{$form_action}">
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:apply-templates 
select="table_header_list_invoice_sub"/>
+                       
+                       <xsl:choose>
+                               <xsl:when test="values_list_invoice_sub[id]">
+                                       <xsl:apply-templates 
select="values_list_invoice_sub"/>
+ 
+                               </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>
+                                                               <xsl:value-of 
select="lang_save_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+ 
+ 
+               </table>
+               </form> 
+       </xsl:template>
+ 
+       <xsl:template match="table_header_list_invoice_sub">
+               <xsl:variable name="sort_workorder"><xsl:value-of 
select="sort_workorder"/></xsl:variable>
+               <xsl:variable name="sort_budget_account"><xsl:value-of 
select="sort_budget_account"/></xsl:variable>
+               <xsl:variable name="sort_sum"><xsl:value-of 
select="sort_sum"/></xsl:variable>
+               <xsl:variable name="sort_dima"><xsl:value-of 
select="sort_dima"/></xsl:variable>
+                       <tr class="th">
+                               <td class="th_text" width="5%" align="right">
+                                       <a 
href="{$sort_workorder}"><xsl:value-of select="lang_workorder"/></a>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of 
select="lang_close_order"/>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of 
select="lang_charge_tenant"/>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of select="lang_invoice_id"/>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <a 
href="{$sort_budget_account}"><xsl:value-of select="lang_budget_account"/></a>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <a href="{$sort_sum}"><xsl:value-of 
select="lang_sum"/></a>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <a href="{$sort_dima}"><xsl:value-of 
select="lang_dima"/></a>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of select="lang_dimb"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_dimd"/>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of select="lang_tax_code"/>
+                               </td>
+                               <td class="th_text" width="2%" align="right">
+                                       <xsl:value-of select="lang_remark"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="values_list_invoice_sub">
+ 
+                       <xsl:variable name="counter"><xsl:value-of 
select="counter"/></xsl:variable>
+                       <xsl:variable name="current_user"><xsl:value-of 
select="current_user"/></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="right">
+                                       <input type="hidden" 
name="values[{$counter}][id]" value="{id}">
+                                       </input>
+                                       <input type="hidden" 
name="values[{$counter}][workorder_id]" value="{workorder_id}">
+                                       </input>
+                                       <xsl:variable 
name="link_workorder"><xsl:value-of 
select="link_workorder"/>&amp;workorder_id=<xsl:value-of 
select="workorder_id"/></xsl:variable>
+                                       <a 
href="{$link_workorder}"><xsl:value-of select="workorder_id"/></a>
+                               </td>
+                               <td align="center">
+                                       <xsl:choose>
+                                               <xsl:when 
test="workorder_id=''">
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <input type="hidden" 
name="values[{$counter}][close_order_orig]" value="{closed}">
+                                                       </input>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="closed='1'">
+                                                                       <input 
type="checkbox" name="values[{$counter}][close_order]" value="true" 
checked="checked" onMouseout="window.status='';return true;">
+                                                                       </input>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       <input 
type="checkbox" name="values[{$counter}][close_order]" value="true" 
onMouseout="window.status='';return true;">
+                                                                       
</input>                                                        
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </td>
+                               <td align="center">
+                                       <xsl:choose>
+                                               <xsl:when 
test="charge_tenant='1'">
+                                                       <b>x</b>
+                                               </xsl:when>
+                                       </xsl:choose>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="invoice_id"/>
+                               </td>
+                               <td align="right">
+                                       <input type="text" size="7" 
name="values[{$counter}][budget_account]" value="{budget_account}">
+                                       </input>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="amount"/>
+                               </td>
+                               <td align="center">
+                                       <input type="text" size="7" 
name="values[{$counter}][dima]" value="{dima}">
+                                       </input>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="dimb"/>           
                
+                               </td>
+                               <td align="center">
+                                       <input type="text" size="4" 
name="values[{$counter}][dimd]" value="{dimd}">
+                                       </input>
+                               </td>
+                               <td align="center">
+                                       <xsl:variable 
name="lang_tax_code_statustext"><xsl:value-of 
select="lang_tax_code_statustext"/></xsl:variable>
+                                       <select 
name="values[{$counter}][tax_code]" class="forms" 
onMouseover="window.status='{$lang_tax_code_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+                                               <xsl:apply-templates 
select="tax_code_list"/>
+                                       </select>
+                               </td>
+                               <td align="right">
+                                       <xsl:choose>
+                                               <xsl:when test="remark='1'">
+                                                       <xsl:variable 
name="link_remark"><xsl:value-of select="link_remark"/>&amp;id=<xsl:value-of 
select="id"/></xsl:variable>
+                                                       <xsl:variable 
name="lang_remark_help"><xsl:value-of select="lang_remark_help"/></xsl:variable>
+                                                       <xsl:variable 
name="lang_remark"><xsl:value-of select="lang_remark"/></xsl:variable>
+                                                       <a href="javascript:var 
w=window.open('{$link_remark}','','width=550,height=400,scrollbars,resizeable=YES')"
+                                                       
onMouseOver="overlib('{$lang_remark_help}', CAPTION, '{$lang_remark}')"
+                                                       onMouseOut="nd()">
+                                                       <xsl:value-of 
select="lang_remark"/></a>                                        
+                                               </xsl:when>
+                                       </xsl:choose>
+                               </td>
+ 
+                       </tr>
+       </xsl:template>
+ 





reply via email to

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