phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] hrm/templates/default place.xsl,1.3


From: sigurdne
Subject: [Phpgroupware-cvs] hrm/templates/default place.xsl,1.3
Date: Wed, 23 Nov 2005 11:55:00 +0100

Update of hrm/templates/default

Modified Files:
     Branch: MAIN
            place.xsl lines: +14 -263

Log Message:
*** empty log message ***

====================================================
Index: hrm/templates/default/place.xsl
diff -u hrm/templates/default/place.xsl:1.2 hrm/templates/default/place.xsl:1.3
--- hrm/templates/default/place.xsl:1.2 Tue Nov 22 18:20:09 2005
+++ hrm/templates/default/place.xsl     Wed Nov 23 10:55:40 2005
@@ -125,116 +125,12 @@
        </xsl:template>


-
-
-<!-- training  -->
-       <xsl:template match="training">
-               <div align="left">
-
-               <table>
-                       <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:call-template name="place_values"/>
-                       <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                               <xsl:apply-templates 
select="table_header_training"/>
-                               <xsl:apply-templates select="values_training"/>
-                       </table>
-                       <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                               <xsl:apply-templates select="table_add"/>
-                       </table>
-
-               </table>
-               </div>
-       </xsl:template>
-
-       <xsl:template match="table_header_training">
-               <xsl:variable name="sort_title"><xsl:value-of 
select="sort_title"/></xsl:variable>
-               <xsl:variable name="sort_place"><xsl:value-of 
select="sort_place"/></xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_title}"><xsl:value-of 
select="lang_title"/></a>
-                       </td>
-                       <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_place}"><xsl:value-of 
select="lang_place"/></a>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_start_date"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_end_date"/>
-                       </td>
-                       <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>
-               </tr>
-       </xsl:template>
-
-       <xsl:template match="values_training">
-               <xsl:variable name="lang_view_text"><xsl:value-of 
select="lang_view_text"/></xsl:variable>
-               <xsl:variable name="lang_edit_text"><xsl:value-of 
select="lang_edit_text"/></xsl:variable>
-               <xsl:variable name="lang_delete_text"><xsl:value-of 
select="lang_delete_text"/></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="left">
-                                       <xsl:value-of select="title"/>
-                               </td>
-                               <td align="left">
-                                       <xsl:value-of select="place"/>
-                               </td>
-                               <td align="center">
-                                       <xsl:value-of select="start_date"/>
-                               </td>
-                               <td align="center">
-                                       <xsl:value-of select="end_date"/>
-                               </td>
-                               <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_text}';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_text}';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_text}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_delete"/></a>
-                               </td>
-                       </tr>
-       </xsl:template>
-
-
 <!-- add / edit  -->
        <xsl:template match="edit">
                <div align="left">
                <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                <form method="post" action="{$form_action}">
-               <table cellpadding="2" cellspacing="2" width="100%" 
align="center">
+               <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
                        <xsl:choose>
                                <xsl:when test="msgbox_data != ''">
                                        <tr>
@@ -392,110 +288,41 @@
                                        </td>
                                </tr>
                        <tr>
-                               <td width="10%">
-                                       <xsl:value-of select="lang_category"/>
-                               </td>
-                               <td>
-                                       <select disabled="true" class="forms" >
-                                               <option value=""><xsl:value-of 
select="lang_no_cat"/></option>
-                                               <xsl:call-template 
name="cat_select"/>
-                                       </select>
-
-                               </td>
-                       </tr>
-                       <tr>
-                               <td valign="top">
-                                       <xsl:value-of select="lang_title"/>
-                               </td>
-                               <td>
-                                       <input type="text" readonly="true" 
size="60" name="values[title]" value="{value_title}" 
onMouseout="window.status='';return true;">
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_title_status_text"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td valign="top">
-                                       <xsl:value-of select="lang_start_date"/>
+                               <td valign="top" width="10%">
+                                       <xsl:value-of select="lang_name"/>
                                </td>
                                <td>
-                                       <input type="text" 
id="values[start_date]" name="values[start_date]" size="10" 
value="{value_start_date}" readonly="readonly" 
onMouseout="window.status='';return true;" >
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_start_date_status_text"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
+                                       <input type="text" readonly="true" 
size="60" name="values[name]" value="{value_name}"> </input>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
-                                       <xsl:value-of select="lang_end_date"/>
+                                       <xsl:value-of select="lang_address"/>
                                </td>
                                <td>
-                                       <input type="text" 
id="values[end_date]" name="values[end_date]" size="10" 
value="{value_end_date}" readonly="readonly" 
onMouseout="window.status='';return true;" >
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_end_date_status_text"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
+                                       <input type="text" readonly="true" 
size="60" name="values[address]" value="{value_address}"></input>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
-                                       <xsl:value-of select="lang_reference"/>
+                                       <xsl:value-of select="lang_zip"/>
                                </td>
                                <td>
-                                       <input type="text" readonly="true" 
size="60" name="values[reference]" value="{value_reference}" 
onMouseout="window.status='';return true;">
-                                               <xsl:attribute 
name="onMouseover">
-                                                       
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_reference_text"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                       </input>
+                                       <input type="text" readonly="true" 
size="6" name="values[zip]" value="{value_zip}"></input>
+                                       <xsl:value-of select="lang_town"/>
+                                       <input type="text" readonly="true" 
size="40" name="values[town]" value="{value_town}"></input>
                                </td>
                        </tr>
                        <tr>
                                <td valign="top">
-                                       <xsl:value-of select="lang_descr"/>
+                                       <xsl:value-of select="lang_remark"/>
                                </td>
                                <td>
-                                       <textarea readonly="true" cols="60" 
rows="10" 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_status_text"/>
-                                                       <xsl:text>'; return 
true;</xsl:text>
-                                               </xsl:attribute>
-                                               <xsl:value-of 
select="value_descr"/>
+                                       <textarea cols="60" readonly="true" 
rows="10" name="values[remark]">
+                                               <xsl:value-of 
select="value_remark"/>
                                        </textarea>
                                </td>
                        </tr>
-                       <tr>
-                               <td valign="top">
-                                       <xsl:value-of select="lang_skill"/>
-                               </td>
-                               <td>
-                                       <select disabled="true" class="forms" >
-                                               <option value=""><xsl:value-of 
select="lang_no_skill"/></option>
-                                               <xsl:apply-templates 
select="skill_list"/>
-                                       </select>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td valign="top">
-                                       <xsl:value-of select="lang_place"/>
-                               </td>
-                               <td>
-                                       <select disabled="true" class="forms" >
-                                               <option value=""><xsl:value-of 
select="lang_no_place"/></option>
-                                               <xsl:apply-templates 
select="place_list"/>
-                                       </select>
-                               </td>
-                       </tr>
                </table>
                <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
                        <tr height="50">
@@ -515,79 +342,3 @@
                </div>
        </xsl:template>

-
-       <xsl:template name="place_values">
-               <xsl:for-each select="place_values" >
-                       <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td class="small_text" align="left">
-                               <xsl:value-of select="name"/>
-                       </td>
-                       <xsl:choose>
-                               <xsl:when test="type = 'link'">
-                                       <td class="small_text" align="left">
-                                               <a 
href="{link_value}"><xsl:value-of select="value"/></a>
-                                       </td>
-                               </xsl:when>
-                               <xsl:when test="type = 'mail'">
-                                       <td class="small_text" align="left">
-                                               <a 
href="mailto:{link_value}";><xsl:value-of select="link_value"/></a>
-                                       </td>
-                               </xsl:when>
-                               <xsl:otherwise>
-                                       <td class="small_text" align="left">
-                                               <xsl:value-of select="value"/>
-                                       </td>
-                               </xsl:otherwise>
-                       </xsl:choose>
-                       </tr>
-               </xsl:for-each>
-       </xsl:template>
-
-       <xsl:template match="skill_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="cat_list">
-       <xsl:variable name="id"><xsl:value-of select="cat_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="place_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]