phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default cat_select.xsl,1.1,1.


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default cat_select.xsl,1.1,1.2 invoice.xsl,1.11,1.12 lookup.xsl,1.3,1.4select_district.xsl,1.1,1.2
Date: Mon, 20 Jan 2003 05:35:30 -0500

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

Modified Files:
        cat_select.xsl invoice.xsl lookup.xsl select_district.xsl 
Log Message:
no message

Index: cat_select.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/cat_select.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** cat_select.xsl      2 Jan 2003 22:05:11 -0000       1.1
--- cat_select.xsl      20 Jan 2003 10:35:28 -0000      1.2
***************
*** 11,21 ****
  
        <xsl:template match="cat_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>
--- 11,21 ----
  
        <xsl:template match="cat_list">
!       <xsl:variable name="cat_id"><xsl:value-of 
select="cat_id"/></xsl:variable>
                <xsl:choose>
                        <xsl:when test="selected">
!                               <option value="{$cat_id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
                        </xsl:when>
                        <xsl:otherwise>
!                               <option value="{$cat_id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
                        </xsl:otherwise>
                </xsl:choose>

Index: invoice.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/invoice.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** invoice.xsl 15 Jan 2003 20:55:47 -0000      1.11
--- invoice.xsl 20 Jan 2003 10:35:28 -0000      1.12
***************
*** 27,30 ****
--- 27,36 ----
                                <xsl:apply-templates select="list_voucher"/>
                        </xsl:when>
+                       <xsl:when test="list_voucher_paid">
+                               <xsl:apply-templates 
select="list_voucher_paid"/>
+                       </xsl:when>
+                       <xsl:when test="consume">
+                               <xsl:apply-templates select="consume"/>
+                       </xsl:when>
                        <xsl:when test="remark">
                                <xsl:apply-templates select="remark"/>
***************
*** 105,108 ****
--- 111,116 ----
        </xsl:template>
  
+ <!-- list_voucher -->
+ 
        <xsl:template match="list_voucher">
                <div id="overDiv" style="position:absolute; 
visibility:hide;z-index:1;"></div>
***************
*** 376,380 ****
                                                                <xsl:otherwise>
                                                                        
<xsl:choose>
!                                                                               
<xsl:when test="supervisor = $current_user">
                                                                                
        <input type="radio" name="values[sign][{$counter}]" 
value="sign_janitor" checked="checked" onMouseout="window.status='';return 
true;">
                                                                                
        </input>
--- 384,388 ----
                                                                <xsl:otherwise>
                                                                        
<xsl:choose>
!                                                                               
<xsl:when test="janitor = $current_user">
                                                                                
        <input type="radio" name="values[sign][{$counter}]" 
value="sign_janitor" checked="checked" onMouseout="window.status='';return 
true;">
                                                                                
        </input>
***************
*** 496,499 ****
--- 504,1095 ----
  
  
+ 
+ <!-- list_voucher_paid -->
+ 
+       <xsl:template match="list_voucher_paid">
+               <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>
+               <script language="JavaScript">
+                       var calDateFormat="<xsl:value-of select="dateformat"/>";
+               </script>
+               <xsl:variable name="calendar_source"><xsl:value-of 
select="calendar_source"/></xsl:variable>
+               <SCRIPT LANGUAGE="JavaScript" SRC="{$calendar_source}"></SCRIPT>
+ 
+               <script language="JavaScript">
+                       self.name="first_Window";
+                       function abook()
+                       {
+                               Window1=window.open('<xsl:value-of 
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+                       }               
+                       function property_lookup()
+                       {
+                               Window1=window.open('<xsl:value-of 
select="property_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+                       }               
+               </script>
+ 
+               <xsl:call-template name="app_header"/>
+               <xsl:call-template name="menu"/> 
+               <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
+               <div align="left">
+               <form method="post" name="form" action="{$form_action}">
+               <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>
+ 
+                                       <input type="text" name="start_date" 
value="{start_date}" size="12" readonly="readonly" 
onMouseout="window.status='';return true;" >
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_start_date_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                       
+                                       <xsl:variable 
name="calendar_gif"><xsl:value-of select="calendar_gif"/></xsl:variable>
+                                       <xsl:variable 
name="link_calendar_start_date"><xsl:value-of 
select="link_calendar_start_date"/></xsl:variable>
+               
+                                       <a href="javascript:doNothing()" 
onClick="{$link_calendar_start_date}">
+                                       <img src="{$calendar_gif}" border="2" 
width="12" height="12"/></a>
+                                       <xsl:value-of 
select="lang_popup_calendar"/>
+                       
+                               </td>
+                               <td>
+ 
+                                       <input type="text" name="end_date" 
value="{end_date}" size="12" readonly="readonly" 
onMouseout="window.status='';return true;" >
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_end_date_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                       
+                                       <xsl:variable 
name="calendar_gif"><xsl:value-of select="calendar_gif"/></xsl:variable>
+                                       <xsl:variable 
name="link_calendar_end_date"><xsl:value-of 
select="link_calendar_end_date"/></xsl:variable>
+               
+                                       <a href="javascript:doNothing()" 
onClick="{$link_calendar_end_date}">
+                                       <img src="{$calendar_gif}" border="2" 
width="12" height="12"/></a>
+                                       <xsl:value-of 
select="lang_popup_calendar"/>
+                       
+                               </td>
+ 
+                               <td>
+                                       <input type="text" size="8" 
name="workorder_id" value="{workorder_id}" onMouseout="window.status='';return 
true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_workorder_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:void()"
+                                       
onMouseOver="overlib('{lang_workorder_statustext}', CAPTION, 
'{lang_workorder}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_workorder"/></a>                                     
+                               </td>
+ 
+                               <td align="left">
+                                       <input type="text" name="abid"  
onClick="abook()" value="{vendor_id}" size="4"  
onMouseout="window.status='';return true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_abid_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:abook()"
+                                       
onMouseOver="overlib('{lang_select_vendor_statustext}', CAPTION, 
'{lang_vendor}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_vendor"/></a>                                        
+ 
+                                       <input type="hidden" 
name="vendor_name"></input>
+                               </td>
+                       </tr>
+                       
+                       <tr>
+                               <td>
+                                       <xsl:call-template name="cat_select"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:call-template 
name="user_lid_select"/>
+                               </td>
+                               <td align="left">
+                                       <input type="text" name="property_id" 
onClick="property_lookup()" value="{property_id}" size="4" 
onMouseout="window.status='';return true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_property_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:property_lookup()"
+                                       
onMouseOver="overlib('{lang_select_property_statustext}', CAPTION, 
'{lang_property}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_property"/></a>                                      
+ 
+                                       <input type="hidden" 
name="property_name"></input>
+                                       <input type="hidden" 
name="building_id"></input>
+                                       <input type="hidden" 
name="entrance_id"></input>
+                                       <input type="hidden" 
name="apartment_id"></input>
+                                       <input type="hidden" 
name="tenant_id"></input>
+                               </td>
+                               <td align="left">
+                                       <xsl:variable 
name="lang_search"><xsl:value-of select="lang_search"/></xsl:variable>
+                                       <input type="submit" 
name="submit_search" value="{$lang_search}" onMouseout="window.status='';return 
true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_search_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
+               </table>
+               </form>
+               </div>
+ 
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:apply-templates 
select="table_header_list_voucher_paid"/>
+                       
+                       <xsl:choose>
+                               <xsl:when 
test="values_list_voucher_paid[voucher_id]">
+                                       <xsl:apply-templates 
select="values_list_voucher_paid"/>
+ 
+                               </xsl:when>
+                       </xsl:choose>
+                       <xsl:variable name="img_check"><xsl:value-of 
select="img_check"/></xsl:variable>
+               </table>
+       </xsl:template>
+       
+       
+       <xsl:template match="table_header_list_voucher_paid">
+               <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">
+                                       <xsl:value-of select="lang_days"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_sum"/>
+                               </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">
+                                       <xsl:value-of 
select="lang_num_sub_invoice"/>
+                               </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_janitor"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_supervisor"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of 
select="lang_budget_responsible"/>
+                               </td>
+                               <td class="th_text" width="5%" align="right">
+                                       <xsl:value-of select="lang_transfer"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="values_list_voucher_paid">
+ 
+                       <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">
+                                       <xsl:variable 
name="link_sub"><xsl:value-of select="link_sub"/>&amp;voucher_id=<xsl:value-of 
select="voucher_id"/>&amp;paid=true</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="voucher_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="voucher_date"/></a>                                                     
          
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="num_days"/>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="amount"/>
+                               </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">
+                                       <xsl:value-of select="invoice_count"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="type"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="jan_date"/> - 
<xsl:value-of select="janitor"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="super_date"/> - 
<xsl:value-of select="supervisor"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="budget_date"/> - 
<xsl:value-of select="budget_responsible"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="transfer_date"/> 
- <xsl:value-of select="transfer_id"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+ 
+ <!-- consume -->
+ 
+       <xsl:template match="consume">
+               <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>
+               <script language="JavaScript">
+                       var calDateFormat="<xsl:value-of select="dateformat"/>";
+               </script>
+               <xsl:variable name="calendar_source"><xsl:value-of 
select="calendar_source"/></xsl:variable>
+               <SCRIPT LANGUAGE="JavaScript" SRC="{$calendar_source}"></SCRIPT>
+ 
+               <script language="JavaScript">
+                       self.name="first_Window";
+                       function abook()
+                       {
+                               Window1=window.open('<xsl:value-of 
select="addressbook_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+                       }               
+                       function property_lookup()
+                       {
+                               Window1=window.open('<xsl:value-of 
select="property_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+                       }               
+               </script>
+ 
+               <xsl:call-template name="app_header"/>
+               <xsl:call-template name="menu"/> 
+               <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
+               <div align="left">
+               <form method="post" name="form" action="{$form_action}">
+               <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>
+ 
+                                       <input type="text" name="start_date" 
value="{start_date}" size="12" readonly="readonly" 
onMouseout="window.status='';return true;" >
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_start_date_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                       
+                                       <xsl:variable 
name="calendar_gif"><xsl:value-of select="calendar_gif"/></xsl:variable>
+                                       <xsl:variable 
name="link_calendar_start_date"><xsl:value-of 
select="link_calendar_start_date"/></xsl:variable>
+               
+                                       <a href="javascript:doNothing()" 
onClick="{$link_calendar_start_date}">
+                                       <img src="{$calendar_gif}" border="2" 
width="12" height="12"/></a>
+                                       <xsl:value-of 
select="lang_popup_calendar"/>
+                       
+                               </td>
+                               <td>
+ 
+                                       <input type="text" name="end_date" 
value="{end_date}" size="12" readonly="readonly" 
onMouseout="window.status='';return true;" >
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_end_date_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                       
+                                       <xsl:variable 
name="calendar_gif"><xsl:value-of select="calendar_gif"/></xsl:variable>
+                                       <xsl:variable 
name="link_calendar_end_date"><xsl:value-of 
select="link_calendar_end_date"/></xsl:variable>
+               
+                                       <a href="javascript:doNothing()" 
onClick="{$link_calendar_end_date}">
+                                       <img src="{$calendar_gif}" border="2" 
width="12" height="12"/></a>
+                                       <xsl:value-of 
select="lang_popup_calendar"/>
+                       
+                               </td>
+ 
+                               <td>
+                                       <input type="text" size="8" 
name="workorder_id" value="{workorder_id}" onMouseout="window.status='';return 
true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_workorder_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:void()"
+                                       
onMouseOver="overlib('{lang_workorder_statustext}', CAPTION, 
'{lang_workorder}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_workorder"/></a>                                     
+                               </td>
+ 
+                               <td align="left">
+                                       <input type="text" name="abid"  
onClick="abook()" value="{vendor_id}" size="4"  
onMouseout="window.status='';return true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_abid_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:abook()"
+                                       
onMouseOver="overlib('{lang_select_vendor_statustext}', CAPTION, 
'{lang_vendor}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_vendor"/></a>                                        
+ 
+                                       <input type="hidden" name="vendor_name" 
value="{vendor_name}"></input>
+                               </td>
+                       </tr>
+                       
+                       <tr>
+                               <td>
+                                       <xsl:call-template name="cat_select"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:call-template 
name="select_district"/>
+                               </td>
+                               <td align="left">
+                               <xsl:variable 
name="lang_account_class_statustext"><xsl:value-of 
select="lang_account_class_statustext"/></xsl:variable>
+                               <xsl:variable 
name="select_account_class_name"><xsl:value-of 
select="select_account_class_name"/></xsl:variable>
+                                       <select 
name="{$select_account_class_name}" class="forms" 
onMouseover="window.status='{$lang_account_class_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+                                               <option value=""><xsl:value-of 
select="lang_no_account_class_"/></option>
+                                                       <xsl:apply-templates 
select="account_class_list"/>
+                                       </select>
+ 
+                               </td>
+                               
+                               <td align="left">
+                                       <input type="text" name="property_id" 
onClick="property_lookup()" value="{property_id}" size="4" 
onMouseout="window.status='';return true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_property_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                                       <a href="javascript:property_lookup()"
+                                       
onMouseOver="overlib('{lang_select_property_statustext}', CAPTION, 
'{lang_property}')"
+                                       onMouseOut="nd()">
+                                       <xsl:value-of 
select="lang_property"/></a>                                      
+ 
+                                       <input type="hidden" 
name="property_name"></input>
+                                       <input type="hidden" 
name="building_id"></input>
+                                       <input type="hidden" 
name="entrance_id"></input>
+                                       <input type="hidden" 
name="apartment_id"></input>
+                                       <input type="hidden" 
name="tenant_id"></input>
+                               </td>
+                               <td align="left">
+                                       <xsl:variable 
name="lang_search"><xsl:value-of select="lang_search"/></xsl:variable>
+                                       <input type="submit" 
name="submit_search" value="{$lang_search}" onMouseout="window.status='';return 
true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_search_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+               </table>
+               </form>
+               </div>
+ 
+ 
+ 
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:choose>
+                               <xsl:when test="vendor_name!=''">
+                                       <tr>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_vendor"/>
+                                               </td>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="vendor_name"/>
+                                               </td>
+                                               <td width="50%">
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+                       <xsl:choose>
+                               <xsl:when test="property_id!=''">
+                                       <tr>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_property"/>
+                                               </td>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="property_id"/>
+                                               </td>
+                                               <td width="50%">
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+                       <xsl:choose>
+                               <xsl:when test="workorder_id!=''">
+                                       <tr>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_workorder"/>
+                                               </td>
+                                               <td width="25%" class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="workorder_id"/>
+                                               </td>
+                                               <td width="50%">
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+ 
+               </table>
+ 
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:apply-templates select="table_header_consume"/>
+                       
+                       <xsl:choose>
+                               <xsl:when test="values_consume[consume]">
+                                       <xsl:apply-templates 
select="values_consume"/>
+ 
+                               </xsl:when>
+                       </xsl:choose>
+                       <tr>
+                               <td>
+                               </td>
+                               <td>
+                               </td>
+                               <td class="th_text" align="right">
+                                       <xsl:value-of select="lang_sum"/>
+                               </td>
+                               <td class="th_text" align="right">
+                                       <xsl:value-of select="sum"/>
+                               </td>
+                       </tr>
+               </table>
+       </xsl:template>
+       
+       <xsl:template match="account_class_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>
+ 
+       <xsl:template match="table_header_consume">
+                       <tr class="th">
+                               <td class="th_text" width="10%" align="right">
+                                       <xsl:value-of select="lang_district"/>
+                               </td>
+                               <td class="th_text" width="10%" align="right">
+                                       <xsl:value-of select="lang_period"/>
+                               </td>
+                               <td class="th_text" width="25%" align="right">
+                                       <xsl:value-of 
select="lang_budget_account"/>
+                               </td>
+                               <td class="th_text" width="55%" align="right">
+                                       <xsl:value-of select="lang_consume"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="values_consume">
+                       <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="district_id"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="period"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:value-of select="account_class"/>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="consume"/> 
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+ <!-- debug-->
+ 
        <xsl:template match="debug">
  
***************
*** 974,978 ****
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_import_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
--- 1570,1574 ----
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_select_vendor_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
***************
*** 1564,1575 ****
                        <tr height="50">
                                <td>
!                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                       <input type="submit" 
name="values[save][0]" 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>
--- 2160,2175 ----
                        <tr height="50">
                                <td>
!                                       <xsl:choose>
!                                               <xsl:when test="paid=''">
!                                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
!                                                       <input type="submit" 
name="values[save][0]" 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>
!                                               </xsl:when>
!                                       </xsl:choose>
                                </td>
                        </tr>
***************
*** 1656,1670 ****
                                                </xsl:when>
                                                <xsl:otherwise>
-                                                       <input type="hidden" 
name="values[close_order_orig][{$counter}]" value="{closed}">
-                                                       </input>
                                                        <xsl:choose>
!                                                               <xsl:when 
test="closed='1'">
!                                                                       <input 
type="checkbox" name="values[close_order][{$counter}]" value="true" 
checked="checked" onMouseout="window.status='';return true;">
                                                                        </input>
                                                                </xsl:when>
                                                                <xsl:otherwise>
!                                                                       <input 
type="checkbox" name="values[close_order][{$counter}]" value="true" 
onMouseout="window.status='';return true;">
!                                                                       
</input>                                                        
!                                                               </xsl:otherwise>
                                                        </xsl:choose>
                                                </xsl:otherwise>
--- 2256,2281 ----
                                                </xsl:when>
                                                <xsl:otherwise>
                                                        <xsl:choose>
!                                                               <xsl:when 
test="paid=''">
!                                                                       <input 
type="hidden" name="values[close_order_orig][{$counter}]" value="{closed}">
                                                                        </input>
+                                                                       
<xsl:choose>
+                                                                               
<xsl:when test="closed='1'">
+                                                                               
        <input type="checkbox" name="values[close_order][{$counter}]" 
value="true" checked="checked" onMouseout="window.status='';return true;">
+                                                                               
        </input>
+                                                                               
</xsl:when>
+                                                                               
<xsl:otherwise>
+                                                                               
        <input type="checkbox" name="values[close_order][{$counter}]" 
value="true" onMouseout="window.status='';return true;">
+                                                                               
        </input>                                                        
+                                                                               
</xsl:otherwise>
+                                                                       
</xsl:choose>
                                                                </xsl:when>
                                                                <xsl:otherwise>
!                                                                       
<xsl:choose>
!                                                                               
<xsl:when test="closed='1'">
!                                                                               
        <b>x</b>
!                                                                               
</xsl:when>
!                                                                       
</xsl:choose>
!                                                               
</xsl:otherwise>                                                                
                                                        </xsl:choose>
                                                </xsl:otherwise>
***************
*** 1682,1687 ****
                                </td>
                                <td align="right">
!                                       <input type="text" size="7" 
name="values[budget_account][{$counter}]" value="{budget_account}">
!                                       </input>
                                </td>
                                <td align="right">
--- 2293,2305 ----
                                </td>
                                <td align="right">
!                                       <xsl:choose>
!                                               <xsl:when test="paid='true'">
!                                                       <xsl:value-of 
select="budget_account"/>                         
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <input type="text" 
size="7" name="values[budget_account][{$counter}]" value="{budget_account}">
!                                                       </input>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                                <td align="right">
***************
*** 1689,1694 ****
                                </td>
                                <td align="center">
!                                       <input type="text" size="7" 
name="values[dima][{$counter}]" value="{dima}">
!                                       </input>
                                </td>
                                <td align="right">
--- 2307,2319 ----
                                </td>
                                <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="paid='true'">
!                                                       <xsl:value-of 
select="dima"/>                           
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <input type="text" 
size="7" name="values[dima][{$counter}]" value="{dima}">
!                                                       </input>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                                <td align="right">
***************
*** 1696,1712 ****
                                </td>
                                <td align="center">
!                                       <input type="text" size="4" 
name="values[dimd][{$counter}]" 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[tax_code][{$counter}]" 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>
--- 2321,2351 ----
                                </td>
                                <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="paid='true'">
!                                                       <xsl:value-of 
select="dimd"/>                           
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <input type="text" 
size="4" name="values[dimd][{$counter}]" value="{dimd}">
!                                                       </input>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                                <td align="center">
!                                       <xsl:choose>
!                                               <xsl:when test="paid='true'">
!                                                       <xsl:value-of 
select="tax_code"/>                               
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <xsl:variable 
name="lang_tax_code_statustext"><xsl:value-of 
select="lang_tax_code_statustext"/></xsl:variable>
!                                                       <select 
name="values[tax_code][{$counter}]" class="forms" 
onMouseover="window.status='{$lang_tax_code_statustext}'; return true;" 
onMouseout="window.status='';return true;">
!                                                               
<xsl:apply-templates select="tax_code_list"/>
!                                                       </select>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
                                </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"/>&amp;paid=<xsl:value-of select="paid"/></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>

Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** lookup.xsl  2 Jan 2003 22:03:58 -0000       1.3
--- lookup.xsl  20 Jan 2003 10:35:28 -0000      1.4
***************
*** 51,54 ****
--- 51,59 ----
                                <xsl:apply-templates 
select="values_addressbook"/>
  
+                       <tr>
+                               <td colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
                </table>
                                <xsl:apply-templates select="table_done"/>
***************
*** 190,193 ****
--- 195,205 ----
                                <xsl:apply-templates select="values_property"/>
  
+               </table>
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <tr>
+                               <td colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
                </table>
                                <xsl:apply-templates select="table_done"/>

Index: select_district.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/select_district.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** select_district.xsl 2 Jan 2003 22:05:11 -0000       1.1
--- select_district.xsl 20 Jan 2003 10:35:28 -0000      1.2
***************
*** 4,8 ****
        <xsl:variable name="lang_district_statustext"><xsl:value-of 
select="lang_district_statustext"/></xsl:variable>
        <xsl:variable name="select_district_name"><xsl:value-of 
select="select_district_name"/></xsl:variable>
!               <select name="{$select_name_district}" class="forms" 
onMouseover="window.status='{$lang_district_statustext}'; return true;" 
onMouseout="window.status='';return true;">
                        <option value=""><xsl:value-of 
select="lang_no_district"/></option>
                                <xsl:apply-templates select="district_list"/>
--- 4,8 ----
        <xsl:variable name="lang_district_statustext"><xsl:value-of 
select="lang_district_statustext"/></xsl:variable>
        <xsl:variable name="select_district_name"><xsl:value-of 
select="select_district_name"/></xsl:variable>
!               <select name="{$select_district_name}" class="forms" 
onMouseover="window.status='{$lang_district_statustext}'; return true;" 
onMouseout="window.status='';return true;">
                        <option value=""><xsl:value-of 
select="lang_no_district"/></option>
                                <xsl:apply-templates select="district_list"/>





reply via email to

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