<?php
include("../includes/dbconnect.inc");
include("../includes/dbconnect2.inc");
include("../includes/html_classes.inc");
$Body1 = new Body("service.php"); // param: parent window, for updating it
$cbKlaar = new CheckBox("cbkl");
$cbKlaar->Connection = $connect;
$cbKlaar->SQL_Show_Query = "select uitgevoerd from voertuighistorie where regelnr = ".$wijzig_id;
if (!empty($cbkl)) $cbKlaar->SQL_Update_Query = "update voertuighistorie set uitgevoerd = 1 where regelnr = ".$wijzig_id;
else $cbKlaar->SQL_Update_Query = "update voertuighistorie set uitgevoerd = 0 where regelnr = ".$wijzig_id;
// user interface
if (empty($save)) $Body1->Show_clean();
else $Body1->Show_UPC();
print"<form method='post' action='service_wijzig.php' name='w'>";
print "Uitgevoerd:";
$cbKlaar->Show();
print"<input type=hidden name=wijzig_id value=".$wijzig_id.">";
print"<input type=submit name=save value='save'>";
print"</form>";
print"</body>";
?>