[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] hrm/templates/base menu.xsl, 1.2 job.xsl, 1.8 nextmat
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] hrm/templates/base menu.xsl, 1.2 job.xsl, 1.8 nextmatchs.xsl, 1.2 place.xsl, 1.4 user.xsl, 1.5 search_field.xsl, 1.2 group_filter.xsl, 1.2 filter_select.xsl, 1.2 cat_select.xsl, 1.2 cat_filter.xsl, 1.2 category.xsl, 1.2 filter_filter.xsl, 1.2 filter_location.xsl, 1.2 app_delete.xsl, 1.2 admin.xsl, 1.3 |
Date: |
Wed, 30 Nov 2005 18:07:00 +0100 |
Update of hrm/templates/base
Modified Files:
Branch: MAIN
menu.xsl lines: +69 -69
job.xsl lines: +960 -831
nextmatchs.xsl lines: +155 -155
place.xsl lines: +343 -344
user.xsl lines: +737 -737
search_field.xsl lines: +66 -66
group_filter.xsl lines: +34 -34
filter_select.xsl lines: +22 -22
cat_select.xsl lines: +22 -22
cat_filter.xsl lines: +34 -34
category.xsl lines: +206 -206
filter_filter.xsl lines: +34 -34
filter_location.xsl lines: +39 -39
app_delete.xsl lines: +41 -41
admin.xsl lines: +863 -863
Log Message:
no message
====================================================
Index: hrm/templates/base/menu.xsl
diff -u hrm/templates/base/menu.xsl:1.1 hrm/templates/base/menu.xsl:1.2
--- hrm/templates/base/menu.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/menu.xsl Wed Nov 30 17:07:22 2005
@@ -1,69 +1,69 @@
- <xsl:template name="menu">
- <xsl:apply-templates select="links"/>
- </xsl:template>
- <xsl:template match="links">
- <table width="100%" align="center">
- <tr >
- <xsl:attribute name="class">
- <xsl:text>row_on</xsl:text>
- </xsl:attribute>
- <td align="left">
- <xsl:for-each select="module" >
- <xsl:text> </xsl:text>
- <xsl:choose>
- <xsl:when test="this=1">
- <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
- </xsl:when>
- <xsl:otherwise>
- <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:for-each>
- </td>
- </tr>
- <tr>
- <xsl:attribute name="class">
- <xsl:text>row_off</xsl:text>
- </xsl:attribute>
- <td align="left">
- <xsl:for-each select="sub_menu" >
- <xsl:text> </xsl:text>
- <xsl:choose>
- <xsl:when test="this=1">
- <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
- </xsl:when>
- <xsl:otherwise>
- <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </td>
- </tr>
-
- <xsl:choose>
- <xsl:when test="sub_menu_2!=''">
- <tr>
- <xsl:attribute name="class">
-
<xsl:text>row_off</xsl:text>
- </xsl:attribute>
- <td align="left">
- <xsl:for-each
select="sub_menu_2" >
- <xsl:text>
</xsl:text>
- <xsl:choose>
-
<xsl:when test="this=1">
-
<a href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
-
</xsl:when>
-
<xsl:otherwise>
-
<a href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
-
</xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
-
- </table>
- <hr noshade="noshade" width="100%" align="center" size="1"/>
- </xsl:template>
\ No newline at end of file
+ <xsl:template name="menu">
+ <xsl:apply-templates select="links"/>
+ </xsl:template>
+ <xsl:template match="links">
+ <table width="100%" align="center">
+ <tr >
+ <xsl:attribute name="class">
+ <xsl:text>row_on</xsl:text>
+ </xsl:attribute>
+ <td align="left">
+ <xsl:for-each select="module" >
+ <xsl:text> </xsl:text>
+ <xsl:choose>
+ <xsl:when test="this=1">
+ <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:for-each>
+ </td>
+ </tr>
+ <tr>
+ <xsl:attribute name="class">
+ <xsl:text>row_off</xsl:text>
+ </xsl:attribute>
+ <td align="left">
+ <xsl:for-each select="sub_menu" >
+ <xsl:text> </xsl:text>
+ <xsl:choose>
+ <xsl:when test="this=1">
+ <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a
href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </td>
+ </tr>
+
+ <xsl:choose>
+ <xsl:when test="sub_menu_2!=''">
+ <tr>
+ <xsl:attribute name="class">
+
<xsl:text>row_off</xsl:text>
+ </xsl:attribute>
+ <td align="left">
+ <xsl:for-each
select="sub_menu_2" >
+ <xsl:text>
</xsl:text>
+ <xsl:choose>
+
<xsl:when test="this=1">
+
<a href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return
true;"><b><xsl:text>[</xsl:text><xsl:value-of
select="name"/><xsl:text>]</xsl:text></b></a>
+
</xsl:when>
+
<xsl:otherwise>
+
<a href="{link}" onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+
</xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+
+ </table>
+ <hr noshade="noshade" width="100%" align="center" size="1"/>
+ </xsl:template>
====================================================
Index: hrm/templates/base/job.xsl
diff -u hrm/templates/base/job.xsl:1.7 hrm/templates/base/job.xsl:1.8
--- hrm/templates/base/job.xsl:1.7 Tue Nov 29 15:07:58 2005
+++ hrm/templates/base/job.xsl Wed Nov 30 17:07:22 2005
@@ -1,832 +1,961 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_data">
- <xsl:choose>
- <xsl:when test="edit_job">
- <xsl:apply-templates select="edit_job"/>
- </xsl:when>
- <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"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="list">
- <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>
- <tr>
- <td align="right">
- <xsl:call-template name="search_field"/>
- </td>
- </tr>
- <tr>
- <td colspan="3" width="100%">
- <xsl:call-template name="nextmatchs"/>
- <!-- <xsl:with-param
name="nextmatchs_params"/>
- </xsl:call-template> -->
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates select="table_header"/>
- <xsl:apply-templates select="values"/>
- <xsl:apply-templates select="table_add_job"/>
- </table>
- </xsl:template>
-
- <xsl:template match="table_header">
- <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></xsl:variable>
- <tr class="th">
- <td class="th_text" width="20%" align="left">
- <a href="{$sort_name}"><xsl:value-of
select="lang_name"/></a>
- </td>
- <td class="th_text" width="20%" align="left">
- <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">
- <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">
- <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>
- <xsl:variable name="lang_add_sub_text"><xsl:value-of
select="lang_add_sub_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="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>
- <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_job_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_job_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_job_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
- </td>
- </tr>
- </xsl:template>
-
-
- <xsl:template match="table_add_job">
- <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>
- <td height="50">
- <xsl:variable
name="reset_action"><xsl:value-of select="reset_action"/></xsl:variable>
- <xsl:variable
name="lang_reset"><xsl:value-of select="lang_reset"/></xsl:variable>
- <form method="post"
action="{$reset_action}">
- <input type="submit" name="add"
value="{$lang_reset}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_reset_statustext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </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>
- <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="add"
value="{$lang_done}" 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>
-
-<!-- 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>
- <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:variable
name="lang_parent_status_text"><xsl:value-of
select="lang_parent_status_text"/></xsl:variable>
- <select name="values[parent_id]"
class="forms" onMouseover="window.status='{$lang_parent_status_text}'; return
true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_parent"/></option>
- <xsl:apply-templates
select="parent_list"/>
- </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_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_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- <xsl:value-of
select="value_descr"/>
- </textarea>
-
- </td>
- </tr>
-
- <tr height="50">
- <TD colspan = "2">
- <TABLE align = "center">
- <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 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:variable
name="lang_cat_status_text"><xsl:value-of
select="lang_cat_status_text"/></xsl:variable>
- <select name="values[cat_id]"
class="forms" onMouseover="window.status='{$lang_cat_status_text}'; return
true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_cat"/></option>
- <xsl:apply-templates
select="cat_list"/>
- </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_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_id]"
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_experience"/>
- </td>
- <td>
- <xsl:variable
name="lang_experience_status_text"><xsl:value-of
select="lang_experience_status_text"/></xsl:variable>
- <select name="values[experience_id]"
class="forms" onMouseover="window.status='{$lang_experience_status_text}';
return true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_experience"/></option>
- <xsl:apply-templates
select="experience_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: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>
- <td valign="top">
- <xsl:value-of select="lang_name"/>
- </td>
- <td>
- <input readonly="true" 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_descr"/>
- </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>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_skill"/>
- </td>
- <td>
- <xsl:for-each
select="skill_list[selected='selected']" >
- <xsl:value-of select="name"/>
- <xsl:if test="position() !=
last()">, </xsl:if>
+<!-- $Id$ -->
+
+ <xsl:template name="app_data">
+ <xsl:choose>
+ <xsl:when test="edit_job">
+ <xsl:apply-templates select="edit_job"/>
+ </xsl:when>
+ <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="lookup_task">
+ <xsl:apply-templates select="lookup_task"/>
+ </xsl:when>
+ <xsl:when test="task">
+ <xsl:apply-templates select="task"/>
+ </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">
+ <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 align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ <!-- <xsl:with-param
name="nextmatchs_params"/>
+ </xsl:call-template> -->
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates select="table_header"/>
+ <xsl:apply-templates select="values"/>
+ <xsl:apply-templates select="table_add_job"/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="table_header">
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="20%" align="left">
+ <a href="{$sort_name}"><xsl:value-of
select="lang_name"/></a>
+ </td>
+ <td class="th_text" width="20%" align="left">
+ <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">
+ <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">
+ <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>
+ <xsl:variable name="lang_add_sub_text"><xsl:value-of
select="lang_add_sub_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="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>
+ <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_job_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_job_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_job_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+ <xsl:template match="table_add_job">
+ <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>
+ <td height="50">
+ <xsl:variable
name="reset_action"><xsl:value-of select="reset_action"/></xsl:variable>
+ <xsl:variable
name="lang_reset"><xsl:value-of select="lang_reset"/></xsl:variable>
+ <form method="post"
action="{$reset_action}">
+ <input type="submit" name="add"
value="{$lang_reset}" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_reset_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </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>
+ <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="add"
value="{$lang_done}" 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>
+
+<!-- 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>
+ <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:variable
name="lang_parent_status_text"><xsl:value-of
select="lang_parent_status_text"/></xsl:variable>
+ <select name="values[parent_id]"
class="forms" onMouseover="window.status='{$lang_parent_status_text}'; return
true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_parent"/></option>
+ <xsl:apply-templates
select="parent_list"/>
+ </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_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_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ <xsl:value-of
select="value_descr"/>
+ </textarea>
+
+ </td>
+ </tr>
+
+ <tr height="50">
+ <TD colspan = "2">
+ <TABLE align = "center">
+ <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 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_experience"/>
- </td>
- <td>
- <xsl:for-each
select="experience_list[selected='selected']" >
- <xsl:value-of select="name"/>
- <xsl:if test="position() !=
last()">, </xsl:if>
- </xsl:for-each>
- </td>
- </tr>
- <tr height="50">
- <td colspan = "2" align = "center"><table><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>
-
-
-
- <xsl:template match="parent_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="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="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="experience_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>
+ </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>
+
+<!-- lookup_task -->
+ <xsl:template match="lookup_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_lookup_task"/>
+ <xsl:apply-templates
select="values_lookup_task"/>
+ <tr>
+ <td>
+ <input type="button"
name="Done" value="{lang_cancel}" onclick="window.close()" />
+ </td>
+ </tr>
+ </table>
+ </table>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="table_header_lookup_task">
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></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">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_select"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="values_lookup_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="descr"/>
+ </td>
+ <td class="small_text" valign="top" align =
"center">
+ <form>
+ <input type="hidden"
name="hidden" value="{id}"></input>
+ <input type="hidden"
name="hidden" value="{name}"></input>
+ <xsl:variable
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
+ <input type="button"
name="convert" value="{$lang_select}" onClick="ExchangeTaskSelect(this.form);"
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>
+ </form>
+ </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}" name = "app_form">
+ <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:variable
name="lang_cat_status_text"><xsl:value-of
select="lang_cat_status_text"/></xsl:variable>
+ <select name="values[cat_id]"
class="forms" onMouseover="window.status='{$lang_cat_status_text}'; return
true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_cat"/></option>
+ <xsl:apply-templates
select="cat_list"/>
+ </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_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_id]"
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_experience"/>
+ </td>
+ <td>
+ <xsl:variable
name="lang_experience_status_text"><xsl:value-of
select="lang_experience_status_text"/></xsl:variable>
+ <select name="values[experience_id]"
class="forms" onMouseover="window.status='{$lang_experience_status_text}';
return true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_experience"/></option>
+ <xsl:apply-templates
select="experience_list"/>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_alternative"/>
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td>
+ <select multiple="true"
size = "1" name="alternative_task[]" class="forms"
onMouseover="window.status=''; return true;"
onMouseout="window.status='';return true;">
+ <option
value=""><xsl:value-of select="lang_no_alternative"/></option>
+
<xsl:apply-templates select="task_list"/>
+ </select>
+ </td>
+ <td valign="top">
+ <input type="button"
value="{lang_open_popup}" onClick="tasks_popup()"></input>
+ <input type="hidden"
name="accountid" value=""></input>
+ </td>
+ </tr>
+ </table>
+ </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: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>
+ <td valign="top">
+ <xsl:value-of select="lang_name"/>
+ </td>
+ <td>
+ <input readonly="true" 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_descr"/>
+ </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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_skill"/>
+ </td>
+ <td>
+ <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>
+ <td valign="top">
+ <xsl:value-of select="lang_experience"/>
+ </td>
+ <td>
+ <xsl:for-each
select="experience_list[selected='selected']" >
+ <xsl:value-of select="name"/>
+ <xsl:if test="position() !=
last()">, </xsl:if>
+ </xsl:for-each>
+ </td>
+ </tr>
+ <tr height="50">
+ <td colspan = "2" align = "center"><table><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>
+
+
+ <xsl:template match="parent_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="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="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="experience_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="task_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/nextmatchs.xsl
diff -u hrm/templates/base/nextmatchs.xsl:1.1
hrm/templates/base/nextmatchs.xsl:1.2
--- hrm/templates/base/nextmatchs.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/nextmatchs.xsl Wed Nov 30 17:07:22 2005
@@ -1,155 +1,155 @@
-<!-- $Id$ -->
-
-<xsl:template name="nextmatchs">
- <xsl:variable name="allow_allrows"><xsl:value-of
select="allow_allrows"/></xsl:variable>
- <xsl:variable name="start_record"><xsl:value-of
select="start_record"/></xsl:variable>
- <xsl:variable name="cur_record"><xsl:value-of
select="number($start_record) + number(1)"/></xsl:variable>
- <xsl:variable name="record_limit"><xsl:value-of
select="record_limit"/></xsl:variable>
- <xsl:variable name="num_records"><xsl:value-of
select="num_records"/></xsl:variable>
- <xsl:variable name="all_records"><xsl:value-of
select="all_records"/></xsl:variable>
- <xsl:variable name="link_url"><xsl:value-of
select="link_url"/></xsl:variable>
- <xsl:variable name="img_path"><xsl:value-of
select="img_path"/></xsl:variable>
-
- <table border="0" width="100%">
- <tr>
- <xsl:choose>
- <xsl:when test="number($cur_record) >
number(1)">
- <xsl:variable name="first"><xsl:value-of
select="link_url"/>&start=0</xsl:variable>
- <td width="25">
- <a href="{$first}"><img
src="{$img_path}/first.png" border="1" width="12" height="12"/></a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="25">
- <img
src="{$img_path}/first-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="number($cur_record) >
number(1)">
- <xsl:variable name="prev_num"><xsl:value-of
select="number($cur_record) - number($record_limit)"/></xsl:variable>
- <xsl:choose>
- <xsl:when
test="number($prev_num)+number(1) >= number(1)">
- <xsl:choose>
- <xsl:when
test="number($cur_record) - number($record_limit) > number(0)">
- <xsl:variable
name="prev_number"><xsl:value-of select="number($cur_record) -
number($record_limit)"/></xsl:variable>
- <xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($prev_number) - number(1)"/></xsl:variable>
- <td
width="25">
-
<a href="{$prev}"><img src="{$img_path}/left.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
- <td
width="25">
-
<a href="{$prev}"><img src="{$img_path}/left-grey.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <td width="25">
- <img
src="{$img_path}/left-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <td width="25">
- <img
src="{$img_path}/left-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="number($num_records) =
number(0)">
- <td nowrap="nowrap" align="center">0 -
0 of 0 </td>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when
test="number($cur_record) + number($record_limit) > number($num_records)">
- <xsl:variable
name="of_num"><xsl:value-of select="number($cur_record)+number($num_records) -
number(1)"/></xsl:variable>
- <td nowrap="nowrap"
align="center">
- <xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
- </td>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable
name="of_num"><xsl:value-of select="number($cur_record) + number($record_limit)
- number(1)"/></xsl:variable>
- <td nowrap="nowrap"
align="center">
- <xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
- <xsl:variable name="next_num"><xsl:value-of
select="number($cur_record) + number($record_limit)"/></xsl:variable>
- <xsl:choose>
- <xsl:when
test="number($all_records) > number($next_num)-number(1)">
- <xsl:variable
name="next"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($next_num) - number(1)"/></xsl:variable>
- <td width="25"
align="right">
- <a
href="{$next}"><img src="{$img_path}/right.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="25"
align="right">
- <img
src="{$img_path}/right-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <td width="25" align="right">
- <img
src="{$img_path}/right-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
- <xsl:variable name="last_num"><xsl:value-of
select="number($all_records)-number($record_limit)+number(1)"/></xsl:variable>
- <xsl:choose>
- <xsl:when
test="number($last_num) > number($cur_record)">
- <xsl:variable
name="last"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($last_num)-number(1)"/></xsl:variable>
- <td width="25"
align="right">
- <a
href="{$last}"><img src="{$img_path}/last.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="25"
align="right">
- <img
src="{$img_path}/last-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <td width="25" align="right">
- <img
src="{$img_path}/last-grey.png" border="1" width="12" height="12"/>
- </td>
- </xsl:otherwise>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="$allow_allrows=1">
- <xsl:choose>
- <xsl:when test="allrows =1">
- <xsl:variable
name="all"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
- <td width="25"
align="right">
- <xsl:value-of
select="lang_delete"/>
- <a
href="{$all}"><img src="{$img_path}/down.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <xsl:variable
name="all"><xsl:value-of select="link_url"/>&allrows=1</xsl:variable>
- <td width="25"
align="right">
- <a
href="{$all}"><img src="{$img_path}/down.png" border="1" width="12"
height="12"/></a>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
- </tr>
- </table>
-</xsl:template>
+<!-- $Id$ -->
+
+<xsl:template name="nextmatchs">
+ <xsl:variable name="allow_allrows"><xsl:value-of
select="allow_allrows"/></xsl:variable>
+ <xsl:variable name="start_record"><xsl:value-of
select="start_record"/></xsl:variable>
+ <xsl:variable name="cur_record"><xsl:value-of
select="number($start_record) + number(1)"/></xsl:variable>
+ <xsl:variable name="record_limit"><xsl:value-of
select="record_limit"/></xsl:variable>
+ <xsl:variable name="num_records"><xsl:value-of
select="num_records"/></xsl:variable>
+ <xsl:variable name="all_records"><xsl:value-of
select="all_records"/></xsl:variable>
+ <xsl:variable name="link_url"><xsl:value-of
select="link_url"/></xsl:variable>
+ <xsl:variable name="img_path"><xsl:value-of
select="img_path"/></xsl:variable>
+
+ <table border="0" width="100%">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="number($cur_record) >
number(1)">
+ <xsl:variable name="first"><xsl:value-of
select="link_url"/>&start=0</xsl:variable>
+ <td width="25">
+ <a href="{$first}"><img
src="{$img_path}/first.png" border="1" width="12" height="12"/></a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25">
+ <img
src="{$img_path}/first-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="number($cur_record) >
number(1)">
+ <xsl:variable name="prev_num"><xsl:value-of
select="number($cur_record) - number($record_limit)"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="number($prev_num)+number(1) >= number(1)">
+ <xsl:choose>
+ <xsl:when
test="number($cur_record) - number($record_limit) > number(0)">
+ <xsl:variable
name="prev_number"><xsl:value-of select="number($cur_record) -
number($record_limit)"/></xsl:variable>
+ <xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($prev_number) - number(1)"/></xsl:variable>
+ <td
width="25">
+
<a href="{$prev}"><img src="{$img_path}/left.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable
name="prev"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
+ <td
width="25">
+
<a href="{$prev}"><img src="{$img_path}/left-grey.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25">
+ <img
src="{$img_path}/left-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25">
+ <img
src="{$img_path}/left-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="number($num_records) =
number(0)">
+ <td nowrap="nowrap" align="center">0 -
0 of 0 </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="number($cur_record) + number($record_limit) > number($num_records)">
+ <xsl:variable
name="of_num"><xsl:value-of select="number($cur_record)+number($num_records) -
number(1)"/></xsl:variable>
+ <td nowrap="nowrap"
align="center">
+ <xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable
name="of_num"><xsl:value-of select="number($cur_record) + number($record_limit)
- number(1)"/></xsl:variable>
+ <td nowrap="nowrap"
align="center">
+ <xsl:value-of
select="$cur_record"/> - <xsl:value-of select="$of_num"/> of <xsl:value-of
select="$all_records"/> 
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
+ <xsl:variable name="next_num"><xsl:value-of
select="number($cur_record) + number($record_limit)"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="number($all_records) > number($next_num)-number(1)">
+ <xsl:variable
name="next"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($next_num) - number(1)"/></xsl:variable>
+ <td width="25"
align="right">
+ <a
href="{$next}"><img src="{$img_path}/right.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25"
align="right">
+ <img
src="{$img_path}/right-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25" align="right">
+ <img
src="{$img_path}/right-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="number($all_records) >
(number($start_record) + number($record_limit))">
+ <xsl:variable name="last_num"><xsl:value-of
select="number($all_records)-number($record_limit)+number(1)"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when
test="number($last_num) > number($cur_record)">
+ <xsl:variable
name="last"><xsl:value-of select="link_url"/>&start=<xsl:value-of
select="number($last_num)-number(1)"/></xsl:variable>
+ <td width="25"
align="right">
+ <a
href="{$last}"><img src="{$img_path}/last.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25"
align="right">
+ <img
src="{$img_path}/last-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <td width="25" align="right">
+ <img
src="{$img_path}/last-grey.png" border="1" width="12" height="12"/>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="$allow_allrows=1">
+ <xsl:choose>
+ <xsl:when test="allrows =1">
+ <xsl:variable
name="all"><xsl:value-of select="link_url"/>&start=0</xsl:variable>
+ <td width="25"
align="right">
+ <xsl:value-of
select="lang_delete"/>
+ <a
href="{$all}"><img src="{$img_path}/down.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable
name="all"><xsl:value-of select="link_url"/>&allrows=1</xsl:variable>
+ <td width="25"
align="right">
+ <a
href="{$all}"><img src="{$img_path}/down.png" border="1" width="12"
height="12"/></a>
+ </td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </table>
+</xsl:template>
====================================================
Index: hrm/templates/base/place.xsl
diff -u hrm/templates/base/place.xsl:1.3 hrm/templates/base/place.xsl:1.4
--- hrm/templates/base/place.xsl:1.3 Wed Nov 23 10:55:40 2005
+++ hrm/templates/base/place.xsl Wed Nov 30 17:07:22 2005
@@ -1,344 +1,343 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_data">
- <xsl:choose>
- <xsl:when test="edit">
- <xsl:apply-templates select="edit"/>
- </xsl:when>
- <xsl:when test="edit">
- <xsl:apply-templates select="view"/>
- </xsl:when>
- <xsl:when test="training">
- <xsl:apply-templates select="training"/>
- </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">
- <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 align="right">
- <xsl:call-template name="search_field"/>
- </td>
- </tr>
- <tr>
- <td colspan="3" width="100%">
- <xsl:call-template name="nextmatchs"/>
- <!-- <xsl:with-param
name="nextmatchs_params"/>
- </xsl:call-template> -->
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates select="table_header"/>
- <xsl:apply-templates select="values"/>
- <xsl:apply-templates select="table_add"/>
- </table>
- </xsl:template>
-
- <xsl:template match="table_header">
- <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></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="5%" align="center">
- <xsl:value-of select="lang_edit"/>
- </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_delete"/>
- </td>
- </tr>
- </xsl:template>
-
- <xsl:template match="values">
- <xsl:variable name="lang_view_place_text"><xsl:value-of
select="lang_view_place_text"/></xsl:variable>
- <xsl:variable name="lang_edit_place_text"><xsl:value-of
select="lang_edit_place_text"/></xsl:variable>
- <xsl:variable name="lang_delete_place_text"><xsl:value-of
select="lang_delete_place_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="center">
- <xsl:variable
name="link_edit"><xsl:value-of select="link_edit"/></xsl:variable>
- <a href="{$link_edit}"
onMouseover="window.status='{$lang_edit_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
- </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_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></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_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
- </td>
- </tr>
- </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>
-
-
-<!-- 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="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" width="30%">
- <xsl:value-of select="lang_id"/>
- </td>
- <td align="left">
- <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" width="10%">
- <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_address"/>
- </td>
- <td>
- <input type="text" size="60"
name="values[address]" value="{value_address}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_address_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_zip"/>
- </td>
- <td>
- <input type="text" size="6"
name="values[zip]" value="{value_zip}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_zip_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- <xsl:value-of select="lang_town"/>
- <input type="text" size="40"
name="values[town]" value="{value_town}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_town_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_remark"/>
- </td>
- <td>
- <textarea cols="60" rows="10"
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_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- <xsl:value-of
select="value_remark"/>
- </textarea>
- </td>
- </tr>
- <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 -->
- <xsl:template match="view">
- <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">
- <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>
- <tr>
- <td valign="top" width="10%">
- <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_address"/>
- </td>
- <td>
- <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_zip"/>
- </td>
- <td>
- <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_remark"/>
- </td>
- <td>
- <textarea cols="60" readonly="true"
rows="10" name="values[remark]">
- <xsl:value-of
select="value_remark"/>
- </textarea>
- </td>
- </tr>
- </table>
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <tr height="50">
- <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>
- </form>
- </div>
- </xsl:template>
-
+<!-- $Id$ -->
+
+ <xsl:template name="app_data">
+ <xsl:choose>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="edit"/>
+ </xsl:when>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="view"/>
+ </xsl:when>
+ <xsl:when test="training">
+ <xsl:apply-templates select="training"/>
+ </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">
+ <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 align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ <!-- <xsl:with-param
name="nextmatchs_params"/>
+ </xsl:call-template> -->
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates select="table_header"/>
+ <xsl:apply-templates select="values"/>
+ <xsl:apply-templates select="table_add"/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="table_header">
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></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="5%" align="center">
+ <xsl:value-of select="lang_edit"/>
+ </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_delete"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="values">
+ <xsl:variable name="lang_view_place_text"><xsl:value-of
select="lang_view_place_text"/></xsl:variable>
+ <xsl:variable name="lang_edit_place_text"><xsl:value-of
select="lang_edit_place_text"/></xsl:variable>
+ <xsl:variable name="lang_delete_place_text"><xsl:value-of
select="lang_delete_place_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="center">
+ <xsl:variable
name="link_edit"><xsl:value-of select="link_edit"/></xsl:variable>
+ <a href="{$link_edit}"
onMouseover="window.status='{$lang_edit_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
+ </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_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></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_place_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
+ </td>
+ </tr>
+ </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>
+
+
+<!-- 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="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" width="30%">
+ <xsl:value-of select="lang_id"/>
+ </td>
+ <td align="left">
+ <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" width="10%">
+ <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_address"/>
+ </td>
+ <td>
+ <input type="text" size="60"
name="values[address]" value="{value_address}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_address_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_zip"/>
+ </td>
+ <td>
+ <input type="text" size="6"
name="values[zip]" value="{value_zip}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_zip_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <xsl:value-of select="lang_town"/>
+ <input type="text" size="40"
name="values[town]" value="{value_town}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_town_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_remark"/>
+ </td>
+ <td>
+ <textarea cols="60" rows="10"
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_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ <xsl:value-of
select="value_remark"/>
+ </textarea>
+ </td>
+ </tr>
+ <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 -->
+ <xsl:template match="view">
+ <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">
+ <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>
+ <tr>
+ <td valign="top" width="10%">
+ <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_address"/>
+ </td>
+ <td>
+ <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_zip"/>
+ </td>
+ <td>
+ <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_remark"/>
+ </td>
+ <td>
+ <textarea cols="60" readonly="true"
rows="10" name="values[remark]">
+ <xsl:value-of
select="value_remark"/>
+ </textarea>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr height="50">
+ <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>
+ </form>
+ </div>
+ </xsl:template>
====================================================
Index: hrm/templates/base/user.xsl
diff -u hrm/templates/base/user.xsl:1.4 hrm/templates/base/user.xsl:1.5
--- hrm/templates/base/user.xsl:1.4 Tue Nov 29 13:09:40 2005
+++ hrm/templates/base/user.xsl Wed Nov 30 17:07:22 2005
@@ -1,737 +1,737 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_data">
- <xsl:choose>
- <xsl:when test="edit">
- <xsl:apply-templates select="edit"/>
- </xsl:when>
- <xsl:when test="edit">
- <xsl:apply-templates select="view"/>
- </xsl:when>
- <xsl:when test="training">
- <xsl:apply-templates select="training"/>
- </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">
- <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 align="right">
- <xsl:call-template name="search_field"/>
- </td>
- </tr>
- <tr>
- <td colspan="3" width="100%">
- <xsl:call-template name="nextmatchs"/>
- <!-- <xsl:with-param
name="nextmatchs_params"/>
- </xsl:call-template> -->
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates select="table_header"/>
- <xsl:apply-templates select="values"/>
- </table>
- </xsl:template>
-
- <xsl:template match="table_header">
- <xsl:variable name="sort_last_name"><xsl:value-of
select="sort_last_name"/></xsl:variable>
- <xsl:variable name="sort_first_name"><xsl:value-of
select="sort_first_name"/></xsl:variable>
- <tr class="th">
- <td class="th_text" width="10%" align="left">
- <a href="{$sort_first_name}"><xsl:value-of
select="lang_first_name"/></a>
- </td>
- <td class="th_text" width="10%" align="left">
- <a href="{$sort_last_name}"><xsl:value-of
select="lang_last_name"/></a>
- </td>
- <td class="th_text" width="5%" align="center">
- <xsl:value-of select="lang_training"/>
- </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_view"/>
- </td>
- </tr>
- </xsl:template>
-
- <xsl:template match="values">
- <xsl:variable name="lang_view_user_text"><xsl:value-of
select="lang_view_user_text"/></xsl:variable>
- <xsl:variable name="lang_edit_user_text"><xsl:value-of
select="lang_edit_user_text"/></xsl:variable>
- <xsl:variable name="lang_training_user_text"><xsl:value-of
select="lang_training_user_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="first_name"/>
- </td>
- <td align="left">
- <xsl:value-of select="last_name"/>
- </td>
- <td align="center">
- <xsl:variable
name="link_training"><xsl:value-of select="link_training"/></xsl:variable>
- <a href="{$link_training}"
onMouseover="window.status='{$lang_training_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_training"/></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_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
- </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_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></a>
- </td>-->
- </tr>
- </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="user_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>
-
-
-
- <xsl:template match="table_add">
- <tr>
- <xsl:choose>
- <xsl:when test="add_action != ''">
- <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_training_text"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </xsl:when>
- </xsl:choose>
- <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="add"
value="{$lang_done}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_done_training_text"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </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="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:variable
name="lang_cat_statustext"><xsl:value-of
select="lang_cat_statustext"/></xsl:variable>
- <select name="values[cat_id]"
class="forms" onMouseover="window.status='{$lang_cat_statustext}'; return
true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_cat"/></option>
- <xsl:apply-templates
select="cat_list"/>
- </select>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_title"/>
- </td>
- <td>
- <input type="text" 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>
- <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>
- <script type="text/javascript">
- document.writeln('<img
id="values[start_date]-trigger" src="{date_img}"
title="{lang_start_date_title}" style="cursor:pointer; cursor:hand;"/>');
- <xsl:value-of
select="calendar_setup_start"/>
- </script>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_end_date"/>
- </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>
- <script type="text/javascript">
- document.writeln('<img
id="values[end_date]-trigger" src="{date_img}" title="{lang_end_date_title}"
style="cursor:pointer; cursor:hand;"/>');
- <xsl:value-of
select="calendar_setup_end"/>
- </script>
- </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>
- <div id="div1" STYLE="display: none">
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <tr>
- <td valign="top" width="10%">
- <xsl:value-of
select="lang_new_place_name"/>
- </td>
- <td>
- <input type="text" size="60"
name="values[new_place_name]" value="{value_new_place_name}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_new_place_name_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_new_place_address"/>
- </td>
- <td>
- <input type="text" size="60"
name="values[new_place_address]" value="{value_new_place_address}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_new_place_address_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_new_place_zip"/>
- </td>
- <td>
- <input type="text" size="6"
name="values[new_place_zip]" value="{value_new_place_zip}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_new_place_zip_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- <xsl:value-of
select="lang_new_place_town"/>
- <input type="text" size="40"
name="values[new_place_town]" value="{value_new_place_town}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_new_place_town_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_new_place_remark"/>
- </td>
- <td>
- <textarea cols="60" rows="10"
name="values[new_place_remark]" wrap="virtual"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_new_place_remark_status_text"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- <xsl:value-of
select="value_new_place_remark"/>
- </textarea>
- </td>
- </tr>
- </table>
- </div>
- <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 -->
- <xsl:template match="view">
- <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">
- <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>
- <tr>
- <td width="10%">
- <xsl:value-of select="lang_category"/>
- </td>
- <td>
- <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>
- <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>
- <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>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_end_date"/>
- </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>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_reference"/>
- </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>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_descr"/>
- </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>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_skill"/>
- </td>
- <td>
- <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>
- <td valign="top">
- <xsl:value-of select="lang_place"/>
- </td>
- <td>
- <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>
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <tr height="50">
- <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>
- </form>
- </div>
- </xsl:template>
-
-
- <xsl:template name="user_values">
- <xsl:for-each select="user_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="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>
+<!-- $Id$ -->
+
+ <xsl:template name="app_data">
+ <xsl:choose>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="edit"/>
+ </xsl:when>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="view"/>
+ </xsl:when>
+ <xsl:when test="training">
+ <xsl:apply-templates select="training"/>
+ </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">
+ <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 align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ <!-- <xsl:with-param
name="nextmatchs_params"/>
+ </xsl:call-template> -->
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates select="table_header"/>
+ <xsl:apply-templates select="values"/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="table_header">
+ <xsl:variable name="sort_last_name"><xsl:value-of
select="sort_last_name"/></xsl:variable>
+ <xsl:variable name="sort_first_name"><xsl:value-of
select="sort_first_name"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="10%" align="left">
+ <a href="{$sort_first_name}"><xsl:value-of
select="lang_first_name"/></a>
+ </td>
+ <td class="th_text" width="10%" align="left">
+ <a href="{$sort_last_name}"><xsl:value-of
select="lang_last_name"/></a>
+ </td>
+ <td class="th_text" width="5%" align="center">
+ <xsl:value-of select="lang_training"/>
+ </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_view"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="values">
+ <xsl:variable name="lang_view_user_text"><xsl:value-of
select="lang_view_user_text"/></xsl:variable>
+ <xsl:variable name="lang_edit_user_text"><xsl:value-of
select="lang_edit_user_text"/></xsl:variable>
+ <xsl:variable name="lang_training_user_text"><xsl:value-of
select="lang_training_user_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="first_name"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="last_name"/>
+ </td>
+ <td align="center">
+ <xsl:variable
name="link_training"><xsl:value-of select="link_training"/></xsl:variable>
+ <a href="{$link_training}"
onMouseover="window.status='{$lang_training_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_training"/></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_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
+ </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_user_text}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_view"/></a>
+ </td>-->
+ </tr>
+ </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="user_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>
+
+
+
+ <xsl:template match="table_add">
+ <tr>
+ <xsl:choose>
+ <xsl:when test="add_action != ''">
+ <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_training_text"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <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="add"
value="{$lang_done}" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_done_training_text"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </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="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:variable
name="lang_cat_statustext"><xsl:value-of
select="lang_cat_statustext"/></xsl:variable>
+ <select name="values[cat_id]"
class="forms" onMouseover="window.status='{$lang_cat_statustext}'; return
true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_cat"/></option>
+ <xsl:apply-templates
select="cat_list"/>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_title"/>
+ </td>
+ <td>
+ <input type="text" 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>
+ <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>
+ <script type="text/javascript">
+ document.writeln('<img
id="values[start_date]-trigger" src="{date_img}"
title="{lang_start_date_title}" style="cursor:pointer; cursor:hand;"/>');
+ <xsl:value-of
select="calendar_setup_start"/>
+ </script>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_end_date"/>
+ </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>
+ <script type="text/javascript">
+ document.writeln('<img
id="values[end_date]-trigger" src="{date_img}" title="{lang_end_date_title}"
style="cursor:pointer; cursor:hand;"/>');
+ <xsl:value-of
select="calendar_setup_end"/>
+ </script>
+ </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>
+ <div id="div1" STYLE="display: none">
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr>
+ <td valign="top" width="10%">
+ <xsl:value-of
select="lang_new_place_name"/>
+ </td>
+ <td>
+ <input type="text" size="60"
name="values[new_place_name]" value="{value_new_place_name}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_new_place_name_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_new_place_address"/>
+ </td>
+ <td>
+ <input type="text" size="60"
name="values[new_place_address]" value="{value_new_place_address}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_new_place_address_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_new_place_zip"/>
+ </td>
+ <td>
+ <input type="text" size="6"
name="values[new_place_zip]" value="{value_new_place_zip}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_new_place_zip_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <xsl:value-of
select="lang_new_place_town"/>
+ <input type="text" size="40"
name="values[new_place_town]" value="{value_new_place_town}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_new_place_town_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_new_place_remark"/>
+ </td>
+ <td>
+ <textarea cols="60" rows="10"
name="values[new_place_remark]" wrap="virtual"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_new_place_remark_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ <xsl:value-of
select="value_new_place_remark"/>
+ </textarea>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <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 -->
+ <xsl:template match="view">
+ <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">
+ <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>
+ <tr>
+ <td width="10%">
+ <xsl:value-of select="lang_category"/>
+ </td>
+ <td>
+ <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>
+ <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>
+ <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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_end_date"/>
+ </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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_reference"/>
+ </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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_descr"/>
+ </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>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_skill"/>
+ </td>
+ <td>
+ <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>
+ <td valign="top">
+ <xsl:value-of select="lang_place"/>
+ </td>
+ <td>
+ <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>
+ <table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <tr height="50">
+ <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>
+ </form>
+ </div>
+ </xsl:template>
+
+
+ <xsl:template name="user_values">
+ <xsl:for-each select="user_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="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/search_field.xsl
diff -u hrm/templates/base/search_field.xsl:1.1
hrm/templates/base/search_field.xsl:1.2
--- hrm/templates/base/search_field.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/search_field.xsl Wed Nov 30 17:07:22 2005
@@ -1,66 +1,66 @@
-<!-- $Id$ -->
-
- <xsl:template name="search_field">
- <xsl:variable name="select_url"><xsl:value-of
select="select_action"/></xsl:variable>
- <xsl:variable name="query"><xsl:value-of
select="query"/></xsl:variable>
- <xsl:variable name="lang_search"><xsl:value-of
select="lang_search"/></xsl:variable>
- <table>
- <tr>
- <td class="small_text" valign="top" align="left">
- <xsl:variable
name="link_date_search"><xsl:value-of select="link_date_search"/></xsl:variable>
- <xsl:variable
name="lang_date_search_help"><xsl:value-of
select="lang_date_search_help"/></xsl:variable>
- <xsl:variable
name="lang_date_search"><xsl:value-of select="lang_date_search"/></xsl:variable>
- <a href="javascript:var
w=window.open('{$link_date_search}','','width=300,height=300')"
-
onMouseOver="overlib('{$lang_date_search_help}', CAPTION,
'{$lang_date_search}')"
- onMouseOut="nd()">
- <xsl:value-of
select="lang_date_search"/></a>
-
- <table>
- <xsl:choose>
- <xsl:when test="start_date!=''">
- <tr>
- <td class="small_text"
align="left">
- <xsl:value-of
select="start_date"/>
- </td>
- </tr>
- <tr>
- <td class="small_text"
align="left">
- <xsl:value-of
select="end_date"/>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td class="small_text"
align="left">
- <xsl:value-of
select="lang_none"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </td>
-
- <td valign="top" align="right">
- <form method="post" name="search"
action="{$select_url}">
- <input type="hidden" name="start_date"
value="{start_date}"></input>
- <input type="hidden" name="end_date"
value="{end_date}"></input>
- <input type="text" name="query"
value="{$query}" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_searchfield_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- <xsl:text> </xsl:text>
- <input type="submit" name="submit"
value="{$lang_search}" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_searchbutton_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
+<!-- $Id$ -->
+
+ <xsl:template name="search_field">
+ <xsl:variable name="select_url"><xsl:value-of
select="select_action"/></xsl:variable>
+ <xsl:variable name="query"><xsl:value-of
select="query"/></xsl:variable>
+ <xsl:variable name="lang_search"><xsl:value-of
select="lang_search"/></xsl:variable>
+ <table>
+ <tr>
+ <td class="small_text" valign="top" align="left">
+ <xsl:variable
name="link_date_search"><xsl:value-of select="link_date_search"/></xsl:variable>
+ <xsl:variable
name="lang_date_search_help"><xsl:value-of
select="lang_date_search_help"/></xsl:variable>
+ <xsl:variable
name="lang_date_search"><xsl:value-of select="lang_date_search"/></xsl:variable>
+ <a href="javascript:var
w=window.open('{$link_date_search}','','width=300,height=300')"
+
onMouseOver="overlib('{$lang_date_search_help}', CAPTION,
'{$lang_date_search}')"
+ onMouseOut="nd()">
+ <xsl:value-of
select="lang_date_search"/></a>
+
+ <table>
+ <xsl:choose>
+ <xsl:when test="start_date!=''">
+ <tr>
+ <td class="small_text"
align="left">
+ <xsl:value-of
select="start_date"/>
+ </td>
+ </tr>
+ <tr>
+ <td class="small_text"
align="left">
+ <xsl:value-of
select="end_date"/>
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+ <td class="small_text"
align="left">
+ <xsl:value-of
select="lang_none"/>
+ </td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </td>
+
+ <td valign="top" align="right">
+ <form method="post" name="search"
action="{$select_url}">
+ <input type="hidden" name="start_date"
value="{start_date}"></input>
+ <input type="hidden" name="end_date"
value="{end_date}"></input>
+ <input type="text" name="query"
value="{$query}" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_searchfield_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <xsl:text> </xsl:text>
+ <input type="submit" name="submit"
value="{$lang_search}" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_searchbutton_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
====================================================
Index: hrm/templates/base/group_filter.xsl
diff -u hrm/templates/base/group_filter.xsl:1.1
hrm/templates/base/group_filter.xsl:1.2
--- hrm/templates/base/group_filter.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/group_filter.xsl Wed Nov 30 17:07:22 2005
@@ -1,34 +1,34 @@
-<!-- $Id$ -->
-
- <xsl:template name="group_filter">
- <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
- <xsl:variable name="select_group_name"><xsl:value-of
select="select_group_name"/></xsl:variable>
- <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
- <form method="post" action="{$select_action}">
- <select name="{$select_group_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
- <xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_group_statustext"/>
- <xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- <option value=""><xsl:value-of
select="lang_no_group"/></option>
- <xsl:apply-templates
select="group_list"/>
- </select>
- <noscript>
- <xsl:text> </xsl:text>
- <input type="submit" name="submit"
value="{$lang_submit}"/>
- </noscript>
- </form>
- </xsl:template>
-
- <xsl:template match="group_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>
+<!-- $Id$ -->
+
+ <xsl:template name="group_filter">
+ <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
+ <xsl:variable name="select_group_name"><xsl:value-of
select="select_group_name"/></xsl:variable>
+ <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
+ <form method="post" action="{$select_action}">
+ <select name="{$select_group_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+ <xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_group_statustext"/>
+ <xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ <option value=""><xsl:value-of
select="lang_no_group"/></option>
+ <xsl:apply-templates
select="group_list"/>
+ </select>
+ <noscript>
+ <xsl:text> </xsl:text>
+ <input type="submit" name="submit"
value="{$lang_submit}"/>
+ </noscript>
+ </form>
+ </xsl:template>
+
+ <xsl:template match="group_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/filter_select.xsl
diff -u hrm/templates/base/filter_select.xsl:1.1
hrm/templates/base/filter_select.xsl:1.2
--- hrm/templates/base/filter_select.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/filter_select.xsl Wed Nov 30 17:07:22 2005
@@ -1,22 +1,22 @@
-<!-- $Id$ -->
-
- <xsl:template name="filter_select">
- <xsl:variable name="lang_filter_statustext"><xsl:value-of
select="lang_filter_statustext"/></xsl:variable>
- <xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
- <select name="{$filter_name}" class="forms"
onMouseover="window.status='{$lang_filter_statustext}'; return true;"
onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_show_all"/></option>
- <xsl:apply-templates select="filter_list"/>
- </select>
- </xsl:template>
-
- <xsl:template match="filter_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>
+<!-- $Id$ -->
+
+ <xsl:template name="filter_select">
+ <xsl:variable name="lang_filter_statustext"><xsl:value-of
select="lang_filter_statustext"/></xsl:variable>
+ <xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
+ <select name="{$filter_name}" class="forms"
onMouseover="window.status='{$lang_filter_statustext}'; return true;"
onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_show_all"/></option>
+ <xsl:apply-templates select="filter_list"/>
+ </select>
+ </xsl:template>
+
+ <xsl:template match="filter_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/cat_select.xsl
diff -u hrm/templates/base/cat_select.xsl:1.1
hrm/templates/base/cat_select.xsl:1.2
--- hrm/templates/base/cat_select.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/cat_select.xsl Wed Nov 30 17:07:22 2005
@@ -1,22 +1,22 @@
-<!-- $Id$ -->
-
- <xsl:template name="cat_select">
- <xsl:variable name="lang_cat_statustext"><xsl:value-of
select="lang_cat_statustext"/></xsl:variable>
- <xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
- <select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_cat_statustext}'; return true;"
onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_cat"/></option>
- <xsl:apply-templates select="cat_list"/>
- </select>
- </xsl:template>
-
- <xsl:template match="cat_list">
- <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="selected='selected'">
- <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
+<!-- $Id$ -->
+
+ <xsl:template name="cat_select">
+ <xsl:variable name="lang_cat_statustext"><xsl:value-of
select="lang_cat_statustext"/></xsl:variable>
+ <xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
+ <select name="{$select_name}" class="forms"
onMouseover="window.status='{$lang_cat_statustext}'; return true;"
onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_cat"/></option>
+ <xsl:apply-templates select="cat_list"/>
+ </select>
+ </xsl:template>
+
+ <xsl:template match="cat_list">
+ <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="selected='selected'">
+ <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
====================================================
Index: hrm/templates/base/cat_filter.xsl
diff -u hrm/templates/base/cat_filter.xsl:1.1
hrm/templates/base/cat_filter.xsl:1.2
--- hrm/templates/base/cat_filter.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/cat_filter.xsl Wed Nov 30 17:07:22 2005
@@ -1,34 +1,34 @@
-<!-- $Id$ -->
-
- <xsl:template name="cat_filter">
- <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
- <xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
- <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
- <form method="post" action="{$select_action}">
- <select name="{$select_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
- <xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_cat_statustext"/>
- <xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- <option value=""><xsl:value-of
select="lang_no_cat"/></option>
- <xsl:apply-templates select="cat_list"/>
- </select>
- <noscript>
- <xsl:text> </xsl:text>
- <input type="submit" name="submit"
value="{$lang_submit}"/>
- </noscript>
- </form>
- </xsl:template>
-
- <xsl:template match="cat_list">
- <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="selected='selected'">
- <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
+<!-- $Id$ -->
+
+ <xsl:template name="cat_filter">
+ <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
+ <xsl:variable name="select_name"><xsl:value-of
select="select_name"/></xsl:variable>
+ <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
+ <form method="post" action="{$select_action}">
+ <select name="{$select_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+ <xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_cat_statustext"/>
+ <xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ <option value=""><xsl:value-of
select="lang_no_cat"/></option>
+ <xsl:apply-templates select="cat_list"/>
+ </select>
+ <noscript>
+ <xsl:text> </xsl:text>
+ <input type="submit" name="submit"
value="{$lang_submit}"/>
+ </noscript>
+ </form>
+ </xsl:template>
+
+ <xsl:template match="cat_list">
+ <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="selected='selected'">
+ <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
====================================================
Index: hrm/templates/base/category.xsl
diff -u hrm/templates/base/category.xsl:1.1 hrm/templates/base/category.xsl:1.2
--- hrm/templates/base/category.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/category.xsl Wed Nov 30 17:07:22 2005
@@ -1,206 +1,206 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_data">
- <xsl:choose>
- <xsl:when test="edit">
- <xsl:apply-templates select="edit"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="list"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="list">
-
- <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"/>
- <!-- <xsl:with-param
name="nextmatchs_params"/>
- </xsl:call-template> -->
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates select="table_header"/>
- <xsl:apply-templates select="values"/>
- <xsl:apply-templates select="table_add"/>
- </table>
- </xsl:template>
-
- <xsl:template match="table_header">
- <xsl:variable name="sort_id"><xsl:value-of
select="sort_id"/></xsl:variable>
- <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></xsl:variable>
- <tr class="th">
- <td class="th_text" width="10%" align="right">
- <a href="{$sort_id}"><xsl:value-of
select="lang_id"/></a>
- </td>
- <td class="th_text" width="20%" align="center">
- <xsl:value-of select="lang_descr"/>
- </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">
- <xsl:variable name="lang_view_categorytext"><xsl:value-of
select="lang_view_categorytext"/></xsl:variable>
- <xsl:variable name="lang_edit_categorytext"><xsl:value-of
select="lang_edit_categorytext"/></xsl:variable>
- <xsl:variable name="lang_delete_categorytext"><xsl:value-of
select="lang_delete_categorytext"/></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="id"/>
- </td>
- <td align="left">
- <xsl:value-of select="first"/>
- </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_categorytext}';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_categorytext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
- </td>
- </tr>
- </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_categorytext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- <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="add"
value="{$lang_done}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_add_categorytext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </xsl:template>
-
-<!-- add / edit -->
- <xsl:template match="edit">
- <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" action="{$form_action}">
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_id"/>
- </td>
- <td>
- <xsl:choose>
- <xsl:when test="value_id != ''">
- <xsl:value-of
select="value_id"/>
- </xsl:when>
- <xsl:otherwise>
- <input type="text"
name="values[id]" value="{value_id}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_id_categorytext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </xsl:otherwise>
- </xsl:choose>
- </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_categorytext"/>
- <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_categorytext"/>
- <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_categorytext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </table>
- </div>
- </xsl:template>
+<!-- $Id$ -->
+
+ <xsl:template name="app_data">
+ <xsl:choose>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="edit"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="list"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="list">
+
+ <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"/>
+ <!-- <xsl:with-param
name="nextmatchs_params"/>
+ </xsl:call-template> -->
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates select="table_header"/>
+ <xsl:apply-templates select="values"/>
+ <xsl:apply-templates select="table_add"/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="table_header">
+ <xsl:variable name="sort_id"><xsl:value-of
select="sort_id"/></xsl:variable>
+ <xsl:variable name="sort_name"><xsl:value-of
select="sort_name"/></xsl:variable>
+ <tr class="th">
+ <td class="th_text" width="10%" align="right">
+ <a href="{$sort_id}"><xsl:value-of
select="lang_id"/></a>
+ </td>
+ <td class="th_text" width="20%" align="center">
+ <xsl:value-of select="lang_descr"/>
+ </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">
+ <xsl:variable name="lang_view_categorytext"><xsl:value-of
select="lang_view_categorytext"/></xsl:variable>
+ <xsl:variable name="lang_edit_categorytext"><xsl:value-of
select="lang_edit_categorytext"/></xsl:variable>
+ <xsl:variable name="lang_delete_categorytext"><xsl:value-of
select="lang_delete_categorytext"/></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="id"/>
+ </td>
+ <td align="left">
+ <xsl:value-of select="first"/>
+ </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_categorytext}';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_categorytext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_delete"/></a>
+ </td>
+ </tr>
+ </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_categorytext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ <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="add"
value="{$lang_done}" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_add_categorytext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </xsl:template>
+
+<!-- add / edit -->
+ <xsl:template match="edit">
+ <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" action="{$form_action}">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_id"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="value_id != ''">
+ <xsl:value-of
select="value_id"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="text"
name="values[id]" value="{value_id}" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_id_categorytext"/>
+
<xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </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_categorytext"/>
+ <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_categorytext"/>
+ <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_categorytext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </xsl:template>
====================================================
Index: hrm/templates/base/filter_filter.xsl
diff -u hrm/templates/base/filter_filter.xsl:1.1
hrm/templates/base/filter_filter.xsl:1.2
--- hrm/templates/base/filter_filter.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/filter_filter.xsl Wed Nov 30 17:07:22 2005
@@ -1,34 +1,34 @@
-<!-- $Id$ -->
-
- <xsl:template name="filter_filter">
- <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
- <xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
- <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
- <form method="post" action="{$select_action}">
- <select name="{$filter_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
- <xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_filter_statustext"/>
- <xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- <option value=""><xsl:value-of
select="lang_show_all"/></option>
- <xsl:apply-templates
select="filter_list"/>
- </select>
- <noscript>
- <xsl:text> </xsl:text>
- <input type="submit" name="submit"
value="{$lang_submit}"/>
- </noscript>
- </form>
- </xsl:template>
-
- <xsl:template match="filter_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>
+<!-- $Id$ -->
+
+ <xsl:template name="filter_filter">
+ <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
+ <xsl:variable name="filter_name"><xsl:value-of
select="filter_name"/></xsl:variable>
+ <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
+ <form method="post" action="{$select_action}">
+ <select name="{$filter_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+ <xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_filter_statustext"/>
+ <xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ <option value=""><xsl:value-of
select="lang_show_all"/></option>
+ <xsl:apply-templates
select="filter_list"/>
+ </select>
+ <noscript>
+ <xsl:text> </xsl:text>
+ <input type="submit" name="submit"
value="{$lang_submit}"/>
+ </noscript>
+ </form>
+ </xsl:template>
+
+ <xsl:template match="filter_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/filter_location.xsl
diff -u hrm/templates/base/filter_location.xsl:1.1
hrm/templates/base/filter_location.xsl:1.2
--- hrm/templates/base/filter_location.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/filter_location.xsl Wed Nov 30 17:07:22 2005
@@ -1,39 +1,39 @@
-<!-- $Id$ -->
-
- <xsl:template name="filter_location">
- <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
- <xsl:variable name="select_name_location"><xsl:value-of
select="select_name_location"/></xsl:variable>
- <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
- <form method="post" action="{$select_action}">
- <xsl:for-each select="hidden_vars" >
- <xsl:variable
name="name"><xsl:value-of select="name"/></xsl:variable>
- <xsl:variable
name="value"><xsl:value-of select="value"/></xsl:variable>
- <INPUT type="hidden"
name="{$name}" value="{$value}" ></INPUT>
- </xsl:for-each>
- <select name="{$select_name_location}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
- <xsl:attribute name="onMouseover">
- <xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_location_statustext"/>
- <xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- <option value=""><xsl:value-of
select="lang_no_location"/></option>
- <xsl:apply-templates
select="location_list"/>
- </select>
- <noscript>
- <xsl:text> </xsl:text>
- <input type="submit" name="submit"
value="{$lang_submit}"/>
- </noscript>
- </form>
- </xsl:template>
-
- <xsl:template match="location_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="descr"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
+<!-- $Id$ -->
+
+ <xsl:template name="filter_location">
+ <xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
+ <xsl:variable name="select_name_location"><xsl:value-of
select="select_name_location"/></xsl:variable>
+ <xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
+ <form method="post" action="{$select_action}">
+ <xsl:for-each select="hidden_vars" >
+ <xsl:variable
name="name"><xsl:value-of select="name"/></xsl:variable>
+ <xsl:variable
name="value"><xsl:value-of select="value"/></xsl:variable>
+ <INPUT type="hidden"
name="{$name}" value="{$value}" ></INPUT>
+ </xsl:for-each>
+ <select name="{$select_name_location}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+ <xsl:attribute name="onMouseover">
+ <xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_location_statustext"/>
+ <xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ <option value=""><xsl:value-of
select="lang_no_location"/></option>
+ <xsl:apply-templates
select="location_list"/>
+ </select>
+ <noscript>
+ <xsl:text> </xsl:text>
+ <input type="submit" name="submit"
value="{$lang_submit}"/>
+ </noscript>
+ </form>
+ </xsl:template>
+
+ <xsl:template match="location_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="descr"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$id}"><xsl:value-of
disable-output-escaping="yes" select="descr"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
====================================================
Index: hrm/templates/base/app_delete.xsl
diff -u hrm/templates/base/app_delete.xsl:1.1
hrm/templates/base/app_delete.xsl:1.2
--- hrm/templates/base/app_delete.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/base/app_delete.xsl Wed Nov 30 17:07:22 2005
@@ -1,41 +1,41 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_delete">
- <xsl:apply-templates select="delete"/>
- </xsl:template>
-
- <xsl:template match="delete">
- <table cellpadding="2" cellspacing="2" align="center">
- <tr>
- <td align="center"
colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
- </tr>
- <tr>
- <td>
- <xsl:variable
name="delete_action"><xsl:value-of select="delete_action"/></xsl:variable>
- <xsl:variable
name="lang_yes"><xsl:value-of select="lang_yes"/></xsl:variable>
- <form method="POST"
action="{$delete_action}">
- <input type="submit"
class="forms" name="confirm" value="{$lang_yes}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_yes_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- <td align="right">
- <xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
- <xsl:variable
name="lang_no"><xsl:value-of select="lang_no"/></xsl:variable>
- <form method="POST"
action="{$done_action}">
- <input type="submit"
class="forms" name="cancel" value="{$lang_no}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_no_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </table>
- </xsl:template>
\ No newline at end of file
+<!-- $Id$ -->
+
+ <xsl:template name="app_delete">
+ <xsl:apply-templates select="delete"/>
+ </xsl:template>
+
+ <xsl:template match="delete">
+ <table cellpadding="2" cellspacing="2" align="center">
+ <tr>
+ <td align="center"
colspan="2"><xsl:value-of select="lang_confirm_msg"/></td>
+ </tr>
+ <tr>
+ <td>
+ <xsl:variable
name="delete_action"><xsl:value-of select="delete_action"/></xsl:variable>
+ <xsl:variable
name="lang_yes"><xsl:value-of select="lang_yes"/></xsl:variable>
+ <form method="POST"
action="{$delete_action}">
+ <input type="submit"
class="forms" name="confirm" value="{$lang_yes}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_yes_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ <td align="right">
+ <xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
+ <xsl:variable
name="lang_no"><xsl:value-of select="lang_no"/></xsl:variable>
+ <form method="POST"
action="{$done_action}">
+ <input type="submit"
class="forms" name="cancel" value="{$lang_no}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_no_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </xsl:template>
====================================================
Index: hrm/templates/base/admin.xsl
diff -u hrm/templates/base/admin.xsl:1.2 hrm/templates/base/admin.xsl:1.3
--- hrm/templates/base/admin.xsl:1.2 Fri Nov 25 11:58:29 2005
+++ hrm/templates/base/admin.xsl Wed Nov 30 17:07:22 2005
@@ -1,863 +1,863 @@
-<!-- $Id$ -->
-
- <xsl:template name="app_data">
- <xsl:choose>
- <xsl:when test="edit_id">
- <xsl:apply-templates select="edit_id"/>
- </xsl:when>
- <xsl:when test="contact_info">
- <xsl:apply-templates select="contact_info"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="list_permission"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="list_permission">
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:choose>
- <xsl:when test="msgbox_data != ''">
- <tr>
- <td align="left" colspan="4">
- <xsl:call-template
name="msgbox"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td>
- <xsl:call-template
name="filter_location"/>
- </td>
- <td align="center">
- <xsl:call-template name="cat_filter"/>
- </td>
-
- <xsl:choose>
- <xsl:when test="is_admin != '' and
grant= 1">
- <td align="center">
- <xsl:call-template
name="group_filter"/>
- </td>
- </xsl:when>
- </xsl:choose>
- <td align="right">
- <xsl:call-template name="search_field"/>
- </td>
- </tr>
- <tr>
- <td colspan="4" width="100%">
- <xsl:call-template name="nextmatchs"/>
- </td>
- </tr>
- </table>
- <table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
- <form method="post" action="{$form_action}">
- <tr class="th">
- <xsl:choose>
- <xsl:when test="values_groups!=''">
- <td class="th_text" width="10%"
align="center">
- <xsl:value-of
select="lang_groups"/>
- </td>
- <td>
- </td>
- </xsl:when>
- </xsl:choose>
- </tr>
- <xsl:apply-templates select="values_groups"/>
- <tr class="th">
- <xsl:choose>
- <xsl:when test="values_users!=''">
- <td class="th_text" width="10%"
align="center">
- <xsl:value-of
select="lang_users"/>
- </td>
- <td>
- </td>
- </xsl:when>
- </xsl:choose>
- </tr>
- <xsl:apply-templates select="values_users"/>
-
- <tr height="50">
- <td>
- <xsl:variable
name="location"><xsl:value-of select="location"/></xsl:variable>
- <xsl:variable
name="processed"><xsl:value-of select="processed"/></xsl:variable>
- <xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
- <INPUT type="hidden" name="location"
value="{$location}" ></INPUT>
- <INPUT type="hidden" name="processed"
value="{$processed}" ></INPUT>
-
- <input type="submit"
name="set_permission" 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>
-
- </xsl:template>
-
-
- <xsl:template match="values_groups">
- <xsl:choose>
- <xsl:when test="account_id !=''">
- <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>
- <table width="100%" cellpadding="2"
cellspacing="2" align="center">
- <tr class="th">
- <xsl:call-template
name="value_header"/>
- </tr>
- <tr>
- <xsl:call-template
name="right"/>
- </tr>
- <tr>
- <xsl:call-template name="mask"/>
- </tr>
- <tr>
- <xsl:call-template
name="result"/>
- </tr>
- </table>
- </td>
-
- </tr>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="values_users">
- <xsl:choose>
- <xsl:when test="account_id !=''">
- <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>
- <table width="100%" cellpadding="2"
cellspacing="2" align="center">
- <tr class="th">
- <xsl:call-template
name="value_header"/>
- </tr>
- <tr>
- <xsl:call-template
name="right"/>
- </tr>
- <tr>
- <xsl:call-template name="mask"/>
- </tr>
- <tr>
- <xsl:call-template
name="result"/>
- </tr>
- </table>
- </td>
-
- </tr>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="value_header">
- <td>
- </td>
- <td class="th_text" align="center">
- <xsl:value-of select="lang_read"/>
- </td>
- <td class="th_text" align="center">
- <xsl:value-of select="lang_add"/>
- </td>
- <td class="th_text" align="center">
- <xsl:value-of select="lang_edit"/>
- </td>
- <td class="th_text" align="center">
- <xsl:value-of select="lang_delete"/>
- </td>
- <xsl:choose>
- <xsl:when test="//permission= 1">
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_manage"/>
- </td>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="//location='.invoice'
and //permission= 1 ">
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_janitor"/>
- </td>
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_supervisor"/>
- </td>
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_budget_responsible"/>
- </td>
- <td class="th_text"
align="center">
- <xsl:value-of
select="lang_initials"/>
- </td>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="right">
- <td align="left">
- <xsl:value-of select="lang_right"/>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="read_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="read_right =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="read_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="read_right =
'from_group'">
- <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="add_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="add_right =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="add_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="add_right =
'from_group'">
- <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="edit_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="edit_right =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="edit_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="edit_right =
'from_group'">
- <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="delete_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="delete_right =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="delete_right =
'checked'">
- <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="delete_right =
'from_group'">
- <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="//permission= 1">
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when
test="manage_right = 'checked'">
- <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:when
test="manage_right = 'from_group'">
- <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when
test="manage_right = 'checked'">
- <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:when
test="manage_right = 'from_group'">
- <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="mask">
- <td align="left">
- <xsl:value-of select="lang_mask"/>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="read_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="read_mask =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="read_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="read_mask =
'from_group'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="add_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="add_mask =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="add_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="add_mask =
'from_group'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="edit_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="edit_mask =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="edit_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="edit_mask =
'from_group'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when test="delete_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="delete_mask =
'from_group'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="delete_mask =
'checked'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:when test="delete_mask =
'from_group'">
- <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="//permission= 1">
- <td align="center">
- <xsl:choose>
- <xsl:when test="type = 'users'">
- <xsl:choose>
- <xsl:when
test="manage_mask = 'checked'">
- <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:when
test="manage_mask = 'from_group'">
- <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when
test="manage_mask = 'checked'">
- <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:when
test="manage_mask = 'from_group'">
- <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="result">
- <td align="left">
- <xsl:value-of select="lang_result"/>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="read_result = 'checked'">
- <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="add_result = 'checked'">
- <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="edit_result = 'checked'">
- <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td align="center">
- <xsl:choose>
- <xsl:when test="delete_result = 'checked'">
- <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <xsl:choose>
- <xsl:when test="//permission= 1">
- <td align="center">
- <xsl:choose>
- <xsl:when test="manage_result =
'checked'">
- <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
- </xsl:when>
- <xsl:otherwise>
- <INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
-
-<!-- edit_id -->
-
- <xsl:template match="id_values">
- <xsl:variable name="value"><xsl:value-of
select="value"/></xsl:variable>
- <xsl:variable name="key_id"><xsl:value-of
select="key_id"/></xsl:variable>
- <xsl:variable name="descr"><xsl:value-of
select="descr"/></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">
- <INPUT type="checkbox"
name="values[select][{$key_id}]" value="true"></INPUT>
- </td>
- <td align="right">
- <xsl:value-of select="descr"/>
- </td>
- <td>
- <INPUT type="hidden"
name="values[field][{$key_id}]" value="{$descr}" ></INPUT>
- <INPUT type="text"
name="values[{$key_id}]" value="{$value}" ></INPUT>
- </td>
- <td align="center">
- <xsl:value-of select="remark"/>
- </td>
- </tr>
- </xsl:template>
-
- <xsl:template match="id_table_header">
- <tr class="th">
- <td class="th_text" width="10%" align="right">
- <xsl:value-of select="lang_select"/>
- </td>
- <td class="th_text" width="10%" align="right">
- <xsl:value-of select="lang_descr"/>
- </td>
- <td class="th_text" width="40%">
- <xsl:value-of select="lang_value"/>
- </td>
- <td class="th_text" width="20%" align="center">
- <xsl:value-of select="lang_remark"/>
- </td>
- </tr>
- </xsl:template>
-
- <xsl:template match="edit_id">
-
- <table cellpadding="2" cellspacing="2" width="100%"
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" action="{$form_action}">
- <xsl:apply-templates select="id_table_header"/>
- <xsl:apply-templates select="id_values"/>
- <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>
- </xsl:template>
-
-
- <xsl:template match="contact_info">
- <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>
- <tr>
- <td align="left">
- <xsl:value-of select="lang_user"/>
- </td>
- <td align="left">
- <xsl:call-template
name="user_id_filter"/>
- </td>
- </tr>
- <xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
- <form method="post" name="form" action="{$form_action}">
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_email"/>
- </td>
- <td>
- <input type="hidden" name="filter"
value="{value_user_id}"></input>
- <input type="hidden"
name="values[old_email]" value="{value_old_email}"></input>
- <input type="text" size = "30"
name="values[email]" value="{value_email}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_email_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_phone"/>
- </td>
- <td>
- <input type="hidden"
name="values[old_phone]" value="{value_old_phone}"></input>
- <input type="text" size = "30"
name="values[phone]" value="{value_phone}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_phone_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_approval_from"/>
- </td>
- <td align="left">
- <input type="hidden"
name="values[old_approval_from]" value="{value_old_approval_from}"></input>
- <xsl:variable
name="lang_approval_from_statustext"><xsl:value-of
select="lang_approval_from_statustext"/></xsl:variable>
- <select name="values[approval_from]"
class="forms" onMouseover="window.status='{$lang_approval_from_statustext}';
return true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_user"/></option>
- <xsl:apply-templates
select="approval_from"/>
- </select>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_default_vendor_category"/>
- </td>
- <td align="left">
- <input type="hidden"
name="values[old_default_vendor_category]"
value="{value_old_default_vendor_category}"></input>
- <xsl:variable
name="lang_default_vendor_category_statustext"><xsl:value-of
select="lang_default_vendor_category_statustext"/></xsl:variable>
- <select
name="values[default_vendor_category]" class="forms"
onMouseover="window.status='{$lang_default_vendor_category_statustext}'; return
true;" onMouseout="window.status='';return true;">
- <option value=""><xsl:value-of
select="lang_no_cat"/></option>
- <xsl:apply-templates
select="vendor_category"/>
- </select>
- </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>
-
- <xsl:template match="approval_from">
- <xsl:variable name="user_id"><xsl:value-of
select="user_id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="selected">
- <option value="{$user_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$user_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="vendor_category">
- <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
- <xsl:choose>
- <xsl:when test="selected='selected'">
- <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
+<!-- $Id$ -->
+
+ <xsl:template name="app_data">
+ <xsl:choose>
+ <xsl:when test="edit_id">
+ <xsl:apply-templates select="edit_id"/>
+ </xsl:when>
+ <xsl:when test="contact_info">
+ <xsl:apply-templates select="contact_info"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="list_permission"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="list_permission">
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <tr>
+ <td align="left" colspan="4">
+ <xsl:call-template
name="msgbox"/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ <tr>
+ <td>
+ <xsl:call-template
name="filter_location"/>
+ </td>
+ <td align="center">
+ <xsl:call-template name="cat_filter"/>
+ </td>
+
+ <xsl:choose>
+ <xsl:when test="is_admin != '' and
grant= 1">
+ <td align="center">
+ <xsl:call-template
name="group_filter"/>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <td align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="4" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
+ <form method="post" action="{$form_action}">
+ <tr class="th">
+ <xsl:choose>
+ <xsl:when test="values_groups!=''">
+ <td class="th_text" width="10%"
align="center">
+ <xsl:value-of
select="lang_groups"/>
+ </td>
+ <td>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ <xsl:apply-templates select="values_groups"/>
+ <tr class="th">
+ <xsl:choose>
+ <xsl:when test="values_users!=''">
+ <td class="th_text" width="10%"
align="center">
+ <xsl:value-of
select="lang_users"/>
+ </td>
+ <td>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ <xsl:apply-templates select="values_users"/>
+
+ <tr height="50">
+ <td>
+ <xsl:variable
name="location"><xsl:value-of select="location"/></xsl:variable>
+ <xsl:variable
name="processed"><xsl:value-of select="processed"/></xsl:variable>
+ <xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
+ <INPUT type="hidden" name="location"
value="{$location}" ></INPUT>
+ <INPUT type="hidden" name="processed"
value="{$processed}" ></INPUT>
+
+ <input type="submit"
name="set_permission" 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>
+
+ </xsl:template>
+
+
+ <xsl:template match="values_groups">
+ <xsl:choose>
+ <xsl:when test="account_id !=''">
+ <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>
+ <table width="100%" cellpadding="2"
cellspacing="2" align="center">
+ <tr class="th">
+ <xsl:call-template
name="value_header"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="right"/>
+ </tr>
+ <tr>
+ <xsl:call-template name="mask"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="result"/>
+ </tr>
+ </table>
+ </td>
+
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="values_users">
+ <xsl:choose>
+ <xsl:when test="account_id !=''">
+ <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>
+ <table width="100%" cellpadding="2"
cellspacing="2" align="center">
+ <tr class="th">
+ <xsl:call-template
name="value_header"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="right"/>
+ </tr>
+ <tr>
+ <xsl:call-template name="mask"/>
+ </tr>
+ <tr>
+ <xsl:call-template
name="result"/>
+ </tr>
+ </table>
+ </td>
+
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="value_header">
+ <td>
+ </td>
+ <td class="th_text" align="center">
+ <xsl:value-of select="lang_read"/>
+ </td>
+ <td class="th_text" align="center">
+ <xsl:value-of select="lang_add"/>
+ </td>
+ <td class="th_text" align="center">
+ <xsl:value-of select="lang_edit"/>
+ </td>
+ <td class="th_text" align="center">
+ <xsl:value-of select="lang_delete"/>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_manage"/>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="//location='.invoice'
and //permission= 1 ">
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_janitor"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_supervisor"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_budget_responsible"/>
+ </td>
+ <td class="th_text"
align="center">
+ <xsl:value-of
select="lang_initials"/>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="right">
+ <td align="left">
+ <xsl:value-of select="lang_right"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="read_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="read_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="add_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="add_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="edit_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="edit_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="delete_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_right =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="delete_right =
'checked'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_right =
'from_group'">
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[right][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when
test="manage_right = 'checked'">
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_right = 'from_group'">
+ <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="manage_right = 'checked'">
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_right = 'from_group'">
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[right][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="mask">
+ <td align="left">
+ <xsl:value-of select="lang_mask"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="read_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="read_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="read_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_1]" value="1"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="add_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="add_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="add_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_2]" value="2"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="edit_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="edit_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="edit_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_4]" value="4"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when test="delete_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_mask =
'from_group'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when test="delete_mask =
'checked'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when test="delete_mask =
'from_group'">
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8" checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="values[mask][{account_id}_8]" value="8"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="type = 'users'">
+ <xsl:choose>
+ <xsl:when
test="manage_mask = 'checked'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_mask = 'from_group'">
+ <INPUT
type="checkbox" name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:choose>
+ <xsl:when
test="manage_mask = 'checked'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:when
test="manage_mask = 'from_group'">
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"
checked="checked"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT
type="checkbox" name="values[mask][{account_id}_16]" value="16"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="result">
+ <td align="left">
+ <xsl:value-of select="lang_result"/>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="read_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="add_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="edit_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="delete_result = 'checked'">
+ <INPUT type="checkbox" name=""
checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox" name=""
disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <xsl:choose>
+ <xsl:when test="//permission= 1">
+ <td align="center">
+ <xsl:choose>
+ <xsl:when test="manage_result =
'checked'">
+ <INPUT type="checkbox"
name="" checked="checked" disabled="disabled"></INPUT>
+ </xsl:when>
+ <xsl:otherwise>
+ <INPUT type="checkbox"
name="" disabled="disabled"></INPUT>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
+
+<!-- edit_id -->
+
+ <xsl:template match="id_values">
+ <xsl:variable name="value"><xsl:value-of
select="value"/></xsl:variable>
+ <xsl:variable name="key_id"><xsl:value-of
select="key_id"/></xsl:variable>
+ <xsl:variable name="descr"><xsl:value-of
select="descr"/></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">
+ <INPUT type="checkbox"
name="values[select][{$key_id}]" value="true"></INPUT>
+ </td>
+ <td align="right">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td>
+ <INPUT type="hidden"
name="values[field][{$key_id}]" value="{$descr}" ></INPUT>
+ <INPUT type="text"
name="values[{$key_id}]" value="{$value}" ></INPUT>
+ </td>
+ <td align="center">
+ <xsl:value-of select="remark"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="id_table_header">
+ <tr class="th">
+ <td class="th_text" width="10%" align="right">
+ <xsl:value-of select="lang_select"/>
+ </td>
+ <td class="th_text" width="10%" align="right">
+ <xsl:value-of select="lang_descr"/>
+ </td>
+ <td class="th_text" width="40%">
+ <xsl:value-of select="lang_value"/>
+ </td>
+ <td class="th_text" width="20%" align="center">
+ <xsl:value-of select="lang_remark"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="edit_id">
+
+ <table cellpadding="2" cellspacing="2" width="100%"
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" action="{$form_action}">
+ <xsl:apply-templates select="id_table_header"/>
+ <xsl:apply-templates select="id_values"/>
+ <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>
+ </xsl:template>
+
+
+ <xsl:template match="contact_info">
+ <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>
+ <tr>
+ <td align="left">
+ <xsl:value-of select="lang_user"/>
+ </td>
+ <td align="left">
+ <xsl:call-template
name="user_id_filter"/>
+ </td>
+ </tr>
+ <xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
+ <form method="post" name="form" action="{$form_action}">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_email"/>
+ </td>
+ <td>
+ <input type="hidden" name="filter"
value="{value_user_id}"></input>
+ <input type="hidden"
name="values[old_email]" value="{value_old_email}"></input>
+ <input type="text" size = "30"
name="values[email]" value="{value_email}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_email_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_phone"/>
+ </td>
+ <td>
+ <input type="hidden"
name="values[old_phone]" value="{value_old_phone}"></input>
+ <input type="text" size = "30"
name="values[phone]" value="{value_phone}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_phone_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_approval_from"/>
+ </td>
+ <td align="left">
+ <input type="hidden"
name="values[old_approval_from]" value="{value_old_approval_from}"></input>
+ <xsl:variable
name="lang_approval_from_statustext"><xsl:value-of
select="lang_approval_from_statustext"/></xsl:variable>
+ <select name="values[approval_from]"
class="forms" onMouseover="window.status='{$lang_approval_from_statustext}';
return true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_user"/></option>
+ <xsl:apply-templates
select="approval_from"/>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_default_vendor_category"/>
+ </td>
+ <td align="left">
+ <input type="hidden"
name="values[old_default_vendor_category]"
value="{value_old_default_vendor_category}"></input>
+ <xsl:variable
name="lang_default_vendor_category_statustext"><xsl:value-of
select="lang_default_vendor_category_statustext"/></xsl:variable>
+ <select
name="values[default_vendor_category]" class="forms"
onMouseover="window.status='{$lang_default_vendor_category_statustext}'; return
true;" onMouseout="window.status='';return true;">
+ <option value=""><xsl:value-of
select="lang_no_cat"/></option>
+ <xsl:apply-templates
select="vendor_category"/>
+ </select>
+ </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>
+
+ <xsl:template match="approval_from">
+ <xsl:variable name="user_id"><xsl:value-of
select="user_id"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="selected">
+ <option value="{$user_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$user_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="vendor_category">
+ <xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="selected='selected'">
+ <option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
+ </xsl:when>
+ <xsl:otherwise>
+ <option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] hrm/templates/base menu.xsl, 1.2 job.xsl, 1.8 nextmatchs.xsl, 1.2 place.xsl, 1.4 user.xsl, 1.5 search_field.xsl, 1.2 group_filter.xsl, 1.2 filter_select.xsl, 1.2 cat_select.xsl, 1.2 cat_filter.xsl, 1.2 category.xsl, 1.2 filter_filter.xsl, 1.2 filter_location.xsl, 1.2 app_delete.xsl, 1.2 admin.xsl, 1.3,
sigurdne <=
- Prev by Date:
[Phpgroupware-cvs] hrm/templates/default admin.xsl, 1.3 app_delete.xsl, 1.2 menu.xsl, 1.2 job.xsl, 1.8 nextmatchs.xsl, 1.2 place.xsl, 1.4 user.xsl, 1.5 search_field.xsl, 1.2 group_filter.xsl, 1.2 filter_select.xsl, 1.2 cat_select.xsl, 1.2 cat_filter.xsl, 1.2 category.xsl, 1.2 filter_filter.xsl, 1.2 filter_location.xsl, 1.2
- Next by Date:
[Phpgroupware-cvs] hrm/inc class.socategory.inc.php, 1.5 class.soadmin.inc.php, 1.4 class.socommon.inc.php, 1.4 class.sojob.inc.php, 1.9 class.souser.inc.php, 1.6 class.soplace.inc.php, 1.3 class.menu.inc.php, 1.5 class.bouser.inc.php, 1.7 class.bocategory.inc.php, 1.4 class.boadmin.inc.php, 1.5 class.bocommon.inc.php, 1.6 class.bojob.inc.php, 1.8 class.boplace.inc.php, 1.4 class.uiadmin.inc.php, 1.5 class.uicategory.inc.php, 1.3 hook_settings.inc.php, 1.2 hook_preferences.inc.php, 1.3 hook_manual.inc.php, 1.4 class.uiplace.inc.php, 1.4 class.uijob.inc.php, 1.8 class.uiuser.inc.php, 1.8 hook_admin.inc.php, 1.5 hook_help.inc.php, 1.3 class.acl2.inc.php, 1.4
- Previous by thread:
[Phpgroupware-cvs] hrm/templates/default admin.xsl, 1.3 app_delete.xsl, 1.2 menu.xsl, 1.2 job.xsl, 1.8 nextmatchs.xsl, 1.2 place.xsl, 1.4 user.xsl, 1.5 search_field.xsl, 1.2 group_filter.xsl, 1.2 filter_select.xsl, 1.2 cat_select.xsl, 1.2 cat_filter.xsl, 1.2 category.xsl, 1.2 filter_filter.xsl, 1.2 filter_location.xsl, 1.2
- Next by thread:
[Phpgroupware-cvs] hrm/inc class.socategory.inc.php, 1.5 class.soadmin.inc.php, 1.4 class.socommon.inc.php, 1.4 class.sojob.inc.php, 1.9 class.souser.inc.php, 1.6 class.soplace.inc.php, 1.3 class.menu.inc.php, 1.5 class.bouser.inc.php, 1.7 class.bocategory.inc.php, 1.4 class.boadmin.inc.php, 1.5 class.bocommon.inc.php, 1.6 class.bojob.inc.php, 1.8 class.boplace.inc.php, 1.4 class.uiadmin.inc.php, 1.5 class.uicategory.inc.php, 1.3 hook_settings.inc.php, 1.2 hook_preferences.inc.php, 1.3 hook_manual.inc.php, 1.4 class.uiplace.inc.php, 1.4 class.uijob.inc.php, 1.8 class.uiuser.inc.php, 1.8 hook_admin.inc.php, 1.5 hook_help.inc.php, 1.3 class.acl2.inc.php, 1.4
- Index(es):