// We don't want binary data to be destroyed
// Note: from the MySQL manual: "BINARY doesn't affect how the column is
// stored or retrieved" so it does not mean that the contents is
// binary
if ((($cfgProtectBinary && $is_blob)
|| ($cfgProtectBinary == 'all' && $is_binary))
&& !empty($data)) {
echo ' ' . $strBinary . ' ' . "\n";
} else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) {
echo ' -- ' . "\n";
} else {
?>
' . $cfgFunctions[$j] . '' . "\n";
}
} else {
// for default function = NOW() on first timestamp field
// -- swix/18jul01
for ($j = 0; $j < count($cfgFunctions); $j++) {
echo ' ';
if ($cfgFunctions[$j] == 'NOW') {
echo '' . $cfgFunctions[$j] . ' ' . "\n";
} else {
echo '' . $cfgFunctions[$j] . ' ' . "\n";
}
} // end for
}
?>
' . "\n";
if ($row_table_def['Null'] == 'YES') {
echo ' 20) {
echo ' onclick="if (this.checked) {document.forms[\'insertForm\'].elements[\'field_' . md5($field) . '[]\'].selectedIndex = -1}; return true" />' . "\n";
} else {
echo ' onclick="if (this.checked) {var elts = document.forms[\'insertForm\'].elements[\'field_' . md5($field) . '[]\']; var elts_cnt = elts.length; for (var i = 0; i < elts_cnt; i++ ) {elts[i].checked = false}}; return true" />' . "\n";
}
} else if (strstr($row_table_def['True_Type'], 'set')) {
echo ' onclick="if (this.checked) {document.forms[\'insertForm\'].elements[\'field_' . md5($field) . '[]\'].selectedIndex = -1}; return true" />' . "\n";
} else {
echo ' onclick="if (this.checked) {document.forms[\'insertForm\'].elements[\'fields[' . urlencode($field) . ']\'].value = \'\'}; return true" />' . "\n";
}
} else {
echo ' ' . "\n";
}
echo ' ' . "\n";
// The value column (depends on type)
// ----------------
if (strstr($row_table_def['True_Type'], 'text')) {
?>
32000) {
echo ' ' . $strTextAreaLength . ' ' . "\n";
}
}
else if (strstr($row_table_def['True_Type'], 'enum')) {
$enum = str_replace('enum(', '', $row_table_def['Type']);
$enum = ereg_replace('\\)$', '', $enum);
$enum = explode('\',\'', substr($enum, 1, -1));
$enum_cnt = count($enum);
?>
20) {
echo "\n";
?>
' . htmlspecialchars($enum_atom) . '' . "\n";
} // end for
?>
' . "\n";
echo ' ' . htmlspecialchars($enum_atom) . "\n";
} // end for
} // end else
echo "\n";
?>
' . htmlspecialchars($subset) . '' . "\n";
} // end for
?>
// We don't want binary data destroyed
else if ($is_binary || $is_blob) {
if (($cfgProtectBinary && $is_blob)
|| ($cfgProtectBinary == 'all' && $is_binary)) {
echo "\n";
?>
40) ? 40 : $len);
$maxlength = $len;
}
echo "\n";
?>
40) ? 40 : $len);
$maxlength = $len;
}
echo "\n";
?>