Professional Documents
Culture Documents
1.1. Abstract
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
Mouse : Mouse-KM3322W
RAM : 8GB
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:
Login
Logout
Pharmacy Add
Management
Manufacturer
System
Reports Manage
Add
Categories
4.2.2. Use Case Diagram
Manage and
Medicine Available
Admin User
Mange Sales and
4.2.3. Data Flow Diagram
Home
Add Add
Add Logout
Add
Manage Manage
4.2.5. Decision Table
Data Base Name: Pharmacy
Table Name: User
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
HTML:
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.
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 FEATURES:
MySQL are very fast and much reliable for any type of
Application.
Cross-platform support
TESTING
7.TESTING
7.1 TEST CASE REPORTS
PERFORMANCE
AND
LIMITATIONS
8. PERFORMANCE AND LIMITATION
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.
<?php include('./constant/layout/sidebar.php');?>
<?php
$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;
//$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="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">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<strong class="card-title">User Wise
Invoice</strong>
<th>Payment Status</th>
</tr>
</thead>
<tbody>
<?php
//include('./constant/connect');
$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)
{
</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">
<?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
</div>
</div>
</div>
function drawChart() {
var data = google.visualization.arrayToDataTable([ ['Contry', 'Mhl'],<?
php echo $datavalue1;?>]);
var options = {
title:'World Wide Wine Production',
is3D:true
};
</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;?>
<?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>
<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-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>
<?php include('./constant/layout/sidebar.php');?>
<div class="page-wrapper">
<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>
</div>
Book Reference:
www.w3schools.com
www.google.com