]> Softwares of Agnibho - simpleipd.git/commitdiff
Added navigation bar
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 20 May 2021 11:04:23 +0000 (16:34 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 20 May 2021 11:04:23 +0000 (16:34 +0530)
18 files changed:
lib/top.php [new file with mode: 0644]
www/admission.php
www/antibiogram.php
www/attachments.php
www/death.php
www/discharge.php
www/forms/nursing.schema.json
www/history.php
www/index.php
www/laboratory.php
www/login.php
www/nursing.php
www/physician.php
www/report.php
www/requisition.php
www/treatment.php
www/view.php
www/vitek.php

diff --git a/lib/top.php b/lib/top.php
new file mode 100644 (file)
index 0000000..2e4b021
--- /dev/null
@@ -0,0 +1,14 @@
+<nav class="navbar navbar-expand-lg navbar-light bg-light">
+<?php
+if(!empty($_GET["pid"])){
+  echo '<a href="view.php?pid='.$_GET["pid"].'" class="navbar-brand">View Patient</a>';
+}
+else{
+  echo '<a class="navbar-brand" href="#">'.CONFIG_TITLE.'</a>';
+}
+?>
+<div class="ml-auto">
+    <span class="mr-2"><?php echo $_SESSION["user"];?></span>
+    <a href="login?action=logout" class="btn btn-sm btn-secondary">Logout</a>
+  </div>
+</nav>
index 07a97c71b1edf26a3f1bb2756bfaf36e557c7390..e6ffb76cf5f2ca99c8a6df3b91e14811213c3c6b 100644 (file)
@@ -28,6 +28,7 @@ else{
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">Patient Information</h4>
index deaeaff5522a310ece5648628809a80893cc0c5c..09c84f6ace7ef2ceafbcc2ca9ba4b12d03b866e3 100644 (file)
@@ -102,6 +102,7 @@ if(!empty($_GET["pid"]) && !empty($_GET["form"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">Add New Report</h4>
index c65a4494f6da8be2c30a3d1a1fefaa3fa056ef29..581e549312fae1105fa3058e00d03334108143fa 100644 (file)
@@ -46,6 +46,7 @@ $error=$error."</p>";
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo getInfo($pid);?>
       <form class="mt-3 mb-3" method="post" enctype="multipart/form-data" <?php echo checkAccess("attachments", "form");?>>
         <label for="upload">Select file to upload. JPG, PNG, GIF and PDF files are supported. Size limit: <span id="size-limit"><?php echo str_replace("M", "MB", ini_get("upload_max_filesize"));?></span><span id="upload-error"></span></label>
index 7ad9fc7ef1160a12f098d56afb25aae5bb977992..9d785d062f367814425a23f987f608ca5a4f723f 100644 (file)
@@ -22,6 +22,7 @@ if(!empty($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo getInfo($pid);?>
       <?php echo str_replace("Save", "Declare Death", $form);?>
     </div>
index ed03ca35dd3422739ddf87e9db463ad0d522cb44..580b0d0975fe9d1d13b3d33a4e4cd74b2340479a 100644 (file)
@@ -27,6 +27,7 @@ if(!empty($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card mb-4">
         <div class="card-body">
           <h4 class="card-title">Medicine List</h4>
index 83ea5850089b21901a6dd4875e9fefdc16fe7a2a..5f6fe1b049ac28c47ceec1c93fe04158e0321b91 100644 (file)
             "description": "Body Weight",
             "type": "string"
         },
-        "bp": {
-            "description": "Blood Pressure",
+        "temperature": {
+            "description": "Temperature",
             "type": "string"
-        },
-        "pr": {
-            "description": "Pulse",
-            "type": "integer"
-        },
-        "rr": {
-            "description": "Respiratory Rate",
-            "type": "integer"
-        },
-        "spo2": {
-            "description": "SpO2",
-            "type": "integer"
         }
     },
     "required": ["date","time"]
index 7dc5f62ce9ea0936c394fafa57dae43fbbb65e06..be3cd080e7ea99ec1a20c2edfd2c33df64af8b7f 100644 (file)
@@ -23,6 +23,7 @@ else{
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo getInfo($pid);?>
       <div <?php echo checkAccess("history", "form");?>>
         <?php echo $form;?>
index 9238ff98ffa943c9ee2b418f9dd7b37d0a67e39c..fdbe48499f494f41e3135e9b60d89e38909a4765 100644 (file)
@@ -32,7 +32,7 @@ while($arr=$reqs->fetchArray()){
   </head>
   <body>
     <div class="container">
-      <h1><?php echo CONFIG_TITLE;?></h1>
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">Patient List</h4>
index a3e5d5894623f27237c31a46368bb3516e33022a..75e27d6b41f29498fe9f714bcb9de54268b6fab2 100644 (file)
@@ -22,6 +22,7 @@ if(isSet($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">List of Tests</h4>
index d159b3b656a07e42db8567addd1ecff006783322..72da152f4f4c161f6acb29324ec16bc79b338c86 100644 (file)
@@ -28,6 +28,7 @@ if(!empty($_POST["username"]) && !empty($_POST["password"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo $error;?>
       <form method="post">
         <input class="m-2 form-control" type="text" name="username" placeholder="Username" required>
@@ -35,7 +36,6 @@ if(!empty($_POST["username"]) && !empty($_POST["password"])){
         <button class="m-2 btn btn-primary" type="submit">Login</button>
       </form>
     </div>
-
     <?php include(CONFIG_LIB."foot.php");?>
   </body>
 </html>
index 56d3b1ce22da81b8375b2d89265b0480f020ef15..500802485d8877c79b8465967bcb3b8346485e21 100644 (file)
@@ -28,12 +28,12 @@ if(!empty($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo getInfo($pid);?>
       <div <?php echo checkAccess("nursing", "form");?>>
         <?php echo $form;?>
       </div>
     </div>
-
     <?php include(CONFIG_LIB."foot.php");?>
   </body>
 </html>
index b84645a7d83842e9cab7082926791d8e8f710712..87c1306588c0e154bb0b0131b6a3f7abbbb85361 100644 (file)
@@ -28,12 +28,12 @@ if(!empty($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <?php echo getInfo($pid);?>
       <div <?php echo checkAccess("physician", "form");?>>
         <?php echo $form;?>
       </div>
     </div>
-
     <?php include(CONFIG_LIB."foot.php");?>
   </body>
 </html>
index 803d7d575d71a052ac5cf3d7116bdb06c52cc8ac..d13e52f8ae79dfb4b70e48be0d925a89e3efa59d 100644 (file)
@@ -41,6 +41,7 @@ if(!empty($_GET["pid"]) && !empty($_GET["form"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">Add New Report</h4>
index 6cc10d444a65e3c3888a7ae07f96e88a98156bea..f45faa2381059cd7f25e5e09808e8d24b368855e 100644 (file)
@@ -46,6 +46,7 @@ if(isSet($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">List of Requisitions</h4>
index 284b61d781d656736cfd8a4d146764eabae9ddbc..39da3fabf873f2e46d6126ecf56d9d317130a0ac 100644 (file)
@@ -37,6 +37,7 @@ if(!empty($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card mb-4">
         <div class="card-body">
           <h4 class="card-title">Medicine List</h4>
index e13a6e16cf4c27e6c2737146de8204be5d368a00..572c62c922d769ae609156e964b9ac1864782c82 100644 (file)
@@ -51,6 +51,7 @@ if(isSet($_GET["pid"])){
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <h1>Patient Data</h1>
       <div class="card">
         <div class="card-body">
@@ -127,10 +128,10 @@ if(isSet($_GET["pid"])){
               <div class="form-row">
                 <input type="hidden" name="shiftWard" value="true">
                 <div class="col">
-                  <input type="text" name="ward" class="form-control" placeholder="Ward">
+                  <input type="text" name="ward" class="form-control" placeholder="Ward" required>
                 </div>
                 <div class="col">
-                  <input type="text" name="bed" class="form-control" placeholder="Bed">
+                  <input type="text" name="bed" class="form-control" placeholder="Bed" required>
                 </div>
                 <div class="col">
                   <input type="date" name="date" class="form-control" placeholder="Date">
index 61d23fe66527811f055f3903d22df47ab0a33fbc..f1993ed54e8e9b1fd9436bd4cabbb216ba601253 100644 (file)
@@ -28,6 +28,7 @@ else{
   </head>
   <body>
     <div class="container">
+      <?php include(CONFIG_LIB."top.php");?>
       <div class="card">
         <div class="card-body">
           <h4 class="card-title">Type of Organism</h4>