]>
Softwares of Agnibho - simpleipd.git/blob - www/death.php
2 require(dirname(__DIR__
)."/require.php");
3 if(checkAccess("death")!="all"){
4 header("Location: error.php");
7 if(!empty($_GET["pid"])){
9 if(!empty($_POST["date"]) && !empty($_POST["time"]) && !empty($_POST["diagnosis"])){
10 $db->setDead($pid, $_POST);
11 header("Location: view.php?pid=".$_GET["pid"]);
14 $form=schema2form("forms/death.schema.json", $pid, null, null, (object)["diagnosis"=>$db->getDiagnosis($pid)->fetchArray()["diagnosis"]]);
20 <?php
include(CONFIG_LIB
."head.php");?
>
21 <title
>Death Note
</title
>
24 <div
class="container">
25 <?php
include(CONFIG_LIB
."top.php");?
>
26 <?php
echo getInfo($pid);?
>
27 <?php
echo str_replace("Save", "Declare Death", $form);?
>
29 <?php
include(CONFIG_LIB
."foot.php");?
>