<?
$GLOBALS['db']->query("update ".$_REQUEST['type']." set status='".$_REQUEST['status']."' where id='".$_REQUEST['record']."'");
if($_REQUEST['backtoindex']==1)header("Location: index.php?module=EcmReminders&action=index");
else header("Location: index.php?module=EcmReminders&action=ReminderWindow&to_pdf=1");
?>