phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default apartment.xsl,1.1,1.2


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default apartment.xsl,1.1,1.2 location_form.xsl,1.2,1.3 location_view.xsl,1.2,1.3 lookup.xsl,1.11,1.12 property.xsl,1.5,1.6
Date: Thu, 27 Feb 2003 04:54:10 -0500

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

Modified Files:
        apartment.xsl location_form.xsl location_view.xsl lookup.xsl 
        property.xsl 
Log Message:
no message

Index: apartment.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/apartment.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** apartment.xsl       25 Feb 2003 11:29:28 -0000      1.1
--- apartment.xsl       27 Feb 2003 09:53:32 -0000      1.2
***************
*** 164,167 ****
--- 164,175 ----
  
        <xsl:template match="edit">
+               <script language="JavaScript">
+                       self.name="first_Window";
+                       function street_lookup()
+                       {
+                               Window1=window.open('<xsl:value-of 
select="street_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
+                       }               
+               </script>
+ 
                <div align="left">
                <xsl:call-template name="app_header"/>
***************
*** 228,231 ****
--- 236,261 ----
                        <tr>
                                <td>
+                                       <a href="javascript:street_lookup()" 
onMouseover="window.status='{lang_select_street_help}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="lang_street"/></a>
+                               </td>
+                               <td>
+                                       <input type="hidden" name="street_idd" 
value="{value_street_idd}"></input>
+                                       <input  size="30" type="text" 
name="street" value="{value_street}"  onClick="street_lookup();" 
readonly="readonly">
+                                       <xsl:attribute name="onMouseover">
+                                               
<xsl:text>window.status='</xsl:text>
+                                                       <xsl:value-of 
select="lang_select_street_help"/>
+                                               <xsl:text>'; return 
true;</xsl:text>
+                                       </xsl:attribute>
+                                       </input>
+                                       <input size="4" type="text" 
name="values[street_number]" value="{value_street_number}" >
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_street_num_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td>
                                        <xsl:value-of select="lang_category"/>
                                </td>
***************
*** 353,364 ****
                        <tr>
                                <td valign="top">
-                                       <xsl:value-of select="lang_name"/>
-                               </td>
-                               <td>
-                                       <xsl:value-of select="value_name"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td valign="top">
                                        <xsl:value-of select="lang_descr"/>
                                </td>
--- 383,386 ----
***************
*** 381,385 ****
                                        </td>
                                        <td colspan="2" width="50%">
!                                               <xsl:call-template 
name="attributes_form"/>                                                     
                                        </td>
                                </tr>
--- 403,407 ----
                                        </td>
                                        <td colspan="2" width="50%">
!                                               <xsl:call-template 
name="attributes_view"/>                                                     
                                        </td>
                                </tr>

Index: location_form.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/location_form.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** location_form.xsl   21 Feb 2003 10:28:58 -0000      1.2
--- location_form.xsl   27 Feb 2003 09:53:32 -0000      1.3
***************
*** 100,103 ****
--- 100,110 ----
                                                </td>
                                        </tr>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <input type="hidden" 
name="entrance_id"></input>
+                               </xsl:otherwise>
+                       </xsl:choose>
+                       <xsl:choose>
+                               <xsl:when test="address=1">
                                        <tr>
                                                <td>
***************
*** 123,127 ****
                                </xsl:when>
                                <xsl:otherwise>
-                                       <input type="hidden" 
name="entrance_id"></input>
                                        <input type="hidden" 
name="street_name"></input>
                                        <input type="hidden" 
name="street_number"></input>
--- 130,133 ----

Index: location_view.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/location_view.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** location_view.xsl   21 Feb 2003 10:28:58 -0000      1.2
--- location_view.xsl   27 Feb 2003 09:53:32 -0000      1.3
***************
*** 39,42 ****
--- 39,46 ----
                                                </td>
                                        </tr>
+                               </xsl:when>
+                       </xsl:choose>
+                       <xsl:choose>
+                               <xsl:when test="address=1">
                                        <tr>
                                                <td>

Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** lookup.xsl  15 Feb 2003 19:51:40 -0000      1.11
--- lookup.xsl  27 Feb 2003 09:53:32 -0000      1.12
***************
*** 21,24 ****
--- 21,27 ----
                                <xsl:apply-templates select="list_equipment"/>
                        </xsl:when>
+                       <xsl:when test="list_street">
+                               <xsl:apply-templates select="list_street"/>
+                       </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-templates select="list_addressbook"/>
***************
*** 118,121 ****
--- 121,224 ----
                                                                <xsl:variable 
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
                                                                <input 
type="button" name="convert" value="{$lang_select}" 
onClick="ExchangeVendor(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>
+ 
+ <!-- list street-->
+ 
+       <xsl:template match="list_street">
+               <script LANGUAGE="JavaScript">
+                       function ExchangeStreet(thisform)
+                       {
+                               opener.document.form.street_idd.value = 
thisform.elements[0].value;
+                               opener.document.form.street.value = 
thisform.elements[1].value;
+                               window.close()
+                       }
+               </script>
+ 
+               <xsl:call-template name="app_header"/>
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <tr>
+                               <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_street"/>
+                               <xsl:apply-templates select="values_street"/>
+ 
+                       <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_street">
+               <xsl:variable name="sort_id"><xsl:value-of 
select="sort_id"/></xsl:variable>
+               <xsl:variable name="sort_name"><xsl:value-of 
select="sort_name"/></xsl:variable>
+                       <tr class="th">
+                               <td class="th_text" width="5%" align="right">
+                                       <a href="{$sort_id}"><xsl:value-of 
select="lang_id"/></a>
+                               </td>
+                               <td class="th_text" width="90%" align="right">
+                                       <a href="{$sort_name}"><xsl:value-of 
select="lang_name"/></a>
+                               </td>
+                               <td class="th_text" width="5%">
+                                       <xsl:value-of select="lang_select"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+ 
+       <xsl:template match="values_street">
+               <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>
+ 
+                               <td align="right">
+                                       <xsl:value-of select="id"/>
+                               </td>
+                               <td align="right">
+                                       <xsl:value-of select="street_name"/>
+                               </td>
+                               <xsl:choose>
+                                       <xsl:when test="id">
+                                               <form>                  
+                                                       <td valign="top">
+                                                               <input 
type="hidden" name="hidden" value="{id}"></input>
+                                                               <input 
type="hidden" name="hidden" value="{street_name}"></input>
+                                                               <xsl:variable 
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
+                                                               <input 
type="button" name="convert" value="{$lang_select}" 
onClick="ExchangeStreet(this.form);" onMouseout="window.status='';return true;">
                                                                        
<xsl:attribute name="onMouseover">
                                                                                
<xsl:text>window.status='</xsl:text>

Index: property.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/property.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** property.xsl        21 Feb 2003 10:28:58 -0000      1.5
--- property.xsl        27 Feb 2003 09:53:33 -0000      1.6
***************
*** 9,12 ****
--- 9,15 ----
                                <xsl:apply-templates select="view"/>
                        </xsl:when>
+                       <xsl:when test="update_cat">
+                               <xsl:apply-templates select="update_cat"/>
+                       </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-templates select="list"/>
***************
*** 413,414 ****
--- 416,455 ----
                </div>
        </xsl:template>
+ 
+ <!-- update_cat -->
+ 
+       <xsl:template match="update_cat">
+               <xsl:call-template name="app_header"/>
+                       <table cellpadding="2" cellspacing="2" align="center">
+                               <tr>
+                                       <td align="center" 
colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
+                               </tr>
+                               <tr>
+                                       <td>
+                                               <xsl:variable 
name="update_action"><xsl:value-of select="update_action"/></xsl:variable>
+                                               <xsl:variable 
name="lang_yes"><xsl:value-of select="lang_yes"/></xsl:variable>
+                                               <form method="POST" 
action="{$update_action}">
+                                                       <input type="submit" 
class="forms" name="confirm" value="{$lang_yes}" 
onMouseout="window.status='';return true;">
+                                                               <xsl:attribute 
name="onMouseover">
+                                                                       
<xsl:text>window.status='</xsl:text>
+                                                                               
<xsl:value-of select="lang_yes_statustext"/>
+                                                                       
<xsl:text>'; return true;</xsl:text>
+                                                               </xsl:attribute>
+                                                       </input>
+                                               </form>
+                                       </td>
+                                       <td align="right">
+                                               <xsl:variable 
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
+                                               <a href="{$done_action}" 
onMouseout="window.status='';return true;">
+                                                       <xsl:attribute 
name="onMouseover">
+                                                               
<xsl:text>window.status='</xsl:text>
+                                                                       
<xsl:value-of select="lang_no_statustext"/>
+                                                               <xsl:text>'; 
return true;</xsl:text>
+                                                       </xsl:attribute>
+                                                       <xsl:value-of 
select="lang_no"/>
+                                               </a>
+                                       </td>
+                               </tr>
+                       </table>
+       </xsl:template>
+ 





reply via email to

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