[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default/actor.xsl, 1.1.2.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/templates/default/actor.xsl, 1.1.2.2 |
Date: |
Sun, 30 May 2004 14:28:44 +0200 |
Update of /property/templates/default
Modified Files:
Branch: sigurd-2
actor.xsl
date: 2004/05/30 12:28:44; author: sigurdne; state: Exp; lines: +82 -66
Log Message:
no message
=====================================================================
Index: property/templates/default/actor.xsl
diff -u property/templates/default/actor.xsl:1.1.2.1
property/templates/default/actor.xsl:1.1.2.2
--- property/templates/default/actor.xsl:1.1.2.1 Tue May 25 21:15:22 2004
+++ property/templates/default/actor.xsl Sun May 30 12:28:44 2004
@@ -36,6 +36,14 @@
</xsl:when>
</xsl:choose>
<tr>
+ <xsl:choose>
+ <xsl:when test="member_of_list != ''">
+ <td align="left">
+ <xsl:call-template
name="filter_member_of"/>
+ </td>
+ </xsl:when>
+ </xsl:choose>
+
<td align="left">
<xsl:call-template name="cat_filter"/>
</td>
@@ -185,53 +193,26 @@
<xsl:call-template name="cat_select"/>
</td>
</tr>
- <tr align="left">
- <td valign="top">
- <xsl:value-of select="lang_first_name"/>
- </td>
- <td align="left">
- <input type="text"
name="values[first_name]" value="{value_first_name}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_first_name_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr align="left">
- <td valign="top">
- <xsl:value-of select="lang_last_name"/>
- </td>
- <td align="left">
- <input type="text"
name="values[last_name]" value="{value_last_name}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_last_name_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- <tr align="left">
- <td valign="top">
- <xsl:value-of
select="lang_contact_phone"/>
- </td>
- <td align="left">
- <input type="text"
name="values[contact_phone]" value="{value_contact_phone}"
onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_contact_phone_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:call-template
name="attributes_form"/>
</td>
</tr>
+ <xsl:choose>
+ <xsl:when test="member_of_list != ''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_member_of"/>
+ </td>
+ <td>
+ <xsl:variable
name="lang_member_of_statustext"><xsl:value-of
select="lang_member_of_statustext"/></xsl:variable>
+ <select
name="values[member_of][]" class="forms" multiple="multiple"
onMouseover="window.status='{$lang_member_of_statustext}'; return true;"
onMouseout="window.status='';return true;">
+
<xsl:apply-templates select="member_of_list"/>
+ </select>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
<tr height="50">
<td valign="bottom">
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
@@ -295,35 +276,26 @@
</xsl:choose>
</xsl:for-each>
</tr>
- <tr class="row_off">
- <td valign="top">
- <xsl:value-of select="lang_first_name"/>
- </td>
- <td>
- <xsl:value-of
select="value_first_name"/>
- </td>
- </tr>
- <tr class="row_off">
- <td valign="top">
- <xsl:value-of select="lang_last_name"/>
- </td>
- <td>
- <xsl:value-of select="value_last_name"/>
- </td>
- </tr>
- <tr class="row_off">
- <td valign="top">
- <xsl:value-of
select="lang_contact_phone"/>
- </td>
- <td>
- <xsl:value-of
select="value_contact_phone"/>
- </td>
- </tr>
<tr>
<td colspan="2" width="50%" align="left">
<xsl:apply-templates
select="attributes_view"/>
</td>
</tr>
+ <xsl:choose>
+ <xsl:when test="member_of_list != ''">
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_member_of"/>
+ </td>
+ <td>
+ <xsl:variable
name="lang_member_of_statustext"><xsl:value-of
select="lang_member_of_statustext"/></xsl:variable>
+ <select
disabled="disabled" name="values[member_of][]" class="forms"
multiple="multiple" onMouseover="window.status='{$lang_member_of_statustext}';
return true;" onMouseout="window.status='';return true;">
+
<xsl:apply-templates select="member_of_list"/>
+ </select>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
<tr height="50">
<td>
<xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
@@ -408,6 +380,9 @@
<td class="th_text" width="5%" align="center">
<a href="{$sort_sorting}"><xsl:value-of
select="lang_sorting"/></a>
</td>
+ <td class="th_text" width="1%" align="center">
+ <xsl:value-of select="lang_search"/>
+ </td>
<td class="th_text" width="5%" align="center">
<xsl:value-of select="lang_edit"/>
</td>
@@ -466,6 +441,9 @@
</table>
</td>
<td align="center">
+ <xsl:value-of select="search"/>
+ </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_attribtext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="text_edit"/></a>
</td>
@@ -644,6 +622,33 @@
</xsl:choose>
</td>
</tr>
+ <tr>
+ <td>
+ <xsl:value-of
select="lang_include_search"/>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when
test="value_search = 1">
+ <input
type="checkbox" name="values[search]" value="1" checked="checked"
onMouseout="window.status='';return true;">
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_include_search_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+ </xsl:when>
+ <xsl:otherwise>
+ <input
type="checkbox" name="values[search]" value="1"
onMouseout="window.status='';return true;">
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_include_search_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
<xsl:choose>
<xsl:when test="multiple_choice != ''">
<tr>
@@ -717,3 +722,14 @@
</xsl:choose>
</xsl:template>
+ <xsl:template match="member_of_list">
+ <xsl:variable name="id"><xsl:value-of select="cat_id"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="selected='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] property/templates/default/actor.xsl, 1.1.2.2,
nomail <=