You are on page 1of 28

ONLINE MEDICINE PURCHASE

Under the esteemed guidance of


Mr.Atheeq sultan Ghori
Assistant professor.

Presented By :

Roll no :505514861018

Name :k.Deepa.
Introduction

 The online shopping system presents an online display of an


order cut off time and an associated delivery window for items
selected by the customer.

 The online shopping system does not settle with a credit


supplier the customer until the item selected by the customer
is picked from inventory but before it is delivered.
Existing System:
 Auction-style listings allow the seller to offer one or more items for
sale for a specified number of days.

 The seller can establish a reverse price. Fixed price format allows the
seller to offer on one or more items for sale at a Buy it Now Price.

 Buyers who agree to pay that price win the auction immediately
without submitting a bid.
Proposed System
Shop online is on online application, which provides the online
shopping facility available for everyone.

Any type of the product will available for customer, and it can be
easily purchased faster when compare with eBay. Shop online
application concentrates more on user friendly interface and
promotes user to purchase faster and easier.

There is a facility available for online purchase. Shop online has


registration facility.
modules

1.Administrator module

2.User module
Administrator Module:

Admin can Upload and View medicines.

Admin can view purchased medicines.


User Module:

User can login and view price list.


User can select the particular category medicines and
can order that.
User can give feedback about pharmacy services.
Objective
 The online shopping system presents an online display of
an order cut off time and delivery window for items
selected by the customer.

 Sells the Products online.

 To Shows the information and description of the


products.

Provides the searching facilities based on various


factors.

 Provides the Credit Card interface for accept.


functional
 Any type of the product will available for
customer, and it can be easily purchased faster
when compare with eBay.

 The project must request must high levels of


errors correction.

 The software must retrieve update, and store


data from multiple input.

 The software must allow full and complete record


search queries by users.
non-functional
 More then three attempts at login and
failure will produce the system
administrator.

 Response time should be minimum.

 24*7 available.

 System should automatically update after


every transaction.
Software Requirements:

•Operating System : Windows Environment

•Application Server : Xamp2.2e

•Front End : HTML.

•Scripts : JavaScript.

•Server side Script : PHP.

•Database : Mysql.
Hardware requirements:

: 40 GB

Processor:

: 512 MB
SDLC :
Use case
Sequence
Class
Activity
ERD
Login Code: (HTML )
<div class="login">
<header class="login-header">
<span class="text">LOGIN</span>
<span class="loader"></span></header>
<form class="login-form" action="slogin.php" method="post">
<input type="text" placeholder="Username" class="login-input"
name="a" id="a" required/>
<input type="password" placeholder="Password" class="login-input"
name="b" id="b" required/>
<button type="submit" class="login-btn">login</button>
</form></div>

<script src="js/index.js"></script>
DATABASE CONNECTIONS:
<?php
try
{
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "hospital";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

?>
Login code (PHP CODE) :
<?php
$uname=$_POST['a'];
$password=$_POST['b'];

$sqls = "SELECT count(*) FROM admin where uname='$uname' and


password='$password'";
$result = $conn->query($sqls);
$count=0;

while($row = $result->fetch_assoc())
{
$count=$row["count(*)"];
}

}
catch(Exception $e)
{
echo "$e";
}
Insert Code:
$sins="insert into
stock(pname,psize,batno,mfg,sch,edate,sc,sp,sr,qty,rate,cprice,vat,tot,
drug,drate,rack)
values('$spname','$spsize','$sbatno','$smfg','$ssch','$sedate',$ssc,$ssp,
$ssr,$sqty,$srate,$scprice,$svat,$stot,'$sdrug',$drate,'$rack')";
$conn->query($sins);

$sinsm="insert into
stockmini(aname,billno,bdate,pname,psize,qty,rate,cprice,vat,oqty,tqty
,tot,fqty,bqty,sc,sr,sp,batno,mfg,drug,sch,ns,fs,edate,drate,rack) values
('$aname','$billno','$bdate','$spname','$spsize',$sqty,$srate,$scprice,
$svat,0,$sqty,$stot,$sfqty,$sbqty,$ssc,$ssr,
$ssp,'$sbatno','$smfg','$sdrug','$ssch',$sns,$sfs,'$sedate',
$drate,'$rack')";
$conn->query($sinsm);
Select Code:
$sqlm="select * from stock order by pname";
$rqm = $conn->query($sqlm);
$pname="";
$sno=1;$ftot=0;
while($rod = $rqm->fetch_assoc())
{
$pname=$rod["pname"];
$psize=$rod["psize"];
$prod=$pname."~".$psize;
$batno=$rod["batno"];
$edate=$rod["edate"];
$mfg=$rod["mfg"];
$sch=$rod["sch"];
$qty=$rod["qty"];
$mrp=$rod["cprice"];
$rate=$rod["rate"];
$tot=$rod["tot"];
$rack=$rod["rack"];
?>
<tr>
<td><?php echo "$sno"?></tD>
<td><?php echo "$prod"?></tD>
<td><?php echo "$batno"?></tD><td><?php echo "$edate"?
></tD><td><?php echo "$mfg"?></tD>
<td><?php echo "$sch"?></tD><td><?php echo "$qty"?></tD><td><?
php echo "$mrp"?></tD>
<td><?php echo "$rate"?></tD>
<td><?php echo "$tot"?></tD>
<td><?php echo "$rack"?></tD>
</tr>
OU
A N KY
TH

You might also like