";
echo "".$tdText." | ";
$i = 0;
foreach ($_SESSION['selectedColumn'] as $k2 => $v2) {
if ($v === 'Field') {
#$selectStyle = "style='width:100%'";
echo "";
echo "".
"".
" | ";
} else if ($v === 'Table') {
#$selectStyle = "style='width:100%'";
echo "".
"".
" | ";
} else if ($v === 'Show') {
if (!isset($_SESSION['selectedColumn'][$k2]['show'])) {
$_SESSION['selectedColumn'][$k2]['show'] = '1';
}
$checked = '';
if ($_SESSION['selectedColumn'][$k2]['show']) $checked = 'checked';
echo "".
"".
" | ";
} else if ($v === '') {
$buttonStyle = "style='background-color:#E64C20;color:white'";
$buttonJs = "onClick='deletecolumn(\"".$k2."\")'";
echo "".
"".
" | ";
} else if ($v === 'Sort') {
if (!isset($_SESSION['selectedColumn'][$k2]['sort'])) {
$_SESSION['selectedColumn'][$k2]['sort'] = '';
}
#$selectStyle = "style='width:100%'";
echo "".
"".
" | ";
} else if ($v === 'Total') {
if (!isset($_SESSION['selectedColumn'][$k2]['total'])) {
$_SESSION['selectedColumn'][$k2]['total'] = '';
}
#$selectStyle = "style='width:100%'";
echo "".
"".
" | ";
} else if ($v === 'Criteria') {
$textValue = "value='".$_SESSION['selectedColumn'][$k2]['criteria']."'";
$textStyle = "style='width:100%'";
echo "".
" | ";
} else if ($v === 'or') {
$textValue = "value='".$_SESSION['selectedColumn'][$k2]['or']."'";
$textStyle = "style='width:100%'";
echo "".
" | ";
}
$i++;
}
echo "
";
}
$record = array();
$record['serialize'] = serialize(array(
'selectedTable' => $_SESSION['selectedTable'],
'selectedColumn' => $_SESSION['selectedColumn'],
'selectedRelation' => $_SESSION['selectedRelation']
));
#$rs = $adodb->Execute("SELECT * FROM qb_view ".
#" WHERE id = ? ", $_SESSION['selectedView']);
#$adodb->Execute($adodb->GetUpdateSQL($rs, $record, 1));
$record['serialize'] = str_replace("\n", "\\n", $record['serialize']);
echo "";
?>