[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default/s_agreement.xsl, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/templates/default/s_agreement.xsl, 1.2 |
Date: |
Mon, 14 Jun 2004 21:58:29 +0200 |
Update of /property/templates/default
Modified Files:
Branch:
s_agreement.xsl
date: 2004/06/14 19:58:29; author: sigurdne; state: Exp; lines: +136 -4
Log Message:
no message
=====================================================================
Index: property/templates/default/s_agreement.xsl
diff -u property/templates/default/s_agreement.xsl:1.1
property/templates/default/s_agreement.xsl:1.2
--- property/templates/default/s_agreement.xsl:1.1 Fri Jun 11 17:22:42 2004
+++ property/templates/default/s_agreement.xsl Mon Jun 14 19:58:29 2004
@@ -79,9 +79,13 @@
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:call-template name="table_header"/>
- <xsl:call-template name="values"/>
- <xsl:apply-templates select="table_add"/>
+ <xsl:call-template name="table_header"/>
+ <xsl:call-template name="values"/>
+ <xsl:choose>
+ <xsl:when test="table_add!=''">
+ <xsl:apply-templates
select="table_add"/>
+ </xsl:when>
+ </xsl:choose>
</table>
</xsl:template>
@@ -224,7 +228,7 @@
</script>
<xsl:variable name="edit_url"><xsl:value-of
select="edit_url"/></xsl:variable>
<div align="left">
- <form name="form" method="post" action="{$edit_url}">
+ <form ENCTYPE="multipart/form-data" method="post" name="form"
action="{$edit_url}">
<table cellpadding="2" cellspacing="2" width="79%"
align="center">
<xsl:choose>
<xsl:when test="msgbox_data != ''">
@@ -325,6 +329,86 @@
</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>
+
+ <xsl:choose>
<xsl:when test="attributes_values != ''">
<tr>
<td colspan="2" width="50%"
align="left">
@@ -671,6 +755,54 @@
<input type="text" id="end_date"
name="end_date" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" ></input>
</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>
<xsl:choose>
<xsl:when test="attributes_view != ''">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/templates/default/s_agreement.xsl, 1.2,
nomail <=