phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: property/templates/default workorder.xsl,1.3,1.4


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default workorder.xsl,1.3,1.4
Date: Sun, 16 Mar 2003 06:41:22 -0500

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

Modified Files:
        workorder.xsl 
Log Message:
no message

Index: workorder.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/workorder.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** workorder.xsl       14 Mar 2003 14:33:30 -0000      1.3
--- workorder.xsl       16 Mar 2003 11:41:19 -0000      1.4
***************
*** 3,8 ****
        <xsl:template name="app_data">
                <xsl:choose>
!                       <xsl:when test="p_edit">
!                               <xsl:apply-templates select="p_edit"/>
                        </xsl:when>
                        <xsl:when test="view">
--- 3,8 ----
        <xsl:template name="app_data">
                <xsl:choose>
!                       <xsl:when test="edit">
!                               <xsl:apply-templates select="edit"/>
                        </xsl:when>
                        <xsl:when test="view">
***************
*** 57,61 ****
                                </td>
                                <td class="th_text" width="30%" align="left">
!                                       <xsl:value-of select="lang_title"/>
                                </td>
                                <td class="th_text" width="5%" align="right">
--- 57,61 ----
                                </td>
                                <td class="th_text" width="30%" align="left">
!                                       <xsl:value-of select="lang_name"/>
                                </td>
                                <td class="th_text" width="5%" align="right">
***************
*** 119,123 ****
                                </td>
                                <td align="left">
!                                       <xsl:value-of select="title"/>
                                </td>
                                <td align="right">
--- 119,123 ----
                                </td>
                                <td align="left">
!                                       <xsl:value-of select="name"/>
                                </td>
                                <td align="right">
***************
*** 178,184 ****
        </xsl:template>
  
! <!-- add / p_edit -->
  
!       <xsl:template match="p_edit">
  
                <script language="JavaScript">
--- 178,184 ----
        </xsl:template>
  
! <!-- add / edit -->
  
!       <xsl:template match="edit">
  
                <script language="JavaScript">
***************
*** 512,528 ****
                        </xsl:choose>
                        </tr>
- 
-                       <xsl:choose>
-                               <xsl:when test="value_equipment_id!=''">
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="lang_attributes"/>
-                                               </td>
-                                               <td colspan="2" width="50%">
-                                                       <xsl:call-template 
name="attributes_form"/>                                                     
-                                               </td>
-                                       </tr>
-                               </xsl:when>
-                       </xsl:choose>
                        <tr height="50">
                                <td>
--- 512,515 ----
***************
*** 567,570 ****
--- 554,562 ----
                                </xsl:when>
                                <xsl:otherwise>
+                                       <tr>
+                                               <td class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_history"/>
+                                               </td>
+                                       </tr>
                                        <xsl:apply-templates 
select="table_header_history"/>
                                        <xsl:apply-templates 
select="record_history"/>
***************
*** 577,580 ****
--- 569,573 ----
  
        <xsl:template match="workorder_budget">
+               <xsl:variable name="workorder_link"><xsl:value-of 
select="//workorder_link"/>&amp;id=<xsl:value-of 
select="workorder_id"/></xsl:variable>
                        <tr>
                                <xsl:attribute name="class">
***************
*** 593,597 ****
  
                                <td align="right">
!                                       <xsl:value-of select="workorder_id"/>
                                </td>
                                <td align="right">
--- 586,590 ----
  
                                <td align="right">
!                                       <a 
href="{$workorder_link}"><xsl:value-of select="workorder_id"/></a>
                                </td>
                                <td align="right">
***************
*** 711,803 ****
  
  <!-- view -->
        <xsl:template match="view">
  
                <div align="left">
                <xsl:call-template name="app_header"/>
                <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
                        <tr>
!                               <td valign="top">
!                                       <xsl:value-of 
select="lang_equipment_id"/>
                                </td>
                                <td>
!                                       <xsl:value-of 
select="value_equipment_id"/>
                                </td>
                        </tr>
-                                       <xsl:call-template 
name="location_view"/>
- 
                        <tr>
                                <td>
!                                       <xsl:value-of select="lang_vendor"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_vendor_id"/>
!                                       <xsl:text>  </xsl:text>
!                                       <xsl:value-of 
select="value_vendor_name"/>
                                </td>
                        </tr>
- 
                        <tr>
                                <td>
                                        <xsl:value-of select="lang_category"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="cat_text"/>
                                </td>
                        </tr>
                        <tr>
!                               <td valign="top">
!                                       <xsl:value-of select="lang_date"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_date"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_lifetime"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_lifetime"/>
!                                       <xsl:text> </xsl:text> [ <xsl:value-of 
select="lang_year"/> ]
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        <xsl:value-of select="lang_status"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_status"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_cost"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_cost"/>
!                                       <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_descr"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_descr"/>    
        
                                </td>
                        </tr>
!                       <xsl:choose>
!                               <xsl:when test="value_equipment_id!=''">
!                                       <tr>
!                                               <td>
!                                                       <xsl:value-of 
select="lang_attributes"/>
!                                               </td>
!                                               <td colspan="2" width="50%">
!                                                       <xsl:call-template 
name="attributes_view"/>                                                     
!                                               </td>
!                                       </tr>
!                               </xsl:when>
!                       </xsl:choose>
  
                        <tr height="50">
                                <td>
--- 704,926 ----
  
  <!-- view -->
+ 
        <xsl:template match="view">
  
+               <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">
                        <tr>
!                               <td>
!                                       <xsl:value-of select="lang_project_id"/>
                                </td>
                                <td>
!                                       <xsl:value-of 
select="value_project_id"/>
                                </td>
                        </tr>
                        <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>
                                <td>
!                                       <xsl:value-of select="value_descr"/>    
        
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        <xsl:value-of select="lang_category"/>
                                </td>
+                               <xsl:for-each select="cat_list" >
+                                       <td>
+                                               <xsl:choose>
+                                                       <xsl:when 
test="selected">
+                                                               <xsl:value-of 
select="name"/>
+                                                       </xsl:when>
+                                               </xsl:choose>
+                                       </td>
+                               </xsl:for-each>
+                       </tr>
+                               <xsl:call-template name="location_view"/>
+                       <tr>
+                               <td valign="top">
+                                       <xsl:value-of 
select="lang_power_meter"/>
+                               </td>
                                <td>
!                                       <xsl:value-of 
select="value_power_meter"/>
                                </td>
                        </tr>
                        <tr>
!                               <td>
!                                       <xsl:value-of 
select="lang_charge_tenant"/>
                                </td>
                                <td>
!                               <xsl:choose>
!                                       <xsl:when test="charge_tenant='1'">
!                                               X
!                                       </xsl:when>
!                               </xsl:choose>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_budget"/>
                                </td>
                                <td>
!                                       <xsl:value-of select="value_budget"/>
!                                       <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
                                </td>
                        </tr>
+ 
+                       <tr>
+                               <td class="th_text" valign="top">
+                                       <xsl:value-of 
select="lang_workorder_id"/>
+                               </td>
+                               <xsl:choose>
+                                       <xsl:when 
test="sum_workorder_budget=''">
+                                               <td class="th_text">
+                                                       <xsl:value-of 
select="lang_no_workorders"/>
+                                               </td>
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                       <td>
+                                       <table width="100%" cellpadding="2" 
cellspacing="2" align="center">
+                                               <xsl:apply-templates 
select="table_header_workorder_budget"/>
+                                               <xsl:apply-templates 
select="workorder_budget"/>
+                                               <tr class="th">
+                                                       <td class="th_text" 
width="5%" align="right">
+                                                               <xsl:value-of 
select="lang_sum"/>
+                                                       </td>
+                                                       <td class="th_text" 
width="5%" align="right">
+                                                               <xsl:value-of 
select="sum_workorder_budget"/>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                                       </td>
+                                       </xsl:otherwise>
+                               </xsl:choose>
+                       </tr>
+ 
+                       <tr>
+                               <td>
+                                       <xsl:value-of 
select="lang_coordinator"/>
+                               </td>
+                               <xsl:for-each select="user_list" >
+                                       <td>
+                                               <xsl:choose>
+                                                       <xsl:when 
test="selected">
+                                                               <xsl:value-of 
select="name"/>
+                                                       </xsl:when>
+                                               </xsl:choose>
+                                       </td>
+                               </xsl:for-each>
+                       </tr>
                        <tr>
                                <td>
                                        <xsl:value-of select="lang_status"/>
                                </td>
+                                       <xsl:for-each select="status_list" >
+                                               <xsl:choose>
+                                                       <xsl:when 
test="selected">
+                                                               <td>
+                                                                       
<xsl:value-of select="name"/>
+                                                               </td>
+                                                       </xsl:when>
+                                               </xsl:choose>
+                                       </xsl:for-each>
+                       </tr>
+                       <tr>
+                               <td valign="top">
+                                       <xsl:value-of select="lang_start_date"/>
+                               </td>
+                               <td>                    
+                                       <xsl:value-of 
select="value_start_date"/>                       
+                               </td>
+                       </tr>
+                       <tr>
+                               <td valign="top">
+                                       <xsl:value-of select="lang_end_date"/>
+                               </td>
                                <td>
!                                       <xsl:value-of select="value_end_date"/> 
                
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of select="lang_branch"/>
                                </td>
                                <td>
!                                       <xsl:for-each select="branch_list" >
!                                               <xsl:choose>
!                                                       <xsl:when 
test="selected">
!                                                               <xsl:value-of 
select="name"/>,
!                                                       </xsl:when>
!                                               </xsl:choose>
!                                       </xsl:for-each>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
!                                       <xsl:value-of 
select="lang_other_branch"/>
                                </td>
                                <td>
!                                       <xsl:value-of 
select="value_other_branch"/>
                                </td>
                        </tr>
!                       <tr>
!                               <td>
!                                       <xsl:value-of select="lang_key_fetch"/>
!                               </td>
!                               <td>
!                                       <xsl:for-each select="key_fetch_list" >
!                                               <xsl:choose>
!                                                       <xsl:when 
test="selected">
!                                                               <xsl:value-of 
select="name"/>
!                                                       </xsl:when>
!                                               </xsl:choose>
!                                       </xsl:for-each>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td>
!                                       <xsl:value-of 
select="lang_key_deliver"/>
!                               </td>
!                               <td>
!                                       <xsl:for-each select="key_deliver_list" 
>
!                                               <xsl:choose>
!                                                       <xsl:when 
test="selected">
!                                                               <xsl:value-of 
select="name"/>
!                                                       </xsl:when>
!                                               </xsl:choose>
!                                       </xsl:for-each>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td>
!                                       <xsl:value-of 
select="lang_key_responsible"/>
!                               </td>
  
+                               <td>
+                                       <xsl:for-each 
select="key_responsible_list" >
+                                               <xsl:choose>
+                                                       <xsl:when 
test="selected">
+                                                               <xsl:value-of 
select="name"/>
+                                                       </xsl:when>
+                                               </xsl:choose>
+                                       </xsl:for-each>
+                               </td>
+                       </tr>
                        <tr height="50">
                                <td>
***************
*** 828,832 ****
                        </tr>
                </table>
                </div>
        </xsl:template>
- 
--- 951,976 ----
                        </tr>
                </table>
+               <hr noshade="noshade" width="100%" align="center" size="1"/>
+               <table width="80%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:choose>
+                               <xsl:when test="record_history=''">
+                                       <tr>
+                                               <td class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_no_history"/>
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                               <xsl:otherwise>
+                                       <tr>
+                                               <td class="th_text" 
align="left">
+                                                       <xsl:value-of 
select="lang_history"/>
+                                               </td>
+                                       </tr>                                   
+                                       <xsl:apply-templates 
select="table_header_history"/>
+                                       <xsl:apply-templates 
select="record_history"/>
+                               </xsl:otherwise>
+                       </xsl:choose>
+               </table>
                </div>
+               <hr noshade="noshade" width="100%" align="center" size="1"/>
        </xsl:template>





reply via email to

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