0% found this document useful (0 votes)
110 views81 pages

A Project Report Cerificate (1) (5) - 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 81

A Project Report

on

e-pets space
Submitted in partial fulfillment of the requirement for the awards of the
degree in

BACHELOR OF COMPUTER APPLICATIONS


By

SUNIL M(R1910458)
Under the Guidance of

Mrs. NISHA D

Department of Computer Science and Applications


RJS First Grade College
(Affiliated to Bangalore City University, Recognized by Government of Karnataka)

Mahayogi Vemana Road, 16th Main Road , 3rd Block ,Koramangala, Bengaluru -560034.
A Project Report
on

e-pets space
Submitted in partial engulfment of the requirement for the awards of the
degree in

BACHELOR OF COMPUTER APPLICATIONS


By

SUNIL M(R1910458)
Under the Guidance of

Mrs. NISHA D

Department of Computer Science and Applications


RJS First Grade College
(Affiliated to Bangalore City University, Recognised by Government of Karnataka)

Mahayogi Vemana Road, 16th Main Road , 3rd Block ,Koramangala,Bengaluru-560034.

RJS FIRST GRADE COLLEGE


(Affiliated to Bengaluru City University, Recognised by Government of Karnataka)

CERTIFICATE
This is certify that the Project work entitled

“e-pets space”
Submitted in partial fulfillment of the requirement for the award of the degree
of

Bachelor of Computer Applications


From Bengaluru City University , Bengaluru

is a result of the bonafide work carried out by

SUNIL M(R1910458)
During the academic year 2021-2022

Signature of the Guide Signature of the HOD


Mrs. Nisha D Mrs. Chakradhari P
(Dept of BCA) (Dept of BCA)
RJSFGC RJSFGC

DECLARATION
I, Sunil M(R1910459) student of 5th semester, BCA, RJS First Grade College,
hereby declare that the project entitled ”e-pets space” has been carried out by
me under the guidance of Mrs. Nisha D, Department of Computer Science &
Applications, RJS First Grade College, Bengaluru and submitted in partial
fulfillment of the requirement for the award of the degree of Bachelor of
Computer Applications by the Bengaluru City University during the academic
year 2021-2022. This report has not submitted to any other Organization
/University for any award of degree or certificate.

Date: Name:

Place: Signature:

ACKNOWLEDGEMENT

First and Foremost We would like to thank my “Parents” who are


the first God and who has given blessings, strength, and stayed with
me throughout the successful completion of the project.

I wish to place my heartfelt gratitude to Mrs. Nisha D, an Internal


guide. Department of Computer Science and Applications, RJS First
Grade College for providing the necessary guidance, support, and
valuable suggestion during the course of the project.
I would like to assert my acknowledgment to Mrs.Chakradhari P,
HOD of Computer Science and Applications Department, RJS First
Grade College for providing an opportunity to complete the project
under the company with all the support.

I would like to express sincere thank Dr. P Nagabhushana Reddy,


Principal of RJS First Grade College for supporting and making me
be a part of the project.

Finally, I thank all the staffs of BCA department who have been a
source of inspiration for accomplishing the project successfully.

Name: Register Number:

CONTENTS
Sl.No TITLE Page No.

Abstract

1 Introduction
Description of the Project

2 Literature Survey
Existing and Proposed System
Feasibility Study
Tools and Technologies used
Hardware and Software Requirements
3 Software Requirement Specification
Admin and Users
Functional Requirements
Non-Functional Requirements
4 System Design
System Perspective
Context Diagram
5 Detailed Design
Use Case Diagram
Sequence Diagram
Collaboration Diagram
Activity Diagram
Data Flow Diagram
Database Design
Architecture Design
ER Diagram

6 Implementation
6.1 Screen Shots

7 Software Testing
Levels of Testing
Test Cases
8 Conclusion
9 Future Enhancements
10 Bibliography

ACKNOWLEDGEMENT

I have taken efforts in this project. However, it would not


have been possible without the kind support and help of my
faculty members and friends I would like to extend my sincere
thanks to all of them

I am highly indebted to Mrs. NISHA D for their guidance and


constant supervision as well as for providing necessary
information regarding the project & also for their support in
completing my project

I would like to express my gratitude towards my parents &


member of PJS First Grade College for their king co operation
and encouragement which help me in completion of this
project

I am thankful to and fortunate enough to get constant


encouragement, support and guidance from all teaching of
BCA which helped us in successfully completing our project
work.

ABSTRACT

Faculty Evaluation System contains data and information of


teacher The main purpose of FCS is to systematically record.
store and update the teacher's feedback record.

The information from FCS is used to keep the feedback record


of the teacher
This document specially mentions the details of the project
how it was developed, the primary requirement, as well as
various features and functionalities of the project and the
procedures followed in achieving this objectives.

INTRODUCTION

This “e-pets space” using PHP MySQL was designed to


manage the pet information such to produce the pet breed and
the vaccine schedules. It is also performed in systematic
through its function requirement. The management of pet
shop includes the services offers such as cleaning, scissoring,
bathing and blow-drying.
First, the pet must be registered before having any services.
Any piece of information about the pets must be correct and
organized to avoid any problem to be in countered like the
bad feedback from the customer.
The purpose of this system is to transact and deals with a nice
and easier way by simply gathering information from the
customer. It also helps to every individual by searching for the
information needed.

Features of e-pets space

 Admin Dashboard
 Pet Shop Front end
 Available Products
 Product CRUD
 Purchase Products
 Special Offers
 Print Reports
 Contacts
 User CRUD
APACHE

The Apache HTTP Server Project is an effort to develop and maintain an open-
source HTTP server for modern operating systems including UNIX and
Windows. The goal of this project is to provide a secure, efficient and
extensible server that provides HTTP services in sync with the current HTTP
standards.

The Apache HTTP Server("httpd") was launched in 1995 and it has been the
most popular web server on the Internet since April 1996. It has celebrated its
20th birthday as project in February 2015.

PHP

• PHP stands for PHP: Hypertext Pre-processor • PHP is server-side scripting


language, like ASP

• PHP scripts are executed on the server

• PHP supports many databases (MYSQL, Informix, Oracle, Sybase, Solid,


Generic ODBC, etc..)

• PHP is an open source software

.PHP is free to download and use

MYSQL

•MYSQL is a database server

MYSQL is ideal for both small and large applications

. MYSQL supports standard SQL

.MYSQL compiles on a number of platforms . MYSQL is free to download and


use

ANALYSIS AND DESIGN


Analysis:

In the present system, faculty feedback record is done on the paper,


the records in the registers, We can't generate report based on
requirements because it takes more time to know about the faculty
skills.

Disadvantages of present system:

• Not user friendly: The present system is not user friendly because
data is not stored in structure and proper format.

• Manual Control: All report calculation is done manually so there is


a chance of error.

• Lots of paper work: Student records, maintain in the register so lots


of paper require storing details.

• Time consuming: Take lots of time to maintain records


of the feedback given by the students

Design Introduction:
Design is the first step in the development phase for any techniques
and principles for the purpose of defining a device, a process or
system in sufficient detail to permit its physical realization.

Once the software requirements have been analysed and specified the
software design involves three technical activities - design, coding,
implementation and testing that are required to build and verify the
software.

The design activities are of the main importance in this phase, because
in this activity, decisions ultimately affecting the success of the
software implementation and its ease of maintenance are made. These
decisions have the final bearing upon reliability and maintainability of
the system. Design is the only way to accurately translate the
customer's requirements into finished software or a system.

Design is the place where quality is fostered in development.


Software design is a process through which requirements are
translated into a representation of software. Software design is
conducted in two steps. Preliminary design is concerned with the
transformation into data.

UML Diagrams:

ACTOR:
A coherent set of roles that users of use cases play when interacting
with the use cases.

USE CASE:
A description of sequence of actions, including variants, that a system
performs that yields an observable result of value of an actor.

UML stands for Unified Modelling Language. UML is a


language for specifying, visualizing and documenting the
system. This is the step while developing any product after
analysis. The goal from this is to produce a model of the
entities involved in the project which later need to be built.
The representation of the entities that are to be used in the
product being developed need to be designed.

Level one DFD :


Use case diagrams model behaviour within a system and helps the
developers understand of what the user require. The stick ma
represents what's called an actor

Use case diagram can be useful for getting an overall view of the
ystem and clarifying who can do and more importantly what they
can't do.

Use case diagram consists of use case and actors and shows the
interaction between the use case and actors.
• The purpose is to show interactions between the use case and actor •
To represent the system requirements from user's perspective • An
actor could be the end-user of the system or an external
system.

USECASE DIAGRAM:

A Use case is a description of set of sequence of actions. Graphically


it is rendered as an ellipse with solid line including only its name. Use
case diagram is a behavioral diagram that shows a set of use cases and
actors and their relationship. It is an association between the use cases
and actors. An actor represents a real world object Primary Actor -
Sender, Secondary Actor Receiver
Activity diagram:
Architecture diagram:
Database Design:
ER Diagram:
The Entity Relationship(FR) model was originally
proposed by
petering 1976 [Chen 761 as a way to unify the network
and relational database views Simply stated the ER
model is a conceptual data model that views the real
world as entities and relationships. A basic component
of the model is the Entity Relationships Diagram which
Is used to visually represent data objects. Since Chen
wrote his paper the model has been extended and today
it is commonly used for database design for the
database designer, the utility of the ER model is

. It maps well to the relational model. The constructs


used in the ER model can easily be transformed into
relational tables

. It is simple and easy to understand with a minimum of

training. Therefore, the model can be used by the


database

designer to communicate the design to the end user . In


addition, the model can be used as a design plan by the
database developer to implement a data model in
specific database management software.

ER NOTATION:
There is no standard for representing data objects in ER diagrams.
Each modelling methodology uses its own notation. The original
notation used by Chen is widely used in academics texts and journals
but rarely seen in either CASE tools or publications by non
academics. Today, there are a number of notations used, among
IDEFIX

Notation styles represent entities rectangular boxes and relationships


as lines connecting boxes. Each special set symbols to represent
cardinality of connection. The notation used in this document from
Martin.

• Entities are represented by labeled rectangles. The label the name

• Relationships represented by a solid line connecting two entities.


The name of relationship

the Relationship names should be verbs. Attributes, included, listed


inside the entity rectangle. Attributes

Attribute names should singular nouns.

Cardinality of many represented by a line ending in crow's foot. If


crow's foot one.

Existence represented placing circle or perpendicular bar on the


Mandatory existence by the (looks like a 1) next to the entity for an
instance required. Optional existence shown placing circle next entity
that optional.
…………..CODING………..

ADDCNP:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>ADMIN | Petshop Online Website</title>

<!-- core CSS -->


<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><img src="images/logo.jpg"
width="35% " /><i class="wow fadeInDown" style="margin-top:-
2%; color:#FFF;"></i></a>
</div>

<div class="collapse navbar-collapse navbar-right">


<ul class="nav navbar-nav">
<li class="dropdown active"><a class="dropdown-
toggle wow fadeInDown" data-toggle="dropdown" href="#"><span
class="glyphicon glyphicon-th"></span> Product <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="addcnp.php"> Add Product </a></li>
<li><a href="update_cnp.php"> Update Product
</a></li>
</ul>
</li>
<li id="reservation" class="wow fadeInDown"><a
href="index.php"><span class="glyphicon
glyphicon-calendar"></span> Orders</a></li>
<li id="admin" class="wow fadeInDown"><a
href="adminacc.php"><span class="glyphicon
glyphicon-user"></span> Admin Account</a></li>
<li id="logout" class="wow fadeInDown"><a
id="logoutbtn" href='<?php echo "logout_process.php?logout=1"?
>'><span class="glyphicon glyphicon-share"></span>
Logout</a></li>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<br>

<?php
include('includes/availablepackage.php');

?>

<br>
<!--***************************************************
FOOTERS
**********************************************-->
<footer id="footer" class="midnight-blue">
<div class="container">
<div class="row">
<div class="col-sm-12">
<center>&copy; 2019 <a target="_blank" href="#"
title="#">Petshop Online Websit</a>. All Rights Reserved.</center>
</div>
</div>
</div>
</footer><!--/#footer-->

</script>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>

ADDMIN ACC:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/logo.jpg" rel="shortcut icon">
<title>ADMIN | Petshop Online Websitealasan Quary</title>
<!-- core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;"><img src="images/logo.jpg"
width="15% "/> Petshop Online Website</h4></a>
</div>

<div class="collapse navbar-collapse navbar-right">


<ul class="nav navbar-nav">
<li class="dropdown"><a class="dropdown-toggle
wow fadeInDown" data-toggle="dropdown" href="#"><span
class="glyphicon glyphicon-th"></span> Product <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="addcnp.php"> Add product </a></li>
<li><a href="update_cnp.php"> Update product
</a></li>
</ul>
</li>
<li id="reservation" class="wow fadeInDown"><a
href="index.php"><span class="glyphicon
glyphicon-calendar"></span> Order</a></li>
<li id="admin" class="active wow fadeInDown"><a
href="adminacc.php"><span class="glyphicon
glyphicon-user"></span> Admin Accounts</a></li>
<li id="logout" class="wow fadeInDown"><a
id="logoutbtn" href='<?php echo "logout_process.php?logout=1"?
>'><span class="glyphicon glyphicon-share"></span>
Logout</a></li>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<br>

<div class="container wow fadeInDown">


<div class="row">
</div>
<div class="col-md-6" style="border: solid #CFCFCF 2px;
border-radius: 10px;">
<div class="alert alert-success" id="infomsg" style="text-align:
center"></div>
<center><img src="images/maria.jpg" class="img-responsive
wow fadeInDown" style="height:200px;" /></center>
<div>
<?php
session_start();
include('includes/dbconn.php');
$id = $_SESSION['proprietor_id'];
$sql = ("SELECT * FROM admininfo WHERE id='$id'");
$result=mysqli_query($con, $sql);
while ($row = mysqli_fetch_array($result))
{
$name = $row['name'];
$email = $row['email'];
$phone = $row['contact'];
$username = $row['username'];
$password = $row['password'];

}
?>

<h3 style="text-align:center; font-weight:bold;" class="wow


fadeInDown">Admin Account Information</h3>
<hr>
<dl class="dl-horizontal wow fadeInDown" style="text-
align:left">
<dt>Admin Name</dt><dd><?php echo @$name ?></dd>

<dt>Phone#</dt><dd><?php echo @$phone ?></dd>


<dt>Email </dt><dd><?php echo @$email ?></dd>
<dt>Username</dt><dd><?php echo @$username ?></dd>
<dt>Password</dt><dd><?php echo '********'; ?></dd>

</dl>
<hr>
</div>
<form class="form-horizontal" name="adminacc"
id="adminacc" method="POST" action="adminacc_process.php"
style="margin-top: 20px;">
<table>
<tr>
<td style="text-align:right;font-
weight:bold;">Profile Avatar: &emsp;</td>
<td style="text-align:center;">&emsp; <input
type="file" name="image" required /></td>
</tr>
</table>
<div class="form-group">
<label for="name" class="col-sm-4 control-label wow
fadeInDown">Admin Name</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="name" name="proprietor_name" placeholder="<?
php echo $name?>" required>
</div>
</div>

<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Phone</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="Phone" name="phone" placeholder="<?php echo
$phone?>"required>
</div>
</div>
<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Email</label>
<div class="col-sm-6">
<input type="email" class="form-control wow
fadeInDown" id="email" name="email" placeholder="<?php echo
$email?>"required>
</div>
</div>

<div class="form-group">
<label for="username" class="col-sm-4 control-label
wow fadeInDown">Username</label>
<div class="col-sm-6">
<input type="text" class="form-control wow
fadeInDown" id="username" name="nuname" placeholder="Enter
Username" required>
</div>
</div>

<div class="form-group">
<label for="npassword" class="col-sm-4 control-label
wow fadeInDown">Password</label>
<div class="col-sm-6">
<input type="password" class="form-control wow
fadeInDown" id="npassword" name="npword" placeholder="Enter
Password" required>
</div>
</div>

<hr>
<em style="color:red;" class="wow fadeInDOwn"> Note
Fill up the fields before hitting save changes button</em>
<div class="form-group">

<center><input type="submit" class="btn btn-success


wow fadeInDown" name="update" value="Save Changes">
</center></div>
</form>
</div>
</div>

</div>

<script>
$("#page").removeClass();
$("#messages").removeClass();
$("#admin").addClass("active");

$("#infomsg").hide();

$('#submit').click( function() {
$.post( $("#adminacc").attr("action"),
$("#adminacc :input").serializeArray(),
function(info) {
$("#infomsg").show();
$("#infomsg").empty();
$("#infomsg").html(info);
});
$("#adminacc").submit( function() {
return false;
});
});

</script>

<br><br><br>
<!--***************************************************
FOOTERS
**********************************************-->

<footer id="footer" class="midnight-blue">


<div class="container">
<div class="row">
<div class="col-sm-12">
<center>&copy; 2018 eazicakes. All Rights
Reserved.</center>
</div>
</div>
</div>
</footer><!--/#footer-->

</script>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>
ADMINACC_PROCESS:

<?php
session_start();

include('includes/dbconn.php');
if(isset($_POST['update'])){
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$id = $_SESSION['proprietor_id'];

$name = $_POST['proprietor_name'];
$phone = $_POST['phone'];
$mail = $_POST['email'];
$nusername = $_POST['nuname'];
$npassword = $_POST['npword'];

if (empty($nusername) || empty($npassword))
echo "Please fill all fields";
else {

$sql = "SELECT * FROM admininfo WHERE


username='$username' and password='$password'" ;

$result = mysqli_query($sql);

if(mysqli_num_rows($result)==0){
echo "Invalid username and password";
header("location:adminacc.php");}
else
{
$sql=("UPDATE admininfo SET name='$name',

contact='$phone',
email =
'$mail',

username='$nusername',

password='$npassword' WHERE id='$id'") or die(mysqli_error());


$result=mysqli_query($con, $sql);
$_SESSION['username'] = $nusername ;
$_SESSION['password'] = $npassword ;

echo "<script>alert('Save Successfully!');

window.location.href='adminacc.php';</script>";

}
}}
else if (isset($_POST['save'])) {
$username = $_SESSION['username'];
$password = $_SESSION['password'];
$id = $_SESSION['proprietor_id'];

$name = $_POST['proprietor_name'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$nusername = $_POST['nusername'];
$npassword = $_POST['npassword'];
$dob = $_POST['date'];
$type = $_POST['type'];

if (empty($nusername) || empty($npassword))
echo "Please fill all fields";
else {

$sql = "SELECT * FROM userinfo WHERE


username='$username' and password='$password' and id = '$id'" ;

$result = mysqli_query($sql);

if(mysqli_num_rows($result)==0){
echo "Invalid username and password";
header("location:adminacc.php");}
else
{
$sql=("INSERT INTO userinfo
VALUES(NULL,'$name','$address','$phone','$dob','$nusername','$np
assword','$type')") or die(mysqli_error());
$result=mysqli_query($con, $sql);

echo "<script>alert('Save Successfully!');</script>";


header("location:adminacc.php");
}
}

}
mysqli_close($con);
?>

ADMIN LOGIN PROCESS:

<?php
session_start();

include('includes/dbconn.php');

$myuser = mysqli_real_escape_string($con,
$_POST['username']);
$mypass = mysqli_real_escape_string($con,
$_POST['password']);

$sql = ("SELECT * FROM admininfo where username =


'$myuser' AND password='$mypass'");

$result=mysqli_query($con, $sql);
if (mysqli_num_rows($result)>0){
while ($row = mysqli_fetch_assoc($result))
{
$_SESSION['proprietor_id'] =
$row['id'];
$_SESSION['proprietor_name'] =
$row['name'];
$_SESSION['email'] =
$row['email'];
$_SESSION['phone'] =
$row['contact'];
$_SESSION['username'] =
$row['username']; //get username
$_SESSION['password'] =
$row['password']; //get password
}
header("location:index.php");
}else{

echo '<script>
window.alert("Your not registered user!")
window.location.href="index.php";
</script>';
}
mysqli_close($con);
?>

AVAILABLE:

<?php
session_start();

if (!isset($_SESSION['username'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>

<!-- core CSS -->


<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

</head><!--/head-->

<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>

<nav class="navbar navbar-inverse" role="banner">


<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;">
<!-- <img src="images/logo.jpg" width="15% "/>
--> Petshop Online Website</h4></a>
</div>

<div class="collapse navbar-collapse navbar-right wow


fadeInDown">
<ul class="nav navbar-nav">
<li><a href="index.php"><i class="fa
fa-home"></i>Home</a></li>
<li ><a href="about-us.php">About Us</a></li>
<li class="active"><a href="available.php">Available
Products</a></li>
<li><a href="contacts.php">Contacts</a></li>

</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->

<!--*********************************************START
OF
Availables***********************************************
*-->

<section id="tour-packages" class="center wow fadeInDown">


<div style="font-size:30px; font-family:verdana; font-weight:bold;
color: #8B8B00; text-align:center;">Product</div>
<p style="text-align:center; font-family:verdana;"><br></p>

<div class="container" style="height:400px;">


<iframe src="availableframe.php" width="100%;"
height="400px;" style="border-style:none;"></iframe>

</div>
</div>
</section>
<!--***************************************************
FOOTERS
**********************************************-->
<?php include('includes/footer.php');?>
<!----------loginModal----------->
<?php include('loginModal.php')?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>

<?php

} else if(isset($_SESSION['username'])) {

include('includes/admin.php');

} ?>

AVAILABLE FRAME:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>Petshop Online Website</title>
<!-- core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

<!--*********************************************START
OF NAVIGATION
BAR****************************************-->

<table class="table table-responsive table-hover"


style="border: 1px dashed #8c8b8b;
border-top: 1px dashed #8c8b8b;">

<?php include('includes/dbconn.php');
$count = 0;
$id = 0;
$sql = "SELECT * FROM tblcnp WHERE status = 'available'
order by id desc" or die (mysqli_error($con));

$result=mysqli_query($con, $sql) or die (mysqli_error($con));

if(mysqli_num_rows($result)>=0){
while($row = mysqli_fetch_assoc($result)){
$id = $row['id'];
$count++;
?>

<tr style="border: 1px dashed #8c8b8b; cursor:pointer;">


<td style="border: 1px dashed
#8c8b8b;"><center><strong class="wow fadeInDown"><p
style="margin-top:25px;">No.<?php echo
$count;?></p></strong></center></td>
<td style="border: 1px dashed
#8c8b8b;"><center><img src="<?php echo $row['image']?>"
width="120px;" class="img-responsive img-rounded wow
fadeInDown"></center></td>
<td style="border: 1px dashed #8c8b8b;">
<dl class="dl-horizontal wow fadeInDown"
style="text-align:left">
<dt>Name:</dt> <dd><?php echo
$row['name'];?></dd>
<dt>Description:</dt>
<dd><?php echo $row['description'];?></dd>
<dt>Prize:</dt> <dd><?php echo
$row['prize'];?></dd>
</dl></td>
<td style="border: 1px dashed #8c8b8b;"><button
class="btn btn-success wow fadeInDown" name="order"
type="button" style="margin-top:25px;" data-toggle="modal" data-
target="#orderModal<?php echo $id;?>"><i class="glyphicon
glyphicon-shopping-cart"></i> Add to Cart</button></td>
</tr>
<!-- Modal -->
<div class="modal fade" id="orderModal<?php echo $id;?>"
tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><i
class="glyphicon glyphicon-edit"></i> CUSTOMER
INFORMATION</h4>
</div>
<form class="form-horizontal" enctype="multipart/form-data"
method="post" action="">
<div class="modal-body">
<p>Fields with (*) are required</p>
<div class="row">
<div class="col-lg-2">
<label>Name*</label>
</div>
<div class="col-lg-10">
<input type="text" class="form-control" id="name" name="name"
placeholder="Your name" required>
<input type="hidden" class="form-control" id="fooddid"
name="foodid" value="<?php echo $id;?>" required>
</div>
</div>
<div class="row">
<div class="col-lg-2">
<label>Address*</label></div>
<div class="col-lg-10">
<textarea class="form-control" name="address"
required></textarea>
</div>
</div>
<div class="row">
<div class="col-lg-2">
<label>Contact*</label></div>
<div class="col-lg-10">
<input type="text" name="contact" class="form-control" required
placeholder="Your number">
</div>
</div>
<div class="row">
<div class="col-lg-2">
<label>Quantity*</label></div>
<div class="col-lg-10">
<input type="number" name="oqty" class="form-control"
required placeholder="0">
</div>
</div>
<div class="row">
<div class="col-lg-2">
<label>Order Type*</label></div>
<div class="col-lg-10">
<select name="otype" class="form-control" required>
<option>Select</option>
<option value="Deliver">Deliver</option>
<option value="Pick-up">Pick-up</option>
</select>
</div>
</div>
<div class="row" id="datepickup">
<div class="col-lg-2">
<label>Date Pick up*</label></div>
<div class="col-lg-10">
<input type="date" name="datep" class="form-control" />
</div>
</div>

</div>
<div class="modal-footer">

<button type="submit" class="btn btn-primary"


name="savechanges"><i class="glyphicon
glyphicon-thumbs-up"></i> Order</button>
</div>
</form>
</div>
</div>
</div>
<?php }}

else {echo '<strong style="color:red">No availables data in


server</strong>'; }

?>
</table>

<?php include('includes/dbconn.php');
if(isset($_POST['savechanges'])){
$id = $_POST['foodid'];
$name = $_POST['name'];
$address = $_POST['address'];
$contact = $_POST['contact'];
$qty = $_POST['oqty'];
$otype = $_POST['otype'];
$datep = $_POST['datep'];

$sql =("SELECT * FROM tblorders WHERE cname =


'$name'") or die (mysqli_error());
$result=mysqli_query($con, $sql);
if(mysqli_num_rows($result)==5){
echo '<script>alert("You reach maximum
order of 5");

window.loaction.href="availableframe.php";</script>';
}
else{

$sql = ("INSERT INTO tblorders


VALUES(NULL,'$name','$address','$contact','$id','$qty','new',NULL,
'$otype','$datep')") or die (mysqli_error());
$result=mysqli_query($con, $sql);
if($result==true){
echo
'<script>alert("Your order will be process.The system will follow up
by contacting your number thankyou!");

window.location.href="availableframe.php"</script>';}
else{
echo '<script>alert("Sorry unable to process your request. please try
again later!");

window.location.href="availableframe.php"</script>';
}
} }
?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>

<script type="text/javascript">
$("#datepickup").hide();

$(document).ready(function(){
$("select").change(function(){
$(this).find("option:selected").each(function(){
if($(this).attr("value")=="Pick-up"){

$("#datepickup").show(200);

}
else{
$("#datepickup").hide();

});
}).change();
});
</script>

CONTACTS:
<?php
session_start();

if (!isset($_SESSION['username'])){
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>

<!-- core CSS -->


<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

</head><!--/head-->

<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>

<nav class="navbar navbar-inverse" role="banner">


<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:Pink;">
<!-- <img src="images/logo.jpg" width="15% "/>
-->Petshop Online Website</h4></a>
</div>

<div class="collapse navbar-collapse navbar-right wow


fadeInDown">
<ul class="nav navbar-nav">
<li><a href="index.php"><i class="fa
fa-home"></i>Home</a></li>
<li ><a href="about-us.php">About Us</a></li>
<li ><a href="available.php">Available
Products</a></li>
<li class="active"><a
href="contacts.php">Contacts</a></li>

</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<!--*********************************************START
OF CONTACT
INFO****************************************-->
<body>
<br><br>
<div class="container">
<section id="contact-info">
<center><span style="font-size:35px; font-weight:bold;
font-family:verdana; color:blue;">How to Reach
Us?</span></center>
<div class="left wow fadeInDown">
<
<div class="col-md-6">
<img src="images/logo.jpg" class="img-responsive pull-
right" />
</div>
<div class="col-md-6">
<p class="lead">
<br>
<p><span style="font-size:20px; font-weight:bold; font-
family:verdana; color:red;">PET SPACE</span>
<br><b>Address:</b> Rjs Fg
College,Koramangala,Bangalore -560034<b><br>Tel/Phone:</b>
+91 7795822296 / <b><br>Email Address:</b>
[email protected]</p>
<hr>
<span style="font-size:20px; font-weight:bold; font-
family:verdana; color:Violet;">We are open</span>
<p><b>MONDAY TO FRIDAY -- 8:00AM -
5:00PM</b></p>
</p>
<hr>
<table style="width:80px;">
<tr>
<td><a href="http://www.facebook.com"><img data-
toggle="tooltip" src="images/ico/Facebook.png" class="img-
responsive" /></a></td>
<td><a href="http://www.instagram.com"><img
src="images/ico/icons_Instagram.png" class="img-responsive"
/></a></td>
<td><a href="http://www.twitter.com"><img
src="images/ico/Twitter.png" class="img-responsive" /></a></td>
<td><a href="http://www.youtube.com"><img
src="images/ico/YouTube.png" class="img-responsive" /></a></td>
</tr>
</table>
</div>
</div>

</section>
</div>
<br><br>
<!--***************************************************
FOOTERS
**********************************************-->

<?php include('includes/footer.php');?><!--/#footer-->
<?php include('loginModal.php')?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>

<?php

} else if(isset($_SESSION['username'])) {

include('includes/admin.php');

} ?>

DELETE MESSAGE PROCESS:

<?php
include('includes/dbconn.php');
$customer_id = $_POST['customer_id'];
$sql=("DELETE FROM tbl_customer WHERE customer_id
='$customer_id'") or die(mysqli_error());
$result=mysqli_query($con, $sql);
?>

DELETE MODAL:

<!-- Modal -->


<div class="modal fade" id="deleteModal<?php echo $id?>"
tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><i
class="glyphicon glyphicon-exclamation-sign"></i>
CONFIRMATION</h4>
</div>
<form method="post" action="deletemodalprocess.php">
<div class="modal-body">
<h3>Are you sure your want to delete <strong
style="color:red;"><u><?php echo $name;?></u>?</strong></h3>
<input type="hidden" name="id" value="<?php echo $id?>">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-
dismiss="modal">Close</button>
<button type="submit" name="delete" class="btn btn-
danger"><i class="glyphicon glyphicon-trash"></i> Delete</button>
</div>
</form>
</div>
</div>
</div>

DELETE MODAL PROCESS:

<?php session_start();
include('includes/dbconn.php');
if(isset($_POST['delete'])){
$id = $_POST['id'];
$sql= ("DELETE from tblcnp WHERE id = '$id'") or die
(mysqli_error());
$result=mysqli_query($con, $sql);
header("location:update_cnp.php");

}?>

INDEX:

<?php
session_start();

if (!isset($_SESSION['username'])){
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- <link href="images/logo.jpg" rel="shortcut icon"> -->
<title>Petshop Online Website</title>

<!-- core CSS -->


<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
</head><!--/head-->

<!--*********************************************START
OF NAVIGATION
BAR****************************************-->
<body>

<nav class="navbar navbar-inverse" role="banner">


<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;">
<!-- <img src="images/logo.jpg" width="15% "/> -->
Online Pet Shop Management System</h4></a>
</div>

<div class="collapse navbar-collapse navbar-right wow


fadeInDown">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php"><i class="fa
fa-home"></i>Home</a></li>
<li ><a href="about-us.php">About Us</a></li>
<li ><a href="available.php">Available
Products</a></li>
<li><a href="contacts.php">Contacts</a></li>

</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<!--*********************************************START
SLIDER************************************************--
>

<div class="container-fluid">
<br>
<div class="col-md-9 wow fadeInDown">
<div id="carousel-example-generic" class="carousel slide"
data-ride="carousel" style="background-color:#000; padding:10px;">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-
to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-
to="1"></li>
<li data-target="#carousel-example-generic" data-slide-
to="2"></li>
<li data-target="#carousel-example-generic" data-slide-
to="3"></li>
</ol>

<!-- Wrapper for slides -->


<div class="">

<div class="">
<img src="images/logo.jpeg" alt="" class="">
</div>

</div>

<!-- Controls -->


<a class="left carousel-control" href="#carousel-example-
generic" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-example-
generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>

<!--*********************************************Food
PACKAGES*********************************************
***-->

</div>

<div class="col-md-3" >


<div class="panel panel-default wow fadeInDown">
<!-- Default panel contents -->

<div class="panel-heading wow fadeInDown" style="font-


weight:bold; font-size:16px; color:#36648B;">Welcome To Our
Petshop<i class="glyphicon glyphicon-calendar"></i> <?php echo
date('M d, Y');?></div>

</div>

<div class="panel panel-default wow fadeInDown">


<!-- Default panel contents -->
<div class="panel-heading wow fadeInDown" style="font-
weight:bold; font-size:16px; color:#36648B;">Petshop On Special
Offer </div>
<ul class="list-group">

<li class="list-group-item wow fadeInDown">Dog - <span


style="color:#8B8B00; font-weight:bold;">Php 500 to 600 </span>
<span style="color:#EE5C42;" class="glyphicon glyphicon-ok pull-
right"></span></li>
<li class="list-group-item wow fadeInDown">Fish - <span
style="color:#8B8B00; font-weight:bold;">Php 150 to 300 </span>
<span style="color:#EE5C42;" class="glyphicon glyphicon-ok pull-
right"></span></li>
<li class="list-group-item wow fadeInDown">Bird -
<span style="color:#8B8B00; font-weight:bold;">Php 300 to 450
</span> <span style="color:#EE5C42;" class="glyphicon glyphicon-
ok pull-right"></span></li>

<li class="list-group-item wow fadeInDown">Cat- <span


style="color:#8B8B00; font-weight:bold;">Php 200 to 350 </span>
<span style="color:#EE5C42;" class="glyphicon glyphicon-ok pull-
right"></span></li>
-->

</ul>
<a href="available.php" class="btn btn-success btn-sm pull-
right wow fadeInDown">Click here to View More</a>
</div>
<br>
<div class="panel panel-default wow fadeInDown">
<div class="panel-heading wow fadeInDown"
style="font-size:16px; font-weight:bold; color: #36648B;">Our
Location</div>
</div>

<div class="recent-work-wrap class="wow


fadeInDown"">
<img class="img-responsive wow fadeInDown"
src="images/map.jpg" alt="">

<div class="recent-work-inner">
<a class="preview wow fadeInDown"
href="images/map1.jpg" rel="prettyPhoto"><br><span class="btn
btn-success btm-sm pull-right">Preview Map</span></a>
</div>
</div>
</div>
</div>

</div><!--/.container-->
<br><br>

<!--***************************************************
FOOTERS
**********************************************-->
<footer id="footer" class="midnight-blue wow fadeInDown">
<div class="container">
<div class="row">
<div class="col-sm-6 wow fadeInDown">
&copy; 2021 <a target="_blank" href="#" title="#">Petshop
Online Website</a>. All Rights Reserved (CampCodes).
</div>
<div class="col-sm-6">
<ul class="pull-right wow fadeInDown">
<li class="wow fadeInDown"><a href="index.php"><i
class="fa fa-home"></i> Home</a></li>

<li class="wow fadeInDown"><a


href="contacts.php"><i class="fa fa-phone"></i> Contacts</a></li>
<li class="wow fadeInDown"><a href="#loginModal"
data-toggle="modal" data-target="#loginModal"><i class="fa fa-
lock"></i> Admin</a></li>
</ul>
</div>
</div>
</div>
</footer><!--/#footer-->
<!----loginModal----->
<?php include('loginModal.php');?>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>

<?php

} else if(isset($_SESSION['username'])) {

include('includes/admin.php');

} ?>

LOGIN MODEL:

<div class="modal fade bs-example-modal-sm"


id="loginModal"tabindex="-1" role="dialog" aria-
labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content wow fadeInDown">
<div class="modal-header">
<h4 class="wow fadeInDown"> Petshop Online
Website</h4>

</div>
<br />
<center><i class="fa fa-user"></i> Welcome
Admin</center>
<form class="form-horizontal wow fadeInDown"
method="POST" action="adminlogin_process.php">
<div class="form-group">
<label for="name" class="col-sm-4
control-label wow fadeInDown">Username</label>
<div class="col-sm-6">
<input type="text" class="form-control
wow fadeInDown" id="name" name="username" placeholder="Enter
Username" onKeyPress="return isNotAlphanumeric(event)"
required />
</div>
</div>
<div class="form-group">
<label for="name" class="col-sm-4
control-label wow fadeInDown">Password</label>
<div class="col-sm-6">
<input type="password" class="form-
control wow fadeInDown" id="name" name="password"
placeholder="Enter Password" onKeyPress="return
isNotAlphanumeric(event)" required>
</div>
</div>
<div class="modal-footer wow
fadeInDown" style="padding-right:110px;">
<button type="submit" class="btn btn-
info wow fadeInDown"><span class="glyphicon glyphicon-log-
in"></span> Login</button>
<button type="reset" class="btn btn-
default wow fadeInDown">Clear</button>
<button type="button" class="btn btn-
danger wow fadeInDown" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>

LOGOUT PROCESS:

<?php
session_start();
if(isset($_GET['logout'])) {
unset ($_SESSION['id']);
unset($_SESSION['username']);
unset($_SESSION['password']);

header('location:index.php');

} else {
echo mysqli_error();
}
?>

UPDATE CNP:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="images/foods/logo.png" rel="shortcut icon">
<title>ADMIN | Petshop Online Website</title>

<!-- core CSS -->


<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">

</head><!--/head-->
<body>
<nav class="navbar navbar-inverse" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-
toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php"><h4 class="wow fadeInDown"
style="margin-top:20px; color:#FFF;"><i class="fa fa-coffee"></i>
Ordering Product</h4></a>
</div>

<div class="collapse navbar-collapse navbar-right">


<ul class="nav navbar-nav">
<li class="dropdown active"><a class="dropdown-
toggle wow fadeInDown" data-toggle="dropdown" href="#"><span
class="glyphicon glyphicon-th"></span> Product <span
class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="addcnp.php"> Add Product </a></li>
<li><a href="update_cnp.php"> Update
Product</a></li>
</ul>
</li>
<li id="reservation" class="wow fadeInDown"><a
href="index.php"><span class="glyphicon
glyphicon-calendar"></span> Orders</a></li>
<li id="admin" class="wow fadeInDown"><a
href="adminacc.php"><span class="glyphicon
glyphicon-user"></span> Admin Account</a></li>
<li id="logout" class="wow fadeInDown"><a
id="logoutbtn" href='<?php echo "logout_process.php?logout=1"?
>'><span class="glyphicon glyphicon-share"></span>
Logout</a></li>
</ul>
</div>
</div><!--/.container-->
</nav><!--/nav-->
<br>

<?php
include('includes/updateavailables.php');
?>

<br>
<!--***************************************************
FOOTERS
**********************************************-->

<footer id="footer" class="midnight-blue">


<div class="container">
<div class="row">
<div class="col-sm-12">
<center>&copy; 2019 <a target="_blank" href="#"
title="#">Petshop Online Website</a>. All Rights
Reserved.</center>
</div>
</div>
</div>
</footer><!--/#footer-->

</script>

<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/main.js"></script>
<script src="js/wow.min.js"></script>
</body>
</html>

UPDATE FBW PROCESS:

<?php
session_start();
include('includes/dbconn.php');
if(isset($_POST['pixsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];

//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];

$sql = ("INSERT INTO foods VALUES


(NULL,'$package','$size','$status','$location','$prize')") or die
(mysqli_error());
$result=mysqli_query($con, $sql);

echo '<script>
window.alert("Sucessfully Updated!")
window.location.href="FBW.php";
</script>';
}
else if(isset($_POST['secondsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];
//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];

$sql=("INSERT INTO foods VALUES


(NULL,'$package','$size','$status','$location','$prize')") or die
(mysqli_error());
$result=mysqli_query($con, $sql);

echo '<script>
window.alert("Sucessfully Updated!")
window.location.href="FBW.php";
</script>';
}
if(isset($_POST['thirdsubmit'])){
$package = $_POST['package'];
$size = $_POST['size'];
$prize = $_POST['prize'];
$status = $_POST['status'];

//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];

$sql=("INSERT INTO foods VALUES


(NULL,'$package','$size','$status','$location','$prize')") or die
(mysqli_error());
$result=mysqli_query($con, $sql);
echo '<script>
window.alert("Sucessfully Updated!")
window.location.href="FBW.php";
</script>';
}
mysqli_close($con);

?>

UPDATE MODEL:

<!-- Modal -->


<div class="modal fade" id="updateModal<?php echo $id;?>"
tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-
label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><i
class="glyphicon glyphicon-edit"></i> UPDATE CAKES</h4>
</div>
<form class="form-horizontal" enctype="multipart/form-data"
method="post" action="">
<div class="modal-body">
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Name*</label>
</div>
<div class="col-lg-10">
<textarea name="name" class="form-control" required><?php
echo $name; ?></textarea>
<input type="hidden" class="form-control" id="fdid"
name="fdid" value="<?php echo $id;?>" required>

</div></div><br>
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Description*</label>
</div>
<div class="col-lg-10">

<textarea name="des" class="form-control" required><?php echo


$des; ?></textarea>
</div></div><br>
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Amount*</label></div>
<div class="col-lg-10">

<input type="number" class="form-control" id="prize"


name="prize" placeholder="<?php echo $prize;?>" value="<?php
echo $prize;?>" required>
</div></div><br>
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Status*</label>
</div><div class="col-lg-10">
<select name="stat" class="form-control" required>
<option value="<?php echo $stat;?>"><?php echo
$stat;?></option>
<option>Select</option>
<option value="Available">Available</option>
<option value="Un-Available">Un-Available</option>
</select>
</div></div><br>
<div class="row">
<div class="col-lg-2">
<label class="pull-right">Image</label>
</div>
<div class="col-lg-10">
<img src="<?php echo $image;?>" width="120px;" class="img-
responsive img-rounded" style="margin-bottom:5px;">
<input type="file" class="form-control" id="image"
name="image"required>
</div></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-
dismiss="modal">Close</button>
<button type="submit" class="btn btn-info"
name="savechanges">Save changes</button>
</div>

</form>
</div>
</div>
</div>
<?php include('includes/dbconn.php');
if(isset($_POST['savechanges'])){
$id = $_POST['fdid'];
$name = $_POST['name'];
$des = $_POST['des'];
$stat = $_POST['stat'];
$prize = $_POST['prize'];

//image
$image =
addslashes(file_get_contents($_FILES['image']['tmp_name']));
$image_name = addslashes($_FILES['image']
['name']);
$image_size = getimagesize($_FILES['image']
['tmp_name']);
//
move_uploaded_file($_FILES["image"]
["tmp_name"], "upload/" . $_FILES["image"]["name"]);
$location = "upload/" . $_FILES["image"]
["name"];

$sql = ("UPDATE tblcnp set name = '$name',

description = '$des',

status = '$stat',

prize = '$prize',

image = '$location' WHERE id = '$id'") or die


(mysqli_error());
$result=mysqli_query($con, $sql);
if($result==true){
echo '<script>alert("Update
successfully!");

window.location.href="update_cnp.php"</script>';
}
else{
echo '<script>alert("Sorry unable to
process your request!");

window.location.href="update_cnp.php"</script>';
}

}
mysqli_close($con);
?>
……………….SCREEN SHOTS……………………………….
ADMIN LOGIN:

Product :
Orders:

Contacts:
CONCLUSION & FUTURE ENHANCEMENT

The project “e-pet space” is completed, satisfying the required design


specifications. The system provides a user-friendly interface. The
software is developed with modular approach. All modules in the
system have been tested with valid data and invalid data and
everything work successfully. Thus the system has fulfilled all the
objectives identified and is able to replace the existing system. The
constraints are met and overcome successfully.
The system is designed as like it was decided in the design phase.
This software has a user-friendly screen that enables the user to use
without any inconvenience. This would help the corporation prepare
and organize its schedules more efficiently on the basis of traffic
demand. Besides, it would provide data on concessions given to
various sections.

BIBILIOGRAPHY

For PHP
 https://www.w3schools.com/php/default.asp
 https://www.sitepoint.com/php/
 https://www.php.net/

For MySQL

 https://www.mysql.com/
 http://www.mysqltutorial.org

https://www.apachefriends.org/download.html
:

You might also like