diff --git a/include/class_html_table.php b/include/class_html_table.php
new file mode 100644
index 000000000..0470ffbc4
--- /dev/null
+++ b/include/class_html_table.php
@@ -0,0 +1,109 @@
+',$table_style);
+ $r.='
';
+ for ( $i=0;$i %s',
+ $a_col[$i]['link'],
+ $content);
+ $r.="| $content | ";
+ }
+ else
+ $r.= th($content);
+ }
+ $r.='
';
+ $ret=$cn->exec_sql($sql);
+ for ($i=0;$i';
+ $row=Database::fetch_row($ret,$i);
+ for ($e=0;$e';
+ }
+ $r.='';
+ return $r;
+ }
+ static function test_me()
+ {
+ $cn=new Database(Dossier::id());
+ $order=" order by name ";
+ $url=HtmlInput::get_to_string(array("gDossier","test_select"));
+
+ if ( isset($_GET['sb']))
+ {
+ $order=" order by f_id";
+ }
+ else
+ {
+ $url=$url."&sb=as";
+ }
+ $sql="select f_id,name,quick_code from vw_client $order limit 10";
+ echo $sql;
+
+
+ echo Html_Table::sql2table($cn,
+ array(
+ array('name'=>'N° de fiche',
+ 'style'=>'text-align:right',
+ 'link'=>$url),
+ array('name'=>'Nom',
+ 'style'=>'text-align:right'),
+ array('name'=>'QuickCode')
+ )
+ ,
+ $sql
+ );
+ }
+}
\ No newline at end of file