From 9029378685f771513e1bb61815bd7902a115afb0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 22 May 2014 15:40:34 +0800 Subject: [PATCH] DatabaseColumns.php --- DatabaseColumns.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/DatabaseColumns.php b/DatabaseColumns.php index ea38b616..9a2a1611 100644 --- a/DatabaseColumns.php +++ b/DatabaseColumns.php @@ -25,9 +25,15 @@ class Pman_Core_DatabaseColumns extends Pman { function get($table) { $d = DB_DAtaObject::Factory($table); $re = $d->autoJoin(); - echo '
';
-        print_r($re);
-        exit;
+        
+        foreach($re['cols'] as $c=>$f {
+            $ret[]  = array(
+                'name' => $c,
+                'val' =>$v
+            );
+            
+        }
+        $this->jdata($ret);
         
         
     }
-- 
2.39.2