[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: property/templates/default building.xsl,1.3,1.4
From: |
Sigurd Nes <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: property/templates/default building.xsl,1.3,1.4 location.xsl,1.1,1.2 lookup.xsl,1.7,1.8 |
Date: |
Mon, 10 Feb 2003 11:46:17 -0500 |
Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv28104/templates/default
Modified Files:
building.xsl location.xsl lookup.xsl
Log Message:
no message
Index: building.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/building.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** building.xsl 7 Feb 2003 11:18:44 -0000 1.3
--- building.xsl 10 Feb 2003 16:46:14 -0000 1.4
***************
*** 169,173 ****
<td>
<xsl:choose>
! <xsl:when
test="value_property_id != '' and /error!=''">
<xsl:value-of
select="value_property_id"/>
</xsl:when>
--- 169,173 ----
<td>
<xsl:choose>
! <xsl:when
test="value_property_id != '' and error=''">
<xsl:value-of
select="value_property_id"/>
</xsl:when>
Index: location.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/location.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** location.xsl 3 Feb 2003 21:50:22 -0000 1.1
--- location.xsl 10 Feb 2003 16:46:14 -0000 1.2
***************
*** 6,9 ****
--- 6,13 ----
<xsl:template match="location_data">
+ <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">
self.name="first_Window";
***************
*** 12,15 ****
--- 16,39 ----
Window1=window.open('<xsl:value-of
select="location_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");
+ }
+ function building_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="building_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ function entrance_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="entrance_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ function apartment_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="apartment_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
+ function tenant_lookup()
+ {
+ Window1=window.open('<xsl:value-of
select="tenant_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+ }
function equipment_lookup()
{
***************
*** 20,59 ****
<tr>
<td valign="top">
! <xsl:variable
name="lang_location"><xsl:value-of select="lang_location"/></xsl:variable>
! <input type="button" name="location"
value="{$lang_location}" onClick="location_lookup();"
onMouseout="window.status='';return true;">
! <xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_location_statustext"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
</td>
<td>
! <input type="text" name="property_id"
value="{value_property_id}" readonly="readonly"> </input>
! <xsl:value-of select="lang_property"/>
</td>
</tr>
<tr>
<td>
! <xsl:value-of select="lang_building"/>
</td>
<td>
! <input type="text" name="building_id"
value="{value_building_id}" readonly="readonly"> </input>
</td>
</tr>
<tr>
<td>
! <xsl:value-of select="lang_entrance"/>
</td>
<td>
! <input type="text" name="entrance_id"
value="{value_entrance_id}" readonly="readonly"> </input>
</td>
</tr>
<tr>
<td>
! <xsl:value-of select="lang_apartment"/>
</td>
<td>
! <input type="text" name="apartment_id"
value="{value_apartment_id}" readonly="readonly"> </input>
</td>
</tr>
--- 44,134 ----
<tr>
<td valign="top">
! <a href="javascript:property_lookup()"
onMouseover="window.status='{lang_select_property_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_property"/></a>
! </td>
! <td>
! <input size="5" type="text"
name="property_id" value="{value_property_id}" onClick="property_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_property_help"/>
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
+ <input size="30" type="text"
name="property_name" value="{value_property_name}"
onClick="property_lookup();" readonly="readonly">
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_select_property_help"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a href="javascript:building_lookup()"
onMouseover="window.status='{lang_select_building_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_building"/></a>
</td>
<td>
! <input size="3" type="text"
name="building_id" value="{value_building_id}" onClick="building_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_building_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
<tr>
<td>
! <a href="javascript:entrance_lookup()"
onMouseover="window.status='{lang_select_entrance_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_entrance"/></a>
</td>
<td>
! <input size="3" type="text"
name="entrance_id" value="{value_entrance_id}" onClick="entrance_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_entrance_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
<tr>
<td>
! <xsl:value-of select="lang_address"/>
</td>
<td>
! <input size="30" type="text"
name="street" value="{value_street}" onClick="entrance_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_entrance_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
! <input size="4" type="text"
name="street_number" value="{value_street_number}"
onClick="entrance_lookup();" readonly="readonly">
<xsl:attribute name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_entrance_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
!
! </td>
! </tr>
! <tr>
! <td>
! <xsl:value-of select="lang_floor"/>
! </td>
! <td>
! <input size="5" type="text"
name="floor" value="{value_floor}" onClick="apartment_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_apartment_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
<tr>
<td>
! <a href="javascript:apartment_lookup()"
onMouseover="window.status='{lang_select_apartment_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_apartment"/></a>
</td>
<td>
! <input size="4" type="text"
name="apartment_id" value="{value_apartment_id}" onClick="apartment_lookup();"
readonly="readonly">
<xsl:attribute name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_apartment_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
***************
*** 62,69 ****
<tr>
<td>
! <xsl:value-of
select="lang_tenant"/>
</td>
<td>
! <input type="text"
name="tenant_id" value="{value_tenant_id}" readonly="readonly"> </input>
</td>
</tr>
--- 137,163 ----
<tr>
<td>
! <a
href="javascript:tenant_lookup()"
onMouseover="window.status='{lang_select_tenant_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_tenant"/></a>
</td>
<td>
! <input type="hidden"
name="tenant_id"></input>
! <input type="text"
name="tenant_name" value="{value_tenant_name}" onClick="tenant_lookup();"
readonly="readonly">
<xsl:attribute name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_tenant_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
! </td>
! </tr>
! <tr>
! <td>
! <xsl:value-of
select="lang_tenant_phone"/>
! </td>
! <td>
! <input type="text"
name="tenant_phone" value="{value_tenant_phone" onClick="tenant_lookup();"
readonly="readonly"> <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_tenant_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
***************
*** 71,74 ****
--- 165,169 ----
<xsl:otherwise>
<input type="hidden"
name="tenant_id"></input>
+ <input type="hidden"
name="tenant_name"></input>
</xsl:otherwise>
</xsl:choose>
***************
*** 77,91 ****
<tr>
<td valign="top">
! <xsl:variable
name="lang_equipment"><xsl:value-of select="lang_equipment"/></xsl:variable>
! <input type="button"
name="equipment" value="{$lang_equipment}" onClick="equipment_lookup();"
onMouseout="window.status='';return true;">
! <xsl:attribute
name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
!
<xsl:value-of select="lang_select_location_statustext"/>
! <xsl:text>';
return true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
<td>
! <input type="text"
name="equipment_id" value="{value_equipment_id}" readonly="readonly"> </input>
</td>
</tr>
--- 172,184 ----
<tr>
<td valign="top">
! <a
href="javascript:property_lookup()"
onMouseover="window.status='{lang_select_equipment_help}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_equipment"/></a>
</td>
<td>
! <input type="text"
name="equipment_id" value="{value_equipment_id}" onClick="equipment_lookup();"
readonly="readonly">
<xsl:attribute name="onMouseover">
!
<xsl:text>window.status='</xsl:text>
! <xsl:value-of
select="lang_select_equipment_help"/>
! <xsl:text>'; return
true;</xsl:text>
! </xsl:attribute>
! </input>
</td>
</tr>
Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** lookup.xsl 3 Feb 2003 21:50:22 -0000 1.7
--- lookup.xsl 10 Feb 2003 16:46:14 -0000 1.8
***************
*** 9,12 ****
--- 9,21 ----
<xsl:apply-templates select="list_building"/>
</xsl:when>
+ <xsl:when test="list_entrance">
+ <xsl:apply-templates select="list_entrance"/>
+ </xsl:when>
+ <xsl:when test="list_apartment">
+ <xsl:apply-templates select="list_apartment"/>
+ </xsl:when>
+ <xsl:when test="list_tenant">
+ <xsl:apply-templates select="list_tenant"/>
+ </xsl:when>
<xsl:when test="list_equipment">
<xsl:apply-templates select="list_equipment"/>
***************
*** 122,180 ****
</xsl:template>
!
<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 = '';
! opener.document.form.equipment_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 = '';
! opener.document.form.equipment_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 = '';
! opener.document.form.equipment_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 = '';
! opener.document.form.equipment_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[3].value;
! opener.document.form.tenant_id.value =
thisform.elements[4].value;
! opener.document.form.equipment_id.value = '';
window.close()
}
</script>
-
<xsl:call-template name="app_header"/>
<table width="95%" cellpadding="2" cellspacing="2"
align="center">
--- 131,154 ----
</xsl:template>
! <!-- list_property-->
<xsl:template match="list_property">
<script LANGUAGE="JavaScript">
! function Exchange(thisform)
{
! opener.document.form.property_id.value
= thisform.elements[0].value;
! opener.document.form.property_name.value
= thisform.elements[1].value;
! opener.document.form.building_id.value
= '';
! opener.document.form.entrance_id.value
= '';
! opener.document.form.floor.value
= '';
! opener.document.form.apartment_id.value
= '';
! opener.document.form.street.value
= '';
! opener.document.form.street_number.value
= '';
! opener.document.form.tenant_id.value
= '';
! opener.document.form.tenant_name.value
= '';
! opener.document.form.tenant_phone.value
= '';
! opener.document.form.equipment_id.value
= '';
window.close()
}
</script>
<xsl:call-template name="app_header"/>
<table width="95%" cellpadding="2" cellspacing="2"
align="center">
***************
*** 199,203 ****
<xsl:apply-templates
select="table_header_property"/>
<xsl:apply-templates select="values_property"/>
-
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
--- 173,176 ----
***************
*** 215,246 ****
<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>
! <td class="th_text" width="5%" align="right">
! <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>
--- 188,200 ----
<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="20%" align="right">
<a
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
</td>
! <td class="th_text" width="70%" align="right">
! <xsl:value-of
select="lang_property_name"/>
</td>
! <td class="th_text" width="10%" align="right">
! <xsl:value-of select="//lang_select"/>
</td>
</tr>
***************
*** 264,276 ****
</xsl:choose>
</xsl:attribute>
-
-
<xsl:choose>
<xsl:when test="property_id">
- <form>
<td valign="top">
<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,235 ----
</xsl:choose>
</xsl:attribute>
<xsl:choose>
<xsl:when test="property_id">
<td valign="top">
+ <xsl:value-of
select="property_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of
select="property_name"/>
+ </td>
+ <form>
+ <td align="left">
<input type="hidden"
name="hidden" value="{property_id}"></input>
! <input type="hidden"
name="hidden" value="{property_name}"></input>
! <xsl:variable
name="lang_select"><xsl:value-of select="//lang_select"/></xsl:variable>
! <input type="button"
name="convert" value="{$lang_select}" onClick="Exchange(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 278,291 ****
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
! <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>
--- 237,358 ----
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
!
! <!-- list_building-->
!
! <xsl:template match="list_building">
! <script LANGUAGE="JavaScript">
! function Exchange(thisform)
! {
! opener.document.form.property_id.value
= thisform.elements[0].value;
! opener.document.form.property_name.value
= thisform.elements[1].value;
! opener.document.form.building_id.value
= thisform.elements[2].value;
! opener.document.form.entrance_id.value
= '';
! opener.document.form.floor.value
= '';
! opener.document.form.apartment_id.value
= '';
! opener.document.form.street.value
= '';
! opener.document.form.street_number.value
= '';
! opener.document.form.tenant_id.value
= '';
! opener.document.form.tenant_name.value
= '';
! opener.document.form.tenant_phone.value
= '';
! opener.document.form.equipment_id.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_building"/>
! <xsl:apply-templates select="values_building"/>
! </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"/>
!
! </xsl:template>
!
! <xsl:template match="table_header_building">
! <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="20%" align="right">
! <a
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
! </td>
! <td class="th_text" width="50%" align="right">
! <xsl:value-of
select="lang_property_name"/>
! </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_select"/>
! </td>
! </tr>
! </xsl:template>
!
!
! <xsl:template match="values_building">
! <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="property_id">
! <td valign="top">
! <xsl:value-of
select="property_id"/>
! </td>
<td valign="top">
+ <xsl:value-of
select="property_name"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of
select="building_id"/>
+ </td>
+ <form>
+ <td align="left">
<input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{property_name}"></input>
<input type="hidden"
name="hidden" value="{building_id}"></input>
! <xsl:variable
name="lang_select"><xsl:value-of select="//lang_select"/></xsl:variable>
! <input type="button"
name="convert" value="{$lang_select}" onClick="Exchange(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 293,306 ****
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
! <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>
--- 360,496 ----
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
! </xsl:when>
! </xsl:choose>
! </tr>
! </xsl:template>
!
!
! <!-- list_entrance-->
!
! <xsl:template match="list_entrance">
! <script LANGUAGE="JavaScript">
! function Exchange(thisform)
! {
! opener.document.form.property_id.value
= thisform.elements[0].value;
! opener.document.form.property_name.value
= thisform.elements[1].value;
! opener.document.form.building_id.value
= thisform.elements[2].value;
! opener.document.form.entrance_id.value
= thisform.elements[3].value;
! opener.document.form.floor.value
= '';
! opener.document.form.apartment_id.value
= '';
! opener.document.form.street.value
= thisform.elements[4].value;
! opener.document.form.street_number.value
= thisform.elements[5].value;
! opener.document.form.tenant_id.value
= '';
! opener.document.form.tenant_name.value
= '';
! opener.document.form.tenant_phone.value
= '';
! opener.document.form.equipment_id.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_entrance"/>
! <xsl:apply-templates select="values_entrance"/>
! </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"/>
!
! </xsl:template>
!
! <xsl:template match="table_header_entrance">
! <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_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="30%" align="left">
! <a
href="{$sort_street_name}"><xsl:value-of select="lang_street_name"/></a>
! </td>
! <td class="th_text" width="5%" align="right">
! <xsl:value-of select="lang_street_num"/>
! </td>
! <td class="th_text" width="5%" align="right">
! <xsl:value-of select="//lang_select"/>
! </td>
! </tr>
! </xsl:template>
!
!
! <xsl:template match="values_entrance">
! <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="property_id">
! <td valign="top">
! <xsl:value-of
select="property_id"/>
! </td>
! <td valign="top">
! <xsl:value-of
select="building_id"/>
! </td>
<td valign="top">
+ <xsl:value-of
select="entrance_id"/>
+ </td>
+ <td align="left">
+ <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="{property_name}"></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="{street_name}"></input>
! <input type="hidden"
name="hidden" value="{street_number}"></input>
! <xsl:variable
name="lang_select"><xsl:value-of select="//lang_select"/></xsl:variable>
! <input type="button"
name="convert" value="{$lang_select}" onClick="Exchange(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 308,328 ****
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
<td align="right">
! <xsl:value-of select="floor"/>
</td>
! <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>
--- 498,653 ----
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
+ <!-- list_apartment-->
+ <xsl:template match="list_apartment">
+ <script LANGUAGE="JavaScript">
+ function Exchange(thisform)
+ {
+ opener.document.form.property_id.value
= thisform.elements[0].value;
+ opener.document.form.property_name.value
= thisform.elements[1].value;
+ opener.document.form.building_id.value
= thisform.elements[2].value;
+ opener.document.form.entrance_id.value
= thisform.elements[3].value;
+ opener.document.form.floor.value
= thisform.elements[4].value;
+ opener.document.form.apartment_id.value
= thisform.elements[5].value;
+ opener.document.form.street.value
= thisform.elements[6].value;
+ opener.document.form.street_number.value
= thisform.elements[7].value;
+ opener.document.form.tenant_id.value
= '';
+ opener.document.form.tenant_name.value
= '';
+ opener.document.form.tenant_phone.value
= '';
+ opener.document.form.equipment_id.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_apartment"/>
+ <xsl:apply-templates select="values_apartment"/>
+ </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"/>
+
+ </xsl:template>
! <xsl:template match="table_header_apartment">
! <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_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="left">
! <a
href="{$sort_street_name}"><xsl:value-of select="lang_street_name"/></a>
! </td>
! <td class="th_text" width="5%" align="right">
! <xsl:value-of select="lang_street_num"/>
! </td>
! <td class="th_text" width="5%" align="right">
! <xsl:value-of select="//lang_select"/>
! </td>
! </tr>
! </xsl:template>
!
!
! <xsl:template match="values_apartment">
! <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="property_id">
! <td valign="top">
! <xsl:value-of
select="property_id"/>
! </td>
<td valign="top">
+ <xsl:value-of
select="building_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of
select="entrance_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of select="floor"/>
+ </td>
+ <td align="right">
+ <xsl:value-of
select="apartment_id"/>
+ </td>
+ <td align="right">
+ <xsl:value-of
select="category"/>
+ </td>
+ <td align="left">
+ <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="{property_name}"></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="{floor}"></input>
<input type="hidden"
name="hidden" value="{apartment_id}"></input>
! <input type="hidden"
name="hidden" value="{street_name}"></input>
! <input type="hidden"
name="hidden" value="{street_number}"></input>
! <xsl:variable
name="lang_select"><xsl:value-of select="//lang_select"/></xsl:variable>
! <input type="button"
name="select" value="{$lang_select}" onClick="Exchange(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 330,358 ****
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
! <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:ExchangeTenant(this.form);"
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>
--- 655,825 ----
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
!
! <!-- list_tenant -->
!
! <xsl:template match="list_tenant">
! <script LANGUAGE="JavaScript">
! function Exchange(thisform)
! {
! opener.document.form.property_id.value
= thisform.elements[0].value;
! opener.document.form.property_name.value
= thisform.elements[1].value;
! opener.document.form.building_id.value
= thisform.elements[2].value;
! opener.document.form.entrance_id.value
= thisform.elements[3].value;
! opener.document.form.floor.value
= thisform.elements[4].value;
! opener.document.form.apartment_id.value
= thisform.elements[5].value;
! opener.document.form.street.value
= thisform.elements[6].value;
! opener.document.form.street_number.value
= thisform.elements[7].value;
! opener.document.form.tenant_id.value
= thisform.elements[8].value;
! opener.document.form.tenant_name.value
= thisform.elements[9].value;
! opener.document.form.tenant_phone.value
= thisform.elements[10].value;
! opener.document.form.equipment_id.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_tenant"/>
+ <xsl:apply-templates select="values_tenant"/>
+
+ </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"/>
+
+ </xsl:template>
+
+ <xsl:template match="table_header_tenant">
+ <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>
+ <td class="th_text" width="5%" align="right">
+ <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>
+ <td class="th_text" width="5%" align="right">
+ <xsl:value-of select="//lang_select"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+ <xsl:template match="values_tenant">
+ <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="property_id">
+ <td valign="top">
+ <xsl:value-of
select="property_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of
select="building_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of
select="entrance_id"/>
+ </td>
+ <td valign="top">
+ <xsl:value-of select="floor"/>
+ </td>
+ <td align="right">
+ <xsl:value-of
select="apartment_id"/>
+ </td>
+ <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>
+ <td align="right">
+ <xsl:value-of
select="tenant_name"/>
+ </td>
<form>
<td align="left">
<input type="hidden"
name="hidden" value="{property_id}"></input>
+ <input type="hidden"
name="hidden" value="{property_name}"></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="{floor}"></input>
<input type="hidden"
name="hidden" value="{apartment_id}"></input>
+ <input type="hidden"
name="hidden" value="{street_name}"></input>
+ <input type="hidden"
name="hidden" value="{street_number}"></input>
<input type="hidden"
name="hidden" value="{tenant_id}"></input>
! <input type="hidden"
name="hidden" value="{tenant_name}"></input>
! <input type="hidden"
name="hidden" value="{tenant_phone}"></input>
! <xsl:variable
name="lang_select"><xsl:value-of select="//lang_select"/></xsl:variable>
! <input type="button"
name="select" value="{$lang_select}" onClick="Exchange(this.form);"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
***************
*** 360,367 ****
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input> -->
</td>
</form>
-
</xsl:when>
</xsl:choose>
--- 827,833 ----
<xsl:text>';
return true;</xsl:text>
</xsl:attribute>
! </input>
</td>
</form>
</xsl:when>
</xsl:choose>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: property/templates/default building.xsl,1.3,1.4 location.xsl,1.1,1.2 lookup.xsl,1.7,1.8,
Sigurd Nes <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: property/inc class.bocommon.inc.php,1.9,1.10 class.bolookup.inc.php,1.2,1.3 class.socommon.inc.php,1.5,1.6 class.solookup.inc.php,1.4,1.5class.sostandard_entity.inc.php,1.3,1.4 class.uibuilding.inc.php,1.4,1.5 class.uilookup.inc.php,1.5,1.6 class.uiproperty.inc.php,1.5,1.6 class.uitts.inc.php,1.5,1.6 hook_admin.inc.php,1.12,1.13
- Next by Date:
[Phpgroupware-cvs] CVS: property/inc class.socommon.inc.php,1.6,1.7 class.solookup.inc.php,1.5,1.6 class.sostandard_2.inc.php,1.2,1.3 class.uistandard_2.inc.php,1.2,1.3 hook_admin.inc.php,1.13,1.14
- Previous by thread:
[Phpgroupware-cvs] CVS: property/inc class.bocommon.inc.php,1.9,1.10 class.bolookup.inc.php,1.2,1.3 class.socommon.inc.php,1.5,1.6 class.solookup.inc.php,1.4,1.5class.sostandard_entity.inc.php,1.3,1.4 class.uibuilding.inc.php,1.4,1.5 class.uilookup.inc.php,1.5,1.6 class.uiproperty.inc.php,1.5,1.6 class.uitts.inc.php,1.5,1.6 hook_admin.inc.php,1.12,1.13
- Next by thread:
[Phpgroupware-cvs] CVS: property/inc class.socommon.inc.php,1.6,1.7 class.solookup.inc.php,1.5,1.6 class.sostandard_2.inc.php,1.2,1.3 class.uistandard_2.inc.php,1.2,1.3 hook_admin.inc.php,1.13,1.14
- Index(es):