phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/default lookup.xsl, 1.24, 1.25 adm


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] property/templates/default lookup.xsl, 1.24, 1.25 admin_entity.xsl, 1.6, 1.7
Date: Mon, 03 Nov 2003 18:01:16 +0000

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

Modified Files:
        lookup.xsl admin_entity.xsl 
Log Message:
no message

Index: lookup.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/lookup.xsl,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** lookup.xsl  29 Oct 2003 20:46:15 -0000      1.24
--- lookup.xsl  3 Nov 2003 18:01:13 -0000       1.25
***************
*** 9,12 ****
--- 9,15 ----
                                <xsl:apply-templates select="list_equipment"/>
                        </xsl:when>
+                       <xsl:when test="list_entity">
+                               <xsl:apply-templates select="list_entity"/>
+                       </xsl:when>
                        <xsl:when test="list_street">
                                <xsl:apply-templates select="list_street"/>
***************
*** 600,603 ****
--- 603,727 ----
        <xsl:template name="list_values_equipment">
                <xsl:for-each select="values_equipment" >
+                       <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>
+                               <form>
+                               <xsl:choose>
+                                       <xsl:when test="//lookup=1">
+                                               <td>
+                                                       <xsl:for-each 
select="hidden" >
+                                                                <input 
type="hidden" name="{name}" value="{value}"></input> 
+                                                       </xsl:for-each>
+                                               </td>
+                                       </xsl:when>
+                               </xsl:choose>
+                               <xsl:for-each select="row" >
+                                       <xsl:choose>
+                                               <xsl:when test="link">
+                                                       <td class="small_text" 
align="center">
+                                                               <a 
href="{link}" onMouseover="window.status='{statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
+                                                       </td>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <td class="small_text" 
align="left">
+                                                               <xsl:value-of 
select="value"/>                                  
+                                                               <xsl:choose>
+                                                                       
<xsl:when test="//lookup=1">
+                                                                               
<xsl:if test="position() = last()">
+                                                                               
        <td class="small_text" align="center">
+                                                                               
                <input type="button" name="select" value="{//lang_select}" 
onClick="{//exchange_values}" 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>
+                                                                               
+                                                                               
</xsl:if>
+                                                                       
</xsl:when>
+                                                               </xsl:choose>
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:for-each>
+                               </form>
+                       </tr>
+               </xsl:for-each>
+       </xsl:template>
+ 
+ 
+       <xsl:template match="list_entity">
+               <xsl:choose>
+                       <xsl:when test="//lookup=1">
+                               <script LANGUAGE="JavaScript">
+                                       function Exchange_values(thisform)
+                                       {
+                                               <xsl:value-of 
select="function_exchange_values"/>
+                                       }
+                               </script>
+                       </xsl:when>
+               </xsl:choose>
+               
+               <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">
+                       <tr class="th">
+                               <xsl:choose>
+                                       <xsl:when test="//lookup=1">
+                                               <td>
+                                       <!--    make room for hidden fields  -->
+                                               </td>
+                                       </xsl:when>
+                               </xsl:choose>
+                               <xsl:for-each select="table_header_entity" >
+                                       <td class="th_text" width="{with}" 
align="{align}">
+                                               <xsl:choose>
+                                                       <xsl:when 
test="sort_link!=''">
+                                                               <a 
href="{sort}" onMouseover="window.status='{header}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="header"/></a>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <xsl:value-of 
select="header"/>                                 
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                       </td>
+                               </xsl:for-each>
+                       </tr>
+                               <xsl:call-template name="list_values_entity"/>
+ 
+               </table>
+                               <xsl:apply-templates select="table_done"/>
+               
+       </xsl:template>
+ 
+       <xsl:template name="list_values_entity">
+               <xsl:for-each select="values_entity" >
                        <tr>
                        <xsl:attribute name="class">

Index: admin_entity.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/admin_entity.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** admin_entity.xsl    26 Oct 2003 20:33:01 -0000      1.6
--- admin_entity.xsl    3 Nov 2003 18:01:14 -0000       1.7
***************
*** 512,515 ****
--- 512,529 ----
  
                        <xsl:choose>
+                               <xsl:when test="value_location_form = 1">
+                                       <tr>
+                                               <td valign="top">
+                                                       <xsl:value-of 
select="lang_include_in_location_form"/>
+                                               </td>
+                                               <td>
+                                                       <xsl:call-template 
name="include_list"/>
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+ 
+ 
+                       <xsl:choose>
                                <xsl:when test="lang_prefix != ''">
                                        <tr>
***************
*** 1167,1168 ****
--- 1181,1238 ----
                        </table>
        </xsl:template>
+ 
+       <xsl:template name="include_list">
+                       <table cellpadding="2" cellspacing="2" width="80%" 
align="left">
+                               <tr class="th">
+                                       <td class="th_text" width="85%" 
align="left">
+                                               <xsl:value-of 
select="lang_name"/>
+                                       </td>
+                                       <td class="th_text" width="15%" 
align="center">
+                                               <xsl:value-of 
select="lang_select"/>
+                                       </td>
+                               </tr>
+                               <xsl:for-each select="include_list" >
+                                       <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="left">
+                                               <xsl:value-of select="name"/>
+                                       </td>
+                                       <td align="center">
+                                               <xsl:choose>
+                                                       <xsl:when 
test="selected='selected'">
+                                                               <input 
type="checkbox" name="values[lookup_entity][]" value="{id}" checked="checked" 
onMouseout="window.status='';return true;">
+                                                                       
<xsl:attribute name="onMouseover">
+                                                                               
<xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="//lang_include_statustext"/>
+                                                                               
<xsl:text>'; return true;</xsl:text>
+                                                                       
</xsl:attribute>
+                                                               </input>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <input 
type="checkbox" name="values[lookup_entity][]" value="{id}"  
onMouseout="window.status='';return true;">
+                                                                       
<xsl:attribute name="onMouseover">
+                                                                               
<xsl:text>window.status='</xsl:text>
+                                                                               
        <xsl:value-of select="//lang_include_statustext"/>
+                                                                               
<xsl:text>'; return true;</xsl:text>
+                                                                       
</xsl:attribute>
+                                                               </input>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                       </td>
+                                       </tr>
+                               </xsl:for-each>
+                       </table>
+       </xsl:template>
+       





reply via email to

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