public function _getHtml() { $data = $this; $return = <<<HTML <div class="param-table" id="param_table_{$data->table}"> HTML; // Create first Column $menu = aimsys::_array_sel_menu($data->tables, "sel_table_{$data->table}", $data->table, 0, "--Select Table--"); $return .= <<<HTML <div class="param-col"> \t<div class="param-cell">{$data->table}</div> HTML; // Create cells for parameters foreach ($data->ar_params as $key => $value) { $return .= <<<HTML \t<div class="param-cell">{$value}</div> HTML; } // End First Column $return .= <<<HTML <div class="param-cell"><button type="button" onclick="ajax_submit_all('#param_table_{$data->table}')">Save All</button></div> </div> HTML; // Process rest of the data foreach ($data->params as $key => $col) { // Create next Column $return .= <<<HTML <div class="param-col" id="param_col_{$key}"> \t<div class="param-cell">{$key}</div> \t<form action="index.php?controller=form&option=tableparam" method="post" id="frm_tableparam_{$key}" target="#param_col_{$key}" targetScript="1"> <input type="hidden" name="frm_name" value="frm_tableparam" /> <input type="hidden" name="_table" value="{$col->_table}" /> <input type="hidden" name="_col" value="{$col->_col}" /> \t HTML; // Create additional cells foreach ($col as $key2 => $param) { if (is_object($param)) { $return .= @<<<HTML \t\t\t<div title="{$param->helptext}" class="param-cell">{$param->inputhtml}</div> HTML; } } // End Column $return .= <<<HTML <div class="param-cell"> <button type="button" onclick="ajax_submit(this.form)">Save</button></div> </form> </div> HTML; } // End Table $return .= <<<HTML </div> <div class="data row footer"></div> HTML; return $return; }