$field | \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 "$type | \n"; // THE FUNCTION COLUMN // Change by Bernard M. Piller$strBinary | "; } else { echo "\n"; } // THE VALUE COLUMN 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"; if (strlen($special_chars) > 32000) echo " | $strTextAreaLength | "; } elseif(strstr($row_table_def["Type"], "enum")) { $set = str_replace("enum(", "", $row_table_def["Type"]); $set = ereg_replace("\\)$", "", $set); $set = explode(",", $set); // show dropdown or radio depend on length if (strlen($row_table_def["Type"]) > 20) { echo ""; } else { echo " | \n";
$seenchecked = 0;
for($j=0; $j | ";
}
}
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 ""; echo " | "; } // Change by Bernard M. Piller" . $strBinaryDoNotEdit . " | "; } else { echo ""; } echo "\n"; } echo " |