phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/default/template.xsl, 1.2


From: nomail
Subject: [Phpgroupware-cvs] property/templates/default/template.xsl, 1.2
Date: Wed, 2 Jun 2004 21:10:46 +0200

Update of /property/templates/default
Added Files:
        Branch: 
          template.xsl

date: 2004/06/02 19:10:46;  author: sigurdne;  state: Exp;  lines: +755 -0

Log Message:
no message
=====================================================================
<!-- $Id: template.xsl,v 1.2 2004/06/02 19:10:46 sigurdne Exp $ -->

        <xsl:template name="app_data">
                <xsl:choose>
                        <xsl:when test="edit_template">
                                <xsl:apply-templates select="edit_template"/>
                        </xsl:when>
                        <xsl:when test="edit_hour">
                                <xsl:apply-templates select="edit_hour"/>
                        </xsl:when>
                        <xsl:when test="list_template_hour">
                                <xsl:apply-templates 
select="list_template_hour"/>
                        </xsl:when>
                        <xsl:otherwise>
                                <xsl:apply-templates select="list"/>
                        </xsl:otherwise>
                </xsl:choose>
        </xsl:template>
        
        <xsl:template match="list">
                
                <xsl:call-template name="menu"/> 
                        <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                                <tr>
                                        <td>
                                                <xsl:call-template 
name="chapter_filter"/>
                                        </td>
                                        <td>
                                                <xsl:call-template 
name="user_id_filter"/>
                                        </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">
                                <xsl:apply-templates 
select="table_header_template"/>
                                <xsl:choose>
                                        <xsl:when 
test="values_template[template_id]!=''">                                      
                                                <xsl:apply-templates 
select="values_template"/>
                                        </xsl:when>
                                </xsl:choose>   
                        </table>
                        <table  align="left">
                        <xsl:choose>
                                <xsl:when test="lookup='true'">
                                        <xsl:apply-templates 
select="table_done"/>
                                </xsl:when>
                                <xsl:otherwise>
                                        <xsl:apply-templates 
select="table_add"/>
                                </xsl:otherwise>
                        </xsl:choose>
                        </table>
        </xsl:template>

        <xsl:template match="table_add">
                        <tr>
                                <td height="50">
                                        <xsl:variable 
name="add_action"><xsl:value-of select="add_action"/></xsl:variable>
                                        <xsl:variable 
name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
                                        <form method="post" 
action="{$add_action}">
                                                <input type="submit" name="add" 
value="{$lang_add}" onMouseout="window.status='';return true;">
                                                        <xsl:attribute 
name="onMouseover">
                                                                
<xsl:text>window.status='</xsl:text>
                                                                        
<xsl:value-of select="lang_add_statustext"/>
                                                                <xsl:text>'; 
return true;</xsl:text>
                                                        </xsl:attribute>
                                                </input>
                                        </form>
                                </td>
                        </tr>
        </xsl:template>


        <xsl:template match="table_done">
                        <tr>
                                <td height="50">
                                        <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>
        </xsl:template>


        <xsl:template match="table_header_template">
                <xsl:variable name="sort_name"><xsl:value-of 
select="sort_name"/></xsl:variable>
                <xsl:variable name="sort_template_id"><xsl:value-of 
select="sort_template_id"/></xsl:variable>
                        <tr class="th">
                                <td class="th_text" width="10%" align="right">
                                        <a 
href="{$sort_template_id}"><xsl:value-of select="lang_template_id"/></a>
                                </td>
                                <td class="th_text" width="10%" align="right">
                                        <a href="{$sort_name}"><xsl:value-of 
select="lang_name"/></a>
                                </td>
                                <td class="th_text" width="30%" align="left">
                                        <xsl:value-of select="lang_descr"/>
                                </td>
                                <td class="th_text" width="20%" align="left">
                                        <xsl:value-of select="lang_chapter"/>
                                </td>
                                <td class="th_text" width="5%" align="right">
                                        <xsl:value-of select="lang_owner"/>
                                </td>
                                <td class="th_text" width="10%" align="right">
                                        <xsl:value-of select="lang_entry_date"/>
                                </td>
                                <xsl:choose>
                                        <xsl:when test="//lookup='true'">
                                                <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_view"/>
                                                </td>
                                                <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_template">
                <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>
                        <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="template_id"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="name"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="descr"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="chapter"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="owner"/>
                                </td>
                                <td align="right">
                                        <xsl:value-of select="entry_date"/>
                                </td>
                                <xsl:choose>
                                        <xsl:when test="//lookup='true'">
                                                <xsl:variable 
name="form_action_select"><xsl:value-of 
select="form_action_select"/></xsl:variable>
                                                <form method="post"  
action="{$form_action_select}">
                                                <td valign="top">
                                                        <input type="hidden" 
name="template_id" value="{template_id}"></input>
                                                        <input type="hidden" 
name="workorder_id" value="{workorder_id}"></input>
                                                        <xsl:variable 
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
                                                        <input type="submit" 
name="select" value="{$lang_select}" 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>
                                                </form> 
                                        </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="list_template_hour">
                
                <xsl:call-template name="menu"/> 
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <xsl:choose>
                                <xsl:when test="msgbox_data != ''">
                                        <tr>
                                                <td align="left" colspan="3">
                                                        <xsl:call-template 
name="msgbox"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                </table>
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
                        <tr>
                                <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">
                        <xsl:apply-templates 
select="table_header_template_hour"/>
                        <xsl:choose>
                                <xsl:when 
test="values_template_hour[counter]!=''">
                                <xsl:apply-templates 
select="values_template_hour"/>
                                </xsl:when>
                        </xsl:choose>                                           
                </table>
                <hr noshade="noshade" width="100%" align="center" size="1"/>
                <table align="left">
                        <xsl:apply-templates select="table_add"/>
                        <xsl:apply-templates select="table_done"/>
                </table>

        </xsl:template>

        <xsl:template match="table_header_template_hour">
                <xsl:variable name="sort_billperae"><xsl:value-of 
select="sort_billperae"/></xsl:variable>
                <xsl:variable name="sort_building_part"><xsl:value-of 
select="sort_building_part"/></xsl:variable>
                        <tr class="th">
                                <td class="th_text" width="5%" align="right">
                                        <xsl:value-of select="lang_record"/>
                                </td>
                                <td class="th_text" width="10%" align="right">
                                        <a 
href="{$sort_building_part}"><xsl:value-of select="lang_building_part"/></a>
                                </td>
                                <td class="th_text" width="10%" align="right">
                                        <xsl:value-of select="lang_code"/>
                                </td>
                                <td class="th_text" width="30%" align="left">
                                        <xsl:value-of select="lang_descr"/>
                                </td>
                                <td class="th_text" width="5%" align="right">
                                        <xsl:value-of select="lang_unit"/>
                                </td>
                                <td class="th_text" width="10%" align="right">
                                        <a 
href="{$sort_billperae}"><xsl:value-of select="lang_billperae"/></a>
                                </td>
                                <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>
                        </tr>
        </xsl:template>

        <xsl:template match="values_template_hour">
                <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:choose>
                        <xsl:when test="new_grouping=1">
                        <tr>
                                <td class="th_text" align="center" colspan="10" 
width="100%">
                                        <xsl:value-of select="grouping_descr"/>
                                </td>
                        </tr>
                        </xsl:when>
                </xsl:choose>
                        <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="record"/>
                                </td>
                                <td align="right">
                                        <xsl:value-of select="building_part"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="code"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="hours_descr"/>
                                        <br/>
                                        <xsl:value-of select="remark"/>
                                </td>
                                <td align="left">
                                        <xsl:value-of select="unit"/>
                                </td>
                                <td align="right">
                                        <xsl:value-of select="billperae"/>
                                </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>
                        </tr>
        </xsl:template>


<!-- add / edit  -->

        <xsl:template match="edit_template">
                <div align="left">
                
                <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
                        <xsl:choose>
                                <xsl:when test="msgbox_data != ''">
                                        <tr>
                                                <td align="left" colspan="3">
                                                        <xsl:call-template 
name="msgbox"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                        <form method="post" name="form" action="{$form_action}">
                        
                        <xsl:choose>
                                <xsl:when test="value_template_id !=''">
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_template_id"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:value-of 
select="value_template_id"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_chapter"/>
                                </td>
                                <td class="th_text" >
                                        <xsl:call-template 
name="chapter_select"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_name"/>
                                </td>
                                <td>
                                        <input type="text"  name="values[name]" 
value="{value_name}" onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
                                                                <xsl:value-of 
select="lang_name_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                        </input>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_descr"/>
                                </td>
                                <td>
                                        <textarea cols="60" rows="4" 
name="values[descr]" wrap="virtual" onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
                                                                <xsl:value-of 
select="lang_descr_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                                <xsl:value-of 
select="value_descr"/>            
                                        </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>
                        <xsl:choose>
                                <xsl:when test="value_template_id !=''">
                                        <tr>
                                                <td height="50">
                                                        <xsl:variable 
name="add_action"><xsl:value-of select="add_action"/></xsl:variable>
                                                        <xsl:variable 
name="lang_add"><xsl:value-of select="lang_add"/></xsl:variable>
                                                        <form method="post" 
action="{$add_action}">
                                                                <input 
type="submit" name="add" value="{$lang_add}" 
onMouseout="window.status='';return true;">
                                                                        
<xsl:attribute name="onMouseover">
                                                                                
<xsl:text>window.status='</xsl:text>
                                                                                
        <xsl:value-of select="lang_add_statustext"/>
                                                                                
<xsl:text>'; return true;</xsl:text>
                                                                        
</xsl:attribute>
                                                                </input>
                                                        </form>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <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>
                </div>
        </xsl:template>



        <xsl:template match="edit_hour">
                <script language="JavaScript">
                        self.name="first_Window";
                        function ns3420_lookup()
                        {
                                Window1=window.open('<xsl:value-of 
select="ns3420_link"/>',"Search","width=800,height=700,toolbar=no,scrollbars=yes,resizable=yes");
                        }               
                </script>
                <div align="left">
                
                <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
                        <xsl:choose>
                                <xsl:when test="msgbox_data != ''">
                                        <tr>
                                                <td align="left" colspan="3">
                                                        <xsl:call-template 
name="msgbox"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                        <form method="post" name="form" action="{$form_action}">
                        
                        <xsl:choose>
                                <xsl:when test="value_hour_id !=''">
                                        <xsl:choose>
                                                <xsl:when 
test="value_activity_num =''">
                                                        <tr>
                                                                <td>
                                                                        
<xsl:value-of select="lang_copy_hour"/>
                                                                </td>
                                                                <td>
                                                                        <input 
type="checkbox" name="values[copy_hour]" value="True"  
onMouseout="window.status='';return true;">
                                                                                
<xsl:attribute name="onMouseover">
                                                                                
        <xsl:text>window.status='</xsl:text>
                                                                                
                <xsl:value-of select="lang_copy_hour_statustext"/>
                                                                                
        <xsl:text>'; return true;</xsl:text>
                                                                                
</xsl:attribute>
                                                                        </input>
                                                                </td>
                                                        </tr>
                                                </xsl:when>
                                        </xsl:choose>

                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_hour_id"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:value-of 
select="value_hour_id"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <xsl:choose>
                                <xsl:when test="value_activity_num !=''">
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_activity_num"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:value-of 
select="value_activity_num"/>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_template"/>
                                </td>
                                <td class="th_text" >
                                        <xsl:value-of 
select="value_template_name"/>
                                        <xsl:text> [ </xsl:text>
                                        <xsl:value-of 
select="value_template_id"/>
                                        <xsl:text> ]</xsl:text>
                                </td>
                        </tr>
                        <xsl:choose>
                                <xsl:when test="value_activity_num=''">
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_chapter"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:call-template 
name="chapter_select"/>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_grouping"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:call-template 
name="grouping_select"/>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_new_grouping"/>
                                                </td>
                                                <td>
                                                        <input type="text"  
name="values[new_grouping]" value="{value_new_grouping}" 
onMouseout="window.status='';return true;">
                                                                <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
                                                                                
<xsl:value-of select="lang_new_grouping_statustext"/>
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                        </input>
                                                </td>
                                        </tr>
                                </xsl:when>
                        </xsl:choose>                   
                        <tr>
                                <td valign="top">
                                        <xsl:value-of 
select="lang_building_part"/>
                                </td>
                                <td class="th_text" >
                                        <xsl:call-template 
name="building_part_select"/>
                                </td>
                        </tr>

                        <xsl:choose>
                                <xsl:when test="value_activity_num !=''">
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_ns3420"/>
                                                </td>
                                                <td class="th_text" >
                                                        <xsl:value-of 
select="value_ns3420_id"/>
                                                        <input type="hidden" 
name="ns3420_id" value="{value_ns3420_id}"></input>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td valign="top">
                                                        <xsl:value-of 
select="lang_descr"/>
                                                </td>
                                                <td>
                                                        <textarea cols="60" 
rows="4" name="values[descr]" wrap="virtual" 
onMouseout="window.status='';return true;">
                                                                <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
                                                                                
<xsl:value-of select="lang_descr_statustext"/>
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                                <xsl:value-of 
select="value_descr"/>            
                                                        </textarea>
                                                </td>
                                        </tr>
                                </xsl:when>
                                <xsl:otherwise>
                                        <tr>
                                                <td valign="top">
                                                        <a 
href="javascript:ns3420_lookup()" 
onMouseover="window.status='{lang_ns3420_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="lang_ns3420"/></a>
                                                </td>
                                                <td valign="top">
                                                        <input  type="text" 
name="ns3420_id" value="{value_ns3420_id}"  onClick="ns3420_lookup();" 
readonly="readonly">
                                                        <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
                                                                                
<xsl:value-of select="lang_ns3420_statustext"/>
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                        </input>
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                </td>
                                                <td>
                                                        <textarea cols="40" 
rows="4" name="ns3420_descr" wrap="virtual" onMouseout="window.status='';return 
true;">
                                                                <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
                                                                                
<xsl:value-of select="lang_descr_statustext"/>
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                                <xsl:value-of 
select="value_descr"/>            
                                                        </textarea>
                
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
                                                        <xsl:value-of 
select="lang_tolerance"/>
                                                </td>
                                                <td>
                                                        <xsl:call-template 
name="tolerance_select"/>
                                                </td>
                                        </tr>
                                </xsl:otherwise>
                        </xsl:choose>

                        <tr>
                                <td>
                                        <xsl:value-of select="lang_unit"/>
                                </td>
                                <td>
                                        <xsl:call-template name="unit_select"/>
                                </td>
                        </tr>
                        <tr>
                                <td>
                                        <xsl:value-of select="lang_dim_d"/>
                                </td>
                                <td>
                                        <xsl:call-template name="dim_d_select"/>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_quantity"/>
                                </td>
                                <td>
                                        <input type="text"  
name="values[quantity]" value="{value_quantity}" 
onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
                                                                <xsl:value-of 
select="lang_quantity_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                        </input>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_billperae"/>
                                </td>
                                <td>
                                        <input type="text"  
name="values[billperae]" value="{value_billperae}" 
onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
                                                                <xsl:value-of 
select="lang_billperae_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                        </input>
                                        <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_total_cost"/>
                                </td>
                                <td>
                                        <xsl:value-of 
select="value_total_cost"/>
                                        <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
                                </td>
                        </tr>

                        <tr>
                                <td valign="top">
                                        <xsl:value-of select="lang_remark"/>
                                </td>
                                <td>
                                        <textarea cols="60" rows="4" 
name="values[remark]" wrap="virtual" onMouseout="window.status='';return true;">
                                                <xsl:attribute 
name="onMouseover">
                                                        
<xsl:text>window.status='</xsl:text>
                                                                <xsl:value-of 
select="lang_remark_statustext"/>
                                                        <xsl:text>'; return 
true;</xsl:text>
                                                </xsl:attribute>
                                                <xsl:value-of 
select="value_remark"/>           
                                        </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>
                </div>
        </xsl:template>




reply via email to

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