'; /** * Get the list of the fields of the current table */ PMA_mysql_select_db($db); $table_def = PMA_mysql_query('SHOW FIELDS FROM ' . PMA_backquote($table)); if (isset($primary_key)) { $local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE ' . $primary_key; $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); $row = PMA_mysql_fetch_array($result); // No row returned if (!$row) { unset($row); unset($primary_key); $goto_cpy = $goto; $goto = 'tbl_properties.php3?' . PMA_generate_common_url($db, $table) . '&$show_query=1' . '&sql_query=' . urlencode($local_query); if (isset($sql_query)) { $sql_query_cpy = $sql_query; unset($sql_query); } $sql_query = $local_query; PMA_showMessage($strEmptyResultSet); $goto = $goto_cpy; unset($goto_cpy); if (isset($sql_query_cpy)) { $sql_query = $sql_query_cpy; unset($sql_query_cpy); } } // end if (no record returned) } else { $local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' LIMIT 1'; $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); unset($row); } // // retrieve keys into foreign fields, if any $cfgRelation = PMA_getRelationsParam(); $foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE); /** * Displays the form */ // loic1: autocomplete feature of IE kills the "onchange" event handler and it // must be replaced by the "onpropertychange" one in this case $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5) ? 'onpropertychange' : 'onchange'; // Had to put the URI because when hosted on an https server, // some browsers send wrongly this form to the http server. ?>
' . $strFunction . '' . "\n"; } ?> and instead, // but it didn't worked because of the ) if ((($i % 15) == 0) && ($i != 0)) { ?> '; } 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 ($cfg['ShowFunctionFields']) { if (($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) { echo ' ' . "\n"; } else if (strstr($row_table_def['True_Type'], 'enum') || strstr($row_table_def['True_Type'], 'set')) { echo ' ' . "\n"; } else { ?> ' . "\n"; if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) && $row_table_def['Null'] == 'YES') { echo ' 20) { $onclick .= '1, '; } else { $onclick .= '2, '; } } else if (strstr($row_table_def['True_Type'], 'set')) { $onclick .= '3, '; } else if ($foreigners && isset($foreigners[$field])) { $onclick .= '4, '; } else { $onclick .= '5, '; } $onclick .= '\'' . urlencode($field) . '\', \'' . md5($field) . '\'); this.checked = true}; return true" />' . "\n"; echo $onclick; } else { echo '  ' . "\n"; } echo ' ' . "\n"; // The value column (depends on type) // ---------------- include('./libraries/get_foreign.lib.php3'); if (isset($disp) && $disp) { ?> ' . "\n"; unset($disp); } else 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); ?> // We don't want binary data destroyed else if ($is_binary || $is_blob) { if (($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) { echo "\n"; ?> 40) ? 40 : $len); $maxlength = $len; } echo "\n"; ?> '; echo ''; echo ''; echo ''; } } // end else if ( binary or blob) else { // For char or varchar, respect the maximum length (M); for other // types (int or float), the length is not a limit on the values that // can be entered, so let's be generous (20) (we could also use the // real limits for each numeric type) if ($is_char) { $fieldsize = (($len > 40) ? 40 : $len); $maxlength = $len; } else { $fieldsize = $maxlength = 20; } // end if... else... echo "\n"; ?>
 
> ' . $strBinary . '-- ' . "\n"; echo ' ' . $strTextAreaLength . ' 20) { echo "\n"; ?> ' . "\n"; echo ' ' . "\n"; } // end for } // end else echo "\n"; ?> ="return unNullify('')" tabindex="" id="field__3" /> ="return unNullify('')" tabindex="" id="field__3" />


      
   -- --   
      
tabindex="" />