]> Softwares of Agnibho - simpleipd.git/commitdiff
Added redirection
authorAgnibho Mondal <mondal@agnibho.com>
Tue, 18 May 2021 07:13:50 +0000 (12:43 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Tue, 18 May 2021 07:13:50 +0000 (12:43 +0530)
www/admission.php
www/death.php
www/history.php
www/login.php
www/nursing.php
www/physician.php
www/report.php

index 910910412653a70efeee38d79204790b3cdafaf6..07a97c71b1edf26a3f1bb2756bfaf36e557c7390 100644 (file)
@@ -6,8 +6,8 @@ if(checkAccess("admission")!="all"){
 }
 if(!empty($_POST["pid"]) && !empty($_POST["name"])){
   $db->admit($_POST);
-  //header("Location: view.php?pid=".$_POST["pid"]);
-  //exit();
+  header("Location: view.php?pid=".$_POST["pid"]);
+  exit();
 }
 if(!empty($_GET["pid"])){
   $pid=$_GET["pid"];
index 95f9143ac0a1563606b78211fbc9ad54c546e977..7ad9fc7ef1160a12f098d56afb25aae5bb977992 100644 (file)
@@ -8,8 +8,8 @@ if(!empty($_GET["pid"])){
   $pid=$_GET["pid"];
   if(!empty($_POST["date"]) && !empty($_POST["time"]) && !empty($_POST["diagnosis"])){
     $db->setDead($pid, $_POST);
-    //header("Location: view.php?id=".$_GET["id"]);
-    //exit();
+    header("Location: view.php?pid=".$_GET["pid"]);
+    exit();
   }
   $form=schema2form("forms/death.schema.json", $pid, null, null, (object)["diagnosis"=>$db->getDiagnosis($pid)->fetchArray()["diagnosis"]]);
 }
index 69d67c65348630e29261f981c9779aa626428988..7dc5f62ce9ea0936c394fafa57dae43fbbb65e06 100644 (file)
@@ -4,8 +4,8 @@ if(!empty($_GET["pid"])){
   $pid=$_GET["pid"];
   if(!empty($_POST["cc"])){
     $db->updateHistory($_POST, $pid);
-    //header("Location: view.php?pid=".$pid);
-    //exit();
+    header("Location: view.php?pid=".$pid);
+    exit();
   }
 }
 if(!empty($_GET["pid"])){
index 7689da3cc24c4266a3033806f7aef08c99f375b7..d159b3b656a07e42db8567addd1ecff006783322 100644 (file)
@@ -17,7 +17,7 @@ if(!empty($_POST["username"]) && !empty($_POST["password"])){
       $error="<div class='alert alert-danger'>Username or password is incorrect.</div>";
   }
 }
-//header("Location: view.php?id=".$_GET["id"]);
+//header("Location: view.php?pid=".$_GET["pid"]);
 //exit();
 ?>
 <!DOCTYPE html>
index a833ec13779a0475218a0088d7c7c1b6d0f3e76e..56d3b1ce22da81b8375b2d89265b0480f020ef15 100644 (file)
@@ -9,8 +9,8 @@ if(!empty($_GET["pid"])){
     else{
       $db->addNursing($_POST, $pid);
     }
-    //header("Location: view.php?id=".$_GET["id"]);
-    //exit();
+    header("Location: view.php?pid=".$_GET["pid"]);
+    exit();
   }
   if(isSet($_GET["id"])){
     $form=schema2form("forms/nursing.schema.json", $pid, $_GET["id"], "nursing");
index b95ff6770a855ae490e606e19a0cab143769b2c8..b84645a7d83842e9cab7082926791d8e8f710712 100644 (file)
@@ -9,8 +9,8 @@ if(!empty($_GET["pid"])){
     else{
       $db->addPhysician($_POST, $pid);
     }
-    //header("Location: view.php?id=".$_GET["id"]);
-    //exit();
+    header("Location: view.php?pid=".$_GET["pid"]);
+    exit();
   }
   if(isSet($_GET["id"])){
     $form=schema2form("forms/physician.schema.json", $pid, $_GET["id"], "physician");
index 7f8e2ce5cb678391abceec04d08c241303e5de1d..d53f3bae339b2661367532819e4231d4421fa266 100644 (file)
@@ -16,8 +16,8 @@ if(!empty($_GET["pid"]) && !empty($_GET["form"])){
     if(!empty($_GET["req"])){
       $db->omitRequisition($_GET["req"]);
     }
-    //header("Location: view.php?id=".$_GET["id"]);
-    //exit();
+    header("Location: view.php?pid=".$_GET["pid"]);
+    exit();
   }
   if(isSet($_GET["id"])){
     $form=schema2form("forms/".$_GET["form"].".schema.json", $pid, $_GET["id"], "reports");