phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/templates/default/document.xsl, 1.2.2.1


From: nomail
Subject: [Phpgroupware-cvs] property/templates/default/document.xsl, 1.2.2.1
Date: Mon, 8 Nov 2004 16:36:10 +0100

Update of /property/templates/default
Modified Files:
        Branch: proposed-0_9_18-branch
          document.xsl

date: 2004/11/08 15:36:10;  author: sigurdne;  state: Exp;  lines: +38 -1

Log Message:
no message
=====================================================================
Index: property/templates/default/document.xsl
diff -u property/templates/default/document.xsl:1.2 
property/templates/default/document.xsl:1.2.2.1
--- property/templates/default/document.xsl:1.2 Wed Jun  2 19:09:47 2004
+++ property/templates/default/document.xsl     Mon Nov  8 15:36:10 2004
@@ -23,6 +23,9 @@
                <xsl:call-template name="menu"/> 
                <table width="100%"  cellpadding="2" cellspacing="2" 
align="center">
                        <tr>
+                               <td align="left">
+                                       <xsl:call-template 
name="doc_type_filter"/> 
+                               </td>
                                <xsl:choose>
                                        <xsl:when test="cat_list!=''">
                                                <td align="left">
@@ -59,6 +62,39 @@
        </xsl:template>
 
 
+       <xsl:template name="doc_type_filter">
+               <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
+               <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
+               <form method="post" action="{select_action}">
+                       <select name="doc_type" onChange="this.form.submit();" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_doc_type_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_doc_type"/></option>
+                                       <xsl:apply-templates select="doc_type"/>
+                       </select> 
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+
+
+       <xsl:template match="doc_type">
+       <xsl:variable name="id"><xsl:value-of select="cat_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>
+
        <xsl:template name="cat_filter2">
                <xsl:variable name="select_name"><xsl:value-of 
select="select_name"/></xsl:variable>
                <xsl:variable name="lang_submit"><xsl:value-of 
select="lang_submit"/></xsl:variable>
@@ -79,6 +115,7 @@
                </form>
        </xsl:template>
 
+
        <xsl:template match="cat_list">
        <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
                <xsl:choose>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]