fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12495]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12495]
Date: Tue, 23 Dec 2014 23:43:00 +0000

Revision: 12495
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12495
Author:   nelson224
Date:     2014-12-23 23:42:59 +0000 (Tue, 23 Dec 2014)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/templates/base/attrib_history.xsl

Modified: branches/dev-syncromind/property/templates/base/attrib_history.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/attrib_history.xsl  
2014-12-23 11:34:44 UTC (rev 12494)
+++ branches/dev-syncromind/property/templates/base/attrib_history.xsl  
2014-12-23 23:42:59 UTC (rev 12495)
@@ -36,3 +36,87 @@
 
                </script>
        </xsl:template>
+
+       <xsl:template name="table_setup">
+               <xsl:param name="container" />
+               <xsl:param name="requestUrl" />
+               <xsl:param name="ColumnDefs" />
+               <table id="{$container}" class="display cell-border compact 
responsive no-wrap" width="100%">
+                       <thead>
+                               <tr>
+                                       <xsl:for-each select="$ColumnDefs">
+                                               <xsl:choose>
+                                                       <xsl:when test="hidden">
+                                                               <xsl:if 
test="hidden =0">
+                                                                       <th>
+                                                                               
<xsl:value-of select="label"/>
+                                                                       </th>
+                                                                       
</xsl:if>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <th>
+                                                                       
<xsl:value-of select="label"/>
+                                                               </th>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                       </xsl:for-each>
+                               </tr>
+                       </thead>
+               </table>
+               <script>
+                       JqueryPortico.inlineTablesDefined += 1;
+                       var PreColumns = [
+                                       <xsl:for-each select="$ColumnDefs">
+                                       {
+                                               data:                   
"<xsl:value-of select="key"/>",
+                                               class:                  
"<xsl:value-of select="className"/>",
+                                               orderable:              
<xsl:value-of select="phpgw:conditional(not(sortable = 0), 'true', 'false')"/>,
+                                               <xsl:choose>
+                                                       <xsl:when test="hidden">
+                                                               <xsl:if 
test="hidden =0">
+                                                                       visible 
                :true,
+                                                               </xsl:if>
+                                                               <xsl:if 
test="hidden =1">
+                                                                       class:  
                'none',
+                                                                       visible 
                :false,
+                                                               </xsl:if>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                                       visible 
                :true,
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                               <xsl:if test="formatter">
+                                                render: function (dummy1, 
dummy2, oData) {
+                                                               try {
+                                                                       var ret 
= <xsl:value-of select="formatter"/>("<xsl:value-of select="key"/>", oData);
+                                                               }
+                                                               catch(err) {
+                                                                       return 
err.message;
+                                                               }
+                                                               return ret;
+                                                        },
+
+                                               </xsl:if>
+                                               defaultContent: "<xsl:value-of 
select="defaultContent"/>"
+                                       }<xsl:value-of 
select="phpgw:conditional(not(position() = last()), ',', '')"/>
+                               </xsl:for-each>
+                       ];
+       <![CDATA[
+                       columns = [];
+
+                       for(i=0;i < PreColumns.length;i++)
+                       {
+                               if ( PreColumns[i]['visible'] == true )
+                               {
+                                       columns.push(PreColumns[i]);
+                               }
+                       }
+       ]]>
+                       <xsl:variable name="num">
+                               <xsl:number count="*"/>
+                       </xsl:variable>
+                       var options = {disablePagination:true, 
disableFilter:true};
+                       var oTable<xsl:number value="($num - 1)"/> = 
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>", 
<xsl:value-of select="$requestUrl"/>, columns, options);
+
+               </script>
+       </xsl:template>
\ No newline at end of file




reply via email to

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