/** * @deprecated */ function aWidgets(&$table, $row = array(), $mode = 'upd', $projection = '') { // Do the two basics $acols = aColsModeProj($table, $mode, $projection); $ahcols = aHColsfromACols($acols); // These calls are the top of hDetailFromAHCols // We are doing cargo-cult programming putting them here ahColsNames($ahcols, 'x2t_', 500); $calcRow = vgaGet('calcRow'); $calcRow = str_replace('--NAME-PREFIX--', 'x2t_', $calcRow); vgaSet('calcRow', $calcRow); // This loop is directly lifted from hDetailFromAHCols foreach ($ahcols as $colname => $ahcol) { // if no first focus, set it now if (vgfGet('HTML_focus') == '' && $ahcol['writable']) { vgfSet('HTML_focus', $ahcol['cname']); } // Replace out the HTML for MIME-H stuff // KFD 9/7/07, replace the HTML if it is a WYSIWYG column if ($ahcol['type_id'] == 'mime-h' || $ahcol['type_id'] == 'mime-h-f') { $ahcols[$colname]['htmlnamed'] = '--MIME-H--' . $ahcol['cname'] . '--MIME-H--'; //$html = '--MIME-H--'.$ahcol['cname'].'--MIME-H--'; } else { if ($ahcol['type_id'] == 'date') { $ahcols[$colname]['parms']['data-date-format'] = 'yyyy-mm-dd'; } } } // Now we want to make use of the already written jsValues // code w/o copying and pasting too badly foreach ($ahcols as $colname => $ahcol) { $h = $ahcol['htmlnamed']; $ahcols[$colname]['htmlnamed'] = jsValuesOne($ahcols, $colname, $ahcol, 'x2t_', $row, $h); } return $ahcols; }
function hBoxesX3($mode, $projection = '', $title = '') { $acols = aColsModeProj($this->table, $mode, $projection); $ahcols = aHColsfromACols($acols); $title = $title ? '<h3 style="padding:5px; margin:0px">' . $title . '</h3>' : $title; $xh = hDetailFromAHCols($ahcols, 'x2t_', 500); $xh = jsValues($ahcols, 'x2t_', $this->row, $xh); //return // '<div class="x2fieldset" style="padding: 5px">' // .$title // .$xh // .'</div>'; return $title . $xh; }