\n";
+ for ($i=0; $i < $numfields; ++$i)
+ {
+ $fieldname = $this->table->fieldnames[$i];
+
+ /* Do not display fix fields */
+ if (isset($fixfields[$fieldname]))
+ continue;
+
+ $fieldflags = $this->table->fieldflags[$i];
+ $fieldlen = $this->table->fieldlengths[$i];
+ $size = min($fieldlen, 65);
+
+ if ($fieldname == $this->keyfieldname)
+ echo "$fieldname | ";
+ else
+ echo "
---|
$fieldname | ";
+
+ if (strstr($fieldflags, "blob"))
+ {
+ if (strlen($this->data["$fieldname"]) < 256)
+ echo " |
\n";
+ else
+ echo " | \n";
+ }
+ else if (strstr($fieldflags, "enum"))
+ {
+ $result = $this->table->db->safe_sql_query("SHOW columns FROM ". $this->table->name . " LIKE '$fieldname'");
+ $options = split("'", mysql_result($result, 0, 1));
+
+ $vals = explode(',', $this->data[$fieldname]);
+
+ for ($j = 0; $j < count($vals); $j++)
+ $values[$vals[$j]] = 1;
+
+ if (strstr($options[0], 'set'))
+ $attr = 'multiple';
+ else
+ $attr = 'set="1"';
+
+ echo " | \n";
+ }
+ else
+ echo "data["$fieldname"]) . "\"> | \n";
+ }
+ echo "