phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default tts.xsl,1.1,1.2
Date: Thu, 06 Feb 2003 04:03:48 -0500

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

Modified Files:
        tts.xsl 
Log Message:
no message

Index: tts.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/tts.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** tts.xsl     3 Feb 2003 21:50:22 -0000       1.1
--- tts.xsl     6 Feb 2003 09:03:46 -0000       1.2
***************
*** 39,42 ****
--- 39,56 ----
                                </td>
                        </tr>
+                       <xsl:for-each select="message" >
+                       <tr>
+                               <td class="th_text" colspan="3" align="left">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+                       </xsl:for-each> 
+                       <xsl:for-each select="error" >
+                       <tr>
+                               <td class="th_text" colspan="3" align="left">
+                                       <xsl:value-of select="msg"/>
+                               </td>
+                       </tr>
+                       </xsl:for-each> 
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
***************
*** 57,65 ****
                                        <a href="{$sort_priority}" 
onMouseover="window.status='{$lang_priority_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="lang_priority"/></a>
                                </td>
!                               <td class="th_text" width="10%" align="right">
                                        <xsl:variable 
name="sort_id"><xsl:value-of select="sort_id"/></xsl:variable>
                                        <a href="{$sort_id}" 
onMouseover="window.status='{$lang_id_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="lang_id"/></a>
                                </td>
!                               <td class="th_text" width="40%">
                                        <xsl:value-of select="lang_subject"/>
                                </td>
--- 71,79 ----
                                        <a href="{$sort_priority}" 
onMouseover="window.status='{$lang_priority_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="lang_priority"/></a>
                                </td>
!                               <td class="th_text" width="6%" align="right">
                                        <xsl:variable 
name="sort_id"><xsl:value-of select="sort_id"/></xsl:variable>
                                        <a href="{$sort_id}" 
onMouseover="window.status='{$lang_id_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="lang_id"/></a>
                                </td>
!                               <td class="th_text" width="30%">
                                        <xsl:value-of select="lang_subject"/>
                                </td>
***************
*** 70,74 ****
                                        <xsl:value-of select="lang_address"/>
                                </td>
!                               <td class="th_text" width="20%" align="center">
                                        <xsl:value-of 
select="lang_time_created"/>
                                </td>
--- 84,88 ----
                                        <xsl:value-of select="lang_address"/>
                                </td>
!                               <td class="th_text" width="10%" align="center">
                                        <xsl:value-of 
select="lang_time_created"/>
                                </td>
***************
*** 156,166 ****
                        <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                        <form name="form" method="post" action="{$form_action}">
!                       <xsl:call-template name="location"/>
! 
                        <tr>
!                               <td colspan="2" align="center">
!                                       <xsl:value-of select="message"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
--- 170,189 ----
                        <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                        <form name="form" method="post" action="{$form_action}">
!                       <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:for-each select="error" >
                        <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
                                </td>
                        </tr>
+                       </xsl:for-each> 
+ 
+                       <xsl:call-template name="location"/>
                        <tr>
                                <td valign="top">
***************
*** 270,317 ****
  <!-- view -->
  
        <xsl:template match="view">
                <xsl:call-template name="app_header"/>
!               <table cellpadding="2" cellspacing="2" width="100%" 
align="center">
                        <tr>
!                               <td>
!                                       <xsl:value-of 
select="lang_time_created"/>
                                </td>
!                               <td>
!                                       <xsl:value-of select="value_date"/>
                                </td>
                        </tr>
                        <tr>
!                               <td>
                                        <xsl:value-of select="lang_category"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_cat"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_name"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_name"/>
                                </td>
                        </tr>
                        <tr>
                                <td>
!                                       <xsl:value-of select="lang_access"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_access"/>
                                </td>
                        </tr>
                        <tr height="50">
                                <td>
                                        <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" class="forms" 
name="done" value="{$lang_done}" onMouseover="window.status='Back to the 
list.';return true;" onMouseout="window.status='';return true;"/>
                                        </form>
                                </td>
                        </tr>
                </table>
        </xsl:template>
--- 293,668 ----
  <!-- view -->
  
+ 
        <xsl:template match="view">
+               <div align="left">
                <xsl:call-template name="app_header"/>
!               <hr noshade="noshade" width="100%" align="center" size="1"/>
!               <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
!                       <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
!                       <form name="form" method="post" action="{$form_action}">
!                       <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:for-each select="error" >
!                       <tr>
!                               <td class="th_text" colspan="2" align="center">
!                                       <xsl:value-of select="msg"/>
!                               </td>
!                       </tr>
!                       </xsl:for-each> 
!                       <tr class="th">
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="lang_ticket"/>
!                               </td>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="value_subject"/>
                                </td>
                        </tr>
                        <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_location_code"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_location_code"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_property_id"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_property_id"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_building_id"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_building_id"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_entrance_id"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_entrance_id"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_apartment_id"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_apartment_id"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="lang_street"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of select="value_street"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="lang_opendate"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of select="value_opendate"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of 
select="lang_assignedfrom"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_assignedfrom"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="lang_assignedto"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of 
select="value_assignedto"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
!                                       <xsl:value-of select="lang_priority"/>
!                               </td>
!                               <td valign="top">
!                                       <xsl:value-of select="value_priority"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text" valign="top">
                                        <xsl:value-of select="lang_category"/>
                                </td>
+                               <td valign="top">
+                                       <xsl:value-of 
select="value_category_name"/>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td class="th_text" valign="top">
+                                       <xsl:value-of select="lang_details"/>
+                               </td>
+                               <td valign="top">
+                                       <xsl:value-of select="value_details"/>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td class="th_text" valign="top">
+                                       <xsl:value-of 
select="lang_additional_notes"/>
+                               </td>
+                               <xsl:choose>
+                                       <xsl:when test="additional_notes=''">
+                                               <tr>
+                                                       <td class="th_text">
+                                                               <xsl:value-of 
select="lang_no_additional_notes"/>
+                                                       </td>
+                                               </tr>
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                       <td>
+                                       <table width="100%" cellpadding="2" 
cellspacing="2" align="center">
+                                               <xsl:apply-templates 
select="table_header_additional_notes"/>
+                                               <xsl:apply-templates 
select="additional_notes"/>
+                                       </table>
+                                       </td>
+                                       </xsl:otherwise>
+                               </xsl:choose>
+                       </tr>
+                       <tr>
+                               <td valign="top">
+                                       <xsl:value-of select="lang_assignedto"/>
+                               </td>
                                <td>
!                                       <xsl:call-template 
name="user_id_select"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_priority"/>
                                </td>
                                <td>
!                               <xsl:variable 
name="lang_priority_statustext"><xsl:value-of 
select="lang_priority_statustext"/></xsl:variable>
!                               <xsl:variable 
name="select_priority_name"><xsl:value-of 
select="select_priority_name"/></xsl:variable>
!                                       <select name="{$select_priority_name}" 
class="forms" onMouseover="window.status='{$lang_priority_statustext}'; return 
true;" onMouseout="window.status='';return true;">
!                                                       <xsl:apply-templates 
select="priority_list"/>
!                                       </select>                       
                                </td>
                        </tr>
                        <tr>
+                               <td valign="top">
+                                       <xsl:value-of select="lang_status"/>
+                               </td>
                                <td>
!                               <xsl:variable 
name="lang_status_statustext"><xsl:value-of 
select="lang_status_statustext"/></xsl:variable>
!                               <xsl:variable 
name="select_status_name"><xsl:value-of 
select="select_status_name"/></xsl:variable>
!                                       <select name="{$select_status_name}" 
class="forms" onMouseover="window.status='{$lang_status_statustext}'; return 
true;" onMouseout="window.status='';return true;">
!                                                       <xsl:apply-templates 
select="status_list"/>
!                                       </select>                       
                                </td>
+                       </tr>
+                       <tr>
                                <td>
!                                       <xsl:value-of select="lang_category"/>
!                               </td>
!                               <td>
!                                       <xsl:call-template name="cat_select"/>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td>
!                               </td>
!                               <td>
!                                       <textarea cols="60" rows="10" 
name="values[note]" wrap="virtual" onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_details_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </textarea>
! 
                                </td>
                        </tr>
                        <tr height="50">
                                <td>
+                                       <xsl:variable 
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
+                                       <input type="submit" 
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return 
true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_save_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                       </tr>
+                       </form>
+                       <tr>
+                               <td>
                                        <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>
                </table>
+ 
+               <hr noshade="noshade" width="100%" align="center" size="1"/>
+               <xsl:choose>
+                       <xsl:when test="record_history=''">
+                               <tr>
+                                       <td class="th_text">
+                                               <xsl:value-of 
select="lang_no_history"/>
+                                       </td>
+                               </tr>
+                       </xsl:when>
+                       <xsl:otherwise>
+                       <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                               <xsl:apply-templates 
select="table_header_history"/>
+                               <xsl:apply-templates select="record_history"/>
+                       </table>
+                       </xsl:otherwise>
+               </xsl:choose>
+ 
+ 
+ 
+               </div>
+ 
+       </xsl:template>
+ 
+       <xsl:template match="table_header_additional_notes">
+                       <tr class="th">
+                               <td class="th_text" width="4%" align="right">
+                                       <xsl:value-of select="lang_count"/>
+                               </td>
+                               <td class="th_text" width="10%" align="left">
+                                       <xsl:value-of select="lang_date"/>
+                               </td>
+                               <td class="th_text" width="10%" align="left">
+                                       <xsl:value-of select="lang_user"/>
+                               </td>
+                               <td class="th_text" width="10%" align="left">
+                                       <xsl:value-of select="lang_note"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="additional_notes">
+                       <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="value_count"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_date"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_user"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_note"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+       <xsl:template match="table_header_history">
+                       <tr class="th">
+                               <td class="th_text" width="20%" align="left">
+                                       <xsl:value-of select="lang_date"/>
+                               </td>
+                               <td class="th_text" width="10%" align="left">
+                                       <xsl:value-of select="lang_user"/>
+                               </td>
+                               <td class="th_text" width="30%" align="left">
+                                       <xsl:value-of select="lang_action"/>
+                               </td>
+                               <td class="th_text" width="10%" align="left">
+                                       <xsl:value-of select="lang_new_value"/>
+                               </td>
+                       </tr>
        </xsl:template>
+ 
+       <xsl:template match="record_history">
+                       <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="value_date"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_user"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_action"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="value_new_value"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+ 
+ 
+       <xsl:template match="priority_list">
+       <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+ 
+       <xsl:template match="status_list">
+       <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+ 





reply via email to

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