]>
Softwares of Agnibho - simpleipd.git/blob - death.php
3 require("lib/functions.php");
5 if(empty($_SESSION["user"])){
6 header("Location: login.php");
9 if(!empty($_GET["pid"])){
11 if(!empty($_POST["date"]) && !empty($_POST["time"]) && !empty($_POST["diagnosis"])){
12 $db->setDead($pid, $_POST);
13 //header("Location: view.php?id=".$_GET["id"]);
16 $form=schema2form("forms/death.schema.json", $pid, null, null, (object)["diagnosis"=>$db->getDiagnosis($pid)->fetchArray()["diagnosis"]]);
22 <?php
include("lib/head.php");?
>
23 <title
>Death Note
</title
>
26 <div
class="container">
27 <?php
echo getInfo($pid);?
>
28 <?php
echo str_replace("Save", "Declare Death", $form);?
>
30 <?php
include("lib/foot.php");?
>