field foreach (table_status_referencable() as $table_name => $table) { if ($table_name != $self) { foreach (fields($table_name) as $field) { if ($field["primary"]) { if ($return[$table_name]) { // multi column primary key unset($return[$table_name]); break; } $return[$table_name] = $field; } } } } return $return; } function edit_type($key, $field, $collations, $foreign_keys = array()) { global $types, $unsigned, $inout; ?> " size="3" /> ' . optionlist($collations, $field["collation"]) . ''; echo ($unsigned ? " ' : ''); ?> quote($field["collation"]) : "") ; } function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array()) { global $inout; $column_comments = false; foreach ($fields as $field) { if (strlen($field["comment"])) { $column_comments = true; } } ?>