phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] CVS: property/templates/default wo_hour.xsl,1.8,1.9
Date: Fri, 04 Apr 2003 05:34:45 -0500

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

Modified Files:
        wo_hour.xsl 
Log Message:
no message

Index: wo_hour.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/wo_hour.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** wo_hour.xsl 3 Apr 2003 19:12:45 -0000       1.8
--- wo_hour.xsl 4 Apr 2003 10:34:43 -0000       1.9
***************
*** 173,251 ****
        </xsl:template>
  
        <xsl:template match="view">
                <xsl:call-template name="app_header"/>
                <xsl:variable name="send_order_action"><xsl:value-of 
select="send_order_action"/></xsl:variable>
                <form method="post" action="{$send_order_action}">
!               <table width="90%" cellpadding="2" cellspacing="2" 
align="center">
!                       <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>
!                               <td class="th_text"  align="left">
!                                       <xsl:value-of select="lang_mail"/>
!                               </td>
!                               <td  align="left">
!                                       <input type="text" name="to_email" 
value="{to_email}"  onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_to_email_address_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </input>
!                               </td>
!                       </tr>
!                       <tr>
!                               <td class="th_text"  align="left">
!                                       <xsl:value-of 
select="lang_update_email"/>
!                               </td>
!                               <td  align="left">
!                                       <input type="checkbox" 
name="update_email" value="true"  onMouseout="window.status='';return true;">
!                                               <xsl:attribute 
name="onMouseover">
!                                                       
<xsl:text>window.status='</xsl:text>
!                                                               <xsl:value-of 
select="lang_update_email_statustext"/>
!                                                       <xsl:text>'; return 
true;</xsl:text>
!                                               </xsl:attribute>
!                                       </input>
!                               </td>
!                       </tr>
!               </table>
                <xsl:apply-templates select="email_data"/>
                <hr noshade="noshade" width="100%" align="center" size="1"/>
!               <table width="80%" cellpadding="2" cellspacing="2" 
align="center">
!                       <xsl:choose>
!                               <xsl:when test="workorder_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="workorder_history"/>
!                               </xsl:otherwise>
!                       </xsl:choose>
!               </table>
! 
!               <xsl:apply-templates select="table_send"/>
                </form>
!               <xsl:apply-templates select="table_done"/>
        </xsl:template>
  
--- 173,294 ----
        </xsl:template>
  
+ 
+       <xsl:template match="email_list">
+       <xsl:variable name="email"><xsl:value-of select="email"/></xsl:variable>
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{$email}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="email"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{$email}"><xsl:value-of 
disable-output-escaping="yes" select="email"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>
+ 
+ 
+ 
        <xsl:template match="view">
                <xsl:call-template name="app_header"/>
                <xsl:variable name="send_order_action"><xsl:value-of 
select="send_order_action"/></xsl:variable>
                <form method="post" action="{$send_order_action}">
!               <xsl:choose>
!                       <xsl:when test="no_email =''">
!                               <table width="90%" cellpadding="2" 
cellspacing="2" align="center">
!                                       <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:choose>
!                                               <xsl:when test="email_list 
!=''">
!                                                       <tr>
!                                                               <td 
class="th_text"  align="left">
!                                                                       
<xsl:value-of select="lang_mail"/>
!                                                               </td>
!                                                               <td  
align="left">
!                                                                       
<xsl:variable name="lang_to_email_address_statustext"><xsl:value-of 
select="lang_to_email_address_statustext"/></xsl:variable>
!                                                                       <select 
name="to_email" class="forms" 
onMouseover="window.status='{$lang_to_email_address_statustext}'; return true;" 
onMouseout="window.status='';return true;">
!                                                                               
<option value=""><xsl:value-of select="lang_select_email"/></option>
!                                                                               
        <xsl:apply-templates select="email_list"/>
!                                                                       
</select>
!                                                               </td>
!                                                       </tr>
!                                               </xsl:when>
!                                               <xsl:otherwise>
!                                                       <tr>
!                                                               <td 
class="th_text"  align="left">
!                                                                       
<xsl:value-of select="lang_mail"/>
!                                                               </td>
!                                                               <td  
align="left">
!                                                                       <input 
type="text" name="to_email" value="{to_email}"  
onMouseout="window.status='';return true;">
!                                                                               
<xsl:attribute name="onMouseover">
!                                                                               
        <xsl:text>window.status='</xsl:text>
!                                                                               
                <xsl:value-of select="lang_to_email_address_statustext"/>
!                                                                               
        <xsl:text>'; return true;</xsl:text>
!                                                                               
</xsl:attribute>
!                                                                       </input>
!                                                               </td>
!                                                       </tr>
!                                                       <tr>
!                                                               <td 
class="th_text"  align="left">
!                                                                       
<xsl:value-of select="lang_update_email"/>
!                                                               </td>
!                                                               <td  
align="left">
!                                                                       <input 
type="checkbox" name="update_email" value="true"  
onMouseout="window.status='';return true;">
!                                                                               
<xsl:attribute name="onMouseover">
!                                                                               
        <xsl:text>window.status='</xsl:text>
!                                                                               
                <xsl:value-of select="lang_update_email_statustext"/>
!                                                                               
        <xsl:text>'; return true;</xsl:text>
!                                                                               
</xsl:attribute>
!                                                                       </input>
!                                                               </td>
!                                                       </tr>
!                                               </xsl:otherwise>
!                                       </xsl:choose>
!                               </table>
!                       </xsl:when>
!               </xsl:choose>
                <xsl:apply-templates select="email_data"/>
                <hr noshade="noshade" width="100%" align="center" size="1"/>
!                       <table width="80%" cellpadding="2" cellspacing="2" 
align="center">
!                               <xsl:choose>
!                                       <xsl:when test="workorder_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="workorder_history"/>
!                                       </xsl:otherwise>
!                               </xsl:choose>
!                       </table>
!               <xsl:choose>
!                       <xsl:when test="no_email =''">
!                               <xsl:apply-templates select="table_send"/>
!                       </xsl:when>
!               </xsl:choose>
                </form>
!               <xsl:choose>
!                       <xsl:when test="no_email =''">
!                               <xsl:apply-templates select="table_done"/>
!                       </xsl:when>
!               </xsl:choose>
        </xsl:template>
  





reply via email to

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