Health Care Solutions
Transcript of Health Care Solutions
-
7/24/2019 Health Care Solutions
1/84
Web applications and Software Development
Industrial Application based
Health Care Solutions(Pharmacy Module)
Submitted to
Maharshi Dayanand University, Rohtak
An institutional project submitted in the partial fulfillment of requirement
For the award of degree of
B.Tech. (ECE) 8th
semester
Submitted By: Supervision By
Mridul Kukreja Mr. Ravi Mishra
Bhushan
Roll No !"#$$#% (&r. P'P
Develoer)
Electronics and Communication Enineerin Department!
ur*aon +olle*e o -n*ineerin* or omen,
"
-
7/24/2019 Health Care Solutions
2/84
Bilaspur #auru $oad! %& 'o ( Bilaspur! )uraon *+r, "--."/ India&
ABSTRACT
The pharmacy management system is an application, which involves administrative functions,
related to various details like stock maintenance, sales list, purchase list, billing list etc. Realiing
the need for quick retrieval and easy management of data, the system was studied in depth,
analyed and computeried. !wing to the number of drawbacks evident in the e"isting system,
an automated solution is proposed. The #roposed $ystem aims to remove most of the drawbacks
found e"tensively in the e"isting system. The #$ is aimed to simplify the comple" and redundant
process. The proposed system being developed as a replacement for the e"isting system is agraphical user interface with good interactions with the database. %t has the following modules&
'illing
%nventory
Adding and Removing products
$uppliers
-
-
7/24/2019 Health Care Solutions
3/84
ACKNOWLE!E"ENTS
% take this opportunity to thank all those who e"tended their enthusiastic support in helping me to
complete this endeavour.
% am pleased to e"tend a vote of thanks to (r. '.) Raina, our (irector $ir for his encouragement
and help throughout the course.
% am deeply indebted to *r. A.+ $a"ena, ead of the department for his valuable suggestions
and guidance in completing this project.
% wholeheartedly wish to thank *r.#rem awal, *s. -eerja and *rs. $heetal odara, my
Faculty $upervisors for their immense help and valuable guidance in completing this project.
% also e"tend my heartiest thanks to /0%T1 %--!2AT3$ #2T. )T(.4 for giving me the
opportunity to undertake this project. *y special thanks to *r. Ravi *ishra 'hushan, our #roject
)eader at the 0ompany, for his valuable guidance and great moral support throughout the
project period.
Finally % e"press my deepest gratitude and note of thanks to all my friends and respondents who
played a vital role in helping me complete this project.
/
-
7/24/2019 Health Care Solutions
4/84
UR AON COLLE E OF EN INEERIN FOR WOMEN
Bilasur/0auru Road, Delhi/1aiur 'i*h2ay, N'/$, ur*aon,
'aryana
3roved 4y 35+0- and Directorate o 0echnical -ducation, ovt. o 'aryanaa6liated to Maharishi Dayanand University (Rohtak)
Certificate
This is to certify that *s. "ri#ul Ku$re%ais a bonafide student of /!ur&aon
Colle&e o' En&ineerin& 'or Women Bilasur !ur&aon4 in B.Tech *ECE56th
$emester7, $ession 899: ;89
-
7/24/2019 Health Care Solutions
5/84
CONTENTS
0. A1stract22222222222222222222222222..3
3. Ac$no4le#&ements22222222222222222222225
5. Certi'icate 1- Coman-
6. Bona'i#e Certi'icate 1- Colle&e2222222222222222...6
7. Coman- ,ro'ile
A1out the Coman-2222222222222222222
9ualit- ,olic-222222222222222222222..
. Chater 0+ ntro#uction
,ro%ect O/er/ie422222222222222222222.8
O1%ecti/e22222222222222222222222..8
Scoe2222222222222222222222222.8
:. Chater 3+ esi&n O1%ecti/es22222222222222222...;
8. Chater5+ mlementation o' the S-stem222222222222.0=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
14/84
function fetch5i7
N
var tempGselectGUi
var temp
-
7/24/2019 Health Care Solutions
15/84
var i
for5i9iD
-
7/24/2019 Health Care Solutions
16/84
document.get3lement'y%d5temp87.valueparse%nt5document.get3lement'y%d5temp=7.value7Xpar
se%nt5val7
O
function e"penses57
N
var tbl document.get3lement'y%d5@table@7
var lastRow tbl.rows.length
var i9
var j9
for5j9jD
-
7/24/2019 Health Care Solutions
17/84
O
function getval57
N
e"penses57
if5document.get3lement'y%d5GtableG7.style.displayGtableG7N
document.get3lement'y%d5GtableG7.style.displayGnoneG
O
var tbl document.get3lement'y%d5@table@7
var lastRow tbl.rows.length
document.get3lement'y%d5@[email protected]
var i9
var j9
for5j9jD
-
7/24/2019 Health Care Solutions
18/84
iUadd
O
document.get3lement'y%d5@[email protected]$tring57
document.get3lement'y%d5@[email protected].
-
7/24/2019 Health Care Solutions
19/84
DthEHnit 0ostDBthE
DthEZuantityDBthE
DthE#riceDBthE
DBtrE
DTRE
DT(EDselect name@select
-
7/24/2019 Health Care Solutions
20/84
Dselect name@selectI
-
7/24/2019 Health Care Solutions
21/84
while5Lrow mysqlIfetchIarray5Lresult77
N
echo @Doption [email protected]@drugIname@W7.@G
[email protected]@drugIname@W7.@DBoptionE@ O
JE
DBselectE
DT(E D%-#HT name@desc8@ idGdesc8GtypeGte"tG sieGK9G BE
DT(E D%-#HT name@unitcost8@ idGunitcost8G typeGte"tG BE DBT(E
DT(E Dselect name@selectI8@ idGselectI8G styleGpadding;left&89p"G onchangeGrecal587GE
Doption valueG
-
7/24/2019 Health Care Solutions
22/84
DtdEDinput typeGbuttonG classGaddG valueGAdd *oreG BEDBtdE
DBTRE
DBtableE
DtableE
DtrE
DtdEDJphp
for5Li9LiD
-
7/24/2019 Health Care Solutions
23/84
JEDBtdE
DtdEDlabelErand TotalDBlabelEDBtdE
DT(E D%-#HT name@gtotal@ typeGte"tG idGgtotalGBE DBT(E
DtdEDinput typeGsubmitG valueG0heckoutG nameGcheckoutG onclickGgetval57G BEDBtdE
DBtrE
DBtableE
Dinput idGhiddenG nameGhiddenG typeGhiddenG valueGG BE
DBformE
DBdivE
Dscript typeGte"tBjavascriptG srcGjavascriptBjquery;
-
7/24/2019 Health Care Solutions
24/84
L5this7.attr5@class@,@del@7
var tbl document.get3lement'y%d5@table@7
var lastRow tbl.rows.length
var tempGselectGUlastRow
var temp
-
7/24/2019 Health Care Solutions
25/84
LresultmysqlIquery5Lquery,Lcon7
LrowsmysqlInumIrows5Lresult7
while5Lrow mysqlIfetchIarray5Lresult77
N
echo@Doptionvalue\@@.strtoupper5LrowV@drugIname@W7.@\@.selected\@selected\@[email protected]@dr
ugIname@W7.@DBoptionE@
O
JEG
var appendedTe"tGDTREDT(EDselect name\@GUtempUG\@ id\@GUtempUG\@ style@padding;
left&89p"@ onchange\@fetch5G U lastRow U G7\@EG
UtempU
GDBselectE DtdED%-#HT name\@GUtemp
-
7/24/2019 Health Care Solutions
26/84
JE
DBbodyE
DBhtmlE
5.5. !ENERATN! AN ,RNTN! THE N=OCE
DhtmlE
DheadE
D)%-+ R3)G$!RT0HT %0!-G
R3FGimageBanimatedIfaviconelcomeDBtitleE
-1
-
7/24/2019 Health Care Solutions
27/84
Dlink hrefGcssBmainIstyle.cssG relGstylesheetG typeGte"tBcssGBE
Dstyle typeGte"tBcssGE
.items N clear& both width& Q9 margin& =9p" 9 9 9 border&
-
7/24/2019 Health Care Solutions
28/84
h< N
font;sie&
-
7/24/2019 Health Care Solutions
29/84
padding&
-
7/24/2019 Health Care Solutions
30/84
background& Sfff
O
Sminitabs N
margin& 9
padding& 9 9 89p"
-
7/24/2019 Health Care Solutions
31/84
margin& 9
-
7/24/2019 Health Care Solutions
32/84
Sminifle" li N
float& left
margin& 9
padding& 9
display& inline
list;style& none
O
Sminifle" a&link, Sminifle" a&visited N
float& left
font;sie& 6
line;height& =9p"
font;weight& bold
margin& 9
-
7/24/2019 Health Care Solutions
33/84
O
DBstyleE
Dscript typeGte"tBjavascriptG languageGjavascriptGE
function check$hortcut57
N
BB if5document.get3lement'y%d5@[email protected]@readonly@7]]
document.get3lement'y%d5@studentIeditable
-
7/24/2019 Health Care Solutions
34/84
document.get3lement'y%d5GhomeG7.click57
O
DBscriptE
DBheadE
Dbody on)oadGL5@[email protected]@click@7GE
Ddiv classGcontainerGE
DJphp
if5isset5LI3TV@checkout@W77
N
Lntrim5LI3TV@cname@W7
Lptrim5LI3TV@pnum@W7
Ltottrim5LI3TV@total@W7
Lvattrim5LI3TV@vat@W7
Lgtotaltrim5LI3TV@gtotal@W7
if5Misset5Ln7]] empty5Ln7 ]]Misset5Ltot7 ]] empty5Ltot77
N
echo GDspan style@color&white background;color&red font;weight&bold font;
sie&
-
7/24/2019 Health Care Solutions
35/84
Dh= styleGfont;weight&bolderGE%-2!%03DBh=E
Dtable classGitemsG idGtableG styleGdisplay&tableGE
DtrE
DtdEDJphp echo LnJEDBtdE
DBtrE
DtrE
DtdEDJphp echo LpJEDBtdE
DtdEDBtdE
DtdE%nvoice -o.DBtdE
Dtd styleGte"t;align&leftGEDJphp
echo rand5
-
7/24/2019 Health Care Solutions
36/84
LtempGselectG.Li
La5Mempty5LI3TVLtempW77JLI3TVLtempW&9
LtempAGdescG.Li
Lb5Mempty5LI3TVLtempAW77JLI3TVLtempAW&9
Ltemp'GunitcostG.Li
Lc5Mempty5LI3TVLtemp'W77JLI3TVLtemp'W&9
Ltemp0GselectIG.Li
Ld5Mempty5LI3TVLtemp0W77JLI3TVLtemp0W&9
Ltemp(GpriceG.Li
Le5Mempty5LI3TVLtemp(W77JLI3TVLtemp(W&9
if5isIstring5La7CCisIstring5Lb7CCisIstring5Lc7CCisIstring5Ld7CCisIstring5Le77
N
echo GDtrE
DtdEG.La.GDBtdE
DtdEG.Lb.GDBtdE
DtdEG.Lc.GDBtdE
DtdEG.Ld.GDBtdE
DtdEG.Le.GDBtdE
DBtrEG
O
O
echo GDtrEDtdEDBtdEDtdEDBtdEDtdEDBtdEDtdETotal Rs.DBtdEDtdEG.Ltot.GDBtdEDBtrE
DtrEDtdEDBtdEDtdEDBtdEDtdEDBtdEDtdE2AT5
-
7/24/2019 Health Care Solutions
37/84
DtrEDtdEDBtdEDtdEDBtdEDtdEDBtdEDtdErandTotalRs.DBtdEDtdEG.Lgtotal.GDBtdEDBtrEDBtableEG
echo@DbrEDinput styleGmargin;left&699p"G sieG=9G typeGbuttonG valueG#rintG
on0lickGjavascript&window.print57G BE@
OO
JE
DBdivE
DBbodyE
DBhtmlE
5.6. =EW N=ENTOR@
/2
-
7/24/2019 Health Care Solutions
38/84
DJphp
Lcon mysqlIconnect5@localhost@,@root@,@@7
if5MLcon7
N
die5@0ould not connect& @ . mysqlIerror577
O
else
N
mysqlIselectIdb5@pharma@, Lcon7
O
JE
DhtmlE
DheadE
DtitleE
Add product
DBtitleE
DstyleE
.fi"d
N
width&::9p"
O
.header
N
/3
-
7/24/2019 Health Care Solutions
39/84
background;color&SA0Q8A
-
7/24/2019 Health Care Solutions
40/84
while5LrowmysqlIfetchIarray5Lresult77
N
echo GDtrE
Dtd class@[email protected]@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@drugIe"[email protected]
DtdEG.LrowV@[email protected]
DBtrEG
O
JE
DBtableE
DBdivE
DBbodyE
.
-
7/24/2019 Health Care Solutions
41/84
5.7. A ,ROCT N N=ENTOR@
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
42/84
font;family& verdana, sans;serif
margin& 9
padding& 9
background& Sfff
O
.header
N
display&block
background;color&SA0Q8A
-
7/24/2019 Health Care Solutions
43/84
N
die5@0ould not connect& @ . mysqlIerror577
O
else
N
mysqlIselectIdb5@pharma@, Lcon7
O
JE
Dspan classGheaderGEDh=EAdd -ew #roductDBh=EDBspanE
Dform actionGaddIproduct.phpG methodGgetGE
DtableE
DtrEDtdEDinput typeGhiddenG BEDBtdEDBtrE
Dtr EDtd classGlabelsGEDlabelE(rug %dDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G readonlyGreadonlyG value
DJphp
LqueryGselect ma"5drugIid7 as noIoIdrugs from drugsG
LresultmysqlIquery5Lquery7
LnoIoIrowsmysqlIfetchIarray5Lresult7
echo LnoIoIrowsV@noIoIdrugs@WU
-
7/24/2019 Health Care Solutions
44/84
Dtd classGlabelsGEDlabelE(rug -ameDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGnameGBEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug (escriptionDBlabelEDBtdE
DtdEDte"tarea rowsG=G colsG89G nameGdescGEDBte"tareaEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug 0ostDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGcostG BEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug $tockDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGstockG BEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug *anufacturerDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGmanfG BEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug *anufacture 1earDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGmanIyG BEDBtdE
DBtrE
..
-
7/24/2019 Health Care Solutions
45/84
DtrE
Dtd classGlabelsGEDlabelE(rug 3"pire 1earDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGe"pIyG BEDBtdE
DBtrE
DtrE
Dtd classGlabelsGEDlabelE(rug $upplier %dDBlabelEDBtdE
DtdEDinput typeGte"tG sieG8G nameGsupG BEDBtdE
DBtrE
DtrE
DtdEDBtdE
DtdEDinput typeGsubmitG sieG8G valueGAddG nameGsubmitG BEDBtdE
DBtrE
DBtableE
DBformE
DJphp
if5isset5LI3TV@submit@W77
N
Latrim5LI3TV@id@W7
Lbtrim5LI3TV@name@W7
Lctrim5LI3TV@desc@W7
Ldtrim5LI3TV@cost@W7
Letrim5LI3TV@stock@W7
.0
-
7/24/2019 Health Care Solutions
46/84
Lftrim5LI3TV@manf@W7
Lgtrim5LI3TV@manIy@W7
Lhtrim5LI3TV@e"pIy@W7
Litrim5LI3TV@sup@W7
LIdintval5Ld7
LIeintval5Le7
if5Mempty5La7 CC Mempty5Lb7 CC Mempty5Lc7CC Mempty5Ld7
CC Mempty5Le7CC Mempty5Lf7CC Mempty5Lg7CC Mempty5Lh7CC Mempty5Li77
N
Lquery
-
7/24/2019 Health Care Solutions
47/84
.2
-
7/24/2019 Health Care Solutions
48/84
5.. RE"O=E ,ROCT
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
49/84
color&white
te"t;align¢er
O
.labels
N
display&block
width&cm
border&thin
border;color&SA0Q8A
-
7/24/2019 Health Care Solutions
50/84
O
JE
Dspan classGheader
-
7/24/2019 Health Care Solutions
51/84
LqueryGselect X from drugs where drugIidLtempG
LI$3$$%!-V@id@WLtemp
LresultmysqlIquery5Lquery7
if5mysqlInumIrows5Lresult7
-
7/24/2019 Health Care Solutions
52/84
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@drugIe"[email protected]
DtdEG.LrowV@[email protected]
DBtrE
DtrE
DtdEDBtdE
DtdEDinput type@submit@ name@delete@ value@(elete J@BEDBtdE
DBtrEG
O
O
else
N
echo GDspan style@color&white background;color&red font;weight&bold@EThis (rug %( doesn@t
e"ist. Try again.DBspanEG
O
O
O
JE
DBtableE
DBformE
DJphp
0-
-
7/24/2019 Health Care Solutions
53/84
if5isset5LI3TV@delete@W77
N
LtempPLI$3$$%!-V@id@W
Lquery
-
7/24/2019 Health Care Solutions
54/84
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
55/84
margin;left&8p"
margin;right&8p"
width&
-
7/24/2019 Health Care Solutions
56/84
mysqlIselectIdb5@pharma@, Lcon7
O
JE
DJphp
LqueryGselect X from supplierG
LresultmysqlIquery5Lquery7
while5LrowmysqlIfetchIarray5Lresult77
N
echo GDdiv class@container@EG
echo GDdiv class@name@EG
echo LrowV@supplierIname@W
echo GDBdivEG
echo GDtableEG
echo GDtr EDtd class@label@EAddressDBtdEDtdEG
echo LrowV@[email protected]
echo GDtr EDtd class@label@E0ontactDBtdEDtdEG
echo LrowV@[email protected]
echo GDtr EDtd class@label@E3;mailDBtdEDtdEG
echo LrowV@[email protected]
echo GDBtableEG
echo GDBdivEG
O
01
-
7/24/2019 Health Care Solutions
57/84
JE
DBbodyE
DBhtmlE
5.8. =EW R!S B@ S,,LER
DJphp
Lcon mysqlIconnect5@localhost@,@root@,@@7
if5MLcon7
N
die5@0ould not connect& @ . mysqlIerror577
O
02
-
7/24/2019 Health Care Solutions
58/84
else
N
mysqlIselectIdb5@pharma@, Lcon7
O
JE
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
59/84
.header
N
background;color&SA0Q8A
-
7/24/2019 Health Care Solutions
60/84
for5i9iD=iUU7
N
var temparrViW.split5@S@7
if5parse%nt5val7parse%nt5tempV9W77
N
document.get3lement'y%d5@[email protected]
-
7/24/2019 Health Care Solutions
61/84
DBformE
DtableE
DJphp
sessionIstart57
if5isset5LI3TV@submit@W77
N
Latrim5LI3TV@id@W7
if5Mempty5La77
N
Ltempintval5La7
LqueryGselect X from drugs, supplier where drugIsupplierLtemp and
supplierIiddrugIsupplierG
LI$3$$%!-V@id@WLtemp
LresultmysqlIquery5Lquery7
if5mysqlInumIrows5Lresult77
N
echo GDspan style@color&white background;color&green font;weight&bold@EFound
result5s7DBspanEDbrBEDbrBEG
echo GDtr class@header@E
DthE(RH %(DBthE
DthE(RH -A*3DBthE
DthE(RH (3TA%)$DBthE
DthE(RH 0!$TDBthE
1"
-
7/24/2019 Health Care Solutions
62/84
DthE(RH $T!0+DBthE
DthE(RH 'RA-(DBthE
DthE(RH *A-. 13ARDBthE
DthE(RH 3P#. 13ARDBthE
DthE(RH $H##)%3RDBthE
DBtrEG
while5LrowmysqlIfetchIarray5Lresult77
N
echo GDtrE
Dtd class@[email protected]@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@drugIe"[email protected]
DtdEG.LrowV@[email protected]
DBtrE
G
O
O
else
1-
-
7/24/2019 Health Care Solutions
63/84
N
echo GDspan style@color&white background;color&red font;weight&bold@EThis $upplier %(
doesn@t e"ist. Try again.DBspanEG
O
O
O
JE
DBtableE
DBbodyE
DBhtmlE
5.;. =EW R!S B@ E,R@ ATE
1/
-
7/24/2019 Health Care Solutions
64/84
DJphp
Lcon mysqlIconnect5@localhost@,@root@,@@7
if5MLcon7
N
die5@0ould not connect& @ . mysqlIerror577
O
else
N
mysqlIselectIdb5@pharma@, Lcon7
O
JE
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
65/84
background& Sfff
O
.header=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
70/84
N
display&block
background;color&SA0Q8A
-
7/24/2019 Health Care Solutions
71/84
DBformE
DtableE
DJphp
sessionIstart57
if5isset5LI3TV@submit@W77
N
Latrim5LI3TV@id@W7
if5Mempty5La77
N
Ltempintval5La7
LqueryGselect X from drugs, supplier where drugIstock D Ltemp and supplierIiddrugIsupplier
order by drugIidG
LI$3$$%!-V@id@WLtemp
LresultmysqlIquery5Lquery7
if5mysqlInumIrows5Lresult77
N
echo GDspan style@color&white background;color&green font;
weight&bold@EDstrongEDBstrongE(rugs below stock level La DBspanEDbrBEDbrBEG
echo GDtr class@header@E
DthE(RH %(DBthE
DthE(RH -A*3DBthE
DthE(RH (3TA%)$DBthE
DthE(RH 0!$TDBthE
2"
-
7/24/2019 Health Care Solutions
72/84
DthE(RH $T!0+DBthE
DthE(RH 'RA-(DBthE
DthE(RH *A-. 13ARDBthE
DthE(RH 3P#. 13ARDBthE
DthE(RH $H##)%3RDBthE
DBtrEG
while5LrowmysqlIfetchIarray5Lresult77
N
echo GDtrE
Dtd class@[email protected]@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@[email protected]
DtdEG.LrowV@drugIe"[email protected]
DtdEG.LrowV@[email protected]
DBtrE
G
O
O
else
2-
-
7/24/2019 Health Care Solutions
73/84
N
echo GDspan style@color&white background;color&green font;weight&bold@EAll drug stock is
surplus than Zty. LtempDBspanEG
O
O
O
JE
DBtableE
DBbodyE
DBhtmlE
5.00. CHAN!E ,ASSWOR
Dform actionGchgIpwd.phpG methodGpostGE
Dtable styleGmargin;top&K9p" margin;left&=9p"GE
DtrEDtdEDlabel styleGcolor&SA0Q8A
-
7/24/2019 Health Care Solutions
74/84
DtrEDtdEDinput typeGhiddenG BEDBtdEDtdEDBtdEDBtrE
DtrEDtdEDlabelE0urrent #asswordDBlabelEDBtdEDtdEDinput nameGprevIpwdG typeGpasswordG
BEDBtdEDBtrE
DtrEDtdEDlabelE-ew #asswordDBlabelEDBtdEDtdEDinput nameGnewIpwdG typeGpasswordGBEDBtdEDBtrE
DtrEDtdEDlabelE0onfirm #asswordDBlabelEDBtdEDtdEDinput nameGconfIpwdG
typeGpasswordG BEDBtdEDBtrE
DtrEDtdEDBtdEDtdEDinput nameGsubmG typeGsubmitG valueG0onfirmGBEDBtdEDBtrE
DtrEDtd colspanG8GEDJphp
function status57N echo GDspan style@color&red margin;left&K9p"@E>rong credentials. Tryagain.DBspanEG unset5LI#!$TV@prevIpwd@W7
unset5LI#!$TV@newIpwd@W7
unset5LI#!$TV@confIpwd@W7O
function mismatch57N echo GDspan style@color&red margin;left&K9p"@E#assword mismatch. Try
again.DBspanEG unset5LI#!$TV@prevIpwd@W7
unset5LI#!$TV@newIpwd@W7
unset5LI#!$TV@confIpwd@W7O
function success57N echo GDspan style@color&green margin;left&K9p"@E#assword changed
successfully.DBspanEGunset5LI#!$TV@prevIpwd@W7
unset5LI#!$TV@newIpwd@W7
unset5LI#!$TV@confIpwd@W7O JEDBtdEDBtrE
DBtableE
DBformE
DJphp
Lcon mysqlIconnect5@localhost@,@root@,@@7
2.
-
7/24/2019 Health Care Solutions
75/84
if5MLcon7
N
die5@0ould not connect& @ . mysqlIerror577
O
else
N
mysqlIselectIdb5@pharma@, Lcon7
O
sessionIstart57
LtempLI$3$$%!-V@validIuser@W
JE
DJphp
if5isset5LI#!$TV@subm@W77
N
LcurrIpwdLI#!$TV@prevIpwd@W
LnewIpwdLI#!$TV@newIpwd@W
LconfIpwdLI#!$TV@confIpwd@W
Lquery99Gselect adminIpassword from admin where adminIusername@Ltemp@G
LresultmysqlIquery5Lquery99,Lcon7
Lpwd9
if5LrowIprevmysqlIfetchIarray5Lresult77
N
LpwdLrowIprevV@adminIpassword@W
20
-
7/24/2019 Health Care Solutions
76/84
O
if5strtolower5Lpwd7MLcurrIpwd7N status57O
else
N
if55LcurrIpwdstrtolower5Lpwd77CC5LnewIpwdLconfIpwd77
N
Lquery9
-
7/24/2019 Health Care Solutions
77/84
5.03. LO!OT
DJphp
sessionIstart57
LoldIuser LI$3$$%!-V@validIuser@W
unset5LI$3$$%!-V@validIuser@W7
sessionIdestroy57
JE
DM(!0T1#3 html #H')%0 G;BB>=0BB(T( PT*)
-
7/24/2019 Health Care Solutions
78/84
DbodyE
DJphp
if5Mempty5LoldIuser77
N
header5G)ocation& inde".phpG7
O
else
N
header5G)ocation& inde".phpG7
echo @)ogin first Dbr BE@
O
JE
DBbodyE
DBhtmlE
23
-
7/24/2019 Health Care Solutions
79/84
ATABASE TABLES
A#min
Cities
29
-
7/24/2019 Health Care Solutions
80/84
ru&s
3
-
7/24/2019 Health Care Solutions
81/84
Suliers
3"
-
7/24/2019 Health Care Solutions
82/84
CONCLSON O? THE ,RODECT
3-
-
7/24/2019 Health Care Solutions
83/84
AN
TS SCO,E N ?TRE
Automated #harmacy *anagement software consisted of all the basic and advanced
functionalities as required from an efficient pharmacist point of view.
Testing was done on various levels to ensure its effectiveness and efficient working. %ts /view the
drugs4 sorting on the basis of suppliers,e"piry dates and minimum stock levels features instead
of manual sorting were concluded as out of the bo" features in the software . %t was also tested in
terms of scalability on different platforms and surprisingly it was very smooth on all of the,
which makes it a platform;independent software.
-ow it would be integrated into a ealth 0are $olutions 3R# $oftware and will be released to
the client.
%t was the most revolutionary change brought into a medical industry and hoping to make it more
advanced in the coming future.
BBLO!RA,H@
3/
-
7/24/2019 Health Care Solutions
84/84
The 'ollo4in& sources 4ere re'erre# 'or the comletion o' this ro%ect
0. Notes 1- the Suer/isor
3. We1sites
444.&oo&le.com
444.45schools.com
444.-ahoo.com
444.he/er-#a-.com
444.stac$o/er'lo4.com
/& Wi$ie#ia Enc-cloe#ias
http://www.google.com/http://www.w3schools.com/http://www.yahoo.com/http://www.phpeveryday.com/http://www.stackoverflow.com/http://www.w3schools.com/http://www.yahoo.com/http://www.phpeveryday.com/http://www.stackoverflow.com/http://www.google.com/