[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] hrm/templates/default job.xsl,1.2
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] hrm/templates/default job.xsl,1.2 |
Date: |
Mon, 21 Nov 2005 16:49:00 +0100 |
Update of hrm/templates/default
Modified Files:
Branch: MAIN
job.xsl lines: +126 -49
Log Message:
*** empty log message ***
====================================================
Index: hrm/templates/default/job.xsl
diff -u hrm/templates/default/job.xsl:1.1 hrm/templates/default/job.xsl:1.2
--- hrm/templates/default/job.xsl:1.1 Mon Nov 21 12:01:20 2005
+++ hrm/templates/default/job.xsl Mon Nov 21 15:49:09 2005
@@ -2,6 +2,9 @@
<xsl:template name="app_data">
<xsl:choose>
+ <xsl:when test="edit_job">
+ <xsl:apply-templates select="edit_job"/>
+ </xsl:when>
<xsl:when test="edit">
<xsl:apply-templates select="edit"/>
</xsl:when>
@@ -31,19 +34,21 @@
<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"/>
+ <xsl:apply-templates select="table_add_job"/>
</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>
+ <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_first_name}"><xsl:value-of
select="lang_first_name"/></a>
+ <a href="{$sort_name}"><xsl:value-of
select="lang_name"/></a>
</td>
<td class="th_text" width="10%" align="left">
- <a href="{$sort_last_name}"><xsl:value-of
select="lang_last_name"/></a>
+ <xsl:value-of select="lang_descr"/>
+ </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_edit"/>
@@ -55,8 +60,9 @@
</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_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_add_sub_text"><xsl:value-of
select="lang_add_sub_text"/></xsl:variable>
<tr>
<xsl:attribute name="class">
<xsl:choose>
@@ -73,18 +79,41 @@
</xsl:attribute>
<td align="left">
- <xsl:value-of select="first_name"/>
+ <xsl:value-of select="name"/>
</td>
<td align="left">
- <xsl:value-of select="last_name"/>
+ <xsl:value-of select="descr"/>
+ </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_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>
+ <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_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>
+ <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>
+ </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_categorytext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </form>
</td>
</tr>
</xsl:template>
@@ -121,9 +150,10 @@
</xsl:template>
<!-- add / edit -->
- <xsl:template match="edit">
+ <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 != ''">
@@ -134,27 +164,50 @@
</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: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_id"/>
+ <xsl:value-of select="lang_parent"/>
</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>
+ <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>
@@ -173,34 +226,58 @@
</td>
</tr>
- <tr height="50">
- <td>
+
+ <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_categorytext"/>
+ <xsl:value-of
select="lang_save_status_text"/>
<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 valign="bottom">
+ <xsl:variable
name="lang_apply"><xsl:value-of select="lang_apply"/></xsl:variable>
+ <input type="submit"
name="values[apply]" value="{$lang_apply}" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_apply_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ <td align="left" valign="bottom">
+ <xsl:variable
name="lang_cancel"><xsl:value-of select="lang_cancel"/></xsl:variable>
+ <input type="submit"
name="values[cancel]" value="{$lang_cancel}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_cancel_status_text"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
</td>
+ </TR>
+ </TABLE>
+ </TD>
</tr>
</table>
+ </form>
</div>
+ </xsl:template>
+
+ <xsl:template match="parent_list">
+ <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
+ <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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] hrm/templates/default job.xsl,1.2,
sigurdne <=
- Prev by Date:
[Phpgroupware-cvs] hrm/templates/base job.xsl,1.2
- Next by Date:
[Phpgroupware-cvs] hrm/inc class.uiuser.inc.php, 1.2 class.uijob.inc.php, 1.2 class.bouser.inc.php, 1.2 class.sojob.inc.php, 1.2 class.bojob.inc.php, 1.2
- Previous by thread:
[Phpgroupware-cvs] hrm/templates/base job.xsl,1.2
- Next by thread:
[Phpgroupware-cvs] hrm/inc class.uiuser.inc.php, 1.2 class.uijob.inc.php, 1.2 class.bouser.inc.php, 1.2 class.sojob.inc.php, 1.2 class.bojob.inc.php, 1.2
- Index(es):