// We don't want binary data to be destroyed
if(strstr($row_table_def["Type"], "blob"))
{
echo "$strBinary ";
}
else
{
echo "\n";
for($j=0; $j$cfgFunctions[$j]\n";
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 "\n";
echo "\n";
for($j=0; $j".htmlspecialchars(substr($set[$j], 1, -1))."\n";
}
echo " ";
}
else {
echo "\n";
$seenchecked = 0;
for($j=0; $j".htmlspecialchars(substr($set[$j], 1, -1))."\n";
}
if ($row_table_def["Null"] == "YES") {
echo " [$strNull]";
}
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 " ";
echo "\n";
$countset=count($set);
for($j=0; $j<$countset;$j++)
{
$subset=substr($set[$j], 1, -1);
echo '".htmlspecialchars($subset)."\n";
}
echo " ";
}
// Change by Bernard M. Piller
// We don't want binary data destroyed
elseif(strstr($row_table_def["Type"], "blob"))
{
echo "" . $strBinaryDoNotEdit . " ";
}
else
{
echo " ";
}
echo "\n";
}
echo "