phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4162 - phpcompta/branches/rel560/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4162 - phpcompta/branches/rel560/include
Date: Sat, 11 Jun 2011 02:14:23 +0200 (CEST)

Author: danydb
Date: 2011-06-11 02:14:22 +0200 (Sat, 11 Jun 2011)
New Revision: 4162

Modified:
   phpcompta/branches/rel560/include/class_html_table.php
Log:
Fix bug 

Modified: phpcompta/branches/rel560/include/class_html_table.php
===================================================================
--- phpcompta/branches/rel560/include/class_html_table.php      2011-06-08 
17:58:47 UTC (rev 4161)
+++ phpcompta/branches/rel560/include/class_html_table.php      2011-06-11 
00:14:22 UTC (rev 4162)
@@ -73,10 +73,10 @@
   }
 @endcode
    */
-  static function 
sql2table($cn,$a_col,$sql,$table_style="result",$a_sql_var=null)
+  static function 
sql2table($cn,$a_col,$sql,$table_style='class="result"',$a_sql_var=null)
   {
     $r='';
-    $r=sprintf('<table style="%s">',$table_style);
+    $r=sprintf('<table %s>',$table_style);
     $r.='<tr>';
     for ( $i=0;$i <count($a_col);$i++)
       {
@@ -96,7 +96,7 @@
          $r.= th($content);
       }
     $r.='</tr>';
-    $ret=$cn->exec_sql($sql);
+    $ret=$cn->exec_sql($sql,$a_sql_var);
     for ($i=0;$i<Database::num_row($ret);$i++)
       {
        $r.='<tr>';




reply via email to

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