'; } else { // loic1: display default values if (!isset($row_table_def['Default'])) { $row_table_def['Default'] = ''; $data = 'NULL'; } else { $data = $row_table_def['Default']; } $special_chars = htmlspecialchars($row_table_def['Default']); $backup_field = ''; } // The function column // ------------------- // Change by Bernard M. Piller // 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 ' ' . "\n"; } else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) { echo ' ' . "\n"; } else { ?> ' . "\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 ' ' . "\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); // $seenchecked = 0; ?> // 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"; ?>
> ' . $strBinary . '-- ' . $strTextAreaLength . ' 20) { echo "\n"; ?> ' . "\n"; echo ' ' . htmlspecialchars($enum_atom) . "\n"; } // end for // old null option // if ($row_table_def['Null'] == 'YES') { // echo ' '; // echo '' . "\n"; // echo ' [' . $strNull . ']' . "\n"; // } // end if } // end else echo "\n"; ?>


      
   -- --