Professional Documents
Culture Documents
Bachelor of Technology
in
Page | 2
Netwizard Technologies
Pvt. Ltd.
ISO 9001:2008 Certified Company
Govt.Registration No
:U72300WB2014PTC202400
ISO 9001:2008 Certified Company
Page | 3
Arindam Roy
Netwizard Technologies Pvt. Ltd.
ACKNOWLEDGEMENT
"I have taken efforts in this project. However, it would not have been
possible without the kind support of Netwizard Technologies Pvt. Ltd.
I would like to extend my sincere thanks to all of the faculty members
of training cell.
I am highly indebted to Arindam Sir for their guidance and constant
supervision as well as for providing necessary information regarding
the project & also for their support in completing the project.
I would like to express my gratitude towards my parents & all faculty
members of Netwizard Technologies Pvt. Ltd. for their kind cooperation and encouragement which help me in completion of this
project.
I would like to express my special gratitude and thanks to all
Information technology industry persons for giving me such attention
and time as well as valuable suggestions.
My thanks and appreciations also go to my colleagues in developing
the project and people who have willingly helped me out with their
abilities.
Sagar
Sumit
Page | 4
TABLE OF CONTENT
1)
ABSTRACT
2)
PROJECT OBJECTIVE
3)
TOOLS
4)
PLATEFORM
5)
SOFTWARE SPECIFICATION
6)
HARDWARE SPECIFICATION
7)
SYSTEM ANALYSIS
8)
ANALYSIS OF EXISTING
SYSTEM
9)
ANALYSIS OF PROPOSED
SYSTEM
10)
REQUIREMENT DEFINITION
11)
WATER FALL MAODEL
12)
SOFTWARE FLOW CHART
13)
STRUCTURE WORK FLOW
DIAGRAMS
14)
DATABASE DESIGN
15)
SCREENSHOT OF PROJECT
16)
CODING
17)
TESING-TEST CASES
Page | 5
18)
19)
20)
ABSTRACT
It is necessary to ensure a technologically appropriate,
equitable , affordable , efficient, and environmentally
adaptable and consumer friendly system , designed to
fully utilize the internet and communication technology
for the maximum benefit in the health care industry.
Pharmaceutical management system is robust,
integrated technology. Pharmaceutical management
system deals with the maintenance of employees,
pharmacists, drugs and consumables in the pharmacy
unit. The set-up of this pharmaceutical management
system will ensure availability of sufficient quantity of
drugs and consumable materials for the patients. This
will enhance the efficiency of organizational work and
ease patients convenience, pharmacists convenience
as well as managers convenience.
In addition, Pharmaceutical management system will be
able to process employee management and drugs
management. Pharmaceutical management system is
based on computer technology that gives service for
users, managed by the Administrator, Managers,
Pharmacist and Medical Representatives who give
implementation of function relatively in effective times
Page | 6
Tools
1.
2.
3.
4.
wampserver2.5
Apache-2.4.9
php5.5.12-32b
Mysql-5.6.17 Database
Platform
1. Microsoft Windows 8
Software Requirement Specification
Client Machine
Web Application
Smartphone or
Server Machine
Software
Apache 2 or
supported
PC Javascript,
above
Browsers
html5,php5.5
PHP5.5.12
supported
Client side mark
browsers
HTML,CSS,
Database
up / scripting
Javascript
Management
languages
MySQL-5.6
System
Software
Server Machine
HDD
Minimum 100GB.
Dual Core or newer processor
Proce
MB
Pentiu
Proce
ssor
m 4 or
ssor
Page | 7
newer
proce
ssor
that
suppo
rts
Memo
SSE2
512
Memo
ry
MB
ry
GB
their
relationship
and
which
describe
the
aggregated
systems
analysis.
This
field
is
closely
related
to
Page | 8
application of systematic approaches to collects facts about an
existing system with the aim of improving it or replacing it with
more efficient system within the context of the available resources.
In other words, System analysis can also be viewed as the process
of investigating a system, identifying problems and using the
information to recommend improvements to the system.
ANALYSIS OF EXISTING SYSTEM
Before we analyze the design of the proposed system, we need to
carefully highlight the problems of the existing system so as to avoid
recurrence. This analysis serves as a pointer on how to embark on
building the proposed system that will help the Pharmacist provide
optimal drug inventory management by monitoring the drug
movement and state in the pharmacy. The problems of the current system should be
outlined. Below are some of the problems associated with the existing system;
Significant amount of time is allocated for writing the order as the pharmacist
needs to go through the stock balance and make rough estimate for the amount
to order based on Figures.
Page | 9
From the problems listed in the existing system, the implementation of the proposed
system shall focus on;
REQUIREMENTS DEFINITION
Preliminary investigation plays an important role in developing a satisfactory
requirement. Its as a result of thorough investigation of how the current or the
existing system works using the facts gathered at the preliminary investigation that
leads to focusing on the possibility of replacing the existing system or improving upon
the existing system. This task involves information gathering.
METHOD OF INFORMATION GATHERING
Collection of fact is the act of getting and gathering information from various sources
in order to be able to compose the project. Data used for designing of the system were
gathered through several means. Therefore the method used in the design and
collections of information from various sources are as follows:
different expert.
Studying the present system in detail and the organizational style.
Knowing and understanding the input and output processes of the existing system.
P a g e | 10
Primary data: This source has to do with the text book contacted for the
development of this project.
SYSTEM DESIGN
System design is the process of defining the architecture, components, modules,
interfaces, and data for a system to satisfy specified requirements through system
modeling. One could see it as the application of system theory to produce
development. The design of this system will be user friendly. It shall be designed in
such a way that employees will be able to navigate easily through the information
supplied on the system.
In other words, system design consists of design activities that produce system
specifications satisfying the functional requirements that were developed in the
system analysis process. System design specifies how the system will accomplish.
System design is the structural implementation of the system analysis.
P a g e | 11
The diagram below is a system development life cycle that illustrates how the design of the
project is broken down into five different phases, which are Project Planning, Requirement
Gathering, Project Implementation and Interface Design, Implementation and System
Testing, Maintenance and System Upgrading.
PROJECT PLANNING
REQUIREMENT
GATHERING
PROJECT
DEVELOPMENT &
INTERFACE
DESIGN
IMPLEMENTATION
AND SYSTEM
TESTING
MAINTENANCE
AND UPGRADING
P a g e | 12
The proposed Pharmacy Management System for Boniks Pharmacy and Stores will start with
project planning by determining the users of the system, aims and objectives of the project.
After these, extensive research will be done to determine how to design an effective system,
as well as to review the current system. Then, the design was with an initial prototype of the
system, and then refined it based on their suggestions. Phases of analysis, design and
implementation were performed iteratively until users and designers agreed on a final system
specification. At this point, the project could move to the final implementation phase.
SYSTEM MODELLING
During the system requirements and design activity, systems may be modeled as a set of
components and relationships between these components. These are normally illustrated
graphically in a system architecture model that gives the reader an overview of the system
organization. System modeling helps to give more detailed system specifications which are in
form of graphical representations that can describe problem to be solved or the system that is
to be developed. Because of the graphical representations used, models are often more
understandable than detailed natural language description of the system requirements.
Examples of such modeling tool is a System workflow diagrams.
SYSTEM FLOWCHART
System flowchart is a type of diagram that represents an algorithm or process, showing the
steps as boxes of various kinds, and their order by connecting these with arrows. This
diagrammatic representation can give a step-by-step solution to a given problem. Process
operations are represented in these boxes, and arrows connecting them represent flow of
control. Flowcharts are used in analyzing, designing, documenting or managing a process or
P a g e | 13
program in various fields. Different symbols are used in the flowchart to represent input,
output, decision, connectors and process.
P a g e | 14
STRUCTURE WORK FLOW DIAGRAM
PHARMACIST MENU
ORDER DRUGS
VIEW STOCKS
DRUG STATE
COMPLAINTS
VIEW SALES
VIEW STAFF
P a g e | 15
SELECT
LOGIN
AS
ADMIN?
YES
YES
As Staff
AS
PHARMACIST
?
EXIT?
YES
YES
P a g e | 16
ADMIN WORK-FLOW
START
ADMIN
22
LOGIN
ENTER LOGIN
DETAILS
Select login
VALIDATED?
As AdminADMIN
MENU
Admin
ADMIN
Login
LOGIN
NO
NO
YES
ADD DRUG?
As Manager
AS
BB
NO
MANAGER ?
NO
NO
YES
ADD STAFF?
Manager
MANAGER
GG
Login
LOGIN
YES
MANAGE DRUGS?
NO
YES
CC
DRUG STATE?
HH
Staff
PHARMACIST
LOGIN
login
NO
ADD CATEGORY?
YES
DD
NO
NO
NO
NO
YES
GOTO STORE?
YES
II
YES
JJ
VIEW SALES?
NO
EE
VIEW STAFF?
NO
NO
VIEW DRUGS?
YES
FF
STOP
EXIT
YES
LOG OUT?
22
33
P a g e | 17
11
MANAGER
LOGIN
ENTER LOGIN
DETAILS
VALIDATED?
MANAGER
MENU
NO
YES
ADD DRUG?
NO
ADD CATEGORY?
YES
LL
MM
NO
YES
PP
YES
YES
RR
YES
SS
MANAGE STOCKS?
NO
STOCK STATE?
NO
GOTO STORE?
YES
NN
NO
VIEW ORDER?
NO
YES
VIEW STOCKS?
OO
NO
VIEW STAFF?
NO
YES
LOG OUT?
11
P a g e | 18
STAFF LOGIN
STAFF LOGIN
Login
Details
ENTER LOGIN
DETAILS
NO
Validated?
VALIDATED?
YES
ENTER
STORE?
Enter Store?
N.B : STAFF
YES
PHARMACIST
MEDICAL REPRESENTATIVE
AA
P a g e | 19
DISPLAY STORE
Display
Store
Order
ORDER
Enter
Quantity
CHECK QUANTITY
exists?
exists?
ENTER QUANTITY
NO
Restock
STOCK
DOES QUANTITY
EXIST?
YES
Enter
Quantity
DOES QUANTITY
EXIST?
YES
Ordered
ORDER SUCCESS
Success
DISPLAY SUCCESS
P a g e | 20
CONTINUED
Staff
details
ENTER
DRUG
Staff details
ENTER STAFF
DETAILS
DETAILS
NO
Valid
?
VALIDATED?
NO
Valid ?
VALIDATED?
YES
YES
success
DISPLAY SUCCESS
success
DISPLAY SUCCESS
P a g e | 21
CONTINUED
Display
DISPLAY
category
CATEGORY
Add category
ADD CATEGORY
DISPLAY
STOCKS
Delete
DELETE
category
CATEGORY
Add
stocks
ADD
NEW
DRUG
Valid?
VALIDATED?
Edit
EDITstocks
DRUG
INFORMATION
NO
success
DISPLAY
SUCCESS
YES
success
DISPLAY
SUCCESS
P a g e | 22
Display
DISPLAYmanager
STORE
MANAGER
select stock
SELECT DRUG
Restock
RESTOCK
Check stock
DELETE
delete
Quantity
ENTER ?
QUANTITY
All stocks
CHECK
STOCK
NO
YES
Valid?
VALIDATED?
success
DISPLAY
SUCCESS
Low
stock
LOW
STOCK
success
DISPLAY
SUCCESS
Expired DRUGS
EXPIRED
stock
2
display
DISPLAY
display
DISPLAY
display
DISPLAY
P a g e | 23
CONTINUED
NO
DOES
exists?
QUANTITY
EXIST?
NO
P a g e | 24
E
CONTINUED
Go to
store
GOTO STORE
Select stock
SELECT DRUG
statusSTATE
Display
stock DRUG
NNDISPLAY
STATE
Order Item
SELL
Restock Item
RESTOCK
Quantity
?
ENTER
QUANTITY
Quantity
ENTER ?
QUANTITY
Valid?
VALIDATED?
YES
DISPLAY
success
SUCCESS
YES
DISPLAY
success
SUCCESS
P a g e | 25
DATABASE DESIGN
This is a shared collection of data that are related or files that are to meet the
immediate need of authorized users. These data may be in form of text, numeric, date
or encoded images.
I
Select orders
Display Orders
STOP
Field Type
Field Length
Description
Admin_username
varchar
(40)
Admin Username
Password
varchar
(40)
Admin password
Above table serves as a repository for administrator details, that will be able to have access to
the entire details on Select
the application.
It is a table that stores the administrator login details.
staffs
Display staff
information
Field Type
Field Length
Description
USERNAME
Varchar
(15)
Manager username
PASSWORD
Varchar
(15)
Manager password
Above table serves as a repository for manager details, which will be able to have access to
the required details on the application as stipulated by the administrator. It is a table that
stores all the manager login details.
P a g e | 26
Field
Field
Type
Length
Product_Name
Varchar
(15)
Drug Name
Product_ID
Varchar
(7)
Mfg_Date
Date/Time
()
Manufacture Date
Batch_No
Varchar
(40 )
Batch Number
(40 )
Licence Number
Field Name
Licence_No
Description
Varchar
Content
Varchar
( 40)
Contents
CP
Varchar
( 40)
Cost Price
VAT
Varchar
( 40)
SP
Varchar
( 40)
Selling Price
Stock Information table: This table is named as addproduct in the database. It depicts the
information of the stocks present in the pharmacy.
N.B:
This table shows the information about the stocks of drugs present in the pharmacy and is
being queried from the database on the addproduct page to show all the drugs for user to
select.
Field Type
Field Length
Description
USERNAME
Varchar
(15)
Pharmacist Username
P a g e | 27
Field Name
Field Type
Field Length
Description
PASSWORD
Varchar
(15)
Pharmacist Password
Table above serves as a repository for all the pharmacists details, that will be able to have
access to the required details on the application as stipulated by the administrator. It is a table
that stores all the pharmacists login details.
Field Type
Field Length
Description
USERNAME
Varchar
(15)
Pharmacist Username
PASSWORD
Varchar
(15)
Pharmacist Password
Table above serves as a repository for all the medical representatives details, that will be able
to have access to the required details on the application as stipulated by the administrator. It is
a table that stores all the medical representatives login details.
P a g e | 28
Field Type
Field Length
Varchar
(40)
PHONE
Varchar
(10)
Phone Number
COMPLAINT
Varchar
(500)
Complaint
NAME
Description
Name
Table above serves as a repository for all the complaints details, that will be accessed by the
administrator as well as managers. It is a table that stores all the complaint details registered
by the consumer pharmacists as well as the medical representatives.
NEWSLETTER TABLE
Field Name
Field Type
Field Length
Description
Varchar
(40)
Email-id
NAME
Varchar
(40)
Name
Table above serves as a repository for all the newsletter details, that will be accessed by the
administrator as well as the managers. It is a table that stores all the emails and names details
of the consumer those requires news and updates from the pharmaceutical company.
CAREER TABLE
P a g e | 29
Field Name
Field Type
Field Length
Description
NAME
Varchar
(40)
Name
CV
Varchar
(40)
Table above serves as a repository for all the career details, that will be accessed by the
administrator. It is a table that stores all the names and CV as well as path of CV files details
of the consumer or job applicant, applying for the job in pharmaceutical company.
KOLKATA TABLE
Field Name
Field Type
Field Length
Description
NAME
Varchar
(40)
Name
Varchar
(40)
Email-id
Table above serves as a repository for all the consumer details those who want to contact
managers from Kolkata, that will be accessed by all the administrators as well as the
managers from kolkata.
MUMBAI TABLE
Field Name
Field Type
Field Length
Description
NAME
Varchar
(40)
Name
Varchar
(40)
Email-id
Table above serves as a repository for all the consumer details those who want to contact
managers from Mumbai, that will be accessed by all the administrators as well as the
managers from Mumbai.
P a g e | 30
BENGLURU TABLE
Field Name
Field Type
Field Length
Description
NAME
Varchar
(40)
Name
Varchar
(40)
Email-id
Table above serves as a repository for all the consumer details those who want to contact
managers from Bengluru, that will be accessed by all the administrators as well as the
managers from Bengluru.
SYSTEM IMPLEMENTATION
System implementation is a stage in system life cycle whereby a new system is developed,
installed and made ready for use. It is this stage that all details and key point in the
requirement specification are practicalised. System implementation therefore, is a very
essential stage in which its success determines to a great extent the success of the new
system. At this instance, after all is said and done the system is duly ready to be implemented
(Pharmaceutical Management System).
System design is concerned mainly with the coordination of activities, job procedures and
equipment utilization in order to achieve organizational objectives. It addresses data input and
output data, processing and interface.
CHOICE OF PROGRAMMING LANGUAGE
Choosing a programming language depends on the language experience and the scope of the
application we are building. While small applications are often created using only one
language, it is not uncommon to develop large applications using multiple languages.
P a g e | 31
The server scripting is done using PHP and Mysql whereas HTML,CSS,Javascript is used as
client side language to design and implement this project beautifully. The structure of the
Basic programming language is very simple, particularly as to the
Server-side scripting :
This is the most traditional and main target field for PHP. We need three things to make
this work. The PHP parser (CGI or server module), a web server and a web browser. We
need to run the web server, with a connected PHP installation. We can access the PHP
program output with a web browser, viewing the PHP page through the server. All these
can run on home machine if we are just experimenting with PHP programming.
o
We can make a PHP script to run it without any server or browser. We only need the PHP
parser to use it this way. This type of usage is ideal for scripts regularly executed using
cron (on *nix or Linux) or Task Scheduler (on Windows). These scripts can also be used
for simple text processing tasks.
o
PHP is probably not the very best language to create a desktop application with a
graphical user interface, but if you know PHP very well, and would like to use some
advanced PHP features in your client-side applications you can also use PHP-GTK to
write such programs. We can also have the ability to write cross-platform applications
this way.
P a g e | 32
PHP can be used on all major operating systems, including Linux, many Unix
variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X,
RISC OS, and probably others. PHP has also support for most of the web servers
today. This includes Apache, IIS, and many others. And this includes any web server
that can utilize the FastCGI PHP binary, like lighttpd and nginx. PHP works as either
a module, or as a CGI processor.
So with PHP, we have the freedom of choosing an operating system and a web server.
Furthermore, we also have the choice of using procedural programming or object oriented
programming (OOP), or a mixture of them both.
With PHP we are not limited to output HTML. PHP's abilities includes outputting images,
PDF files and even Flash movies (using libswf and Ming) generated on the fly. You can also
output easily any text, such as XHTML and any other XML file. PHP can autogenerate these
files, and save them in the file system, instead of printing it out, forming a server-side cache
for your dynamic content.
One of the strongest and most significant features in PHP is its support for a wide ranges of
databases. Writing a database-enabled web page is incredibly simple using one of the
database specific extensions (e.g., for mysql), or using an abstraction layer like PDO, or
connect to any database supporting the Open Database Connection standard via
the ODMC extension. Other databases may utilize cURL or sockets, like CouchDB.
PHP also has support for talking to other services using protocols such as LDAP, IMAP,
SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open
raw network sockets and interact using any other protocol. PHP has support for the WDDX
complex data exchange between virtually all Web programming languages. Talking about
interconnection, PHP has support for instantiation of Java objects and using them
transparently as PHP objects.
PHP has useful text processing features, which includes the Perl compatible regular
expressions (PCRE), and many extensions and tools to parse and access the XML documents.
PHP standardizes all of the XML extensions on the solid base of libxml2, and extends the
feature set adding simpleXML, XMLreader and XMLWriter support.
P a g e | 33
SCREENSHOTS
index.php
P a g e | 34
Ourproduct.html
P a g e | 35
Kolkata.php
Mumbai.php
P a g e | 36
Bengluru.php
complaints.php
P a g e | 37
career.php
admin.php
manage.php
P a g e | 38
add_user.php
P a g e | 39
addmanager.php
addpharmacist.php
P a g e | 40
addmr.php
editmanager.php
P a g e | 41
editpharmacist.php
P a g e | 42
editmr.php
P a g e | 43
stocks.php
P a g e | 44
products.php
addproduct.php
P a g e | 45
viewproduct.php
viewproduct.php
P a g e | 46
orders.php
epharmacist.php
P a g e | 47
rmpkolkata.php
rmpmumbai.php
P a g e | 48
rmpbengluru.php
rmpcomplaints.php
P a g e | 49
pharmaciststocks.php
pharmacistproducts.php
P a g e | 50
pharmacistorders.php
emr.php
P a g e | 51
mrkolkata.php
mrcomplaints.php
P a g e | 52
bookdoctors.php
mysamples.php
P a g e | 53
Table 1: addmanager
P a g e | 54
Table 2: addmr
Table 3: addpharmacist
P a g e | 55
Table 4: addproduct
Table 5: Bengluru
P a g e | 56
Table 6: Careers
Table 7: Complaint
P a g e | 57
Table 8: Kolkatta
Table 9: Mumbaii
P a g e | 58
Table 10:
Newletter
P a g e | 59
CODING
( N.B: Only server scripting codes are shown below )
connect_db.php
<?php
error_reporting (E_ALL ^ E_NOTICE ^ E_WARNING);
error_reporting(E_ALL ^ E_DEPRECATED);
session_start();
mysql_connect('localhost','root','')or die("cannot connect to server");
mysql_select_db('summit') or die("cannot connect to database");
?>
Index.php
<?php
require_once("connect_db.php");
ob_start();
if(!empty($_SESSION['uinfo']))
{
header('location:admin.php');
P a g e | 60
exit;
}
if(!empty($_SESSION['vinfo']))
{
header('location:emanager.php');
exit;
}
if(!empty($_SESSION['winfo']))
{
header('location:epharmacist.php');
exit;
}
if(!empty($_SESSION['xinfo']))
{
header('location:emr.php');
exit;
}
if(isset($_POST['okz']))
{
$name=$_POST['ame'];
$mail=$_POST['mail'];
$qwe=mysql_query("INSERT INTO newletter(name,email) VLAUES('$name','$mail')");
if($qwe==1)
{
?>
<script>window.location="thanks.php";</script>
<?php
}
else
{
echo "sorry! something went wrong.";
}
}
if(isset($_POST['ok']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$res=mysql_query("SELECT * FROM userid WHERE username='$username'
AND password='$password'");
if(mysql_num_rows($res))
P a g e | 61
{
$row=mysql_fetch_array($res);
$_SESSION['uinfo']=$row;
header('location:admin.php?'.$_SESSION['uinfo']['name']);
exit;
}
else
{
echo "Invalid Entry!!";
}
}
if(isset($_POST['oj']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$lot=mysql_query("SELECT
FROM
addpharmacist
WHERE
P a g e | 62
$row=mysql_fetch_array($lot);
$_SESSION['winfo']=$row;
header('location:epharmacist.php?'.$_SESSION['winfo']['name']);
exit;
}
else
{
echo "Invalid Entry!!";
}
}
if(isset($_POST['oi']))
{
$username=$_POST['username'];
$password=$_POST['password'];
P a g e | 63
exit;
}
?>
Adduser.php
<?php
include("connect_db.php");
if(empty($_SESSION['uinfo']))
{
header('location:admin.php');
exit;
}
?>
Addmanager.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
if(empty($_SESSION['uinfo']))
{
header('location:admin.php');
exit;
}
if(isset($_POST['ok']) )
{
$name=$_POST['name'];
$region=$_POST['region'];
$email=$_POST['email'];
$username=$_POST['username'];
$pwd=$_POST['pwd'];
$cpwd=$_POST['cpwd'];
$up=mysql_query("select * from addmanager where username='$username'");
$r=mysql_fetch_array($up);
$yu=mysql_query("select * from addmanager where email='$email'");
$t=mysql_fetch_array($yu);
if($email!=$t['email'])
{
P a g e | 64
if($username!=$r['username'])
{
if($pwd==$cpwd)
{
$res=mysql_query("INSERT
addmanager(name,region,email,username,password)
'$region', '$email', '$username', '$pwd')");
if($res==1)
{
echo "NEW USER ADDED";
}
else
{
echo "Failed ! could not connect database..";
}
}
else
{
echo "sorry ! Password not matched.";
}
}
else
{
echo "Sorry! Username already exists";
}
}
else
{
echo "Email-ID already exists!!";
}
}
?>
Addmanagerproduct.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
require_once("connect_db.php");
if(empty($_SESSION['vinfo']))
{
into
VALUES
('$name',
P a g e | 65
header('location:index.php');
exit;
}
if(isset($_POST['ok']))
{
$name=$_POST['pname'];
$pid=$_POST['pid'];
$date=$_POST['date'];
$mfg=$_POST['mfg'];
$batch=$_POST['batch'];
$lic=$_POST['lic'];
$content=$_POST['content'];
$cp=$_POST['cp'];
$vat=$_POST['vat'];
$sp=$_POST['sp'];
$res=mysql_query("INSERT
addproduct(pname,pid,mfgdate,mfg,batch,lic,content,cp,vat,sp)
INTO
VALUES
('$name', '$pid', '$date', '$mfg', '$batch', '$lic', '$content', '$cp', '$vat', '$sp')");
if($res==1)
{
echo "PRODUCT UPDATED IN DATABASE";
}
else
{
echo "Oops something wrong!";
}
}
?>
Addmr.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
if(empty($_SESSION['uinfo']))
{
header('location:index.php');
exit;
}
if(isset($_POST['ok']) )
P a g e | 66
{
$name=$_POST['name'];
$region=$_POST['region'];
$email=$_POST['email'];
$username=$_POST['username'];
$pwd=$_POST['pwd'];
$cpwd=$_POST['cpwd'];
$up=mysql_query("select
from
addpharmacist
where
username='$username'");
$r=mysql_fetch_array($up);
$yu=mysql_query("select * from addpharmacist where email='$email'");
$t=mysql_fetch_array($yu);
if($email!=$t['email'])
{
if($username!=$r['username'])
{
if($pwd==$cpwd)
{
$res=mysql_query("INSERT
addmr(name,region,email,username,password)
'$region', '$email', '$username', '$pwd')");
if($res==1)
{
into
VALUES
('$name',
P a g e | 67
{
echo "email-id already exists!!";
}
}
?>
Products.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
ob_start();
if(empty($_SESSION['uinfo']))
{
header('loaction:index.php');
exit;
}
?>
rcareer.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
ob_start();
if(empty($_SESSION['uinfo']))
{
header('location:index.php');
exit;
}
$src="select * from careers order by id desc";
$res=mysql_query($src);
if(mysql_num_rows($res))
{
?>
<table class="tabx">
<tr>
<th>S.No</th>
<th> Name</th>
<th> CV
Name</th>
P a g e | 68
</tr>
<?php
$i=1;
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['cv']; ?></td>
</tr>
<?php
$i++;
}
?>
</table>
<?php
}
?>
logout.php
<?php
error_reporting (E_ALL ^ E_NOTICE ^ E_WARNING);
error_reporting(E_ALL ^ E_DEPRECATED);
ob_start();
session_start();
session_destroy();
?>
<script>
window.location="index.php";
</script>
managerstocks.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
if(empty($_SESSION['vinfo']))
{
P a g e | 69
header('location:index.php');
exit;
}
$src="select * from addproduct order by id desc";
$res=mysql_query($src);
if(mysql_num_rows($res))
{
?>
<table class="tabx">
<tr>
<th>S.No</th>
<th> Name</th>
<th> Content</th>
<th> S.P</th>
</tr>
<?php
$i=1;
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['pname']; ?></td>
<td><?php echo $row['content'];?></td>
<td><?php echo $row['sp'];?></td>
</tr>
<?php
$i++;
}
?>
</table>
<?php
}
?>
pharmaciststocks.php
<?php
include("connect_db.php");
ob_start();
if(empty($_SESSION['winfo']))
P a g e | 70
{
header('location:index.php');
exit;
}
if(isset($_GET['eid']))
{
$id=$_GET['eid'];
$src=mysql_query("select * from addproduct where id='$id'");
if(mysql_num_rows($src))
{
$userRow=mysql_fetch_array($src);
}
}
$src="select * from addproduct order by id desc";
$res=mysql_query($src);
if(mysql_num_rows($res))
{
?>
<table class="tabx">
<tr>
<th>S.No</th>
<th> Name</th>
<th> Content</th>
<th> S.P</th>
</tr>
<?php
$i=1;
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['pname']; ?></td>
<td><?php echo $row['content'];?></td>
<td><?php echo $row['sp'];?></td>
</tr>
<?php
$i++;
}
?>
P a g e | 71
</table>
<?php
}
?>
thanks.php
<?php
include("connect_db.php");
?>
<style type="text/css">
#x{
width:400px;
height:400px;
font-family:Verdana, Arial, Helvetica, sans-serif;
color:#000000;
font-size:64px;
letter-spacing:2px;
font-weight:bold
text-align:center;
margin:60px auto;
}
</style>
<div id="x">
<p>Thank You</p>
<h5><tr><td><a href="index.php">Click Here!</a>
</td></tr></h5>
</div>
orders.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
if(empty($_SESSION['uinfo']))
{
header('location:index.php');
exit;
}
if(isset($_GET['eid']))
{
$id=$_GET['eid'];
P a g e | 72
$src=mysql_query("select * from setorder where id='$id'");
if(mysql_num_rows($src))
{
$userRow=mysql_fetch_array($src);
}
}
$src="select * from setorder order by id desc";
$res=mysql_query($src);
if(mysql_num_rows($res))
{
?>
<table class="tabx">
<tr>
<th>S.No</th>
<th> Name</th>
<th> PharmaNam
e</th>
<th> lic.No.</th>
<th> content</t
h>
<th> &
nbsp;City</th>
</tr>
<?php
$i=1;
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['pname']; ?></td>
<td> <?php echo $row['phname']; ?
></td>
<td> <?php echo $row['lic']; ?></td>
<td> <?php echo $row['content'] ?
></td>
<td> &nbs
p;
<?php
P a g e | 73
echo $row['dadd']
?>
</td>
<th>
<a
href="https://mail.google.com/mail/u/0/#inbox"> em
ail</a></th>
<th>
<a
href="orders.php?eid=<?php
echo$row['id'];
>"> &nbs
p;Edit</a></th>
<?php
$i++;
}
?>
</table>
<?php
}
?>
pharmacistorder.php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
include("connect_db.php");
if(empty($_SESSION['winfo']))
{
header('location:index.php');
exit;
}
if(isset($_GET['eid']))
{
$id=$_GET['eid'];
$src=mysql_query("select * from addproduct where id='$id'");
if(mysql_num_rows($src))
{
$userRow=mysql_fetch_array($src);
}
}
if(isset($_POST['ok']))
{
$pname=$_POST['pname'];
P a g e | 74
$phname=$_POST['phname'];
$lic=$_POST['lic'];
$content=$_POST['content'];
$dadd=$_POST['dadd'];
$res=mysql_query("INSERT
INTO
setorder(pname,phname,lic,content,dadd)
VALUES('$pname','$phname','$lic','$content','$dadd')");
if($res==1)
{
echo "OREDR PLACED SUCCESSFULLY !!! ";
}
else
{
echo "<br> server to connection failed!!!!!";
}
}
?>
CLIENT SIDE CSS CODES FOR DROPDOWN MENU:
navi.css
#topnav ul, #topnav li{
float:left;
list-style:none;
margin:0;
padding:0;
}
#topnav li a:link, #topnav li a:visited, #topnav li a:hover{
display:block;
margin:0;
padding:15px 20px;
color:#FFFFFF;
background-color:#990000;
}
#topnav ul ul li a:link, #topnav ul ul li a:visited{
border:none;
}
#topnav li.last a{
margin-right:0;
}
P a g e | 75
#topnav li li a:link, #topnav li li a:visited{
width:150px;
float:none;
margin:0;
padding:7px 10px;
font-size:12px;
font-weight:normal;
color:#000000; background-color:#FFFFFF;
}
#topnav li li a:hover{
color:#000000;
background-color:#FFFFFF;
}
#topnav li ul{
background:#FFFFFF;
z-index:9999;
position:absolute;
left:-999em;
height:auto;
width:170px;
border-left:1px solid #FFFFFF;
border-bottom:1px solid #FFFFFF;
}
#topnav li ul a{
width:140px;
}
#topnav li ul ul{
margin:-32px 0 0 0;
}
#topnav li:hover ul ul
{
left:-999em;
}
#topnav li:hover ul, #topnav li li:hover ul
{
left:auto;
}
#topnav li:hover
{
position:static;
P a g e | 76
}
#topnav li.last a
{
margin-right:0;
}
stocks.php
<?php
Require_once(connect_db.php);
$src="select * from addproduct order by id desc";
$res=mysql_query($src);
if(mysql_num_rows($res))
{
?>
<table class="tabx">
<tr>
<th>S.No</th>
<th> Name</th>
<th> Content</th>
<th> S.P</th>
</tr>
<?php
$i=1;
while($row=mysql_fetch_array($res))
{
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $row['pname']; ?></td>
<td><?php echo $row['content'];?></td>
<td><?php echo $row['sp'];?></td>
</tr>
<?php
$i++;
}
?>
</table>
<?php
P a g e | 77
}
?>
Testing
Team Interaction
The following describes the level of team interaction necessary to have a successful product.
The Test Team will work closely with the Development Team to achieve a high
quality design and user interface specifications based on customer requirements. The Test
Team is responsible for visualizing test cases and raising quality issues and concerns
during meetings to address issues early enough in the development cycle.
The Test Team will work closely with Development Team to determine whether or not
the application meets standards for completeness. If an area is not acceptable for testing,
the code complete date will be pushed out, giving the developers additional time to
stabilize the area.
Since the application interacts with a back-end system component, the Test Team will
need to include a plan for integration testing. Integration testing must be executed
successfully prior to system testing.
Test Objective
The objective our test plan is to find and report as many bugs as possible to improve the
integrity of our program.
broad range of tests to achieve our goal. We will be testing a Binary Search Tree Application
utilizing a pre-order traversal format. Our user interface to utilize these functions is designed
to be user-friendly and provide easy manipulation of the tree. The application will only be
used as a demonstration tool, but we would like to ensure that it could be run from a variety
of platforms with little impact on performance or usability.
P a g e | 78
1
Identify the requirements to be tested. All test cases shall be derived using the current
Program Specification.
Review the test data and test cases to ensure that the unit has been thoroughly verified
and that the test data and test cases are adequate to verify proper operation of the unit.
Document the test case configuration, test data, and expected results.
Document the test data, test cases, and test configuration used during the testing
process. This information shall be submitted via the Unit/System Test Report (STR).
Successful unit testing is required before the unit is eligible for component
integration/system testing.
Testing Process
b. Design
System Test
a.Organize
Project
c.Design/
Build
d.Organize
Project
e.Design/Build
Test Proc.
f.Signoff
P a g e | 79
Fig 18.1
Figure
The diagram above outlines the Test Process approach that will be followed.
a
Organize Project involves creating a System Test Plan, Schedule & Test Approach, and
assigning responsibilities.
b. Design/Build System Test involves identifying Test Cycles, Test Cases, Entrance & Exit
Criteria, Expected Results, etc. In general, test conditions/expected results will be
identified by the Test Team in conjunction with the Development Team. The Test Team
will then identify Test Cases and the Data required. The Test conditions are derived from
the Program Specifications Document.
c. Design/Build Test Procedures includes setting up procedures such as Error Management
systems and Status reporting.
d. Build Test Environment includes requesting/building hardware, software and data setups.
e. Execute System Tests The tests identified in the Design/Build Test Procedures will be
executed. All results will be documented and Bug Report Forms filled out and given to
the Development Team as necessary.
f. Signoff - Signoff happens when all pre-defined exit criteria have been achieved.
Testing Strategy
The following outlines the types of testing that will be done for unit, integration, and system
testing. While it includes what will be tested, the specific use cases that determine how the
testing is done will be detailed in the Test Design Document.
P a g e | 80
Test cases
Tested By:
Test Type
Test Case Number
Test Case Name
Test
Case
Description
.
Item(s) to be tested
Specifications
Table 16.1
P a g e | 81
Tested By:
Test Type
Test Case Number
Test Case Name
Test
Case
Description
Item(s) to be tested
1
Specifications
Expected
Input
1
2
Output/Result
1
2
Table 16.2
Unit Testing
Unit Testing is done at the source or code level for language-specific programming errors
such as bad syntax, logic errors, or to test particular functions or code modules. The unit test
cases shall be designed to test the validity of the programs correctness.
Database/Data security
P a g e | 82
WBS
ID
Previous
Similar Project
Activity
Prototyping
Testing
Previous
Effort
40 WorkHours
20 WorkHours
Effort
Current
Project
Multiplier
Estimate
Prototyping
0.75
Testing
0.50
Total
(Previous
Cost
Effort *
(Rs. 1000/hr.)
0.75)
30 Workhours
10 WorkHours
40 WorkHours
Note: Effort is also called Size and unit of estimation is called either Work-Hour, personhours.
P a g e | 83
The proposed system would be designed to help make the rigorous activities carried out in a
pharmaceutical company much easier by providing the statistics of drugs in stock, monitoring
drug movement in the company and ensuring effective policing of the activities in the
pharmacy.
The new system will be designed to provide the following benefits in the interest of the
pharmacy;
The system would enhance management services and improve productivity.
The system would enhance User/System interface.
The system would be cost effective.
The system would improve information quality and accessibility.
Bibliography:
1) www.pharman.co.uk
2) http://www.w3schools.com/
3) http://www.wikipedia.com/
4) http://www.ranbaxy.com/
5) http://www.php.net/
6) Fundamentals of Database Systems: Navathe (Pearson
Edu.)