[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default entity.xsl, 1.4 tts.xsl, 1
From: |
sigurdne |
Subject: |
[Phpgroupware-cvs] property/templates/default entity.xsl, 1.4 tts.xsl, 1.7 request.xsl, 1.5 |
Date: |
Tue, 1 Mar 2005 16:04:00 +0100 |
Update of property/templates/default
Modified Files:
Branch: MAIN
entity.xsl lines: +79 -12
tts.xsl lines: +19 -1
request.xsl lines: +207 -27
Log Message:
no message
====================================================
Index: property/templates/default/entity.xsl
diff -u property/templates/default/entity.xsl:1.3
property/templates/default/entity.xsl:1.4
--- property/templates/default/entity.xsl:1.3 Thu Jan 13 16:52:48 2005
+++ property/templates/default/entity.xsl Tue Mar 1 15:04:28 2005
@@ -223,7 +223,7 @@
<tr>
<td class="th_text">
<xsl:value-of select="lang_category"/>
- <input type="hidden"
name="values[origin_type]" value="{value_origin_type}"></input>
+ <input type="hidden"
name="values[origin]" value="{value_origin_type}"></input>
<input type="hidden"
name="values[origin_id]" value="{value_origin_id}"></input>
</td>
<td class="th_text">
@@ -251,8 +251,66 @@
<input type="hidden"
name="values[num]" value="{value_num}"></input>
</td>
</tr>
+ <xsl:for-each select="value_origin" >
+ <xsl:variable
name="link_origin_type"><xsl:value-of select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text"
valign ="top">
+ <xsl:value-of
select="descr"/>
+ </td>
+ <td>
+ <table>
+
+ <xsl:for-each
select="data">
+ <tr>
+
+ <td class="th_text"
align="left" >
+ <a
href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+ <xsl:text>
</xsl:text>
+
+ <xsl:choose>
+
<xsl:when test="type ='request'">
+ <input
type="checkbox" name="values[delete_request][]" value="{id}"
onMouseout="window.status='';return true;">
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="//lang_delete_request_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+
</xsl:when>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
</xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="value_origin" >
+ <xsl:variable
name="link_origin_type"><xsl:value-of select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text"
valign ="top">
+ <xsl:value-of
select="descr"/>
+ </td>
+ <td>
+ <table>
+
<xsl:for-each select="data">
+
<tr>
+
<td class="th_text" align="left" >
+
<a href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+
<xsl:text> </xsl:text>
+
</td>
+
</tr>
+
</xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:otherwise>
</xsl:choose>
+
+
<xsl:choose>
<xsl:when test="location_data!=''">
<xsl:call-template
name="location_form"/>
@@ -409,16 +467,25 @@
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <xsl:for-each select="origin_list" >
- <xsl:variable name="link"><xsl:value-of
select="link"/>&id=<xsl:value-of select="id"/></xsl:variable>
- <tr>
- <td class="th_text">
- <xsl:value-of select="name"/>
- </td>
- <td class="th_text">
- <a href="{$link}"
onMouseover="window.status='{statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
- </td>
- </tr>
+ <xsl:for-each select="value_origin" >
+ <xsl:variable name="link_origin_type"><xsl:value-of
select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text" valign ="top">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td>
+ <table>
+ <xsl:for-each select="data">
+ <tr>
+ <td
class="th_text" align="left" >
+ <a
href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+
<xsl:text> </xsl:text>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
</xsl:for-each>
<tr>
<td class="th_text">
====================================================
Index: property/templates/default/tts.xsl
diff -u property/templates/default/tts.xsl:1.6
property/templates/default/tts.xsl:1.7
--- property/templates/default/tts.xsl:1.6 Wed Feb 9 14:17:25 2005
+++ property/templates/default/tts.xsl Tue Mar 1 15:04:28 2005
@@ -480,6 +480,24 @@
<xsl:value-of
select="value_category_name"/>
</td>
</tr>
+
+ <xsl:for-each select="value_origin" >
+ <xsl:variable
name="link_origin_type"><xsl:value-of select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text" valign ="top">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td class="th_text"
align="left" >
+ <xsl:for-each select="data">
+ <a
href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ </td>
+ </tr>
+ </xsl:for-each>
+
+
+
<xsl:for-each select="entity_origin_list" >
<tr>
<td class="th_text">
====================================================
Index: property/templates/default/request.xsl
diff -u property/templates/default/request.xsl:1.4
property/templates/default/request.xsl:1.5
--- property/templates/default/request.xsl:1.4 Fri Feb 25 13:19:54 2005
+++ property/templates/default/request.xsl Tue Mar 1 15:04:27 2005
@@ -334,7 +334,7 @@
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
- <input type="hidden" name="values[origin]"
value="{value_origin}"></input>
+ <input type="hidden" name="values[origin]"
value="{value_origin_type}"></input>
<input type="hidden" name="values[origin_id]"
value="{value_origin_id}"></input>
<xsl:choose>
<xsl:when test="value_request_id!=''">
@@ -360,33 +360,63 @@
<xsl:value-of
select="value_request_id"/>
</td>
</tr>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="value_project_id!=''">
- <tr>
- <td align="left" valign="top">
- <xsl:value-of
select="//lang_project"/>
- </td>
- <td class="th_text"
align="left">
- <xsl:for-each
select="value_project_id" >
-
<xsl:variable name="link_project"><xsl:value-of
select="//link_project"/>&id=<xsl:value-of select="id"/></xsl:variable>
- <a
href="{$link_project}"
onMouseover="window.status='{//lang_project_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
-
<xsl:text> </xsl:text>
+ <xsl:for-each select="value_origin" >
+ <xsl:variable
name="link_origin_type"><xsl:value-of select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text"
valign ="top">
+ <xsl:value-of
select="descr"/>
+ </td>
+ <td>
+ <table>
+
+ <xsl:for-each
select="data">
+ <tr>
+
+ <td class="th_text"
align="left" >
+ <a
href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+ <xsl:text>
</xsl:text>
+
+ <xsl:choose>
+
<xsl:when test="type ='request'">
+ <input
type="checkbox" name="values[delete_request][]" value="{id}"
onMouseout="window.status='';return true;">
+
<xsl:attribute name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="//lang_delete_request_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+
</xsl:attribute>
+ </input>
+
</xsl:when>
+ </xsl:choose>
+ </td>
+ </tr>
</xsl:for-each>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
-
- <xsl:choose>
- <xsl:when test="value_origin_id!=''">
- <tr>
- <td>
- <a href="{link_origin}"
onMouseover="window.status='{lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of
select="lang_origin"/></a>
- </td>
- </tr>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
</xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="value_origin" >
+ <xsl:variable
name="link_origin_type"><xsl:value-of select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text"
valign ="top">
+ <xsl:value-of
select="descr"/>
+ </td>
+ <td>
+ <table>
+
<xsl:for-each select="data">
+
<tr>
+
<td class="th_text" align="left" >
+
<a href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+
<xsl:text> </xsl:text>
+
</td>
+
</tr>
+
</xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:otherwise>
</xsl:choose>
<tr>
<td valign="top">
@@ -562,6 +592,87 @@
<xsl:value-of select="value_score"/>
</td>
</tr>
+
+ <xsl:choose>
+ <xsl:when test="files!=''">
+ <tr>
+ <td align="left" valign="top">
+ <xsl:value-of select="//lang_files"/>
+ </td>
+ <td>
+ <table>
+ <tr class="th">
+ <td class="th_text" width="85%"
align="left">
+ <xsl:value-of
select="lang_filename"/>
+ </td>
+ <td class="th_text" width="15%"
align="center">
+ <xsl:value-of
select="lang_delete_file"/>
+ </td>
+ </tr>
+ <xsl:for-each select="files" >
+ <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:choose>
+ <xsl:when
test="//link_to_files!=''">
+ <xsl:variable
name="link_to_file"><xsl:value-of select="//link_to_files"/>/<xsl:value-of
select="directory"/>/<xsl:value-of select="file_name"/></xsl:variable>
+ <a
href="{$link_to_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:variable
name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
+ <a
href="{$link_view_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text> </xsl:text>
+ </td>
+ <td align="center">
+ <input type="checkbox"
name="values[delete_file][]" value="{name}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="//lang_delete_file_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="fileupload = 1">
+ <tr>
+ <td valign="top">
+ <xsl:value-of
select="lang_upload_file"/>
+ </td>
+ <td>
+ <input type="file"
name="file" size="40" onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_file_statustext"/>
+
<xsl:text>'; return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+
<tr>
<xsl:choose>
<xsl:when test="notify='yes'">
@@ -1116,6 +1227,26 @@
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
+ <xsl:for-each select="value_origin" >
+ <xsl:variable name="link_origin_type"><xsl:value-of
select="link"/></xsl:variable>
+ <tr>
+ <td class="th_text" valign ="top">
+ <xsl:value-of select="descr"/>
+ </td>
+ <td>
+ <table>
+ <xsl:for-each select="data">
+ <tr>
+ <td
class="th_text" align="left" >
+ <a
href="{$link_origin_type}&id={id}"
onMouseover="window.status='{//lang_origin_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="id"/></a>
+
<xsl:text> </xsl:text>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:for-each>
<tr>
<td>
<xsl:value-of select="lang_request_id"/>
@@ -1287,6 +1418,55 @@
<xsl:value-of select="value_score"/>
</td>
</tr>
+ <xsl:choose>
+ <xsl:when test="files!=''">
+ <tr>
+ <td align="left" valign="top">
+ <xsl:value-of
select="//lang_files"/>
+ </td>
+ <td>
+ <table>
+ <tr class="th">
+ <td class="th_text"
width="85%" align="left">
+ <xsl:value-of
select="lang_filename"/>
+ </td>
+ </tr>
+ <xsl:for-each
select="files" >
+ <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:choose>
+
<xsl:when test="//link_to_files!=''">
+
<xsl:variable name="link_to_file"><xsl:value-of
select="//link_to_files"/>/<xsl:value-of select="directory"/>/<xsl:value-of
select="file_name"/></xsl:variable>
+
<a href="{$link_to_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+
</xsl:when>
+
<xsl:otherwise>
+
<xsl:variable name="link_view_file"><xsl:value-of
select="//link_view_file"/>&file_name=<xsl:value-of
select="file_name"/></xsl:variable>
+
<a href="{$link_view_file}" target="_blank"
onMouseover="window.status='{//lang_view_file_statustext}';return true;"
onMouseout="window.status='';return true;"><xsl:value-of select="name"/></a>
+
</xsl:otherwise>
+
</xsl:choose>
+
<xsl:text> </xsl:text>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+
<tr height="50">
<td>
<xsl:variable
name="done_action"><xsl:value-of select="done_action"/></xsl:variable>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/templates/default entity.xsl, 1.4 tts.xsl, 1.7 request.xsl, 1.5,
sigurdne <=
- Prev by Date:
[Phpgroupware-cvs] property/setup tables_update.inc.php, 1.4 tables_current.inc.php, 1.23 setup.inc.php, 1.11
- Next by Date:
[Phpgroupware-cvs] property/templates/base request.xsl, 1.4 tts.xsl, 1.5 entity.xsl, 1.2
- Previous by thread:
[Phpgroupware-cvs] property/setup tables_update.inc.php, 1.4 tables_current.inc.php, 1.23 setup.inc.php, 1.11
- Next by thread:
[Phpgroupware-cvs] property/templates/base request.xsl, 1.4 tts.xsl, 1.5 entity.xsl, 1.2
- Index(es):