Hack so far - still insert, edit and delete do not work.
The last part of the repgen_strings.php now stands as:
$k = 0; // line-number (for row color)
$kk = 0; // For input field name serial
while (list ($key,$val) = each($rec_ar))
{
$h = explode("|",$val);
for ($i = 0; $i < 16; $i++)
{
if (!isset($h[$i]))
$h[$i] = "";
}
$it_typ=$h[0];
$it_art = $h[1];
$it_font = $h[2];
$it_fontsize = $h[3];
$it_number = $h[4];
$it_x1 = $h[5];
$it_y1 = $h[6];
if (in_array($it_typ, array("String","DB","Term","Block","Textarea")))
$it_str = $h[7];
$it_ord = $h[8];
$it_from = $h[10];
$it_to = $h[11];
$it_total = $h[12];
$it_o_score = $h[13];
$it_u_score = $h[14];
$it_bold = $h[15];
// <!-- existing items -->
$hiddenattrs = hidden("id1", $id_new, false);
$hiddenattrs .= hidden("attrib", $val, false);
$hiddenattrs .= hidden("id_new", $id_new, false);
$hiddenattrs .= hidden("sql", $sql, false);
$hiddenattrs .= hidden("long", $long, false);
alt_table_row_color($k);
label_cell($it_typ);
label_cell($it_art);
label_cell($it_font);
label_cell($it_fontsize);
label_cell($it_ord);
label_cell($it_number);
label_cell($it_x1);
label_cell(($it_y1 != "" ? $it_y1 : "."));
label_cell(($it_total != "" ? $it_total : "."));
if (in_array($it_typ, array("Line","Rectangle")))
label_cell(".");
else
{
if (!(empty($it_from) || empty($it_to)))
label_cell($it_str."(".$it_from."-".$it_to.")");
else
label_cell($it_str);
}
if (in_array($it_typ,array("String","DB","Term","Block","Textarea")))
$editbutton = submit("alter", CHANGE, false);
else
$editbutton = " ";
echo "<td>\n";
start_form(false, false, "repgen_strings.php?report_type=".$report_type, "edit");
echo $hiddenattrs . $editbutton . submit("delete", DELETE, false);
end_form();
echo "</td>\n";
end_row();
$kk++;
} // end of while
end_table(1);
end_page();
?>