"> ' . "\n"; ?> \n"; echo "\n"; switch (ereg_replace("\\(.*", "", $row_table_def['Type'])) { case "set": $type = "set"; break; case "enum": $type = "enum"; break; default: $type = $row_table_def['Type']; break; } echo "\n"; echo "\n"; if(isset($row) && isset($row[$field])) { $special_chars = htmlspecialchars($row[$field]); $data = $row[$field]; } else { $data = $special_chars = ""; } if(strstr($row_table_def["Type"], "text")) { echo "\n"; } elseif(strstr($row_table_def["Type"], "enum")) { $set = str_replace("enum(", "", $row_table_def["Type"]); $set = ereg_replace("\\)$", "", $set); $set = explode(",", $set); echo ""; } elseif(strstr($row_table_def["Type"], "set")) { $set = str_replace("set(", "", $row_table_def["Type"]); $set = ereg_replace("\)$", "", $set); $set = explode(",",$set); for($vals = explode(",", $data); list($t, $k) = each($vals);) $vset[$k] = 1; $size = min(4, count($set)); echo ""; } else { echo ""; } echo "\n"; } echo "
$field$type"; echo "
"; ?>