_tbl = $tblName; $this->_cnf = $tblConf; $this->_htmlID = $tblName;//uniqid($tblName); Lib::loadClass('Data_Source'); $this->_dataSource = new Data_Source(); $this->_dataSource->set_table($this->_tbl); } function getHtmlID() { return $this->_htmlID; } function render() { $visible_cols = $this->_cnf->getVisibleFieldList(); $colModel = array(); foreach ($visible_cols as $name) { $colModel[] = (object)array('display'=>$name, 'name'=>$name, 'width'=>strlen($name) * 5, 'sortable'=>true, 'align'=>'left'); } $out = ''; //$out .= '' . "\n"; $out .= '' . "\n"; $out .= ''; $out .= '' . "\n"; $out .= ''; $out .= ''; foreach ($visible_cols as $name) { $out .= ''; } $out .= ''; $out .= ''; // $out .= ''; // $out .= ''; $out .= ''; $out .= ''; $out .= '
' . $name . '
' . "\n"; $out .= '' . "\n"; return $out; } }