editReport($_POST, $pid, $_GET["id"], $_POST["form"]); } else{ $db->addReport($_POST, $pid, $_POST["form"]); } if(!empty($_GET["req"])){ $db->omitRequisition($_GET["req"]); } if(!empty($_GET["src"]) && $_GET["src"]=="index"){ header("Location: index.php"); exit(); } else{ header("Location: view.php?pid=".$_GET["pid"]); exit(); } } if(!empty($_GET["time"])){ $time=$_GET["time"]; } else{ $time=null; } if(isSet($_GET["id"])){ $form=schema2form("forms/".$_GET["form"].".schema.json", $pid, $_GET["id"], "reports", null, $time); } else{ $form=schema2form("forms/".$_GET["form"].".schema.json", null, null, null, null, $time); } } ?> Reports

Add New Report

Upload PDF instead

";}?>