You are on page 1of 58

PHARMACY MANAGEMENT SYSTEM

A project work submitted to VHNSN College


In partial fulfillment for the award of the
Degree of BCA

Project work undertaken at


Department of Computer Applications,
VHNSN College (Autonomous),

Under the Guidance of


Mr. N. G. S. PARAMESWARAN. M.C.A., M.Phil.,
Assistant Professor
By
Name: DEEPAKPANDI P
Reg. No: 20SUCA018

Department of Computer Applications


Virudhunagar Hindu Nadar’s Senthikumara Nadar College
(An Autonomous Institution, Affiliated to Madurai Kamaraj University)
(Re-accredited with ‘A’ Grade Status by NAAC)
April 2023
V.H.N. SENTHIKUMARA NADAR COLLEGE(AUTONOMOUS)
VIRUDHUNAGAR
RE-ACCREDITED WITH ‘A’ GRADE BY NAAC
Department Of Computer Applications
Certificate

This is to certify that the project work entitled PHARMACY


MANAGEMENT SYSTEM is submitted by P.DEEPAKPANDI
Register No. 20SUCA018 at Department of Computer Applications in partial
Fulfillment of the requirements for the award of Bachelor of Computer
Applications degree by the Madurai Kamaraj University during the academic
Year 2020-2023. The project represents the independent work done by the
Candidate under my guidance.

Internal Guide Head of the Department

Submitted for the Viva-Voce Examination held on 13.04.2023 at


V.H.N.Senthikumara Nadar College, Virudhunagar.

Internal Examiner External Examiner


Declaration
I hereby declare that the project work entitled PHARMACY
MANAGEMENT SYSTEM submitted to Virudhunagar Hindu Nadar’s
Senthikumara Nadar College Virudhunagar. This project work has not
Formed the basic for any Degree/Associateship/Fellowship or similar title
To any candidate in any university.

Place: Virudhunagar Signature,


Date: [DEEPAKPANDI P]
Acknowledgement

I am very thankful to our Principal Dr. P. Sundara Pandian, M.Com.,


M.A., M.B.A., M.A., M.Sc., M.Phil., PGDPMIR., PGDCA., DLLAL., Ph.D.,
(Autonomous), Virudhunagar who have give the opportunity to do this course.
I thank our Head of the Department Mr. D. Rajkumar, M.C.A., M.Phil.,
Virudhunagar Hindu Nadar’s Senthikumara Nadar College (Autonomous),
Virudhunagar for his kind cooperation in executing project work.
I express my profound thanks to Mr. N. G. S. PARAMESWARAN,
M.C.A., M.Phil., Virudhunagar Hindu Nadar’s Senthikumara Nadar College
(Autonomous), Virudhunagar for allowing me to do this project work and helped
Me in many ways to tackle the problems which encountered. I thank my Parents,
Supporting Staff and Friends for their help extended during these times.
SYNOPSIS
Synopsis
The Pharmacy Management System is built in order to replace manual
based system. Here system is expected to be efficient useful and affordable
on implementing tasks that is instructed by the Pharmacy manager.
Software do all things in Pharmacy like sale, insert new incoming goods,
Make bills, calculate taxes and debt, also computer give information about
Different statistics as best month to sale some product also manage employee
Work.
S. No. Contents Page Number
1 INTRODUCTION
1.1. Abstract
1.2. Problem Description
2 SYSTEM ANALYSIS
2.1. Existing system Architecture
2.2. Proposed system Architecture
3 Development Environment
3.1. Hardware Requirements
3.2. Software Requirements
3.3. Software Specification
4 System Design
4.1 Data Model
4.1.1. ER diagram
4.1.2. Table relationship
4.1.3. Data Dictionary
4.1.4. Table Relationship
4.2 Process Model
4.2.1. Context Analysis
4.2.2. Use Case Diagram
4.2.3. Data Flow Diagram
4.2.4. Decision Table
5 Project Description
5.1 Module Description
6 System Implementation
6.1 Client-Side Coding
6.2 Server-Side Coding
7 Testing
7.1 Test Case Reports
8 Performance and Limitations
8.1 Merits of the System
8.2 Limitations of the System
8.3 Future Enhancements
9 Appendices
9.1 Sample Coding
9.2 Sample Screens
10 Reference
INTRODUCTION
1. INTRODUCTION

1.1. Abstract

The Pharmacy Management System is built in order to replace manual


based system. Here system is expected to be efficient useful and affordable
on implementing tasks that is instructed by the Pharmacy manager.
Software do all things in Pharmacy like sale, insert new incoming goods,
Make bills, calculate taxes and debt, also computer give information about
Different statistics as best month to sale some product also manage employee
Work.

1.2. Problem Descriptions:

There are the Following modules given below


MODULES:
 Dash Board
 Manufacturer
 Add Manufacturer
 Manage Manufacturer
 Categories
 Add Categories
 Manage Categories
 Medicine
 Add Medicine
 Manage Medicine
 Invoice
 Add Invoice
 Manage Invoice
 Reports
 Sales Reports
 Expired Product Reports
 Product Reports
 Logout
Dash Board
A dashboard is a way of displaying various types of visual data in one place.
Usually, a dashboard is intended to convey different, but related information in an
Easy-to-digest form.

Manufacturer
Add Manufacturer
Add Manufacturer is Company details and the company product
Available or Not available entry.
Manage Manufacturer
Manage Manufacturer is types of company details show and edit the
Company details.
Categories
Add Categories
Add Categories is new categories add and different Medicine.
Manage Categories
Manage Categories is types of categories display to edit the categories.
Medicine
Add Medicine
Add Medicine is medicine details and photo and expiry date.
Manage Medicine
Manage Medicine is medicine details display and edit the rate.
Invoice
Add Invoice
Add Invoice is Billing Page.
Manage Invoice
Manage Invoice is total bills show and edit the invoices.
Reports
Sales Reports
Sales Reports is total sales details.
Expired Product Reports
Expired Product Reports is Expired medicine details.
Product Reports
Product Reports is total product details.
Logout
Logout is admin go to login page.
SYSTEM ANALYSIS
2. SYSTEM ANALYSIS

2.1. Existing system Architecture

The existing system is paper-based involving high amount of


paperwork and manpower requirement. Even though computerized
systems are used in some places, they are not web-based and are very
insecure and improperly managed. So, the current pharmacy
management procedure is very uneconomical and inflexible to meet
user demands.

Describe the problems associated with the existing system :


 In addition, it takes a large amount of time to go through the
remaining stock and the pharmacist must be able to make
approximations based on the sequence numbers allocated to
the amount of the order of writing.
 Medicines in stock are manually checked by the state.
 Expired medicines can be purchased by consumers by
mistake .

2.2. Proposed System Architecture

The proposed system for monitoring the movement of drugs in the


pharmacy management system project report in PHP provides stock
levels of drugs and figures by a pharmacy. 
the pharmacy will ensure effective policy initiatives designed to
facilitate the execution of hard activities. In the short term, the new
pharmacy system will be able to provide the following benefits of
importance.
DEVELOPMENT
ENVIRONMENT
3. DEVELOPMENT ENVIRONMENT

3.1. Hardware Environment

Speed : 2.80 GHZ

Hard Disk : 512 GB

Monitor : 15.6 inch

Mouse : Mouse-KM3322W

RAM : 8GB

Processor : 11th Gen Intel(R) Core (TM) i3-1115G4 @ 3.00GHz

3.2. Software Environment

Operating system : Windows 7

Front End : PHP, HTML, CSS

Back End : MySQL

3.3. Software Specification


XAMPP SERVER:
XAMPP is one of the widely used cross-platform web servers, which
helps developers to create and test their programs on a local webserver. It was
developed by the Apache Friends, and its native source code can be revised
or modified by the audience. It consists of Apache HTTP Server, and
interpreter for the different programming languages like PHP and MySQL.

FIREWALL:
Installing a XAMPP Server and database server is serious is stuff that
Impact your system, so you are likely to receive quite a few pop-ups from
Your firewall or other system protection software.
SYSTEM DESIGN
4.1. Data Model
4.1.1. ER Diagram:

BRAND CATEGORIES USER


Brand _ id Categories _ id User _ id
Brand _ name Categories _ name Username
Brand _ active Categories _ active Password
Brand _ status Categories _ status E-mail

ORDER _ ID ORDER PRODUCT


Id Id Product _ id
ProductName Uno Product name
Order date Product image
Quantity
Client Name Brand id
Rate
Project Name Categories id
Total Client Contact Quantity
Last id Address Rate
Added _ date Subtotal MRP
Total amount B No
Discount Exp date
4.1.2. Data Grand Total Value Added date
Dictionary GST Active
Paid status
Due Value
Brand = Brand _ Payment Type id + Brand _ name + Brand _
active + Payment Status
Payment Place
Brand _ status
Categories = Categories _ id + Categories _ name +
Categories _ active + Categories _ status

Order _ id = Id + ProductName + Quantity + Rate + Total


Last Id + Added _ id

Order = Id + Uno + Order Date + Client Name + Address


Subtotal + Total Amount + Discount + Grand
Total Value + GSTN + Paid + Due Total + Payment
Type + Payment status + Payment Place

Product = Product _ id + Product Name + Product Image + Brand id


Categories id + Quantity + Rate + MRP + B no + Exp
Date + added date + active + status

4.1.3. Table Relationship

BRAND CATEGORIES USER


Brand _ id Categories _ id User _ id
Brand _ name Categories _ name Username
Brand _ active Categories _ active Password
Brand _ status Categories _ status E-mail
ORDER _ ID ORDER PRODUCT
Id Id Product _ id
ProductName Uno Product name
Order date Product image
Quantity
Client Name Brand id
Rate
Project Name Categories id
Total Client Contact Quantity
Last id Address Rate
Added _ date Subtotal MRP
Total amount B No
Discount Exp date
Grand Total Value Added date
4.2. Process Model Gstn Active
Paid status
Due Value
4.2.1. Context Payment Type Analysis
Payment Status
Payment Place
Admin

Login
Logout

Pharmacy Add
Management
Manufacturer
System

Reports Manage

Add

Categories
4.2.2. Use Case Diagram

Pharmacy Management System


Use Case Diagram

Manage Bill info


And Status

Manage and
Medicine Available

Admin User
Mange Sales and
4.2.3. Data Flow Diagram

Home

Dashboard Manufacturer Categories Medicine Invoice Reports

Add Add
Add Logout
Add
Manage Manage
4.2.5. Decision Table
Data Base Name: Pharmacy
Table Name: User

Column Name Data Type

User _ id Int (11)

Username Varchar (255)

Password Varchar (255)

Email Varchar (255)

Table Name: Brands


Column Name Data Type

Brand _ id Int (11)

Brand _ name Varchar (255)

Brand _ active Int (11)

Brand _ status Int (11)


Table Name: Categories

Column name Data Type

Categories _ id Int (11)

Categories _ name Varchar (255)

Categories _ active Int (11)


Column Name Data Type
Id Int (11)
Categories _ status
Uno IntVarchar
(11) (255)
Order Date Date
Client Name Text
Project
Table Name
Name: Order Varchar (255)
Client Contact Int (11)
Address Varchar (255)
Sub Total Int (100)
Total Amount Int (100)
Discount Int (100)
Grand Total Value Int (100)
GST Int (100)
Paid Int (100)
Due Value Int (100)
Payment Type Int (100)
Payment Status Int (100)
Payment Place Int (100)
Delete _ status Tiny int (100)
Table Name: Order _ item

Column Name Data Type


Id Int (100)
Product name Varchar (255)
Quantity Int (100)
Rate Int (100)
Total Int (100)
Last id Int (100)
Added _ date Date

Column Name Data Type


Table Name:
Product _ id ProductInt (100)
Product _ name Varchar (255)
Product _ image Text
Brand _ id Int (100)
Categories _ id Int (100)
Quantity Varchar (255)
Rate Varchar (255)
MRP Int (100)
B no Varchar (255)
Exp date Date
Added _ date Date
Active Int (100)
Status Int (100)
PROJECT
DESCRIPTION
5. PRODUCT DESCRIPTION

5.1. MODULE DESCRIPTION

 Dash Board
 Manufacturer
 Add Manufacturer
 Manage Manufacturer
 Categories
 Add Categories
 Manage Categories
 Medicine
 Add Medicine
 Manage Medicine
 Invoice
 Add Invoice
 Manage Invoice
 Reports
 Sales Reports
 Expired Product Reports
 Product Reports
 Logout
Dash Board
A dashboard is a way of displaying various types of visual data in one place.
Usually, a dashboard is intended to convey different, but related information in an
Easy-to-digest form.

Manufacturer
Add Manufacturer
Add Manufacturer is Company details and the company product
Available or Not available entry.
Manage Manufacturer
Manage Manufacturer is types of company details show and edit the
Company details.
Categories
Add Categories
Add Categories is new categories add and different Medicine.
Manage Categories
Manage Categories is types of categories display to edit the categories.
Medicine
Add Medicine
Add Medicine is medicine details and photo and expiry date.
Manage Medicine
Manage Medicine is medicine details display and edit the rate.
Invoice
Add Invoice
Add Invoice is Billing Page.
Manage Invoice
Manage Invoice is total bills show and edit the invoices.
Reports
Sales Reports
Sales Reports is total sales details.
Expired Product Reports
Expired Product Reports is Expired medicine details.
Product Reports
Product Reports is total product details.
Logout
Logout is admin go to login page.

SYSTEM
IMPLEMENTION
6. SYSTEM IMPLEMENTION

6.1. CLIENT-SIDE CODEING

HTML:

This is the minimum required information for a web document and


All web document should contain these basic components. The first tag
In your html documents is <html>. The text between the <head> tag and
The </head> tag is header information. Header information is not
Displayed in the browser window.
 HTML stands for Hyper Text Markup Language.
 HTML describes the structure of web pages using Markup.
 HTML elements are the building blocks of HTML pages.
 HTML elements are represented by tags.
 HTML tags label pieces of content such as “heading”,
“paragraph”, ”table”, and so on.

CSS:
Cascading Style Sheets (CSS) is a style sheet language used for
describing the presentation of a document written in a markup language.
 CSS stands for Cascading Style Sheets
 CSS describe how HTML elements are to be displayed on
Screen, paper, or in other media
 CSS saves a lot of work. It can control the layout of multiple
Web pages all at once.
 External style sheets are stored in CSS files

JAVASCRIPT:
Client-side Java script extends the core language by supplying object
To control a browser and its Document Object Model (DOM). For example,
Client-side extensions allow an application to place elements on an HTML
Form and respond to user events such as mouse click, form input, and page
Navigation.

6.2. SERVER-SIDE CODING

PHP:
 PHP stands for PHP- Hypertext Pre processor
 PHP is a server-side scripting language, like ASP
 PHP script are executed on the server
PHP supports many database (MySQL, Informix, Oracle,
Sybase, Solod, PostgreSQL, Generic ODBC, etc,)
 PHP is a open source software
 PHP is free to download and use.

DATADASE:
A database is a separate application that stores a collection of data.
Each database has one or more, distinct.
MySQL:
MySQL pronounced either “My-S-Q-L” or “My Sequel” is an open
Source relation database management system. It is based on the structure
Query language (SQL), which is used for adding, removing, and modifying
Information in the database. Standard SQL commands, such as ADD, DROP,
INSERT and UPDATE can be used with MySQL.

MySQL can be used for a variety of applications, but is most


Commonly found on web server. A website that uses MySQL may include
Web pages that access information from a database. These pages are often
Referred to as “dynamic” meaning the content of each page is generated
From database as the page loads.

MySQL FEATURES:
 MySQL are very fast and much reliable for any type of
Application.

 MySQL command line tool is very powerful and be used to run


SQL queries against database.

 It is allow change to structure of table while server is running.

 MySQL code is tested with different compilers.

 Cross-platform support
TESTING
7.TESTING
7.1 TEST CASE REPORTS
PERFORMANCE
AND
LIMITATIONS
8. PERFORMANCE AND LIMITATION

8.1. Merits of the System

A pharmacy was always more than just a place to get your prescription.
Patients treated pharmacists as consultants, someone to help them choose an
over-the - counter medicine or make sense of a prescription’s dosage and
instructions. Always happy to oblige, they rarely had enough information
about a person’s medical history, allergies, or treatment plans to give more
complete advice. This, however, is changing. The healthcare industry is
experiencing transformations and pharmacies are no exception.

8.2. Limitations of the System

Some pharmacies share useful information about medicine and illnesses.


It provides links to useful information, as well as important medical resources,
Universities, and government agencies.

8.3 Future Enhancements


APPENDICES
9. APPENDICES
9.1. SAMPLE CODING

9.1.1 Dash Board. PHP Code

<?php //error_reporting(1); ?>


<?php include('./constant/layout/head.php');?>
<?php include('./constant/layout/header.php');?>

<?php include('./constant/layout/sidebar.php');?>

<?php

$lowStockSql = "SELECT * FROM product WHERE status = 1";


$lowStockQuery = $connect->query($lowStockSql);
$countLowStock = $lowStockQuery->num_rows;

$lowStockSql1 = "SELECT * FROM brands WHERE brand_status = 1";


$lowStockQuery1 = $connect->query($lowStockSql1);
$countLowStock1 = $lowStockQuery1->num_rows;

$date=date('Y-m-d');
$lowStockSql3 = "SELECT * FROM product WHERE expdate<'".
$date."' AND status = 1";
//echo "SELECT * FROM product WHERE expdate<='".$date."'
AND status = 1" ;exit;
$lowStockQuery3 = $connect->query($lowStockSql3);
$countLowStock3 = $lowStockQuery3->num_rows;

$lowStockSql2 = "SELECT * FROM orders WHERE delete_status =0";


$lowStockQuery2= $connect->query($lowStockSql2);
$countLowStock2 = $lowStockQuery2->num_rows;

//$connect->close();

?>

<style type="text/css">
.ui-datepicker-calendar {
display: none;
}
</style>
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"></script>
<div class="page-wrapper">

<div class="container-fluid ">

<div class="row">
<div class="col-md-6 dashboard">
<div class="card" style="background: #2BC155 ">
<div class="media widget-ten">
<div class="media-left meida media-middle">
<span><i class="ti-agenda"></i></span>
</div>
<div class="media-body media-text-right">

<h2 class="color-white"><?php echo


$countLowStock; ?></h2>
<a href="product.php"><p class="m-b-0">Total
Medicine</p></a>
</div>
</div>
</div>
</div>
<?php if(isset($_SESSION['userId']) &&
$_SESSION['userId']==1) { ?>
<div class="col-md-6 dashboard">
<div class="card" style="background:#A02CFA ">
<div class="media widget-ten">
<div class="media-left meida media-middle">
<span><i class="ti-widget"></i></span>
</div>
<div class="media-body media-text-right">

<h2 class="color-white"><?php echo


$countLowStock1; ?></h2>
<a href=""><p class="m-b-0">Total
Manufacturer</p></a>
</div>
</div>
</div>
</div>
<?php }?>
<?php if(isset($_SESSION['userId']) &&
$_SESSION['userId']==1) { ?>
<div class="col-md-6 dashboard">
<div class="card " style=" background-color: #F94687
">
<div class="media widget-ten">
<div class="media-left meida media-middle">
<span><i class="ti-vector"></i></span>
</div>
<div class="media-body media-text-right">

<h2 class="color-white"><?php echo $countLowStock2;


?></h2>
<a href=""><p class="m-b-0">Total
Invoices</p></a>
</div>
</div>
</div>
</div>
<?php }?>
<?php if(isset($_SESSION['userId']) &&
$_SESSION['userId']==1) { ?>
<div class="col-md-6 dashboard">
<div class="card" style=" background-color: #FFBC11
">
<div class="media widget-ten">
<div class="media-left meida media-middle">
<span><i class="ti-agenda"></i></span>
</div>
<div class="media-body media-text-right">

<h2 class="color-white"><?php echo $countLowStock3;


?></h2>
<a href=""><p class="m-b-0">Total Expired
Medicine</p></a>
</div>
</div>
</div>
</div>
<?php }?>

<div class="col-md-12">
<div class="card">
<div class="card-header">
<strong class="card-title">User Wise
Invoice</strong>

<div class="table-responsive m-t-40">


<table id="myTable" class="table table-bordered
table-striped">
<thead>
<tr>
<th>#</th>
<th>Utilization Date</th>
<th>Client Name</th>
<th>Contact</th>

<th>Payment Status</th>
</tr>
</thead>
<tbody>
<?php
//include('./constant/connect');

$sql = "SELECT uno, orderDate, clientName,


clientContact,paymentStatus,id FROM orders WHERE delete_status =
0";
//echo $sql;exit;
$result=$connect->query($sql);
//print_r($result);exit;
foreach ($result as $row) {

$no+=1;
?>
<tr>
<td><?=$no; ?></td>
<td><?php echo $row['orderDate'] ?></td>
<td><?php echo $row['clientName'] ?></td>
<td><?php echo $row['clientContact']
?></td>

<td><?php if($row['paymentStatus']==1)
{

$paymentStatus = "<label class='label


label-success' ><h4>Full Payment</h4></label>";
echo $paymentStatus;
}
else if($row['payment_status']==2){
$paymentStatus = "<label class='label
label-danger'><h4>Advance Payment</h4></label>";
echo $paymentStatus;
}else {
$paymentStatus = "<label class='label
label-warning'><h4>No Payment</h4></label>";
echo $paymentStatus;
} // /els
?></td>

</tr>

</tbody>
<?php
}

?>
</table>
</div>
</div>

</div>
</div>
</div>
<!-- <div class="row">
<div class="col-md-6">
<div id="myChart" style="width:100%; max-width:600px;
height:500px;">
</div>
</div>
<div class="col-md-6">

<div id="myChart1" style="width:100%; max-width:600px;


height:500px;"></div>
</div>
</div> -->

<?php
//error_reporting(0);
//require_once('../constant/connect.php');
$qqq = "SELECT * FROM product WHERE status ='1' ";
$result=$connect->query($qqq);
//print_r($result);exit;
foreach ($result as $row) {

//print_r($row);
$a.=$row["product_name"].',';
$b.=$row["quantity"].',';

}
$am= explode(",",$a,-1);
$amm= explode(",",$b,-1);
//print_r($a);
//print_r($b);

$cnt=count($am);

$datavalue1='';
for($i=0;$i<$cnt;$i++){
$datavalue1.="['".$am[$i]."',".$amm[$i]."],";
}
//echo

$datavalue1; //used this $data variable in js


?>

</div>
</div>
</div>

<?php include ('./constant/layout/footer.php');?>


<script>
$(function(){
$(".preloader").fadeOut();
})
</script>
<script>
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);

function drawChart() {
var data = google.visualization.arrayToDataTable([ ['Contry', 'Mhl'],<?
php echo $datavalue1;?>]);
var options = {
title:'World Wide Wine Production',
is3D:true
};

var chart = new


google.visualization.PieChart(document.getElementById('myChart'));
chart.draw(data, options);

var chart = new


google.visualization.BarChart(document.getElementById('myChart1'));
chart.draw(data, options);
}
</script>

9.1.2. Login Page Coding


<link rel="stylesheet" href="assets/css/popup_style.css">
<style>
.footer1 {
position: fixed;
bottom: 0;
width: 100%;
color: #5c4ac7;
text-align: center;
}

</style>
<?php

include('./constant/layout/head.php');
include('./constant/connect.php');
session_start();

if(isset($_SESSION['userId'])) {
//header('location:'.$store_url.'login.php');
}

$errors = array();

if($_POST) {

$email = $_POST['email'];
$password = $_POST['password'];

if(empty($email) || empty($password)) {
if($email == "") {
$errors[] = "email is required";
}

if($password == "") {
$errors[] = "Password is required";
}
} else {
$sql = "SELECT * FROM users WHERE email = '$email'";
$result = $connect->query($sql);

if($result->num_rows == 1) {

// exists
$mainSql = "SELECT * FROM users WHERE email = '$email' AND password
= '$password'";
$mainResult = $connect->query($mainSql);

if($mainResult->num_rows == 1) {
$value = $mainResult->fetch_assoc();
$user_id = $value['user_id'];

// set session
$_SESSION['userId'] = $user_id;?>

<div class="popup popup--icon -success js_success-popup popup--visible">


<div class="popup__background"></div>
<div class="popup__content">
<h3 class="popup__content__title">
Success
</h1>
<p>Login Successfully</p>
<p>

<?php echo "<script>setTimeout(\"location.href =


'dashboard.php';\",1500);</script>"; ?>
</p>
</div>
</div>
<?php }
else{
?>

<div class="popup popup--icon -error js_error-popup popup--visible">


<div class="popup__background"></div>
<div class="popup__content">
<h3 class="popup__content__title">
Error
</h1>
<p>Incorrect email/password combination</p>
<p>
<a href="login.php"><button class="button button--error" data-for="js_error-
popup">Close</button></a>
</p>
</div>
</div>

<?php } // /else
} else { ?>
<div class="popup popup--icon -error js_error-popup popup--visible">
<div class="popup__background"></div>
<div class="popup__content">
<h3 class="popup__content__title">
Error
</h1>
<p>email doesnot exists</p>
<p>
<a href="login.php"><button class="button button--error" data-for="js_error-
popup">Close</button></a>
</p>
</div>
</div>

<?php } // /else
} // /else not empty email // password

} // /if $_POST

?>

<div id="main-wrapper">
<div class="unix-login">

<div class="container-fluid" style="background-image:


url('assets/uploadImage/Logo/banner3.jpg');
background-color: #ffffff;background-size:cover;height:745px;">
<div class="row ">
<div class="col-md-4">
<div class="login-content ">
<div class="login-form">
<center><img style="width: 300px;"></center><br>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>"
method="post" id="loginForm" class="row">
<div class="form-group col-md-12">
<label lass="col-sm-3 control-label">email</label>
<input type="text" name="email" id="email" class="form-
control" placeholder="email" pattern="[^@\s]+@[^@\s]+\.[^@\s]+" title="Invalid
email address"required="" autocomplete="off">

</div>
<div class="form-group col-md-12">
<label>Password</label>
<input type="password" id="password" name="password"
class="form-control" placeholder="Password" required="">
</div>

<div class="col-md-6 form-check">


<input type="checkbox" class="pl-3"
id="exampleCheck1">
<label class="form-check-label"
for="exampleCheck1">Remember me</label>
</div>
<div class="forgot-phone col-md-6 text-right">
<a href="#" class="text-right f-w-600 text-gray"> Forgot
Password?</a>
</div>

<div class="col-md-12">
<button style="background-color: #102b49; border-radius:
50px;" type="submit" name="login" class=" f-w-600 text-white btn btn-flat m-b-30
m-t-30">Sign in</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div><center>

</center>
</div>

<script src="./assets/js/lib/jquery/jquery.min.js"></script>

<script src=".//js/lib/bootstrap/js/popper.min.js"></script>
<script src=".//js/lib/bootstrap/js/bootstrap.min.js"></script>

<script src="./assets/js/jquery.slimscroll.js"></script>

<script src="./assets/js/sidebarmenu.js"></script>

<script src="./assets/js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>

<script src="./assets/js/custom.min.js"></script>
</body>

</html>

9.1.3. Categories Add Page Code


<?php include('./constant/layout/head.php');?>
<?php include('./constant/layout/header.php');?>

<?php include('./constant/layout/sidebar.php');?>

<div class="page-wrapper">

<div class="row page-titles">


<div class="col-md-5 align-self-center">
<h3 class="text-primary">Add Categories Management</h3> </div>
<div class="col-md-7 align-self-center">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a
href="javascript:void(0)">Home</a></li>
<li class="breadcrumb-item active">Add Categories</li>
</ol>
</div>
</div>

<div class="container-fluid">

<div class="row">
<div class="col-lg-8" style=" margin-left: 10%;">
<div class="card">
<div class="card-title">

</div>
<div id="add-brand-messages"></div>
<div class="card-body">
<div class="input-states">
<form class="form-horizontal" method="POST"
id="submitBrandForm" action="php_action/createCategories.php"
enctype="multipart/form-data">

<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Categories
Name</label>
<div class="col-sm-9">
<input type="text" class="form-
control"id="categoriesName" placeholder="Categories Name"
name="categoriesName" required="" pattern="^[a-zA-z]+$"/>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<label class="col-sm-3 control-label">Status</label>
<div class="col-sm-9">
<select class="form-control" id="categoriesStatus"
name="categoriesStatus">
<option value="">~~SELECT~~</option>
<option value="1">Available</option>
<option value="2">Not Available</option>
</select>
</div>
</div>
</div>

<button type="submit" name="create"


id="createCategoriesBtn" class="btn btn-primary btn-flat m-b-30 m-t-
30">Submit</button>
</form>
</div>
</div>
</div>
</div>

</div>

<? php include('./constant/layout/footer.php');?>


9.2. Sample Screen Shot

9.2.1. Login Page

9.2.2. Dash Board Page


9.2.3. Manage Medicine Page

9.2.4. Add Invoice Page


REFERENCES
10.Reference

Book Reference:

HTML Complete Reference – Herbert Shield – Fifth Edition

The Complete Reference PHP – Steven Holzner – first Edition

Web Site Reference:

www.w3schools.com

www.google.com

You might also like