phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default request.xsl,1.8,1.9


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default request.xsl,1.8,1.9
Date: Sun, 22 Jun 2003 14:23:55 -0400

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

Modified Files:
        request.xsl 
Log Message:
no message

Index: request.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/request.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** request.xsl 26 May 2003 18:18:17 -0000      1.8
--- request.xsl 22 Jun 2003 18:23:53 -0000      1.9
***************
*** 159,171 ****
                                        <xsl:call-template 
name="user_id_filter"/>
                                </td>
!                               <td valign="top" align="right">
!                                       <xsl:variable 
name="link_priority_key"><xsl:value-of 
select="link_priority_key"/>&amp;voucher_id=<xsl:value-of 
select="voucher_id"/>&amp;period=<xsl:value-of select="period"/></xsl:variable>
!                                       <xsl:variable 
name="lang_priority_help"><xsl:value-of 
select="lang_priority_help"/></xsl:variable>
!                                       <xsl:variable 
name="lang_priority_key"><xsl:value-of 
select="lang_priority_key"/></xsl:variable>
!                                       <a href="javascript:var 
w=window.open('{$link_priority_key}','','width=300,height=300')"
!                                       
onMouseOver="overlib('{$lang_priority_help}', CAPTION, '{$lang_priority_key}')"
!                                       onMouseOut="nd()">
!                                       <xsl:value-of 
select="lang_priority_key"/></a>                                  
!                               </td>
                                <td align="right">
                                        <xsl:call-template name="search_field"/>
--- 159,176 ----
                                        <xsl:call-template 
name="user_id_filter"/>
                                </td>
!                               <xsl:choose>
!                                       <xsl:when test="link_priority_key!=''">
!                                               <td valign="top" align="right">
!                                                       <xsl:variable 
name="link_priority_key"><xsl:value-of 
select="link_priority_key"/>&amp;voucher_id=<xsl:value-of 
select="voucher_id"/>&amp;period=<xsl:value-of select="period"/></xsl:variable>
!                                                       <xsl:variable 
name="lang_priority_help"><xsl:value-of 
select="lang_priority_help"/></xsl:variable>
!                                                       <xsl:variable 
name="lang_priority_key"><xsl:value-of 
select="lang_priority_key"/></xsl:variable>
!                                                       <a href="javascript:var 
w=window.open('{$link_priority_key}','','width=300,height=300')"
!                                                               
onMouseOver="overlib('{$lang_priority_help}', CAPTION, '{$lang_priority_key}')"
!                                                               
onMouseOut="nd()">
!                                                               <xsl:value-of 
select="lang_priority_key"/></a>                                  
!                                               </td>
!                                       </xsl:when>
!                               </xsl:choose>
! 
                                <td align="right">
                                        <xsl:call-template name="search_field"/>
***************
*** 179,188 ****
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                       <xsl:apply-templates select="table_header_request"/>
                                        <xsl:choose>
                                                <xsl:when test="project_id!=''">
                                                <xsl:variable 
name="add_to_project_action"><xsl:value-of 
select="add_to_project_action"/></xsl:variable>
                                                <form method="post" 
action="{$add_to_project_action}">
!                                                       <xsl:apply-templates 
select="values_request"/>
                                                        <tr>
                                                                <td height="50">
--- 184,197 ----
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:call-template name="table_header"/>
                                        <xsl:choose>
                                                <xsl:when test="project_id!=''">
                                                <xsl:variable 
name="add_to_project_action"><xsl:value-of 
select="add_to_project_action"/></xsl:variable>
                                                <form method="post" 
action="{$add_to_project_action}">
!                                               <xsl:choose>
!                                                       <xsl:when test="values">
!                                                               
<xsl:call-template name="values"/>
!                                                       </xsl:when>
!                                               </xsl:choose>
                                                        <tr>
                                                                <td height="50">
***************
*** 199,204 ****
                                                </xsl:when>
                                                <xsl:otherwise>
!                                                       <xsl:apply-templates 
select="values_request"/>
!                                                       <xsl:apply-templates 
select="table_add"/>
                                                </xsl:otherwise>
                                        </xsl:choose>
--- 208,221 ----
                                                </xsl:when>
                                                <xsl:otherwise>
!                               <xsl:choose>
!                                       <xsl:when test="values">
!                                               <xsl:call-template 
name="values"/>
!                                       </xsl:when>
!                               </xsl:choose>
!                               <xsl:choose>
!                                       <xsl:when test="table_add !=''">
!                                               <xsl:apply-templates 
select="table_add"/>
!                                       </xsl:when>
!                               </xsl:choose>   
                                                </xsl:otherwise>
                                        </xsl:choose>
***************
*** 206,357 ****
        </xsl:template>
  
!       <xsl:template match="table_header_request">
!               <xsl:variable name="sort_request"><xsl:value-of 
select="sort_request"/></xsl:variable>
!               <xsl:variable name="sort_property"><xsl:value-of 
select="sort_property"/></xsl:variable>
!               <xsl:variable name="sort_address"><xsl:value-of 
select="sort_address"/></xsl:variable>
!               <xsl:variable name="sort_score"><xsl:value-of 
select="sort_score"/></xsl:variable>
!                       <tr class="th">
!                               <td class="th_text" width="5%" align="right">
!                                       <a href="{$sort_request}"><xsl:value-of 
select="lang_request"/></a>
!                               </td>
!                               <td class="th_text" width="30%" align="left">
!                                       <xsl:value-of select="lang_title"/>
!                               </td>
!                               <td class="th_text" width="5%" align="right">
!                                       <a 
href="{$sort_property}"><xsl:value-of select="lang_property"/></a>
!                               </td>
! 
!                               <td class="th_text" width="2%" align="right">
!                                       <xsl:value-of select="lang_building"/>
!                               </td>
!                               <td class="th_text" width="2%" align="right">
!                                       <xsl:value-of select="lang_entrance"/>
!                               </td>
!                               <td class="th_text" width="5%" align="right">
!                                       <xsl:value-of select="lang_floor"/>
!                               </td>
!                               <td class="th_text" width="4%" align="right">
!                                       <xsl:value-of select="lang_apartment"/>
!                               </td>
!                               <td class="th_text" width="30%" align="right">
!                                       <a href="{$sort_address}"><xsl:value-of 
select="lang_address"/></a>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of 
select="lang_coordinator"/>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of select="lang_start_date"/>
!                               </td>
!                               <td class="th_text" width="5%" align="right">
!                                       <a href="{$sort_score}"><xsl:value-of 
select="lang_score"/></a>
!                               </td>
!                               <td class="th_text" width="5%" align="center">
!                                       <xsl:value-of select="lang_view"/>
!                               </td>
                                <xsl:choose>
!                                       <xsl:when test="//project_id!=''">
!                                               <td class="th_text" width="5%" 
align="center">
!                                                       <xsl:value-of 
select="lang_select"/>
!                                               </td>
                                        </xsl:when>
                                        <xsl:otherwise>
!                                               <td class="th_text" width="5%" 
align="center">
!                                                       <xsl:value-of 
select="lang_edit"/>
!                                               </td>
!                                               <td class="th_text" width="5%" 
align="center">
!                                                       <xsl:value-of 
select="lang_delete"/>
!                                               </td>
                                        </xsl:otherwise>
                                </xsl:choose>
!                       </tr>
!       </xsl:template>
! 
!       <xsl:template match="values_request">
!               <xsl:variable name="lang_view_statustext"><xsl:value-of 
select="lang_view_statustext"/></xsl:variable>
!               <xsl:variable name="lang_edit_statustext"><xsl:value-of 
select="lang_edit_statustext"/></xsl:variable>
!               <xsl:variable name="lang_delete_statustext"><xsl:value-of 
select="lang_delete_statustext"/></xsl:variable>
!               <xsl:variable name="lang_history_statustext"><xsl:value-of 
select="//lang_history_statustext"/></xsl:variable>
!               <xsl:variable name="link_history"><xsl:value-of 
select="//link_history"/></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="request_id"/>
!                               </td>
!                               <td align="left">
!                                       <xsl:value-of select="title"/>
!                               </td>
!                               <td align="right">
!                                       <a 
href="{$link_history}&amp;query={property_id}" 
onMouseover="window.status='{$lang_history_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="property_id"/></a>
!                               </td>
!                               <td align="right">
!                                       <a 
href="{$link_history}&amp;query={property_id}-{building_id}" 
onMouseover="window.status='{$lang_history_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="building_id"/></a>
!                               </td>
!                               <td align="right">
!                                       <a 
href="{$link_history}&amp;query={property_id}-{building_id}-{entrance_id}" 
onMouseover="window.status='{$lang_history_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="entrance_id"/></a>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="floor"/>
!                               </td>
!                               <td align="right">
!                                       <a 
href="{$link_history}&amp;query={property_id}-{building_id}-{entrance_id}-{apartment_id}"
 onMouseover="window.status='{$lang_history_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="apartment_id"/></a>
!                               </td>
!                               <td align="left">
!                                       <xsl:value-of select="address"/>
!                               </td>
!                               <td align="left">
!                                       <xsl:value-of select="coordinator"/>
!                               </td>
!                               <td align="left">
!                                       <xsl:value-of select="start_date"/>
!                               </td>
!                               <td align="right">
!                                       <xsl:value-of select="score"/>
!                               </td>
!                               <xsl:choose>
!                                       <xsl:when test="//project_id!='' and 
request_id!=''">
!                                                       <td align="center">
!                                                               <xsl:variable 
name="link_view"><xsl:value-of select="link_view"/></xsl:variable>
!                                                               <a 
href="{$link_view}" target="_blank" 
onMouseover="window.status='{$lang_view_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_view"/></a>
!                                                       </td>
!                                                       <td valign="top">
!                                                               <input 
type="checkbox" name="add_request[request_id][]" value="{request_id}" 
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:when>
!                                       <xsl:otherwise>
!                                               <td align="center">
!                                                       <xsl:variable 
name="link_view"><xsl:value-of select="link_view"/></xsl:variable>
!                                                       <a href="{$link_view}" 
onMouseover="window.status='{$lang_view_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_view"/></a>
!                                               </td>
!                                               <td align="center">
!                                                       <xsl:variable 
name="link_edit"><xsl:value-of select="link_edit"/></xsl:variable>
!                                                       <a href="{$link_edit}" 
onMouseover="window.status='{$lang_edit_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_edit"/></a>
!                                               </td>
!                                               <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="text_delete"/></a>
!                                               </td>
!                                       </xsl:otherwise>
!                               </xsl:choose>
                        </tr>
        </xsl:template>
  
        <xsl:template match="table_add">
--- 223,277 ----
        </xsl:template>
  
!       <xsl:template name="values">
!               <xsl:for-each select="values" >
!                       <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:for-each select="row" >
                                        <xsl:choose>
!                                               <xsl:when test="link">
!                                                       <td align="center">
!                                                               <a 
href="{link}" target="{target}" 
onMouseover="window.status='{statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
!                                                       </td>
!                                       <xsl:choose>
!                                               <xsl:when test="//lookup!=''">
!                                                       <xsl:if 
test="position() = last()">
!                                                               <td 
valign="center">
!                                                                       <input 
type="checkbox" name="add_request[request_id][]" value="{request_id}" 
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>
! 
! 
                                                </xsl:when>
                                                <xsl:otherwise>
!                                                       <td align="left">
!                                                               <xsl:value-of 
select="value"/>                                  
!                                                       </td>
                                                </xsl:otherwise>
                                        </xsl:choose>
!                               </xsl:for-each>
                        </tr>
+               </xsl:for-each>
        </xsl:template>
+ 
  
        <xsl:template match="table_add">





reply via email to

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