Free Code download for Online E Medicine Store Management System in PHP
This Online E Medicine Store Management System is a PHP Project that insert, delete, view, update and search the records of a certain clinic. This project stores the list of Patients, Drugs, Diagnoses, and other relevant data for the clinics/hospitals. The system records the patient’s Examination information, Laboratory Results, and Prescriptions. This Online E Medicine Store Management System System has a pleasant user interface and user-friendly functionalities. The system contains the following features.
Functional Requirements of Online E Medicine Store Management System
- Patient Registration and Searching
- The doctor can insert, delete, view, update and search the Patient diagnosis
- The doctor can insert, delete, view, update and search the Drug prescription
- The doctor can insert, delete, view, update and search the Lab results in entry and verification
- The doctor can insert, delete, view, update and search the Treatment payments
- The doctor can insert, delete, view, update and search the Drug dispersing
- The clerk can insert, delete, view, update and search the Drug entry
- Adding a User and Assigning Roles
- The admin can insert, delete, view, update and search the Track User System Activities
- The doctor can Print Reports
Login Details
Username: test@clinic.com
Password: 1234554321
cashpayment.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 |
<?php session_start(); include("db_connect.php"); if(isset($_COOKIE['userid'])&&$_COOKIE['useremail']){ $userid=$_COOKIE['userid']; $useremail=$_COOKIE['useremail']; $sqluser ="SELECT * FROM tbl_users WHERE Password='$userid' && Email='$useremail'"; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $firstname = $found['Firstname']; $sirname= $found['Sirname']; //$institution = $found['Institution']; $emails = $found['Email']; $id= $found['id']; $role= $found['Role']; $profile=''; } }else{ header('location:index.php'); exit; } ?> <!DOCTYPE HTML> <html> <head> <title>MASS</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Glance Design Dashboard Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- //the next plugin link below are for date --> <link rel="stylesheet" href="css/zebra_datepicker.min.css" type="text/css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style1.css"> <!-- Bootstrap Core CSS --> <link href="admin/css/bootstrap.css" rel='stylesheet' type='text/css' /> <!-- Custom CSS --> <link href="admin/css/style.css" rel='stylesheet' type='text/css' /> <!-- font-awesome icons CSS --> <link href="admin/css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons CSS--> <!-- side nav css file --> <link href='admin/css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/> <!-- //side nav css file --> <!-- js--> <script src="admin/js/jquery-1.11.1.min.js"></script> <script src="admin/js/modernizr.custom.js"></script> <!--webfonts--> <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> <!--//webfonts--> <script type="text/javascript"> function printDiv(divName) { var printContents = document.getElementById(divName).innerHTML; var originalContents = document.body.innerHTML; document.body.innerHTML = printContents; window.print(); document.body.innerHTML = originalContents; } </script> <!-- Metis Menu --> <script src="admin/js/metisMenu.min.js"></script> <script src="admin/js/custom.js"></script> <link href="admin/css/custom.css" rel="stylesheet"> <!--//Metis Menu --> <script src="script/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="script/sweetalert.css"> <!-- //the links below are for date plugin --> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"/> <link href="css/animate.min.css" rel="stylesheet"/> <link rel="stylesheet" href="css/bootstrap-dropdownhover.css"> <style> @import "bourbon"; // Breakpoints $bp-maggie: 15em; $bp-lisa: 30em; $bp-bart: 48em; $bp-marge: 62em; $bp-homer: 75em; // Styles * { @include box-sizing(border-box); &:before, &:after { @include box-sizing(border-box); } } body { font-family: $helvetica; color: rgba(94,93,82,1); } a { color: rgba(51,122,168,1); &:hover, &:focus { color: rgba(75,138,178,1); } } .container { margin: 5% 3%; @media (min-width: $bp-bart) { margin: 2%; } @media (min-width: $bp-homer) { margin: 2em auto; max-width: $bp-homer; } } .responsive-table { width: 100%; margin-bottom: 1.5em; border-spacing: 0; @media (min-width: $bp-bart) { font-size: .9em; } @media (min-width: $bp-marge) { font-size: 1em; } thead { // Accessibly hide <thead> on narrow viewports position: absolute; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; @media (min-width: $bp-bart) { // Unhide <thead> on wide viewports position: relative; clip: auto; height: auto; width: auto; overflow: auto; } th { background-color: rgba(29,150,178,1); border: 1px solid rgba(29,150,178,1); font-weight: normal; text-align: center; color: white; &:first-of-type { text-align: left; } } } // Set these items to display: block for narrow viewports tbody, tr, th, td { display: block; padding: 0; text-align: left; white-space: normal; } tr { @media (min-width: $bp-bart) { // Undo display: block display: table-row; } } th, td { padding: .5em; vertical-align: middle; @media (min-width: $bp-lisa) { padding: .75em .5em; } @media (min-width: $bp-bart) { // Undo display: block display: table-cell; padding: .5em; } @media (min-width: $bp-marge) { padding: .75em .5em; } @media (min-width: $bp-homer) { padding: .75em; } } caption { margin-bottom: 1em; font-size: 1em; font-weight: bold; text-align: center; @media (min-width: $bp-bart) { font-size: 1.5em; } } tfoot { font-size: .8em; font-style: italic; @media (min-width: $bp-marge) { font-size: .9em; } } tbody { @media (min-width: $bp-bart) { // Undo display: block display: table-row-group; } tr { margin-bottom: 1em; @media (min-width: $bp-bart) { // Undo display: block display: table-row; border-width: 1px; } &:last-of-type { margin-bottom: 0; } &:nth-of-type(even) { @media (min-width: $bp-bart) { background-color: rgba(94,93,82,.1); } } } th[scope="row"] { background-color: rgba(29,150,178,1); color: white; @media (min-width: $bp-lisa) { border-left: 1px solid rgba(29,150,178,1); border-bottom: 1px solid rgba(29,150,178,1); } @media (min-width: $bp-bart) { background-color: transparent; color: rgba(94,93,82,1); text-align: left; } } td { text-align: right; @media (min-width: $bp-bart) { border-left: 1px solid rgba(29,150,178,1); border-bottom: 1px solid rgba(29,150,178,1); text-align: center; } &:last-of-type { @media (min-width: $bp-bart) { border-right: 1px solid rgba(29,150,178,1); } } } td[data-type=currency] { text-align: right; } td[data-title]:before { content: attr(data-title); float: left; font-size: .8em; color: rgba(94,93,82,.75); @media (min-width: $bp-lisa) { font-size: .9em; } @media (min-width: $bp-bart) { // Don’t show data-title labels content: none; } } } } .grey { background-color: rgba(128,128,128,.25); } .red { background-color: rgba(255,0,0,.25); } .blue { background-color: rgba(0,0,255,.25); } #element1 {display:inline-block;margin-right:10px; } #element2 {display:inline-block;} </style> <div class="charts"> <div class="mid-content-top charts-grids"> <div class="middle-content"> <h4 class="title">TODAYS SALES REPORT </h4> <?php $day=date('d'); $year=date('y'); $month=date('m'); if($month==1){ $mont='January'; $days=31;} elseif($month==2){ $mont='February'; $days=28;} elseif($month==3){ $mont='March'; $days=31;} elseif($month==4){ $mont='April'; $days=30;} elseif($month==5){ $mont='May'; $days=31;} elseif($month==6){ $mont='June'; $days=30;} elseif($month==7){ $mont='July'; $days=31;} elseif($month==8){ $mont='August'; $days=31;} elseif($month==9){$mont='September'; $days=30;} elseif($month==10){$mont='October'; $days=31;} elseif($month==11){$mont='November'; $days=30;} if($month==12 ){ $mont='December'; $days=31;} $dateb=date('y-m-d'); ?> <div class='input-group' style='margin-bottom:10px;' > <a href="#" style="font-size: 24px;margin-bottom:10px" class="btn btn-info"><i class='fa fa-calendar'></i> <?php echo$day.'-'.$mont.'-'.$year; ?></a> <div class='input-group' style='margin-bottom:10px;' > <span class='input-group-addon' style="height:-30%">Filter Report</span> <select name='medstype' id='schemefilter' class="schemefilter" style='height:30px; width: 100%' > <option>CASH</option> <option>SCHEME</option> <option>ALL</option> </select> </div> </div> <form method="post" action="zone.php" > <!-- progressbar --> <!-- fieldsets --> <fieldset> <div id="printableArea"> <table class="table table-bordered table-hover"> <tbody> <tr class="warning" style="font-weight: bold"> <td>No</td> <td >Patient</td> <td >Drug</td> <td >Quantity</td> <td >Total Cost</td> <td >Profit Per Element</td> <td >Profit Per Purchase</td> <td >Payment</td> <td >Time</td> </tr> <?php $date=date('y-m-d'); $sqluser ="SELECT * FROM tbl_transactions WHERE Date='$date' && Payment='CASH' "; $retrieve = mysqli_query($db,$sqluser); if( mysqli_num_rows($retrieve) != 0) { $count=0;$profitss=0;$sales=0; while($found = mysqli_fetch_array($retrieve)) { $date = $found['Date']; $id=$found['Patientid']; $time=$found['Time']; $drug=$found['Drugname']; $quantity=$found['Quantity'];$unit=$found['Unitprice']; $totalcost=$found['Totalcost'];$payment=$found['Payment']; $consfee=$found['Consultation_fee'];$labfee=$found['Lab_fee']; $sqluser2 ="SELECT * FROM tbl_drugs WHERE Name='$drug' "; $retrieved2 = mysqli_query($db,$sqluser2); while($found = mysqli_fetch_array($retrieved2)) { $evening=$found['Marker']; $dquantty=$found['Quantity']; $pprice=$found['PurchasedPrice']; $profitperdrug=$unit-($dquantty/$pprice); $profitperdrug=round($profitperdrug,1); } if($dateb==$date) { $count=$count+1; $sql ="SELECT * FROM tbl_petients WHERE id='$id' "; $retr = mysqli_query($db,$sql); while($found = mysqli_fetch_array($retr)) { $firstname = $found['Firstname']; $sirname= $found['Sirname']; $title= $found['Mtitle']; $tname=$title.' '.$firstname.' '.$sirname; } $propp=$quantity*$profitperdrug; $profitss=$profitss+$propp; $sales=$sales+$totalcost; echo" <tr class='success'> <td >$count</td> <td >$tname</td> <td >$drug</td> <td >$quantity</td> <td >MK$totalcost</td> <td >MK$profitperdrug</td> <td >MK$propp</td> <td >$payment</td> <td >$time</td> </tr> "; } } echo" <tr class='info'> <td colspan='3'></td> <td style='color:green;font-weight:bold'> Sales Today</td> <td>MK$sales</td> <td style='color:green;font-weight:bold'>Profit Today</td> <td colspan='3'>MK$profitss</td> </tr> "; } ?> </tbody> </table> </div> </fieldset> </form> <a class='btn btn-default' onclick="printDiv('printableArea')"><span class='glyphicon glyphicon-print'></span> Print</a> </div> <br /><br /> </div> </div> |
consultation.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
<?php session_start(); include("db_connect.php"); if(isset($_COOKIE['userid'])&&$_COOKIE['useremail']){ $userid=$_COOKIE['userid']; $useremail=$_COOKIE['useremail']; $sqluser ="SELECT * FROM tbl_users WHERE Password='$userid' && Email='$useremail'"; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $firstname = $found['Firstname']; $sirname= $found['Sirname']; //$institution = $found['Institution']; $emails = $found['Email']; $id= $found['id']; $role= $found['Role']; $profile=''; } }else{ header('location:index.php'); exit; } ?> <!DOCTYPE HTML> <html> <head> <title>MASS</title> <link rel="stylesheet" href="css/reset.min.css"> <link rel="stylesheet" href="css/style1.css"> <link rel="stylesheet" type="text/css" href="css/style2.css" /> <!-- Bootstrap Core CSS --> <link href="admin/css/bootstrap.css" rel='stylesheet' type='text/css' /> <!-- Custom CSS --> <link href="admin/css/style.css" rel='stylesheet' type='text/css' /> <!-- font-awesome icons CSS --> <link href="admin/css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons CSS--> <!-- side nav css file --> <link href='admin/css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/> <!-- //side nav css file --> <!-- js--> <script src="admin/js/jquery-1.11.1.min.js"></script> <script src="admin/js/modernizr.custom.js"></script> <!--webfonts--> <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> <!--//webfonts--> <!-- chart --> <script src="admin/js/Chart.js"></script> <!-- //chart --> <!-- Metis Menu --> <script src="admin/js/metisMenu.min.js"></script> <script src="admin/js/custom.js"></script> <link href="admin/css/custom.css" rel="stylesheet"> <!--//Metis Menu --> <script src="script/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="script/sweetalert.css"> <link rel="stylesheet" href="dist/css/lightbox.min.css"></head> <script src="dist/js/lightbox-plus-jquery.min.js"></script> <!-- <script src="jquery.js"></script> --> <link href="css/animate.min.css" rel="stylesheet"/> <link rel="stylesheet" href="css/bootstrap-dropdownhover.css"> <link rel="stylesheet" href="data-table/jquery.dataTables.min.css"/> <link rel="stylesheet" href="data-table/buttons.dataTables.min.css"/> <script src='data-table/jquery-1.12.4.js'></script> <script src='data-table/jquery.dataTables.min.js'></script> <script src='data-table/dataTables.buttons.min.js'></script> <script src='data-table/buttons.flash.min.js'></script> <script src='data-table/jszip.min.js'></script> <script src='data-table/pdfmake.min.js'></script> <script src='data-table/vfs_fonts.js'></script> <script src='data-table/buttons.html5.min.js'></script> <script src='data-table/buttons.print.min.js'></script> <script> $(document).ready(function() { $('#example').DataTable( { dom: 'Bfrtip', buttons: [ 'copy', 'csv', 'excel', 'pdf', 'print' ] } ); } ); </script> <!-- requried-jsfiles-for owl --> <!-- //requried-jsfiles-for owl --> </head> <div class="mid-content-top charts-grids"> <div class="middle-content"> <h4 class="title">CONSULTATION ROOM WAITING LIST PATIENTS</h4> <!-- start content_slider --> <div class="alert alert-info"> <i class="fa fa-envelope"></i> This screen displays petients records use the search box to spool more records </div> <table id="example" class="display nowrap" style="width:100%"> <thead> <tr> <th>No</th> <th>Name</th> <th>Age</th> <th>Gender</th> <th>History</th> <th>Exam</th> <th>Diagnose</th> <th>Prescribe</th> </tr> </thead> <tbody> <?php $count=0; $sqlmember ="SELECT * FROM tbl_petients WHERE Status='Consultation' ORDER BY id DESC "; $retrieve = mysqli_query($db,$sqlmember); while($found = mysqli_fetch_array($retrieve)) { $title=$found['Mtitle'];$firstname=$found['Firstname'];$sirname=$found['Sirname']; $phone=$found['Phone'];$location=$found['Location']; $id=$found['id']; $dob=$found['DOB']; $count=$count+1; $gender=$found['Gender']; $names= $title.' '.$firstname." ".$sirname; $year=date('y'); $month=date('m'); //todays month $todayyear='20'.$year; //this give me todays year $bornmnth= substr($dob,5,2); //this gives me the born month $bornyear = substr($dob,0,4); //this gives me the born year if($month>=$bornmnth) { $age=$todayyear-$bornyear; } else{ $aged=$todayyear-$bornyear; $age=$aged-1; } $date=date('y-m-d'); $storyy=""; $disease='';$complaintt='';$mps=''; $sqluser ="SELECT * FROM tbl_managementplan WHERE Patientid='$id' && Status!='' "; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $mp=$found['Management_plan']; $d=$found['Date']; $mps=$mps.$mp.' ('.$d.')<br>'; } $sqld ="SELECT * FROM tbl_labresults WHERE Patientid='$id' && Date='$date' "; $retrievesd = mysqli_query($db,$sqld); $numd=mysqli_num_rows($retrievesd); if($numd!=0){ while($found = mysqli_fetch_array($retrievesd)) { $tgl=$found['Test_RBS'];$tbp=$found['Test_FBS']; $tml=$found['Test_PBS'];$thv=$found['Test_UCT']; $mrdt=$found['Test_MRDT'];$fbc=$found['Test_FBC']; $tft=$found['Test_TFT'];$lft=$found['Test_LFT']; $comrbs=$found['RBS_Comment'];$comfbs=$found['FBS_Comment']; $compbs=$found['PBS_Comment'];$comuct=$found['UCT_Comment']; $commrdt=$found['MRDT_Comment'];$comfbc=$found['FBC_Comment']; $comtft=$found['TFT_Comment'];$comlft=$found['LFT_Comment']; } $btn='btn-success'; } else{$btn='btn-primary'; $tgl='';$tbp="";$tml="";$thv=""; $mrdt="";$fbc="";$tft="";$lft="";$comrbs="";$comfbs=""; $compbs="";$comuct="";$commrdt="";$comfbc=""; $comtft="";$comlft=""; } $drug=''; $sqlc ="SELECT * FROM tbl_laboratory WHERE Patientid='$id' "; $retrievesc = mysqli_query($db,$sqlc); $numc=mysqli_num_rows($retrievesc); if($numc!=0){ while($found = mysqli_fetch_array($retrievesc)) { $tests=$found['Test_comment']; $results=$found['Results']; $suffer=$found['Diseased'];$dtes=$found['Date']; $complaint=$found['Patient_Complaint']; $story=$found['Patient_Story']; $labid=$found['id']; $stat=$found['Status']; if($stat==''){ $compl=$complaint; $suf=$story; $dsd=$suffer;}else{$compl=''; $suf=''; $dsd='';} $complaintt=$complaintt.$complaint.' ('.$dtes.')<br>'; $storyy=$storyy.$story.' ('.$dtes.')<br>'; $sqld ="SELECT * FROM tbl_treatment WHERE Patientid='$id' && Resultsid='$labid' "; $retrievesd = mysqli_query($db,$sqld); $numd=mysqli_num_rows($retrievesd); if($numd!=0){ while($found = mysqli_fetch_array($retrievesd)) { $drugname=$found['Drugid'];$quantinty=$found['Quantity']; $units=$found['Timesperday'];$comment=$found['Prescribe_Comment']; $officer=$found['Officer']; $dates=$found['Date']; $ddays=$found['Days']; $amo=$found['Amount']; $sqluser ="SELECT * FROM tbl_drugs WHERE Name='$drugname' "; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $morning=$found['Strength']; $after=$found['Medstype']; $price= $found['RetailPrice']; } //$drug=$drug.$drugname.' ('.$morning.') ('.$after.') Times per day('.$units.') By('.$officer.')<br>'; $drug=$drug.$drugname.' ('.$morning.') '.$amo.' ('.$after.') ('.$units.') '.$ddays.' days By ('.$officer.')<br>'; //$disease=$disease.'<br>'; $disease=$disease.$suffer.' ('.$dtes.')<br>'; } } //else{$officer='';} } } else{$tests=""; $results=""; $compl=''; $suf=''; $dsd='';} $d=' Diagonised with '.$dsd; echo"<tr> <td>$count</td> <td>$title $firstname $sirname</td> <td>$age</td> <td>$gender</td> <td> <a data-toggle='modal' href='#medicalhistory' data-tf='$storyy' data-pp='$drug' data-bn='$names' data-br='$sirname' data-bl='$gender' data-bc='$dob' data-pn='$disease' data-ad='$mps' data-ig='$results' data-id='$id' data-ik='James' data-it='$complaintt' data-im='kkk' data-em='$location' data-ep='$phone' class='open-patientrec btn btn-warning' title='Click here to view and print receipt'><span class='fa fa-folder-open' style='color:white;' ></span></a> </td> <td> <a data-toggle='modal' data-id='$id' data-dp='$names' data-cp='$compl' data-ss='$suf' href='#displayschoolsteacher' class='open-patient btn btn-primary' title='Click here to diagonise patient'><span class='fa fa-edit fa-lg' style='color:white;' ></span></a> </td> <td> <a data-toggle='modal' data-ds='$dsd' data-c5='$commrdt' data-a5='$mrdt' data-c7='$comtft' data-a7='$tft' data-bp='$tbp' data-c1='$comfbs' data-gl='$tgl' data-c2='$comrbs' data-ml='$tml' data-c4='$compbs' data-hv='$thv' data-c3='$comuct' data-a6='$fbc' data-c6='$comfbc' data-a8='$lft' data-c8='$comlft' data-id='$id' data-dp='$names' data-pd='$tests' data-dd='$results' href='#displayschoolsteachers2' class='open-patient2 btn $btn' title='Click here to prescribe patient'><span class='fa fa-edit fa-lg' style='color:white;' ></span></a> </td> <td> <a data-toggle='modal' data-c5='$commrdt' data-a5='$mrdt' data-c7='$comtft' data-a7='$tft' data-bp='$tbp' data-c1='$comfbs' data-gl='$tgl' data-c2='$comrbs' data-ml='$tml' data-c4='$compbs' data-hv='$thv' data-c3='$comuct' data-a6='$fbc' data-c6='$comfbc' data-a8='$lft' data-c8='$comlft' data-id='$id' data-dp='$names$d' data-pd='$tests' data-dd='$results' href='#displayschoolsteachers' class='open-patient2 btn $btn' title='Click here to prescribe patient'><span class='fa fa-edit fa-lg' style='color:white;' ></span></a> </td> </tr>"; } ?> </tbody> </table> </div> </div> <!--//sreen-gallery-cursual- <td> <a data-id='$id' class='open-Admisson btn btn-info' title='admit patient' ><span class='fa fa-hotel' style='color:white;'></span></a> </td> <!-- new added graphs chart js--> |
fetch_patient.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
<?php session_start(); include("db_connect.php"); if(isset($_COOKIE['userid'])&&$_COOKIE['useremail']){ $userid=$_COOKIE['userid']; $useremail=$_COOKIE['useremail']; $sqluser ="SELECT * FROM tbl_users WHERE Password='$userid' && Email='$useremail'"; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $firstname = $found['Firstname']; $sirname= $found['Sirname']; //$institution = $found['Institution']; $emails = $found['Email']; $id= $found['id']; $role= $found['Role']; $profile= $found['Pic_name']; } }else{ header('location:index.php'); exit; } echo"<div class='charts'> <div class='mid-content-top charts-grids'> <div class='middle-content'> <h4 class='title'>PATIENT REGISTRATON FORM</h4> <!-- start content_slider --> <div class='alert alert-info'> <i class='fa fa-info'></i> Use the form below to enter teacher details </div> <form action='register.php' method='post' > <div class='charts'> <div class='col-md-4 charts-grids widget'> <div class='card-header' style='font-weight: bold;font-family: 'Palatino Linotype', serif'> <h3>Personal Details</h3> </div> <div id='container' style='width: 100%; '> <p style='margin-bottom:10px; margin-top:10px;'> <span style='font-size: 15px; font-weight: bold;font-family: 'Palatino Linotype', serif'><input type='checkbox' name='pro'> Pro </span> <span style='font-size: 15px; font-weight: bold;font-family: 'Palatino Linotype', serif'><input type='checkbox' name='dr'> Dr </span> <span style='font-size: 15px; font-weight: bold;font-family: 'Palatino Linotype', serif'><input type='checkbox' name='mr'> Mr </span> <span style='font-size: 15px; font-weight: bold;font-family: 'Palatino Linotype', serif'><input type='checkbox' name='mrs'> Mrs </span> <span style='font-size: 15px; font-weight: bold;font-family: 'Palatino Linotype', serif'><input type='checkbox' name='miss'> Miss</span> </p> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>First Name</span> <input type='text' name='fname' placeholder='Enter First Name' value='' class='form-control' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Other Name</span> <input type='text' name='mname' placeholder='Other name' value='' class='form-control' value='' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Last Name</span> <input type='text' name='lname' placeholder='Last name' value='' class='form-control' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Select Gender</span> <select name='gender' id='gender' style='height:30px; width: 100%' > <option>Male</option> <option>Female</option> </select> </div> <div class='input-group' style='margin-bottom:10px; '> <span class='input-group-addon'>Date of Birth</span> <input type='date' placeholder='Payment Log date' name='dob' class='form-control' value='' > </div> </div> </div> <div class='col-md-4 charts-grids widget states-mdl'> <div class='card-header' style='font-weight: bold;font-family: 'Palatino Linotype', serif'> <h3>Other Details</h3> </div> <div class='input-group' style='margin-bottom:10px;margin-top:15px;'> <span class='input-group-addon'>Village</span> <input type='text' name='village' placeholder='Residential area' class='form-control' value='' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Next of Kin</span> <input type='text' name='guardian' placeholder='Enter Guardian' class='form-control' value=''> </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Relationship</span> <select name='relationshipd' style='height:30px; width: 100%' > <option>Mother</option> <option>Father</option> <option>Auncle</option> <option>Aunt</option> <option>Sister</option> <option>Brother</option> <option>Husband</option> <option>Wife</option> </select> </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Next of Kin Phone</span> <input type='number' name='phone' placeholder='Enter Phone' value='' class='form-control' value='' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Patient Phone</span> <input type='number' name='kphone' placeholder='Enter Phone' value='' class='form-control' value='' > </div> <div class='input-group' style='margin-bottom:10px;'> <span class='input-group-addon'>Select Payment</span> <select name='patientpay' id='paypatient' style='height:30px; width: 100%' > <option>CASH</option> <option>SCHEME</option> </select> </div> </div> <div class='clearfix'> </div> </div> <div class='modal-footer'> <input type='submit' class='btn btn-success' id='btns1' value='Submit' name='submited2'> <input type='reset' class='btn btn-success' id='btns' value='Clear' name=''> </div> </form> </div> </div> </div>"; ?> |
manage_patients.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
<?php session_start(); include("db_connect.php"); if(isset($_COOKIE['userid'])&&$_COOKIE['useremail']){ $userid=$_COOKIE['userid']; $useremail=$_COOKIE['useremail']; $sqluser ="SELECT * FROM tbl_users WHERE Password='$userid' && Email='$useremail'"; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $firstname = $found['Firstname']; $sirname= $found['Sirname']; //$institution = $found['Institution']; $emails = $found['Email']; $id= $found['id']; $role= $found['Role']; $profile=''; } }else{ header('location:index.php'); exit; } ?> <!DOCTYPE HTML> <html> <head> <title>MASS</title> <link rel="stylesheet" href="css/reset.min.css"> <link rel="stylesheet" href="css/style1.css"> <link rel="stylesheet" type="text/css" href="css/style2.css" /> <!-- Bootstrap Core CSS --> <link href="admin/css/bootstrap.css" rel='stylesheet' type='text/css' /> <!-- Custom CSS --> <link href="admin/css/style.css" rel='stylesheet' type='text/css' /> <!-- font-awesome icons CSS --> <link href="admin/css/font-awesome.css" rel="stylesheet"> <!-- //font-awesome icons CSS--> <!-- side nav css file --> <link href='admin/css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/> <!-- //side nav css file --> <!-- js--> <script src="admin/js/jquery-1.11.1.min.js"></script> <script src="admin/js/modernizr.custom.js"></script> <!--webfonts--> <link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet"> <!--//webfonts--> <!-- chart --> <script src="admin/js/Chart.js"></script> <!-- //chart --> <!-- Metis Menu --> <script src="admin/js/metisMenu.min.js"></script> <script src="admin/js/custom.js"></script> <link href="admin/css/custom.css" rel="stylesheet"> <!--//Metis Menu --> <script src="script/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="script/sweetalert.css"> <!-- <script src="jquery.js"></script> --> <link href="css/animate.min.css" rel="stylesheet"/> <link rel="stylesheet" href="css/bootstrap-dropdownhover.css"> <link rel="stylesheet" href="data-table/jquery.dataTables.min.css"/> <link rel="stylesheet" href="data-table/buttons.dataTables.min.css"/> <script src='data-table/jquery-1.12.4.js'></script> <script src='data-table/jquery.dataTables.min.js'></script> <script src='data-table/dataTables.buttons.min.js'></script> <script src='data-table/buttons.flash.min.js'></script> <script src='data-table/jszip.min.js'></script> <script src='data-table/pdfmake.min.js'></script> <script src='data-table/vfs_fonts.js'></script> <script src='data-table/buttons.html5.min.js'></script> <script src='data-table/buttons.print.min.js'></script> <script> $(document).ready(function() { $('#example').DataTable( { } ); } ); </script> <!-- requried-jsfiles-for owl --> <!-- //requried-jsfiles-for owl --> </head> <div class="mid-content-top charts-grids"> <div class="middle-content"> <h4 class="title">PATIENTS</h4> <!-- start content_slider --> <div class="alert alert-info"> <i class="fa fa-envelope"></i> This screen displays petients records use the search box to spool more records </div> <table id="example" class="display nowrap" style="width:100%"> <thead> <tr> <th>No</th> <th>Name</th> <th>Age</th> <th>Gender</th> <th>Location</th> <th>Payment</th> <th>Send</th> </tr> </thead> <tbody> <?php $sqlmember ="SELECT * FROM tbl_petients WHERE Status='' || Status='Treated' ORDER BY id DESC "; $retrieve = mysqli_query($db,$sqlmember); $count=0; while($found = mysqli_fetch_array($retrieve)) { $title=$found['Mtitle'];$firstname=$found['Firstname'];$sirname=$found['Sirname']; $phone=$found['Phone'];$location=$found['Location']; $id=$found['id']; $dob=$found['DOB'];$pay=$found['Payment']; $count=$count+1; $gender=$found['Gender']; $names= $title.' '.$firstname." ".$sirname; $year=date('y'); $month=date('m'); //todays month $todayyear='20'.$year; //this give me todays year $bornmnth= substr($dob,5,2); //this gives me the born month $bornyear = substr($dob,0,4); //this gives me the born year if($month>=$bornmnth) { $age=$todayyear-$bornyear; } else{ $aged=$todayyear-$bornyear; $age=$aged-1; } $date=date('y-m-d'); $sqlc ="SELECT * FROM tbl_laboratory WHERE Patientid='$id' && Date='$date' "; $retrievesc = mysqli_query($db,$sqlc); $numc=mysqli_num_rows($retrievesc); if($numc!=0){ while($found = mysqli_fetch_array($retrievesc)) { $tests=$found['Test_comment']; $results=$found['Results']; /*$tgl=$found['Test_glucose'];$tbp=$found['Test_bp']; $tml=$found['Test_malaria'];$thv=$found['Test_hiv']; $idx=$found['Patientid'];*/ } } else{$tests=""; $results="";} $sqld ="SELECT * FROM tbl_labresults WHERE Patientid='$id' && Date='$date' "; $retrievesd = mysqli_query($db,$sqld); $numd=mysqli_num_rows($retrievesd); if($numd!=0){ while($found = mysqli_fetch_array($retrievesd)) { $tgl=$found['Test_RBS'];$tbp=$found['Test_FBS']; $tml=$found['Test_PBS'];$thv=$found['Test_UCT']; $mrdt=$found['Test_MRDT'];$fbc=$found['Test_FBC']; $tft=$found['Test_TFT'];$lft=$found['Test_LFT']; $comrbs=$found['RBS_Comment'];$comfbs=$found['FBS_Comment']; $compbs=$found['PBS_Comment'];$comuct=$found['UCT_Comment']; $commrdt=$found['MRDT_Comment'];$comfbc=$found['FBC_Comment']; $comtft=$found['TFT_Comment'];$comlft=$found['LFT_Comment']; } $btn='btn-success'; } else{$btn='btn-primary'; $tgl='';$tbp="";$tml="";$thv=""; $mrdt="";$fbc="";$tft="";$lft="";$comrbs="";$comfbs=""; $compbs="";$comuct="";$commrdt="";$comfbc=""; $comtft="";$comlft=""; } $drug='';$disease=''; $sqld ="SELECT * FROM tbl_treatment WHERE Patientid='$id' "; $retrievesd = mysqli_query($db,$sqld); $numd=mysqli_num_rows($retrievesd); if($numd!=0){ while($found = mysqli_fetch_array($retrievesd)) { $drugname=$found['Drugid'];$quantinty=$found['Quantity']; $units=$found['Timesperday'];$comment=$found['Prescribe_Comment']; $officer=$found['Officer']; $dates=$found['Date']; $sqluser ="SELECT * FROM tbl_drugs WHERE Name='$drugname' "; $retrieved = mysqli_query($db,$sqluser); while($found = mysqli_fetch_array($retrieved)) { $morning=$found['Strength']; $after=$found['Medstype']; $price= $found['RetailPrice']; } $drug=$drug.$drugname.' ('.$morning.') ('.$after.') Times per day('.$units.') By('.$officer.')<br>'; $disease=$disease.$comment.' ('.$dates.')<br>'; } }else{$officer='Pamzey';} echo"<tr> <td>$count</td> <td>$title $firstname $sirname</td> <td>$age</td> <td>$gender</td> <td>$location</td> <td>$pay</td> <td> <a data-id='$id' class='open-Deleted btn btn-primary' title='send petient' ><span class='fa fa-edit' style='color:white;'></span></a> </td> </tr>"; } ?> </tbody> </table> </div> </div> <!--//sreen-gallery-cursual----> <!-- new added graphs chart js--> |
Exercise
You must practice on the followings;
functional requirements of E Medicine Store Management System, Future scope of E Medicine Store Management System, non functional requirements of E Medicine Store Management System, tools & technologies of E Medicine Store Management System, use case diagram of E Medicine Store Management System, class diagram of E Medicine Store Management System, activity diagram of E Medicine Store Management System, sequence diagram of E Medicine Store Management System, DFD of E Medicine Store Management System, use case descriptions of E Medicine Store Management System, test cases and testing of E Medicine Store Management System.
Free Download Code of Online E Medicine Store Management System in PHP
STUDY OF EXISTING SYSTEM
System analysis is the process of gathering and interpreting facts, identifying problems and using the information to recommend improvements on the system. System analysis is a problem solving activity that requires intensive communication between the system users and system developers. System analysis or study is an important phase of any system development process.
The system is viewed as a whole, the inputs are identified and the system is subjected to close study to identify the problem areas. The solutions are given as a proposal. The proposal is reviewed on user request and suitable changes are made. This loop ends as soon as the user is satisfied with the proposal.
EXISTING SYSTEM
The current system for purchasing medicine stock is going on that the intermediary agent will be send to pharmacy to take the order manually. Agent will pharmacy physically which require effort and time customer give the prescription to the pharmacist ,she/he read the prescription and then collect medicine from racks and generate bill by using XYZ Point of sale system.
Current system process working on XYZ and manage all selling and purchasing process.
- It is less user-friendly.
- Company will not sent intermediary agent to shop and take order.
- It is a time consuming process
- Not in reach of distant users
Disadvantages of the Existing Systems Process
Do not have online home delivery system
Time consuming
PROPOSED SYSTEM
In the proposed system customer need not go to the shop for buying the medicine. In the proposed system customer can visit website and order medicine from home or office without visiting pharmacy physically so that they can save their precious time.
Customer can search medicine by name, category and manufacturer.
Moreover they can upload prescription provided by their doctor. Website will increase sales of client since having internet access means
customers access to the pharmacy website from anywhere .In home delivery medicine service customers are allowed to create account on the website in order to purchase medicine, if they are familiar with medicine or they have a prescription
Benefits of Proposed System
User Friendly Interface
Friendly User Interface Ease to use for customers.
Market Available at Home
Buyer doesn’t need to go out and drive to store just sit in front of laptop or mobile and reached to the market.
Product Replacement
Facility of replacement of product’s the undesired products or any issue related to products.
Time Saving Method
Saves the customer and Administrator’s precious time
Similar helping material of Medical store management system
- SRS Document Medical store Management System
- Functional and Non functional requirements of Medical store management system
- Code of Online E Medicine Store Management System in PHP
- Use case Diagram Medical store Management System
- Use case Description details of Medical store Management System
- Database Tables and database design of Medical store Management System
- Class Diagram of Medical store Management System
- Sequence Diagram of Medical store Management System
- Software Testing of Medical store Management System Project
- Presentation of Medical store management system Project in PPT