[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/templates/default invoice.xsl,1.3,1.4
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/templates/default invoice.xsl,1.3,1.4 lookup.xsl,1.2,1.3 |
Date: |
Thu, 02 Jan 2003 17:04:01 -0500 |
Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv12307/templates/default
Modified Files:
invoice.xsl lookup.xsl
Log Message:
no message
Index: invoice.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/invoice.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** invoice.xsl 27 Dec 2002 19:03:28 -0000 1.3
--- invoice.xsl 2 Jan 2003 22:03:57 -0000 1.4
***************
*** 16,24 ****
</xsl:when>
<xsl:otherwise>
! <xsl:apply-templates select="list"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="debug">
--- 16,316 ----
</xsl:when>
<xsl:otherwise>
! <xsl:apply-templates select="list_invoice"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+ <xsl:template match="list_invoice">
+ <xsl:call-template name="app_header"/>
+ <xsl:call-template name="menu"/>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <tr>
+ <td>
+ <xsl:call-template name="cat_filter"/>
+ </td>
+ <td align="center">
+ <xsl:call-template
name="user_lid_filter"/>
+ </td>
+ <td align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <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: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>
+ <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">
+ <xsl:variable name="sort_invoice"><xsl:value-of
select="sort_invoice"/></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">
+ <xsl:value-of
select="lang_invoice_date"/>
+ </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">
+ <xsl:value-of select="lang_vendor_id"/>
+ </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_period"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_kredit"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_none"/>
+ </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_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>
+ <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="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">
+ <xsl:value-of select="amount"/>
+ </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>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <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>
+ <xsl:otherwise>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="right">
+
+ <xsl:choose>
+ <xsl:when test="is_janitor=
'1'">
+ <xsl:choose>
+ <xsl:when
test="jan_date=''">
+ <input
type="radio" name="sign[{$counter}]" value="sign_janitor"
onMouseout="window.status='';return true;">
+
</input>
+ </xsl:when>
+ <xsl:otherwise>
+
<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>
+
<xsl:otherwise>
+
<b>x </b>
+
</xsl:otherwise>
+
</xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="jan_date=''">
+ </xsl:when>
+ <xsl:otherwise>
+ <b>x
</b>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:value-of select="janitor"/>
+ </td>
+ <td align="right">
+
+ <xsl:choose>
+ <xsl:when test="is_supervisor=
'1'">
+ <xsl:choose>
+ <xsl:when
test="super_date=''">
+ <input
type="radio" name="sign[{$counter}]" value="sign_super"
onMouseout="window.status='';return true;">
+
</input>
+ </xsl:when>
+ <xsl:otherwise>
+
<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>
+
<xsl:otherwise>
+
<b>x </b>
+
</xsl:otherwise>
+
</xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="super_date=''">
+ </xsl:when>
+ <xsl:otherwise>
+ <b>x
</b>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:value-of select="supervisor"/>
+ </td>
+ <td align="right">
+ <xsl:choose>
+ <xsl:when
test="is_budget_responsible= '1'">
+ <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>
+ <xsl:otherwise>
+
<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>
+
<xsl:otherwise>
+
<b>x </b>
+
</xsl:otherwise>
+
</xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="budget_date=''">
+ </xsl:when>
+ <xsl:otherwise>
+ <b>x
</b>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of
select="budget_responsible"/>
+ </td>
+ <td align="right">
+ <xsl:choose>
+ <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>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="transfer_date">
+ <b>x
</b>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="transfer_id"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+
<xsl:template match="debug">
***************
*** 94,101 ****
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
! <xsl:apply-templates select="table_header"/>
</tr>
! <xsl:apply-templates select="values"/>
<xsl:apply-templates select="table_add"/>
</table>
--- 386,393 ----
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
<tr class="th">
! <xsl:apply-templates
select="table_header_debug"/>
</tr>
! <xsl:apply-templates select="values_debug"/>
<xsl:apply-templates select="table_add"/>
</table>
***************
*** 104,138 ****
</xsl:template>
- <xsl:template match="list">
- <xsl:call-template name="app_header"/>
- <xsl:call-template name="menu"/>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <tr>
- <td>
- <xsl:call-template name="cat_filter"/>
- </td>
- <td align="center">
- <xsl:call-template
name="filter_select"/>
- </td>
- <td align="right">
- <xsl:call-template name="search_field"/>
- </td>
- </tr>
- <tr>
- <td colspan="3" width="100%">
- <xsl:call-template name="nextmatchs"/>
- <!-- <xsl:with-param
name="nextmatchs_params"/>
- </xsl:call-template> -->
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates select="table_header"/>
- <xsl:apply-templates select="values"/>
- <xsl:apply-templates select="table_add"/>
- </table>
- </xsl:template>
! <xsl:template match="table_header">
<td class="th_text" width="10%" align="right">
--- 396,401 ----
</xsl:template>
! <xsl:template match="table_header_debug">
<td class="th_text" width="10%" align="right">
***************
*** 142,146 ****
</xsl:template>
! <xsl:template match="values">
<xsl:variable name="lang_view_statustext"><xsl:value-of
select="lang_view_statustext"/></xsl:variable>
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
--- 405,409 ----
</xsl:template>
! <xsl:template match="values_debug">
<xsl:variable name="lang_view_statustext"><xsl:value-of
select="lang_view_statustext"/></xsl:variable>
<xsl:variable name="lang_edit_statustext"><xsl:value-of
select="lang_edit_statustext"/></xsl:variable>
Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** lookup.xsl 28 Dec 2002 17:25:45 -0000 1.2
--- lookup.xsl 2 Jan 2003 22:03:58 -0000 1.3
***************
*** 120,127 ****
<xsl:template match="list_property">
<script LANGUAGE="JavaScript">
! function ExchangeVendor(thisform)
{
! opener.document.form.abid.value =
thisform.elements[0].value;
! opener.document.form.vendor_name.value =
thisform.elements[1].value;
window.close()
}
--- 120,166 ----
<xsl:template match="list_property">
<script LANGUAGE="JavaScript">
! function ExchangeProperty(thisform)
{
! opener.document.form.property_id.value =
thisform.elements[0].value;
! opener.document.form.building_id.value = '';
! opener.document.form.entrance_id.value = '';
! opener.document.form.apartment_id.value = '';
! opener.document.form.tenant_id.value = '';
! window.close()
! }
! function ExchangeBuilding(thisform)
! {
! opener.document.form.property_id.value =
thisform.elements[0].value;
! opener.document.form.building_id.value =
thisform.elements[1].value;
! opener.document.form.entrance_id.value = '';
! opener.document.form.apartment_id.value = '';
! opener.document.form.tenant_id.value = '';
! window.close()
! }
! function ExchangeEntrance(thisform)
! {
! opener.document.form.property_id.value =
thisform.elements[0].value;
! opener.document.form.building_id.value =
thisform.elements[1].value;
! opener.document.form.entrance_id.value =
thisform.elements[2].value;
! opener.document.form.apartment_id.value = '';
! opener.document.form.tenant_id.value = '';
! window.close()
! }
! function ExchangeApartment(thisform)
! {
! opener.document.form.property_id.value =
thisform.elements[0].value;
! opener.document.form.building_id.value =
thisform.elements[1].value;
! opener.document.form.entrance_id.value =
thisform.elements[2].value;
! opener.document.form.apartment_id.value =
thisform.elements[4].value;
! opener.document.form.tenant_id.value = '';
! window.close()
! }
! function ExchangeTenant(thisform)
! {
! opener.document.form.property_id.value =
thisform.elements[0].value;
! opener.document.form.building_id.value =
thisform.elements[1].value;
! opener.document.form.entrance_id.value =
thisform.elements[2].value;
! opener.document.form.apartment_id.value =
thisform.elements[4].value;
! opener.document.form.tenant_id.value =
thisform.elements[5].value;
window.close()
}
***************
*** 134,137 ****
--- 173,179 ----
<xsl:call-template name="cat_filter"/>
</td>
+ <td>
+ <xsl:call-template
name="filter_district"/>
+ </td>
<td align="right">
<xsl:call-template name="search_field"/>
***************
*** 156,176 ****
<xsl:variable name="sort_property"><xsl:value-of
select="sort_property"/></xsl:variable>
<xsl:variable name="sort_street_name"><xsl:value-of
select="sort_street_name"/></xsl:variable>
<tr class="th">
! <td class="th_text" width="10%" align="right">
<a
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
</td>
! <td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_building"/>
</td>
! <td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_entrance"/>
</td>
! <td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_floor"/>
</td>
! <td class="th_text" width="10%" align="right">
<xsl:value-of select="lang_apartment"/>
</td>
! <td class="th_text" width="40%" align="right">
<a
href="{$sort_street_name}"><xsl:value-of select="lang_street_name"/></a>
</td>
--- 198,222 ----
<xsl:variable name="sort_property"><xsl:value-of
select="sort_property"/></xsl:variable>
<xsl:variable name="sort_street_name"><xsl:value-of
select="sort_street_name"/></xsl:variable>
+ <xsl:variable name="sort_tenant"><xsl:value-of
select="sort_tenant"/></xsl:variable>
<tr class="th">
! <td class="th_text" width="5%" align="right">
<a
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
</td>
! <td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_building"/>
</td>
! <td class="th_text" width="2%" align="right">
<xsl:value-of select="lang_entrance"/>
</td>
! <td class="th_text" width="5%" align="right">
<xsl:value-of select="lang_floor"/>
</td>
! <td class="th_text" width="4%" align="right">
<xsl:value-of select="lang_apartment"/>
</td>
! <td class="th_text" width="5%" align="right">
! <xsl:value-of select="lang_category"/>
! </td>
! <td class="th_text" width="30%" align="right">
<a
href="{$sort_street_name}"><xsl:value-of select="lang_street_name"/></a>
</td>
***************
*** 178,181 ****
--- 224,230 ----
<xsl:value-of select="lang_street_num"/>
</td>
+ <td class="th_text" width="30%" align="right">
+ <a href="{$sort_tenant}"><xsl:value-of
select="lang_tenant"/></a>
+ </td>
</tr>
</xsl:template>
***************
*** 206,210 ****
<input type="hidden"
name="hidden" value="{property_id}"></input>
<xsl:variable
name="property_id"><xsl:value-of select="property_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$property_id}" onClick="ExchangeProperty_id(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 255,259 ----
<input type="hidden"
name="hidden" value="{property_id}"></input>
<xsl:variable
name="property_id"><xsl:value-of select="property_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$property_id}" onClick="ExchangeProperty(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 218,224 ****
<form>
<td valign="top">
<input type="hidden"
name="hidden" value="{building_id}"></input>
<xsl:variable
name="building_id"><xsl:value-of select="building_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$building_id}" onClick="ExchangeProperty_id(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 267,274 ----
<form>
<td valign="top">
+ <input type="hidden"
name="hidden" value="{property_id}"></input>
<input type="hidden"
name="hidden" value="{building_id}"></input>
<xsl:variable
name="building_id"><xsl:value-of select="building_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$building_id}" onClick="ExchangeBuilding(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 231,237 ****
<form>
<td valign="top">
<input type="hidden"
name="hidden" value="{entrance_id}"></input>
<xsl:variable
name="entrance_id"><xsl:value-of select="entrance_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$entrance_id}" onClick="ExchangeProperty_id(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 281,289 ----
<form>
<td valign="top">
+ <input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{building_id}"></input>
<input type="hidden"
name="hidden" value="{entrance_id}"></input>
<xsl:variable
name="entrance_id"><xsl:value-of select="entrance_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$entrance_id}" onClick="ExchangeEntrance(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 250,256 ****
<form>
<td valign="top">
<input type="hidden"
name="hidden" value="{apartment_id}"></input>
<xsl:variable
name="apartment_id"><xsl:value-of select="apartment_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$apartment_id}"
onClick="ExchangeProperty_id(this.form);" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
--- 302,311 ----
<form>
<td valign="top">
+ <input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{building_id}"></input>
+ <input type="hidden"
name="hidden" value="{entrance_id}"></input>
<input type="hidden"
name="hidden" value="{apartment_id}"></input>
<xsl:variable
name="apartment_id"><xsl:value-of select="apartment_id"/></xsl:variable>
! <input type="button"
name="convert" value="{$apartment_id}" onClick="ExchangeApartment(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 263,270 ****
--- 318,530 ----
<td align="right">
+ <xsl:value-of select="category"/>
+ </td>
+ <td align="right">
<xsl:value-of select="street_name"/>
</td>
<td align="right">
<xsl:value-of select="street_number"/>
+ </td>
+ <form>
+ <td align="left">
+ <input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{building_id}"></input>
+ <input type="hidden"
name="hidden" value="{entrance_id}"></input>
+ <input type="hidden"
name="hidden" value="{apartment_id}"></input>
+ <input type="hidden"
name="hidden" value="{tenant_id}"></input>
+ <xsl:variable
name="tenant"><xsl:value-of select="tenant"/></xsl:variable>
+
+ <a href="javascript:doNothing()"
onClick="ExchangeTenant(this.form);"><xsl:value-of select="tenant"/></a>
+
+ <!-- <input type="button"
name="convert" value="{$tenant}" onClick="ExchangeTenant(this.form);"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_select_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input> -->
+ </td>
+ </form>
+
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="list_equipment">
+ <script LANGUAGE="JavaScript">
+ function Exchangeequipment(thisform)
+ {
+ opener.document.form.property_id.value =
thisform.elements[0].value;
+ opener.document.form.building_id.value = '';
+ opener.document.form.entrance_id.value = '';
+ opener.document.form.apartment_id.value = '';
+ opener.document.form.tenant_id.value = '';
+ window.close()
+ }
+ function ExchangeBuilding(thisform)
+ {
+ opener.document.form.property_id.value =
thisform.elements[0].value;
+ opener.document.form.building_id.value =
thisform.elements[1].value;
+ opener.document.form.entrance_id.value = '';
+ opener.document.form.apartment_id.value = '';
+ opener.document.form.tenant_id.value = '';
+ window.close()
+ }
+ function ExchangeEntrance(thisform)
+ {
+ opener.document.form.property_id.value =
thisform.elements[0].value;
+ opener.document.form.building_id.value =
thisform.elements[1].value;
+ opener.document.form.entrance_id.value =
thisform.elements[2].value;
+ opener.document.form.apartment_id.value = '';
+ opener.document.form.tenant_id.value = '';
+ window.close()
+ }
+ function ExchangeApartment(thisform)
+ {
+ opener.document.form.property_id.value =
thisform.elements[0].value;
+ opener.document.form.building_id.value =
thisform.elements[1].value;
+ opener.document.form.entrance_id.value =
thisform.elements[2].value;
+ opener.document.form.apartment_id.value =
thisform.elements[4].value;
+ opener.document.form.tenant_id.value = '';
+ window.close()
+ }
+ function ExchangeTenant(thisform)
+ {
+ opener.document.form.property_id.value =
thisform.elements[0].value;
+ opener.document.form.building_id.value =
thisform.elements[1].value;
+ opener.document.form.entrance_id.value =
thisform.elements[2].value;
+ opener.document.form.apartment_id.value =
thisform.elements[4].value;
+ opener.document.form.tenant_id.value =
thisform.elements[5].value;
+ window.close()
+ }
+ </script>
+
+ <xsl:call-template name="app_header"/>
+ <table width="95%" cellpadding="2" cellspacing="2"
align="center">
+ <tr>
+ <td>
+ <xsl:call-template name="cat_filter"/>
+ </td>
+ <td>
+ <xsl:call-template
name="filter_district"/>
+ </td>
+ <td align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates
select="table_header_equipment"/>
+ <xsl:apply-templates select="values_equipment"/>
+
+ </table>
+ <xsl:apply-templates select="table_done"/>
+
+ </xsl:template>
+
+ <xsl:template match="table_header_equipment">
+ <xsl:variable name="sort_equipment"><xsl:value-of
select="sort_equipment"/></xsl:variable>
+ <xsl:variable name="sort_property"><xsl:value-of
select="sort_property"/></xsl:variable>
+ <xsl:variable name="sort_street_name"><xsl:value-of
select="sort_street_name"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="5%" align="right">
+ <a
href="{$sort_equipment}"><xsl:value-of select="lang_equipment"/></a>
+ </td>
+ <td class="th_text" width="30%" align="right">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_category"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <a
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
+ </td>
+
+ <td class="th_text" width="2%" align="right">
+ <xsl:value-of select="lang_building"/>
+ </td>
+ <td class="th_text" width="2%" align="right">
+ <xsl:value-of select="lang_entrance"/>
+ </td>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="lang_floor"/>
+ </td>
+ <td class="th_text" width="4%" align="right">
+ <xsl:value-of select="lang_apartment"/>
+ </td>
+ <td class="th_text" width="30%" align="right">
+ <a
href="{$sort_street_name}"><xsl:value-of select="lang_street_name"/></a>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+ <xsl:template match="values_equipment">
+ <xsl:variable name="lang_select_statustext"><xsl:value-of
select="lang_select_statustext"/></xsl:variable>
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:choose>
+ <xsl:when test="@class">
+ <xsl:value-of
select="@class"/>
+ </xsl:when>
+ <xsl:when test="position() mod
2 = 0">
+
<xsl:text>row_off</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+
<xsl:text>row_on</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+
+ <xsl:choose>
+ <xsl:when test="equipment_id">
+ <form>
+ <td valign="top">
+ <input type="hidden"
name="hidden" value="{equipment_id}"></input>
+ <input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{building_id}"></input>
+ <input type="hidden"
name="hidden" value="{entrance_id}"></input>
+ <input type="hidden"
name="hidden" value="{apartment_id}"></input>
+ <xsl:variable
name="equipment_id"><xsl:value-of select="equipment_id"/></xsl:variable>
+ <input type="button"
name="convert" value="{$equipment_id}" onClick="ExchangeProperty(this.form);"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_select_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </form>
+ <td align="right">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="category"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="property_id"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="building_id"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="entrance_id"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="floor"/>
+ </td>
+ <td align="right">
+ <xsl:value-of select="apartment_id"/>
+ </td>
+
+ <td align="right">
+ <xsl:value-of select="street"/>
</td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/templates/default invoice.xsl,1.3,1.4 lookup.xsl,1.2,1.3,
Sigurd Nes <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/templates/default cat_filter.xsl,NONE,1.1 cat_select.xsl,NONE,1.1 filter_district.xsl,NONE,1.1 select_district.xsl,NONE,1.1 user_lid_filter.xsl,NONE,1.1 user_lid_select.xsl,NONE,1.1
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.189,1.190 class.help.inc.php,1.4,1.5
- Previous by thread:
[Phpgroupware-cvs] CVS: property/templates/default cat_filter.xsl,NONE,1.1 cat_select.xsl,NONE,1.1 filter_district.xsl,NONE,1.1 select_district.xsl,NONE,1.1 user_lid_filter.xsl,NONE,1.1 user_lid_select.xsl,NONE,1.1
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.189,1.190 class.help.inc.php,1.4,1.5
- Index(es):