[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] hrm/templates/base job.xsl, 1.5 place.xsl, 1.3 user.x
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] hrm/templates/base job.xsl, 1.5 place.xsl, 1.3 user.xsl, 1.2 |
Date: |
Wed, 23 Nov 2005 11:55:00 +0100 |
Update of hrm/templates/base
Modified Files:
Branch: MAIN
job.xsl lines: +530 -4
place.xsl lines: +14 -263
user.xsl lines: +13 -14
Log Message:
*** empty log message ***
====================================================
Index: hrm/templates/base/job.xsl
diff -u hrm/templates/base/job.xsl:1.4 hrm/templates/base/job.xsl:1.5
--- hrm/templates/base/job.xsl:1.4 Tue Nov 22 13:26:35 2005
+++ hrm/templates/base/job.xsl Wed Nov 23 10:55:40 2005
@@ -5,8 +5,17 @@
<xsl:when test="edit_job">
<xsl:apply-templates select="edit_job"/>
</xsl:when>
- <xsl:when test="edit">
- <xsl:apply-templates select="edit"/>
+ <xsl:when test="edit_job">
+ <xsl:apply-templates select="view_job"/>
+ </xsl:when>
+ <xsl:when test="edit_task">
+ <xsl:apply-templates select="edit_task"/>
+ </xsl:when>
+ <xsl:when test="view_task">
+ <xsl:apply-templates select="view_task"/>
+ </xsl:when>
+ <xsl:when test="task">
+ <xsl:apply-templates select="task"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="list"/>
@@ -56,6 +65,9 @@
<xsl:value-of select="lang_descr"/>
</td>
<td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_task"/>
+ </td>
+ <td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_add_sub"/>
</td>
<td class="th_text" width="5%" align="center">
@@ -71,6 +83,7 @@
</xsl:template>
<xsl:template match="values">
+ <xsl:variable name="lang_task_job_text"><xsl:value-of
select="lang_task_job_text"/></xsl:variable>
<xsl:variable name="lang_view_job_text"><xsl:value-of
select="lang_view_job_text"/></xsl:variable>
<xsl:variable name="lang_edit_job_text"><xsl:value-of
select="lang_edit_job_text"/></xsl:variable>
<xsl:variable name="lang_delete_job_text"><xsl:value-of
select="lang_delete_job_text"/></xsl:variable>
@@ -97,6 +110,10 @@
<xsl:value-of select="descr"/>
</td>
<td align="center">
+ <xsl:variable
name="link_task"><xsl:value-of select="link_task"/></xsl:variable>
+ <a href="{$link_task}"
onMouseover="window.status='{$lang_task_job_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_task"/></a>
+ </td>
+ <td align="center">
<xsl:variable
name="link_add_sub"><xsl:value-of select="link_add_sub"/></xsl:variable>
<a href="{$link_add_sub}"
onMouseover="window.status='{$lang_add_sub_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_add_sub"/></a>
</td>
@@ -178,7 +195,7 @@
</tr>
</xsl:template>
-<!-- add / edit -->
+<!-- add job / edit job-->
<xsl:template match="edit_job">
<div align="left">
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
@@ -298,6 +315,515 @@
</form>
</div>
</xsl:template>
+
+<!-- view job-->
+ <xsl:template match="view_job">
+ <div align="left">
+ <xsl:variable name="form_action"><xsl:value-of
select="done_action"/></xsl:variable>
+ <form method="post" action="{$form_action}">
+ <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:choose>
+ <xsl:when test="value_id != ''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_id"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_entry_date"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_entry_date"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_parent"/>
+ </td>
+ <td>
+ <xsl:for-each
select="parent_list[selected='selected']" >
+ <xsl:value-of select="name"/>
+ <xsl:if test="position() !=
last()">, </xsl:if>
+ </xsl:for-each>
+ </td>
+
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_name"/>
+ </td>
+ <td>
+ <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_descr"/>
+ </td>
+ <td>
+ <textarea cols="60" readonly="true"
rows="10" name="values[descr]" wrap="virtual">
+ <xsl:value-of
select="value_descr"/>
+ </textarea>
+
+ </td>
+ </tr>
+
+ <tr height="50">
+ <TD colspan = "2">
+ <TABLE align = "center">
+ <TR>
+ <td align="left" valign="bottom">
+ <xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
+ <input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_cancel_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </TR>
+ </TABLE>
+ </TD>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </xsl:template>
+
+<!-- task -->
+ <xsl:template match="task">
+ <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>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_job_name"/>
+ <xsl:text>: </xsl:text>
+ </td>
+ <td>
+ <xsl:value-of select="value_job_name"/>
+ </td>
+ </tr>
+
+
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates
select="table_header_task"/>
+ <xsl:apply-templates select="values_task"/>
+ </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_task">
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></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_name}"><xsl:value-of
select="lang_name"/></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_task">
+ <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="name"/>
+ </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 task / edit task -->
+ <xsl:template match="edit_task">
+ <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="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:choose>
+ <xsl:when test="value_id != ''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_id"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_entry_date"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_entry_date"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <td width="10%">
+ <xsl:value-of select="lang_category"/>
+ </td>
+ <td>
+ <!-- <xsl:call-template
name="cat_select"/>-->
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_name"/>
+ </td>
+ <td>
+ <input type="text" size="60"
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_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_reference"/>
+ </td>
+ <td>
+ <input type="text" 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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td>
+ <textarea 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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_skill"/>
+ </td>
+ <td>
+ <xsl:variable
name="lang_skill_status_text"><xsl:value-of
select="lang_skill_status_text"/></xsl:variable>
+ <select name="values[skill]"
class="forms" onMouseover="window.status='{$lang_skill_status_text}'; return
true;" onMouseout="window.status='';return true;">
+ <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>
+ <xsl:variable
name="lang_place_status_text"><xsl:value-of
select="lang_place_status_text"/></xsl:variable>
+ <select name="place_id" onChange
="modplace(this.form)" class="forms"
onMouseover="window.status='{$lang_place_status_text}'; return true;"
onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_place"/></option>
+ <option
value="new_place"><xsl:value-of select="lang_new_place"/></option>
+ <xsl:apply-templates
select="place_list"/>
+ </select>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr height="50">
+ <td colspan = "2" align = "center"><table><tr>
+ <td valign="bottom">
+ <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_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td valign="bottom">
+ <xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
+ <input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_apply_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td align="left" valign="bottom">
+ <xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
+ <input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_cancel_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr></table></td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </xsl:template>
+
+
+<!-- view task / view task -->
+ <xsl:template match="view_task">
+ <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="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:choose>
+ <xsl:when test="value_id != ''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_id"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_id"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_entry_date"/>
+ </td>
+ <td>
+ <xsl:value-of
select="value_entry_date"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <td width="10%">
+ <xsl:value-of select="lang_category"/>
+ </td>
+ <td>
+ <!-- <xsl:call-template
name="cat_select"/>-->
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_name"/>
+ </td>
+ <td>
+ <input type="text" size="60"
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_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_reference"/>
+ </td>
+ <td>
+ <input type="text" 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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td>
+ <textarea 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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_skill"/>
+ </td>
+ <td>
+ <xsl:variable
name="lang_skill_status_text"><xsl:value-of
select="lang_skill_status_text"/></xsl:variable>
+ <select name="values[skill]"
class="forms" onMouseover="window.status='{$lang_skill_status_text}'; return
true;" onMouseout="window.status='';return true;">
+ <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>
+ <xsl:variable
name="lang_place_status_text"><xsl:value-of
select="lang_place_status_text"/></xsl:variable>
+ <select name="place_id" onChange
="modplace(this.form)" class="forms"
onMouseover="window.status='{$lang_place_status_text}'; return true;"
onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_place"/></option>
+ <option
value="new_place"><xsl:value-of select="lang_new_place"/></option>
+ <xsl:apply-templates
select="place_list"/>
+ </select>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr height="50">
+ <td colspan = "2" align = "center"><table><tr>
+ <td valign="bottom">
+ <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_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td valign="bottom">
+ <xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
+ <input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_apply_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td align="left" valign="bottom">
+ <xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
+ <input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_cancel_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr></table></td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </xsl:template>
+
+
<xsl:template match="parent_list">
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
====================================================
Index: hrm/templates/base/place.xsl
diff -u hrm/templates/base/place.xsl:1.2 hrm/templates/base/place.xsl:1.3
--- hrm/templates/base/place.xsl:1.2 Tue Nov 22 18:20:09 2005
+++ hrm/templates/base/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>
====================================================
Index: hrm/templates/base/user.xsl
diff -u hrm/templates/base/user.xsl:1.1 hrm/templates/base/user.xsl:1.2
--- hrm/templates/base/user.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/user.xsl Wed Nov 23 10:55:40 2005
@@ -533,11 +533,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>
-
+ <xsl:for-each
select="cat_list[selected='selected']" >
+ <xsl:value-of select="name"/>
+ <xsl:if test="position() !=
last()">, </xsl:if>
+ </xsl:for-each>
</td>
</tr>
<tr>
@@ -616,10 +615,10 @@
<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>
+ <xsl:for-each
select="skill_list[selected='selected']" >
+ <xsl:value-of select="name"/>
+ <xsl:if test="position() !=
last()">, </xsl:if>
+ </xsl:for-each>
</td>
</tr>
<tr>
@@ -627,10 +626,10 @@
<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>
+ <xsl:for-each
select="place_list[selected='selected']" >
+ <xsl:value-of select="name"/>
+ <xsl:if test="position() !=
last()">, </xsl:if>
+ </xsl:for-each>
</td>
</tr>
</table>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] hrm/templates/base job.xsl, 1.5 place.xsl, 1.3 user.xsl, 1.2,
sigurdne <=