Final Edited
Final Edited
Introduction
Technology is spreading its wing in almost every walks of human life activities. Now a days it is
better if every activity is done using new technology in order to fulfil the need of human being,
Organization and Enterprise etc. As today’s world there are many organizations and each
organizations needs to be preferable, computable and work on fastest way in order to satisfy
users interest etc. i.e. they should have facilitate their activities in computerized way.
In the pharmacy there are two places in which the drug are available. Those are stock and store.
The stock is the place in which the drug that needs to be sold is stored. And the store is the place
in which the new bought drug is stored.
At present manual system is being utilized in the pharmacy. It requires the pharmacist to
manually monitor each drug that is available in the pharmacy. This usually leads to mistakes as
the workload of the pharmacist increases.
Eskinder pharmacy which is found in Debre Berhan town was established in 2002 EC. Now it
gives an honourable service for the society. Supply and demand of Eskinder pharmacy is based
on market needs. The Employee uses the manual system in order to manage the overall activity
of the pharmacy.
Today with the growth of population number, our world is facing serious problems. Many
organizations are in trouble to accommodate these large numbers of people according to their
needs. Many problems in the organizations are associated with the increasing number of
customers and way of helping them. Currently, all activities of pharmacy system are going on
manually, which lead to wastage of time, labour, accuracy, and speed. Pharmacy System is the
backbone of the medical health sector. So it should be advanced and computerized to provide
DB-EPIMS Page 1
fast services for the community and also for other users of the system like manager, pharmacist,
store coordinator and cashier.
Managing a very large pharmacy with records on papers will be tedious and difficult
to keep track of inventory with regards to the drugs in the stock inside the pharmacy.
Since it is manual system quantity of drugs available based on the categories and their
functions can’t be easily known. Due to this the patient can’t get the drug they want.
Difficulty of getting full information about drugs when needed immediately.
Preparing report for each drug takes long time.
It is difficult to identify which drugs are out dated or expired.
The most sensitive data is lost because of they are paper based.
Most of the time redundant data occur.
The main objective of this project is to develop a Web Based Pharmacy Management System
which solves the above mentioned problems with the existing system.
In order to achieve the main objective, we have the following specific objectives:-
DB-EPIMS Page 2
1.4 Scope and limitation of the project
Can’t order to take medicine, it only recommend for the entered medical
information.
The system organization does not have any interaction with other organization
system.
The system applies to only Eskinder pharmacy.
The system does not have any physical control mechanism.
DB-EPIMS Page 3
1.5 Significance of the project
As per the scope of the project, the outcome will include the followings:-
Here we described the benefits that are expected to gain after the development of the system.
Feasibility study is essential to evaluate the cost and benefits of the new system. On the basis of
the feasibility study decision is taken on whether to proceed or to cancel the project.
DB-EPIMS Page 4
Need of the feasibility study:
It determines the potential of the existing system.
It used to determine/finds out the problem of the existing system.
To determine all goals of the new system.
It finds all possible solutions of the problems of the existing system.
The system to be developed will provide accurate, active, secured service and decreases labour
of workers and also it is not limited to particular groups or body. And also it is plat form
independent i.e. it run’s in all operating system.
The proposed system doesn’t require much technical expertise. The system to be developed by
using technologically system development techniques such as PHP, Java script, css and Mysql
database without any problems and the group members have enough capability to develop the
project. So the system will be technically feasible.
Since the proposed system is user friend, solve difficulties (problems) with society regarding to
traditional pharmacy system and accepted almost by all the customers behaviourally it is
feasible.
This stage determines the cost or value analysis. It can be software, hardware, and the people.
The new proposed system will be economically feasible because it takes less capital as compared
as the existing system.
DB-EPIMS Page 5
1.7 Methodology for the project
The team chooses object oriented analysis and design approach to analyze and design the system,
based on our preliminary analysis of the old system.
In our project the team will use Object Oriented Software Development Methodology (OOSD)
because it has the following advantages:-
Increase reusability: - the object oriented provides opportunities for reuse through the
concepts of inheritance, polymorphism, encapsulation and modularity.
Increased extensibility: - when there is a need to add new feature to the system you only
need to make changes.
Improved quality: - quality of our system must be on time and meet our exceeded the
expectation of the users of our system, improved quality comes from increased
participation of users in the system development.
We use document analysis in order to obtain the information about the practices and problems of
the pharmacy which ultimately assists us in developing the computerised system. There are
saved documents referred for the preparation of the system. In addition, we use internet access.
Document analysis: The team reviewed documents such as books, e-books and some related
previously done projects which are very important to develop our project. During the analysis of
documents, we give a special consideration to those documents which can bring more features to
our system.
Interview: This is one of data collection method that enables to gather information from the
organization directly in the form of asking question and getting answers for those questions. So,
we will use this method to gather information by asking the manager of the pharmacy some basic
questions regarding the following issues will be asked during the interview:-
How drug information management system is going on?
During managing, are there any problems? If there, what are they?
What requirements are needed for the process?
Who is responsible for what?
DB-EPIMS Page 6
Observation: This is also another data collecting method. In fact we have also used this observation
method to gather data. This method enables us observing and understanding how drug information
management is going on.
Flash disk
CD-R
Personal Computer
DB-EPIMS Page 7
1.9 Schedule of the project (using Gantt chart)
This involves questions such as how much time is available to build the new system, when it can
be built.
3 Design
Document
4 Implementation
document
5 Operation testing
DB-EPIMS Page 8
1.10 Cost Analysis
To complete our project starting down from the beginning up to the end of this project we
planned the following cost list.
DB-EPIMS Page 9
CHAPTER TWO
System Analysis
2.1 Description of the Existing System
The current system of Eskinder pharmacy information management is manual system. That
means checking expired date and availability of drugs is done by checking every drug inside the
pharmacy. This leads loosing time and resource of the organization. An existing system
compromises different players to carry out its job. Among those different actors (players), the
most common are:
Pharmacist
The customer comes with the ordered prescription then the pharmacist looks that order of drug
and gives the drug accordingly. The customer gets his/her requested service from the pharmacist.
Pharmacy manager
The manager gets reports from the pharmacist, store coordinator, and cashier. The reports help
the manager to see how services are given to the client.
Store coordinator
Store coordinator is responsible to register the drugs that buy from the private sectors or from the
governmental association, and also control the drug that are goes out to the stock.
Cashier
The cashier receives the cost of the drug from the customer ordered by the pharmacist.
The existing system has its own mechanism in which its customers are treated.
These include:
The pharmacist must treat customers in good manner and should address customer’s
request.
The cashier should receive the price of medicine honestly from customers and he/she
should generate report for manager.
DB-EPIMS Page 10
Manager should control the entire activity in the stock and should receive clear and
appropriate report from the workers of the pharmacy.
Sold drug should order in their identifiable type to facilitate searching requested
drug.
Manager should control the overall information from any biases properly.
Forms should contain stock information appropriately.
Pharmacist doesn’t sell the expired drug.
Class Responsibility Collaborator (CRC) Modeling is a collection of standard index cards that
have been divided into three sections.
DB-EPIMS Page 11
Table 1.4: shows class responsibility and collaboration (CRC)
DB-EPIMS Page 12
2.4 Proposed system description
By carefully analysing and observing the problem of existing system we came up with a solution
that the current manual system should be computerised. The computerised system will
eliminate/reduce the problem on time, work load and complexity on storing drugs information.
The system will include a database for recording drugs that facilitate fast information retrieval,
modifying, inserting and deleting. It also includes an attractive user interface that facilitates
accessing the database and recording drugs easily.
The system allows the user to enter expiry date for a particular product or drug during opening
stock and sales transaction. It also involves arrival of new batches of drugs, getting information
about the drugs e.g. expiry date, number of drug type left, and location of a drug in the
pharmacy.
Players represent external entities that interact with the system. They manage and perform the
systems functionality.
Pharmacists having access to the proposed system at any time
Improving the efficiency of the system by ensuring effective managing of services
and activities.
Generating report
Reducing the employees’ workload in the organization
In the existing system the stock management is done manually. Such as:-
Stock controlling.
Stock items searching and selling.
Stock items expire date checking.
New stock item registration.
All the above lists are made in the existing system performs manually. To solve this problem, the
proposed system will change manual system into computerized system as per its purpose:
To decrease the time for shopping of medicines from the pharmacy.
To know the medicine that is finished in the pharmacy and replaces it by new
medicine in computerized way.
DB-EPIMS Page 13
To know the medicine which their expired date is reached or passed.
To bring better satisfaction for the customer.
To decrease the work load of the pharmacist or store coordinator.
Minimize the cost.
The functional requirement is the services that are provided by the system. It also describes the
interactions between the system and the user, and any other external system.
Input requirement
Search user request.
Verify the requested information.
Store items must be check by item name.
Each input item information must include item id, item name, code, quantity,
manufactured company, and expiry date.
Output requirement
The system display report for the manager.
The system should store all the data related with all the tasks performed into a
database
Display store item that are reach to expired date.
Display employee information to the manager
When there is no item in the store the system response the low stock items.
DB-EPIMS Page 14
2.6.2 Non functional requirement
Non functional requirement describes user visible aspects of the system that are not
designed to the functional behavior of the system. Some of the non functional
requirements are:
Performance
The system will function fast.
Very short response time.
The system must be operationally all over the year.
User interface
The system should be user-friendly interactive.
The pharmacist can easily retrieve information in the stock.
The skilled person interacts with the system properly.
Security and access permission
The system should allow login to only authorized users.
Storage requirement
The system should store all the data related with all the tasks performed into the
database
Use Case represents interaction between a user (human or machine) and the system.
In the use cases an actor interact with the system to perform a piece of meaningful work that
helps them to achieve a goal and has access to define their overall role in the system and the
DB-EPIMS Page 15
scope of their action. Depending on the above explanation actors in this system are the
following:
Cashier: Collect the price of the sold items and generate report to the manager.
Each Use Case describes the functionality to be built in the proposed system, which can include
another Use Case's functionality or extend another Use Case with its own behavior. The most
important and basic use cases of this system are the following:-
Login
Manage account
Create account
Delete account
Change password
Register employee
View employee
Delete employee
Register drug
Register Customer
View drug
Delete drug
Check expire date
Sale Drug
DB-EPIMS Page 16
Figure 2.1: Use case diagram
DB-EPIMS Page 17
2.7.3 Use Case Documentation
Name Login
ID UC1
Actors Manager, Pharmacist, Casher, Store coordinator
Description In order to get into or access the system
Pre condition 1. The Manager, Store coordinator, pharmacist, or Cashier must open
the system
1. Open the system.
2. Click on login link.
3. Login form displayed.
Flow of events 4. Select account type and enter enter user name and password.
5. Click on the login button.
6. System verifies in the account database.
7. Main form displayed.
8. End of use case.
Post condition 1. Access the system
DB-EPIMS Page 18
Table 2.2: Use case description for manage account
ID UC2
Actors Manager
Description Create new account, delete an account.
Pre condition 1. The manager initiates the system.
2. The manager should have a valid user name and password.
1. The manager opens the system.
2. The manager log to his or her page.
3. The manager click on the create account or delete account link.
4. The system displays create or delete account form.
5. The manager inserts the necessary information of the user.
Flow of event 6. The manager clicks on sign up or delete button.
7. The system verifies the inserted information.
8. Then the system will generate successfully message
9. End of use case.
DB-EPIMS Page 19
Table 2.3: Use case description for employee registration
DB-EPIMS Page 20
Table 2.4 : Use case description for delete employee
ID UC4
Actor’s Manager
Description Delete the employee when it is necessary.
Pre condition 1. Initiate the system.
2. Have user name and password.
1. The manager log to his or her page.
2. The manager click on delete employee link.
3. The system displays the delete employee form.
Flow of event 4. The manager enters the id_no of the employee.
5. Click on the delete button.
6. Then the system will generate successfully message
7. End of use case
1. Return to home page or
post condition 2. Close the system
DB-EPIMS Page 21
Table 2.5 : Use case description for drug registration
Description Registering the new drug from the store in to the data base.
DB-EPIMS Page 22
Table 2.6: Use case description for check expired date
DB-EPIMS Page 23
Table 2.7: Use case description for sell drug
DB-EPIMS Page 24
Table 2.8 : Use case description for print use case
ID UC 8
Name Print
Actors Cashier
Description Printing saled drug for the customer
Pre condition 1. There must be list of drug that must be inserted by the pharmacist.
1. Open the system.
2. The home page will be displayed.
Flow of event 3. The cashier inserts user name and password with their account type.
4. The system will verify the user name and password.
5. Then the system display his/her page.
6. The cashier click on fetch drug link.
7. The list of drugs with corresponding quantity and price.
8. The cashier calculates the total price.
9. Then click to print.
10. Then the system will display response.
11. End of use case.
Post condition 1. Return to their appropriate page.
2. Close the system
DB-EPIMS Page 25
2.7 Sequence diagrams
The sequence diagram is used primarily to show the interactions between objects in the
sequential order that those interactions occur. The main purpose of a sequence diagram is to
define event sequences that result in some desired outcome.
Submit()
Validate()
TryAgain()
Continue()
Check()
DB-EPIMS Page 26
Register Register Drug Validator Database
store
Drug Link Form
coordinator
Click on Link()
Send()
Submit()
Validate()
Tray Again()
Countinue ()
Che ck()
DB-EPIMS Page 27
Check Expired Clear List check()
: Store
Date Link
Coordinator/P...
send()
Ckeck()
display if exist()
Click on Clear()
send()
DB-EPIMS Page 28
Click on Delete Employee Form Validator Database
: Manager
Delete()
Send()
Display Form()
Insert Emp_Id()
Click on Delete()
Send request()
Validate()
Try Again()
Continue()
check()
DB-EPIMS Page 29
Sale Drug link Sale Drug Validate () Check()
: Pharmacist
Form
display form()
fill form()
submit()
validate
Try Afain()
Continue()
Check()
DB-EPIMS Page 30
2.8 Activity diagram
Activity diagram is another important diagram in UML to describe dynamic aspects of the
system. Activity diagram is basically a flow chart to represent the flow of information one
activity to another activity.
All Actors
Home Page
Click On
Login
Login Form
Display
Enter User
Name Enter
Passwird
Invalid
Verify
Valid
Active Page
Displayed
DB-EPIMS Page 31
Store Coordinator
Click On Register
Drug Link
Register Form
Displayed
Fill Form
Incorrect
Click On
Register
Verify
Correct
Display Sucessfull
message
DB-EPIMS Page 32
Manager
Click On Register
Employee Link
Register Form
Displayed
Fill Form
Invalid
Click On
Register
Verify
Valid
Displayed
Sucessfull message
DB-EPIMS Page 33
Manager
Click on Delete
Employee Link
Delete Employee
Form Display
Insert Id_No
Invalid
Click On
Delete Button
Verify
Valid
Display Sucessfull
Message
DB-EPIMS Page 34
Figure 2.11: Activity Diagram for Check Expire Date
DB-EPIMS Page 35
Pharmacist
Click On Sale
Drug link
Sale Form
Display
Fill Form
incorect
Click On sale
button
verify
corect
Display Sucessfull
Message
DB-EPIMS Page 36
2.9 Collaboration diagram
4: DisplayLogion Form()
8: Validate()
3: Send()
9: Try Again()
Login Databas
Form e
DB-EPIMS Page 37
Register Drug
Link
1: Click on Link()
6: Validate() 5: Submit()
9: Check()
8: Countinue()
Validator Databas
e
2: Send()
DB-EPIMS Page 38
Check Expired Date Clear
Link List
11: Click on Clear()
12: Send()
9: Ckeck()
10:
6: Validate() 5: Click on Check() 13: DisplaySeccessful message()
8: Continue()
Validator Databas
e
DB-EPIMS Page 39
1: Click On Delete Employee Link() 4: Insert Emp_Id()
5: Click on Delete()
Click on Delete Employee
Delete() Form
: Manager
3: DisplayForm()
10: check()
7: Validate() Databas
e
9: Continue()
Validator
6: Send request()
DB-EPIMS Page 40
Sale Link 3: Send()
2: Click On Check Item() Check Item
link
1: Hover On Sale Item()
8: Validate()
20: validate
: Pharmacist 4: Display Check item Form()
15: Display Seel Drug Link()
14: Send()
5: Insert Drug Name() Sale Drug link
6: Click on Check() Validate
7: SendRequest() 2()
Check Item
Form 9: Try Again()
19: SendRequest()
12: Display Seccessfull Message()
24: Display Seccessfull message() 21: Try Afain()
DB-EPIMS Page 41
2.10 State chart diagram
A state chart diagram is a view of a state machine that models the changing behaviour of a state.
State chart diagrams show the various states that an object goes through, as well as the events
that cause a transition from one state to another.
The common model elements that state chart diagrams contain are:
States
Start and end state
Transitions
DB-EPIMS Page 42
Initial State
Idle State
Activate
Home
Page
Select
Login
Link
Fill
Login
Form
Incorrect
Verify Correct Confirm
Login
Display Appropriate
Page
Logout
Final state
DB-EPIMS Page 43
Idle State
Initial State
Activate
Home Page
Log To Page
Select
Register
Drug
Fill Form
Register
Form
Display Sucessfull
Message
Final State
DB-EPIMS Page 44
Initial State Idle State Activate Home
Page
Log To
Page
Select
Delete
Employee
Fill
Delete
Form
Incorrect
Display Sucessfull
Message
Final State
DB-EPIMS Page 45
Idle State Activate Home
Initial State
Page
Log To
Page
Click
Delete
Drug
Fill
Delete
Form
Incorrect
Display Sucessfull
Message
DB-EPIMS Page 46
2.11 Analysis level of class diagram
Class diagram is static model that shows the classes and the relationships among classes that
remain constant over the time. Class is the main building block of class diagram, which stores
and manages information in the system.
DB-EPIMS Page 47
CHAPTER THREE
Systems design is the transformation of the analysis model into a system design model. This
chapter mainly concerned with the design part of the pharmacy management system. The
purpose of this chapter is to provide an overview as to how to actually build the proposed system
and to obtain the information needed to derive the actual implementation of our system. In
addition to these systems design makes the implementation easy the design is very important. In
this section we will see different types of system modelling techniques that will be used for the
implementation of the system such as system decomposition, component modelling, deployment
diagram, user interface and prototype design, data base design and class mapping.
The objectives of design are to model the system with high quality. The design goals are derived
from non-functional requirements that means non-functional requirement is the description of the
feature characteristics and attribute of the system as well as any constraints that may limit the
boundary of the proposed solution.
Design goals describe the qualities of the system that the developers should consider.
DB-EPIMS Page 48
3.3 System architecture
The system architecture defines how pieces of the application interact with each other, and what
functionality each piece is responsible for performing. There are three main classes of
application architecture. They can be characterized by the number of layers between the user and
the data. The three types of application architecture are single-tier (or monolithic), two-tier, and
n-tier, where n can be three or more.
In a three-tier or a multi tier architecture has client, server and database. Where the client request
is sent to the server and the server in turn sends the request to the database. The database sends
back the information/data required to the server which in turn sends it to the client. So our
system is three tier architecture.
Representation
DB-EPIMS Page 49
3.4 System Decomposition
Decomposition refers to the process by which a complex problem or system is broken down into
parts that are easier to conceive, understand, program, and maintain. It results large systems in to
a set of loosely dependent parts which make up the system.
To reduce the complexity of the solution domain, we decompose a system into simpler parts,
called subsystems, which are made of a number of solution domain classes.
From the functional requirements the proposed system could consists of the following
subsystems:
Register Subsystems:
Register drug
Register employee
Register customer
Manage account subsystem:
Create account
Delete account
Update account
Change Password
Deleting subsystem:
Delete drug
Delete employee
Selling subsystem:
Selling drugs
Check the availability of the drug
Print the selled drug
DB-EPIMS Page 50
Figure 3.2: system decomposition
DB-EPIMS Page 51
3.5 Component diagram
Component diagrams are often used to model high-level software components and how they
interact. The interfaces between these components become clearer as the model grows, which
provides a much clearer delineation of duties of each component. So from that point component
diagrams are used to visualize the physical components in a system. These components are libraries,
packages, files etc.
Component diagrams can also be described as a static implementation view of a system. Static
implementation represents the organization of the components at a particular moment. It does not
describe the functionality of the system but it describes the components used to make those
functionalities. A single component diagram cannot represent the entire system but a collection
of diagrams are used to represent the whole.
DB-EPIMS Page 52
3.6 Deployment Diagram
The deployment diagram shows how the software components, processes, and objects are
deployed into the physical architecture of the system. It shows the configuration of the hardware
units (e.g. Computers, communication devices, etc) and how the software components are
distributed across the units.
DB-EPIMS Page 53
3.7 Design class diagram
Class diagrams are the most common diagram found in modeling object-oriented systems. A
class diagram shows a set of classes, interfaces, and collaborations and their relationships. We
use class diagrams to model the static design view of a system. Class diagrams are also the
foundation for a couple of related diagrams: component diagrams and deployment diagrams.
Class diagrams are important not only for visualizing, specifying, and documenting structural
models, but also for constructing executable systems through forward and reverse engineering.
DB-EPIMS Page 54
3.8 Database design
Database design is the process of producing a detailed data model of a database. This logical
data model contains all the needed logical and physical design choices and physical storage
parameters needed to generate a design in a data definition language, which can then be used to
create a database. A fully attributed data model contains detailed attributes for each entity. It can
be thought of as the logical design of the base data structures used to store the data.
DB-EPIMS Page 55
CHAPTER FOUR
User interface
In this system users will communicate with it through the following user interfaces.
Home Page: This form contains some links which lead it to the concerned page, and if the user h
as an account he/she will directly go to concerned page by entering their username and password.
DB-EPIMS Page 56
Figure 4.2 : User interface for login
DB-EPIMS Page 57
Figure 4.4: User interface for drug registration
DB-EPIMS Page 58
Figure 4.6: User interface for printing the sold drug
DB-EPIMS Page 59
CHAPTER FIVE
PROTOTYPE DEVELOPMENT
The physical design specification created by the designers is turned in to working computer code
by the programmer using Php, HTML, Java script and Css.
<?php
$conn=mysql_connect("localhost","root","") if(!$result_set){
;
die("query is failed".mysql_error());
$db1=mysql_select_db("pharmacy",$conn);
}
if(isset($_POST['login']))
if(mysql_num_rows($result_set)>0)
{
{
$uname=$_POST['username'];
if($position=="manager")
$password1 =$_POST['password'];
{
$password=md5($password1);
session_sta
rt();
$position=$_POST['position']; $_SESSION['accountid']=$row['accountid'];
DB-EPIMS Page 60
{ echo
"<script>window.location='cashier.php';</sc
session_start();
ript>";
$_SESSION['accountid']=$row['accountid'];
}
echo
}
"<script>window.location='storecoordinator.
php';</script>"; else
} {
else if($position=="pharmacist")
session_start();
$_SESSION['accountid']=$row['accountid'];
DB-EPIMS Page 61
Sample code for employee registration
<?php if(!$res)
$conn=mysql_connect("localhost","root","") {
;
echo"<font
$db1=mysql_select_db("pharmacy",$conn); color='green'><p class='wrong'>Insertion
failed!!!</p></font>";
if(isset($_POST['register']))
echo' <meta content="3;regemployee.php"
{
http-equiv="refresh" />';
$fname=$_POST['fname'];
}
$lname=$_POST['lname'];
else
$id=$_POST['eid'];
{
$sex=$_POST['sex'];
echo"<font
$age=$_POST['age']; color='green'><p class='right'>You have
succefully registered employee in to your
$salary=$_POST['salary'];
data base!!!</p></font>";
$address=$_POST['address'];
echo' <meta content="3;regemployee.php"
$position=$_POST['position']; http-equiv="refresh" />';
$res=mysql_query("INSERT INTO }
employee
mysql_close($conn);
values('$fname','$lname','$id','$sex','$age','$s
alary','$address','$position') "); ?>
DB-EPIMS Page 62
Sample code for register drug
<?php {
$connection=mysql_connect("localhost","ro
ot","");
echo"<font color='green'><p
$db1=mysql_select_db("pharmacy",$connec class='wrong'>Insertion
tion); failed!!!</p></font>";
$quantity=$_POST['quantity'];
echo"<font color='green'><p
$unitprice=$_POST['price'];
class='right'>You have succefully registered
$shelfno=$_POST['shelfno']; drug in to your data base!!!</p></font>";
}
$res=mysql_query("INSERT INTO drug
values('$dname','$cname','$bnumber','$quant }
ity','$unitprice','$shelfno','$exdate') ");
mysql_close($connection);
?>
if(!$res)
DB-EPIMS Page 63
<?php echo"<th height='40'><font
color='red'>Shelf-
$conn=mysql_connect("localhost","root","")
Number</font></th>";
;
echo"<th height='40'><font
$db1=mysql_select_db("pharmacy",$conn);
color='red'>Expiry-
$result ="SELECT * FROM drug where Date</font></th>";
drug.expirydate >= DATE(now()) AND
echo"<th height='40'><font
drug.expirydate <=
color='black'>Delete</font></th>";
DATE_ADD(DATE(now()), INTERVAL 6
WEEK)";
$res=mysql_query($result); echo"</tr>";
DB-EPIMS Page 64
echo"<td> <a }
href=delete.php?id=".$row['bachnumber']."
><font size='4px'><input type='submit'
value='X' echo "</table>";
name='submit'></font></a></td>";
mysql_close($conn);
echo"</tr>";
?>
if(isset($_POST['search']))
echo" ";
{
echo "<table border='1' align='center'
$prno=$_POST['pno']; width='450' height='100'
color=#CCCC99>";
$fname=$_POST['fname'];
echo"<tr align='cente'><td colspan='9'
$lname=$_POST['lname'];
align='center' bgcolor='#CCCC00'><font
//$s=mysql_query("select * from solddrug color='red' face='monotype corsiva'
where pr_no='{$prno}' AND size='5'>Soled Drugs</font></td></tr>";
firstname='{$fname}' AND
echo"<tr>";
lastname='{$lname}'");
echo"<td bgcolor='#FFFFCC'><font
//$row=mysql_fetch_array($s);
color='red'>First-
//$status=$row['status']; Name</font></td>";
//if($status == false)
//{
DB-EPIMS Page 65
echo"<td bgcolor='#FFFFCC'><font echo "<td>" . $row['companyname'] .
color='red'>Last- "</td>";
Name</font></td>";
echo "<td>" . $row['bachnumber'] . "</td>";
echo"<td bgcolor='#FFFFCC'><font
echo "<td>" . $row['quantity'] . "</td>";
color='red'>Drug-
Name</font></td>"; echo "<td>" . $row['unitprice'] . "</td>";
echo"<td bgcolor='#FFFFCC'><font
color='red'>Company-
$total =
Name</font></td>";
$total + ($row['quantity'] *
echo"<td bgcolor='#FFFFCC'><font $row['unitprice']);
color='red'>Batch No</font></td>";
echo"<td bgcolor='#FFFFCC'><font
$up1=mysql_query("UPDATE solddrug
color='red'>Quantity</font></td>";
SET status='true' WHERE pr_no = '$prno'
echo"<td bgcolor='#FFFFCC'><font ");
color='red'>Unit- Price</font></td>";
echo"</tr>";
echo "</tr>";
$total = 0;
}
while($row = mysql_fetch_array($result))
{
echo"<br>";
echo "<tr>";
echo" ";
DB-EPIMS Page 66
nbsp; & echo "<div style='padding-
nbsp;"; left:3em'><h4><font size='5px'
align='center'>";
echo" &
nbsp; & echo" &
nbsp; & nbsp; &
nbsp; & nbsp; &
nbsp;"; nbsp; &
nbsp; ";
echo" &
nbsp; & echo" &
nbsp; & nbsp; &
nbsp; & nbsp; &
nbsp;"; nbsp; &
nbsp; ";
echo" &
nbsp; & echo" &
nbsp; & nbsp; &
nbsp; & nbsp; &
nbsp;"; nbsp; &
nbsp; ";
echo" &
nbsp; &
nbsp; &
echo"Total
nbsp; &
Price</font> <i
nbsp;";
nput type='text' value= $total readonly
echo"<input type='button' value='Print size=5></h4>";
Page' Onclick='window.print()'
//}
align='center' style='margin-center:-
420px'/></font>"; //else
echo"<br><br>"; //{
DB-EPIMS Page 67
//<script> // }
//echo("Th }
is id is already searched!");
//</script>
mysql_close($conn);
//<?php
?>
DB-EPIMS Page 68
CHAPTER SIX
6.1 Conclusion
Effective documentation of this software will take care of the basic requirements of the
pharmacy management system because it is capable of providing easy and effective of
information storage related to the activities happening in the stipulated area. With these, the
objectives of the system design will be achieved.
In order to allow for the future expansion, the system has been designed in such a way that will
be allowed the possible modification as it may deem necessary by the pharmacy management,
whenever the idea arises.
6.2 Recommendation
Designing this software (Pharmacy management system) is not an easy task. It has been started
from the requirement gathering and passes through so many other stages before completion.
Based on the benefits of this system and tremendous value it will add to customer-user
satisfaction, the below recommendation will be considered;
It is recommended that the new system should be used with the necessary specifications of the
system requirements and provision for an uninterrupted power supply should be made available
throughout the hours of operation of the pharmacy to avoid power outage. There should also be
basic computer knowledge for the users of the software.
DB-EPIMS Page 69
References:-
DB-EPIMS Page 70