function end_form($breaks=0)
{
- global $Ajax;
+ global $Ajax, $hidden_fields;
$_SESSION['csrf_token'] = hash('sha256', uniqid(mt_rand(), true));
if ($breaks)
hidden('_focus');
hidden('_modified', get_post('_modified', 0));
hidden('_token', $_SESSION['csrf_token']);
- echo "</form>\n";
+
+ echo implode('', $hidden_fields)."</form>\n";
$Ajax->activate('_token');
}
echo " class='tablestyle'";
if ($extra != "")
echo " $extra";
- echo " cellpadding=$padding cellspacing=$spacing>\n";
+ echo " cellpadding='$padding' cellspacing='$spacing'>\n";
}
function end_table($breaks=0)
if ($number > 1)
{
echo "</table>\n";
- $width = ($width ? "width=$width" : "");
+ $width = ($width ? "width='$width'" : "");
//echo "</td><td class='tableseparator' $width>\n"; // outer table
echo "</td><td style='border-left:1px solid #cccccc;' $width>\n"; // outer table
}
echo $attach;
}
$width = ($id != 0 ? "30%" : "20%");
- start_table(false, "width=$width");
+ start_table(false, "width='$width'");
start_row();
if ($no_menu)
{