phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default investment.xsl,1.3,1.


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default investment.xsl,1.3,1.4 lookup.xsl,1.4,1.5 nextmatchs.xsl,1.1,1.2
Date: Sun, 26 Jan 2003 07:27:52 -0500

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

Modified Files:
        investment.xsl lookup.xsl nextmatchs.xsl 
Log Message:
no message

Index: investment.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/investment.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** investment.xsl      22 Jan 2003 20:16:36 -0000      1.3
--- investment.xsl      26 Jan 2003 12:27:49 -0000      1.4
***************
*** 6,14 ****
                                <xsl:apply-templates select="add"/>
                        </xsl:when>
!                       <xsl:when test="edit">
!                               <xsl:apply-templates select="edit"/>
!                       </xsl:when>
!                       <xsl:when test="view">
!                               <xsl:apply-templates select="view"/>
                        </xsl:when>
                        <xsl:otherwise>
--- 6,11 ----
                                <xsl:apply-templates select="add"/>
                        </xsl:when>
!                       <xsl:when test="history">
!                               <xsl:apply-templates select="history"/>
                        </xsl:when>
                        <xsl:otherwise>
***************
*** 32,37 ****
                                </td>
                        </tr>
!                       </xsl:for-each>
!                       <xsl:for-each select="message" >
                        <tr>
                                <td class="th_text" colspan="2" align="center">
--- 29,34 ----
                                </td>
                        </tr>
!               </xsl:for-each>
!               <xsl:for-each select="message" >
                        <tr>
                                <td class="th_text" colspan="2" align="center">
***************
*** 64,68 ****
                </table>
                </form>
!               <form method="post" name="form" action="{$form_action}">
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                                <xsl:apply-templates select="table_header"/>
--- 61,66 ----
                </table>
                </form>
!               <xsl:variable name="update_action"><xsl:value-of 
select="update_action"/></xsl:variable>
!               <form method="post" name="form" action="{$update_action}">
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                                <xsl:apply-templates select="table_header"/>
***************
*** 271,275 ****
                                </td>
                                <td height="50">
-                                       <xsl:variable 
name="update_action"><xsl:value-of select="update_action"/></xsl:variable>
                                        <xsl:variable 
name="lang_update"><xsl:value-of select="lang_update"/></xsl:variable>
                                                <input type="submit" 
name="submit_update" value="{$lang_update}" onMouseout="window.status='';return 
true;">
--- 269,272 ----
***************
*** 301,400 ****
        </xsl:template>
  
  
  
! <!-- add / edit -->
  
!       <xsl:template match="edit">
                <xsl:call-template name="app_header"/>
!               <table cellpadding="2" cellspacing="2" width="100%" 
align="center">
                        <tr>
!                               <td colspan="2" align="center">
!                                       <xsl:value-of select="message"/>
                                </td>
                        </tr>
!                       <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!                       <form method="post" action="{$form_action}">
                        <tr>
!                               <td valign="top">
!                                       <xsl:value-of select="lang_entity_id"/>
                                </td>
!                               <td>
                                        <xsl:choose>
!                                               <xsl:when test="value_entity_id 
!= ''">
!                                                       <xsl:value-of 
select="value_entity_id"/>
                                                </xsl:when>
                                                <xsl:otherwise>
!                                                       <input type="text" 
name="values[entity_id]" value="{value_entity_id}" 
onMouseout="window.status='';return true;">
!                                                               <xsl:attribute 
name="onMouseover">
!                                                                       
<xsl:text>window.status='</xsl:text>
!                                                                               
<xsl:value-of select="lang_entity_id_statustext"/>
!                                                                       
<xsl:text>'; return true;</xsl:text>
!                                                               </xsl:attribute>
!                                                       </input>
                                                </xsl:otherwise>
!                                       </xsl:choose>   
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of 
select="lang_investment_id"/>
                                </td>
                                <td>
!                                       <xsl:choose>
!                                               <xsl:when 
test="value_investment_id != ''">
!                                                       <xsl:value-of 
select="value_investment_id"/>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <input type="text" 
name="values[investment_id]" value="{value_investment_id}" 
onMouseout="window.status='';return true;">
!                                                               <xsl:attribute 
name="onMouseover">
!                                                                       
<xsl:text>window.status='</xsl:text>
!                                                                               
<xsl:value-of select="lang_investment_id_statustext"/>
!                                                                       
<xsl:text>'; return true;</xsl:text>
!                                                               </xsl:attribute>
!                                                       </input>
!                                               </xsl:otherwise>
!                                       </xsl:choose>   
                                </td>
                        </tr>
                        <tr>
                                <td>
!                                       <xsl:value-of select="lang_category"/>
                                </td>
                                <td>
!                                       <xsl:call-template name="cat_select"/>
                                </td>
                        </tr>
                        <tr>
                                <td>
!                                       <xsl:value-of 
select="lang_part_of_town"/>
                                </td>
                                <td>
!                                       <xsl:call-template 
name="select_part_of_town"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_name"/>
                                </td>
                                <td>
!                                       <input type="text" name="values[name]" 
value="{value_name}" onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_name_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                        </input>
! 
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of 
select="lang_generaladdress"/>
                                </td>
                                <td>
!                                       <input type="text" 
name="values[generaladdress]" value="{value_generaladdress}" 
onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_generaladdress_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
--- 298,630 ----
        </xsl:template>
  
+       <xsl:template match="table_done">
+                       <tr>
+                               <td height="50">
+                                       <xsl:variable 
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
+                                       <xsl:variable 
name="lang_done"><xsl:value-of select="lang_done"/></xsl:variable>
+                                       <form method="post" 
action="{$done_action}">
+                                               <input type="submit" 
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
+                                                       <xsl:attribute 
name="onMouseover">
+                                                               
<xsl:text>window.status='</xsl:text>
+                                                                       
<xsl:value-of select="lang_done_statustext"/>
+                                                               <xsl:text>'; 
return true;</xsl:text>
+                                                       </xsl:attribute>
+                                               </input>
+                                       </form>
+                               </td>
+                       </tr>
+       </xsl:template>
  
  
! <!-- History -->
  
!       <xsl:template match="history">
                <xsl:call-template name="app_header"/>
!               <xsl:call-template name="menu"/> 
!               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!               <xsl:for-each select="error" >
                        <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
                                </td>
                        </tr>
!               </xsl:for-each>
!               <xsl:for-each select="message" >
                        <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
                                </td>
!                       </tr>
!               </xsl:for-each>
!                       <tr>
!                               <td colspan="3" width="100%">
!                                       <xsl:call-template name="nextmatchs"/>
!                               </td>
!                       </tr>
!               </table>
! 
!               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                       <xsl:choose>
!                               <xsl:when test="entity_type!=''">
!                                       <tr>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="lang_entity_type"/>
!                                               </td>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="entity_type"/>
!                                               </td>
!                                               <td width="50%">
!                                               </td>
!                                       </tr>
!                               </xsl:when>
!                       </xsl:choose>
!                       <xsl:choose>
!                               <xsl:when test="entity_id!=''">
!                                       <tr>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="lang_entity_id"/>
!                                               </td>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="entity_id"/>
!                                               </td>
!                                               <td width="50%">
!                                               </td>
!                                       </tr>
!                               </xsl:when>
!                       </xsl:choose>
!                       <xsl:choose>
!                               <xsl:when test="investment_id!=''">
!                                       <tr>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="lang_investment_id"/>
!                                               </td>
!                                               <td width="25%" class="th_text" 
align="left">
!                                                       <xsl:value-of 
select="investment_id"/>
!                                               </td>
!                                               <td width="50%">
!                                               </td>
!                                       </tr>
!                               </xsl:when>
!                       </xsl:choose>
! 
!               </table>
! 
!               <xsl:variable name="update_action"><xsl:value-of 
select="update_action"/></xsl:variable>
!               <form method="post" name="form" action="{$update_action}">
!               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                               <input type="hidden" name="values[update][0]" 
value="0"></input>
!                               <input type="hidden" 
name="values[entity_id][0]" value="{entity_id}"></input>
!                               <input type="hidden" 
name="values[investment_id][0]" value="{investment_id}"></input>
!                               <xsl:apply-templates 
select="table_header_history"/>
!                               <xsl:apply-templates select="values_history"/>
!               
!               </table>
!               <table width="50%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:apply-templates select="table_update"/>
!               </table>
!               </form>
!               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:apply-templates select="table_done"/>
!               </table>
!       </xsl:template>
! 
!       <xsl:template match="table_header_history">
!                       <tr class="th">
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of 
select="lang_initial_value"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_value"/>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of select="lang_last_index"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_write_off"/>
!                               </td>
!                               <td class="th_text" width="10%" align="center">
!                                       <xsl:value-of select="lang_date"/>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of 
select="lang_index_count"/>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of select="lang_delete"/>
!                               </td>
!                       </tr>
!       </xsl:template>
! 
!       <xsl:template match="values_history">
!               <xsl:variable name="lang_delete_statustext"><xsl:value-of 
select="lang_delete_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>
! 
!                               <td align="right">
!                                       <xsl:value-of select="initial_value"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="value"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="this_index"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="this_write_off"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="date"/>
!                               </td>
!                               <td align="center">
!                                       <xsl:value-of select="index_count"/>
!                               </td>
!                               <xsl:choose>
!                                       <xsl:when test="is_admin=1 and 
current_index=1">
!                                               <td align="center">
!                                                       <xsl:variable 
name="link_delete"><xsl:value-of select="link_delete"/></xsl:variable>
!                                                       <a 
href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="lang_delete"/></a>
!                                                       <input type="hidden" 
name="values[initial_value][0]" value="{initial_value_ex}"></input>
!                                                       <input type="hidden" 
name="values[value][0]" value="{value_ex}"></input>
!                                               </td>
!                                       </xsl:when>
!                                       <xsl:otherwise>
!                                               <td>
!                                                       <xsl:text></xsl:text>
!                                               </td>
!                                       </xsl:otherwise>
!                               </xsl:choose>                                   
        
!                       </tr>
!       </xsl:template>
! 
! 
! 
! 
! 
! <!-- add -->
! 
!       <xsl:template match="add">
!               <script language="JavaScript">
!                       self.name="first_Window";
!                       function location_lookup()
!                       {
!                               Window1=window.open('<xsl:value-of 
select="location_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
!                       }               
!                       function equipment_lookup()
!                       {
!                               Window1=window.open('<xsl:value-of 
select="equipment_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
!                       }               
!               </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>
! 
!               <div align="left">
!               <xsl:call-template name="app_header"/>
!               <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
!                       <xsl:for-each select="error" >
!                       <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
!                               </td>
!                       </tr>
!                       </xsl:for-each>
!                       <xsl:for-each select="message" >
!                       <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
                                </td>
                        </tr>
+                       </xsl:for-each> 
+                       <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
+                       <form method="post" action="{$form_action}" name="form">
                        <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>
+                                       <input type="hidden" 
name="tenant_id"></input>
+ 
                        <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>
!                       <tr>
!                               <td>
!                                       <xsl:value-of 
select="lang_write_off_period"/>
                                </td>
                                <td>
!                                       <xsl:call-template name="cat_select"/>
!                                       <xsl:text>  </xsl:text>
!                                       <xsl:value-of select="lang_new"/>
!                                       
!                                       <input type="text" 
name="values[new_period]" value="{value_new_period}" size="3" 
onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_new_period_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                        </input>
!                                       
!                               </td>
!                       </tr>
!                       <tr>
!                               <td>
!                                       <xsl:value-of select="lang_type"/>
!                               </td>
!                               <td>
!                                       <xsl:call-template 
name="filter_select"/>
!                                       
                                </td>
                        </tr>
+                       
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_amount"/>
                                </td>
                                <td>
!                                       <input type="text" 
name="values[initial_value]" value="{value_inital_value}" 
onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_value_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
***************
*** 403,447 ****
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of 
select="lang_generellinfo"/>
                                </td>
                                <td>
!                                       <textarea cols="60" rows="10" 
name="values[generellinfo]" wrap="virtual" onMouseout="window.status='';return 
true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_name_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
!                                               <xsl:value-of 
select="value_generellinfo"/>             
!                                       </textarea>
! 
                                </td>
                        </tr>
                        <tr>
!                               <td>
!                                       <xsl:value-of select="lang_access"/>
                                </td>
                                <td>
!                                       <xsl:choose>
!                                                       <xsl:when 
test="value_access = 'private'">
!                                                               <input 
type="checkbox" name="values[access]" value="True" checked="checked" 
onMouseout="window.status='';return true;">
!                                                                       
<xsl:attribute name="onMouseover">
!                                                                               
<xsl:text>window.status='</xsl:text>
!                                                                               
        <xsl:value-of select="lang_access_on_statustext"/>
!                                                                               
<xsl:text>'; return true;</xsl:text>
!                                                                       
</xsl:attribute>
!                                                               </input>
!                                                       </xsl:when>
!                                                       <xsl:otherwise>
!                                                               <input 
type="checkbox" name="values[access]" value="True" 
onMouseout="window.status='';return true;">
!                                                                       
<xsl:attribute name="onMouseover">
!                                                                               
<xsl:text>window.status='</xsl:text>
!                                                                               
        <xsl:value-of select="lang_access_off_statustext"/>
!                                                                               
<xsl:text>'; return true;</xsl:text>
!                                                                       
</xsl:attribute>
!                                                               </input>
!                                                       </xsl:otherwise>
!                                       </xsl:choose>
                                </td>
                        </tr>
--- 633,674 ----
                                </td>
                        </tr>
+ 
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_date"/>
                                </td>
                                <td>
! 
!                                       <input type="text" name="date" 
value="{value_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_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_date"><xsl:value-of 
select="link_calendar_date"/></xsl:variable>
!               
!                                       <a href="javascript:doNothing()" 
onClick="{$link_calendar_date}">
!                                       <img src="{$calendar_gif}" border="2" 
width="12" height="12"/></a>
!                                       <xsl:value-of 
select="lang_popup_calendar"/>
!                       
                                </td>
                        </tr>
+ 
                        <tr>
!                               <td valign="top">
!                                       <xsl:value-of select="lang_descr"/>
                                </td>
                                <td>
!                                       <input type="text" name="values[descr]" 
value="{value_descr}" onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_name_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </input>
! 
                                </td>
                        </tr>
***************
*** 475,478 ****
--- 702,706 ----
                        </tr>
                </table>
+               </div>
        </xsl:template>
  

Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** lookup.xsl  20 Jan 2003 10:35:28 -0000      1.4
--- lookup.xsl  26 Jan 2003 12:27:49 -0000      1.5
***************
*** 368,414 ****
                        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>
  
--- 368,379 ----
                        function Exchangeequipment(thisform)
                        {
!                               opener.document.form.equipment_id.value = 
thisform.elements[0].value;
!                               opener.document.form.property_id.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.apartment_id.value = 
thisform.elements[4].value;
                                opener.document.form.tenant_id.value = '';
                                window.close()
                        }
                </script>
  
***************
*** 506,510 ****
                                                <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>
--- 471,475 ----
                                                <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="Exchangeequipment(this.form);" 
onMouseout="window.status='';return true;">
                                                        <xsl:attribute 
name="onMouseover">
                                                                
<xsl:text>window.status='</xsl:text>

Index: nextmatchs.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/nextmatchs.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** nextmatchs.xsl      11 Dec 2002 19:31:21 -0000      1.1
--- nextmatchs.xsl      26 Jan 2003 12:27:49 -0000      1.2
***************
*** 135,141 ****
                                <xsl:when test="$allow_all_rows=1">
                                        <xsl:choose>
!                                               <xsl:when 
test="number($all_records) =1">
                                                <xsl:variable 
name="all"><xsl:value-of select="link_url"/>&amp;start=0</xsl:variable>
                                                        <td width="25" 
align="right">
                                                                <a 
href="{$all}"><img src="{$img_path}/down.gif" border="2" width="12" 
height="12"/></a>
                                                        </td>
--- 135,143 ----
                                <xsl:when test="$allow_all_rows=1">
                                        <xsl:choose>
!                                               <xsl:when test="allrows =1">
                                                <xsl:variable 
name="all"><xsl:value-of select="link_url"/>&amp;start=0</xsl:variable>
                                                        <td width="25" 
align="right">
+                                                                               
                <xsl:value-of select="lang_delete"/>
+ 
                                                                <a 
href="{$all}"><img src="{$img_path}/down.gif" border="2" width="12" 
height="12"/></a>
                                                        </td>





reply via email to

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