fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12552] return data for jquery tables


From: Sigurd Nes
Subject: [Fmsystem-commits] [12552] return data for jquery tables
Date: Wed, 07 Jan 2015 15:07:21 +0000

Revision: 12552
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12552
Author:   sigurdne
Date:     2015-01-07 15:06:53 +0000 (Wed, 07 Jan 2015)
Log Message:
-----------
return data for jquery tables

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.bocommon.inc.php

Modified: branches/dev-syncromind/property/inc/class.bocommon.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.bocommon.inc.php 2015-01-06 
23:33:33 UTC (rev 12551)
+++ branches/dev-syncromind/property/inc/class.bocommon.inc.php 2015-01-07 
15:06:53 UTC (rev 12552)
@@ -2318,24 +2318,24 @@
                        foreach($vendor_email as $_entry )
                        {                               
                                $content_email[] = array
-                                       (
-
-                                               'value_email'           => 
$_entry['email'],
-                                               'value_select'          => 
"<input type='checkbox' name='values[vendor_email][]' 
value='{$_entry['email']}' title='{$title}'>"
-                                       );
+                               (
+                                       'value_email'           => 
$_entry['email'],
+                                       'value_select'          => "<input 
type='checkbox' name='values[vendor_email][]' value='{$_entry['email']}' 
title='{$title}'>"
+                               );
                        }
 
                        if( phpgw::get_var('phpgw_return_as') == 'json' )
                        {
-
-                               if(count($content_email))
-                               {
-                                       return json_encode($content_email);
-                               }
-                               else
-                               {
-                                       return "";
-                               }
+                               $total_records = count($content_email);
+                               
+                               return  array
+                               (
+                                       'data'                          => 
$content_email,
+                                       'total_records'         => 
$total_records,
+                                       'draw'                          => 
phpgw::get_var('draw', 'int'),
+                                       'recordsTotal'          => 
$total_records,
+                                       'recordsFiltered'       => 
$total_records
+                               );
                        }
                        return $content_email;
                }




reply via email to

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