[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default/lookup.xsl, 1.3
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/templates/default/lookup.xsl, 1.3 |
Date: |
Sun, 24 Oct 2004 00:11:00 +0200 |
Update of /property/templates/default
Modified Files:
Branch:
lookup.xsl
date: 2004/10/23 22:11:00; author: sigurdne; state: Exp; lines: +115 -7
Log Message:
no message
=====================================================================
Index: property/templates/default/lookup.xsl
diff -u property/templates/default/lookup.xsl:1.2
property/templates/default/lookup.xsl:1.3
--- property/templates/default/lookup.xsl:1.2 Wed Jun 2 19:10:22 2004
+++ property/templates/default/lookup.xsl Sat Oct 23 22:11:00 2004
@@ -17,13 +17,121 @@
<xsl:when test="list_b_account">
<xsl:apply-templates select="list_b_account"/>
</xsl:when>
+ <xsl:when test="list_vendor">
+ <xsl:apply-templates select="list_vendor"/>
+ </xsl:when>
<xsl:otherwise>
- <xsl:apply-templates select="list_addressbook"/>
+ <xsl:apply-templates select="list_contact"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="list_addressbook">
+ <xsl:template match="list_contact">
+ <script LANGUAGE="JavaScript">
+ function ExchangeContact(thisform)
+ {
+ opener.document.form.<xsl:value-of
select="contact_id"/>.value = thisform.elements[0].value;
+ opener.document.form.<xsl:value-of
select="contact_name"/>.value = thisform.elements[1].value;
+ window.close()
+ }
+ </script>
+
+
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <tr>
+ <td>
+ <xsl:call-template name="cat_filter"/>
+ </td>
+ <!-- <td align="center">
+ <xsl:call-template
name="filter_select"/>
+ </td> -->
+ <td align="right">
+ <xsl:call-template name="search_field"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <table width="100%" cellpadding="2" cellspacing="2"
align="center">
+ <xsl:apply-templates
select="table_header_contact"/>
+ <xsl:apply-templates select="values_contact"/>
+
+ <tr>
+ <td colspan="3" width="100%">
+ <xsl:call-template name="nextmatchs"/>
+ </td>
+ </tr>
+ </table>
+ <xsl:apply-templates select="table_done"/>
+
+ </xsl:template>
+
+ <xsl:template match="table_header_contact">
+ <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="40%" align="left">
+ <a href="{$sort_name}"><xsl:value-of
select="lang_name"/></a>
+ </td>
+ <td class="th_text" width="10%">
+ <xsl:value-of select="lang_select"/>
+ </td>
+ </tr>
+ </xsl:template>
+
+
+ <xsl:template match="values_contact">
+ <xsl:variable name="lang_select_statustext"><xsl:value-of
select="lang_select_statustext"/></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 class="small_text" align="right">
+ <xsl:value-of select="id"/>
+ </td>
+ <td class="small_text" align="left">
+ <xsl:value-of select="contact_name"/>
+ </td>
+ <xsl:choose>
+ <xsl:when test="id">
+ <form>
+ <td class="small_text"
valign="top">
+ <input
type="hidden" name="hidden" value="{id}"></input>
+ <input
type="hidden" name="hidden" value="{contact_name}"></input>
+ <xsl:variable
name="lang_select"><xsl:value-of select="lang_select"/></xsl:variable>
+ <input
type="button" name="convert" value="{$lang_select}"
onClick="ExchangeContact(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>
+ </td>
+ </form>
+ </xsl:when>
+ </xsl:choose>
+ </tr>
+ </xsl:template>
+
+<!-- list list_vendor-->
+ <xsl:template match="list_vendor">
<script LANGUAGE="JavaScript">
function ExchangeVendor(thisform)
{
@@ -53,8 +161,8 @@
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="2"
align="center">
- <xsl:apply-templates
select="table_header_addressbook"/>
- <xsl:apply-templates
select="values_addressbook"/>
+ <xsl:apply-templates
select="table_header_vendor"/>
+ <xsl:apply-templates select="values_vendor"/>
<tr>
<td colspan="3" width="100%">
@@ -66,7 +174,7 @@
</xsl:template>
- <xsl:template match="table_header_addressbook">
+ <xsl:template match="table_header_vendor">
<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">
@@ -83,7 +191,7 @@
</xsl:template>
- <xsl:template match="values_addressbook">
+ <xsl:template match="values_vendor">
<xsl:variable name="lang_select_statustext"><xsl:value-of
select="lang_select_statustext"/></xsl:variable>
<tr>
<xsl:attribute name="class">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/templates/default/lookup.xsl, 1.3,
nomail <=