Download as pdf or txt
Download as pdf or txt
You are on page 1of 55

KIT - K A L A IG N A RK A R UNA N I D H I I N S T I T U T E O F

TECHNOLOGY
(AN AUTONOMOUS I NS TIT U TI ON)
C O I MBA T O RE , TAM IL NADU-641402
Affiliated to Anna University, C hennai
Accredited by NAAC with ‘A’ Grade | Accredited by NBA ( C S E , E C E , E E E & M E C H )

ONLINE BOOK SHOP MANAGEMENT

B19CSP502 – M I N I P R O J E C T R E P O R T

Submitted by

ABIRAHAM IMMANVEL A
711520BCS002

in partial fulfilment for the award of the degree of

B A C H E L O R OF E N G I N E E R I N G

IN

C OMPU TER S C I E N C E AND E N G I N E E R I N G

N O V E M B E R 2022

i
KIT - K A L A IG N A RK A R UNA N I D H I I N S T I T U T E O F
TECHNOLOGY
(AN AUTONOMOUS I NS TIT U TI ON)
C O I MBA T O RE , TAM IL NADU-641402
Affiliated to Anna University, C hennai
Accredited by NAAC with ‘A’ Grade | Accredited by NBA (CSE, ECE, EEE & MECH)

BONA FI D E C E R T I F I C A T E

T h i s is to certify that this Mini Project report on ONLINE BOOK SHOP


MANAGEMENT is the bonafide work of ABIRAHAM IMMANVEL
A(711520BCS002) who carried out the project work under my supervision.

Dr . S. R a j a Mohamed, M. E ., Ph.D. Ms.R.Sumathy


HE AD O F T H E Assistant professor
D E P A RT M E N T C ompute r C ompute r Science and
Science and Enginee ring Engineering
K I T - Kalaignarkarunanidhi K I T -Kalaignarkarunanidhi
Institute of Technology. Institute o f Technology

Submitted for mi ni project viva-voce examination held on ___________________

Signature of the examiner __________________________

iii
ACKNOWLEDGEMENT

A t this delightful moment of having accomplished my project I extend my sincere


thanks to T hi r u. PON G A L U R N. PA L AN I SAM Y, Founder and
Chai rman, KIT -K al a i gnarkarunani dhi Institute of Technology, for providing
amenities and lab facili ties for completing the project work.

I would extend my sincere thanks to Mrs. INDU MU R U GE SAN ,


Vi ce-Chai rperson and Mr. A. SU RIY A , Executive Trustee, KIT -
K a l a i gnarkarunani dh i Institute of Technology, for empowering me with excellent
infrastructure and able administration.

My heartfelt gratitude to D r . N. MOHAN DAS G AND HI, the


honourable Principal and D r . M. R AM E S H, the Vi ce Principal for the special
motivation and for providing me an opportunity and essential faciliti es i n carrying out
this project.

I also express my sincere thanks to the HOD, D r. S. R A J A


MO H AM E D , Department of Computer Sci ence and Engineering, for his support
and encouragement extended towards this project.

T he feeling of gratitude and ful filling my duty would not have been complete
without my Project Supervisor, Mrs.R .SUMAT HY Assistant Professor Department
of Computer Science and Engineering. Speci al appreciation for the timely help and
guidance received.

I would also wish to express my gratitude to my mentors for the support rendered
throughout the project, and I thank all my faculty members for their valuable support.

L ast but never the least, I place my feeling of gratitude to my parents without
whom, making it this far wouldn’t have been possible.

Abiraham Immanvel A

iii
Abstract
The main objective of the project is to create an online book store that allows
users to search and purchase a book online based on title, author and subject. The
selected books are displayed in a tabular format and the user can order their books
online through credit card payment. Using this Website, the user can purchase a book
online instead of going out to a book store and wasting time. There are many online
book stores like Powell’s, Amazon which were designed using Html. I want to develop
a similar website using .NET, SQL Server. Online Book store is an online web
application where the customer can purchase books online. Through a web browser the
customers can search for a book by its title or author, later can add to the shopping cart
and finally purchase using credit card transaction. The user can login using his account
details or new customers can set up an account very quickly. They should give the
details of their name, contact number and shipping address. The user can also give
feedback to a book by giving ratings on a score of five. The books are divided into many
categories based on subject like Software, Database, English, and Architecture etc. The
Online Book Store Website provides customers with online shopping through a web
browser. A customer can, create, sign in to his account, place items into a shopping cart
and purchase using his credit card details. The Administrator will have additional
functionalities when compared to the common user. He can add, delete and update the
book details, book categories, member information and also confirm a placed order.
This application is developed using JSP, HTML 5, AND PHP Programming languages.
The Master page, data sets, data grids, user controls are used to develop the Online
Book store.

4
Chapter No Title Page No

Abstract 4

1 Introduction 7

2 System Study 8

2.1 System analysis 8

2.2 Existing System 8

2.3 Proposed solution 9

3 System specification 11

3.1 Hardware Specification 11

3.2 Software Specification 11

3.3 Software description 12

4 Requirements specification 15

4.1 Interface requirements 16

5 System design 19

5.1 General characteristics 19

5.2 Challenges 20

5.3 Procedural design 21

6 System testing 38

7 System implementation 40

8 Conclusion 41

9 Bibliography 43

9.1 Screenshot 50

5
Table of figures and Table

Figure1 Context Diagram of System----------------------------------------------------------21


Figure2 Detail DFD for selling and purchasing of Book-----------------------------------22
Figure3 Use case diagram for entire System-------------------------------------------------23
Figure4 Use Case Diagram for Computerized Parts of the System-----------------------24
Figure5 Class Diagram for Entire System----------------------------------------------------25
Figure6 Searching books and reservation-Sequence Diagram-----------------------------26
Figure7 Searching Books and Reservation- Activity Diagram----------------- -----------27
Figure8 Store Sales Sequence Diagram-------------------------------------------------------28
Figure9 Store sales- Activity Diagram--------------------------------------------------------29
Figure10 Inventory Management – Search Books--------------------------------------------30
Figure11 Code based Search---------------------------------------------------------------------31
Figure12 Category based search-----------------------------------------------------------------32
Figure13 Books-Sequence Diagram----------------------------- -------------------------------33
Figure14 Remove books from inventory------------------------------- ---------------- -------34
Figure15 Sales summary sequence diagram---------------------------------------------------35
Figure16 Entity – Relationship Diagram-------------------------------------------------------36
Figure17 Registration form----------------------------------------------------------- -----------49
Figure18 Login form------------------------------------------------------------------------------50
Figure19 Admin dashboard-----------------------------------------------------------------------51
Figure20 Admin product panel-------------------------------------------------------------------51
Figure21 Admin orders panel--------------------------------------------------------------------52
Figure22 Admin User accounts---------------------- -------------------------------------------52
Figure23 Message Panel--------------------------------------------------------------------------53
Figure24 User Home page------------------------------ -----------------------------------------53
Figure25 User about Page------------------------------------------------------------------------54
Figure26 Contact page----------------------------------------------------------------------------54
Figure27 User order history page------------------------------ ---------------------------------55
Figure28 User Cart--------------------------------------------------- -----------------------------55

6
Chapter 1
Introduction
The Bookshop Automation System is to automate all operations in a bookshop.
Generally, it includes the Order Processing, Stock Management and Accounts
Management.

Before automating a bookshop, we have to understand the concept of automation.


In automation of any operation, we make a system which do work automatically as the
respective events occurs, for which it is meant.

There are some common examples of the automation like that auto pilot system in
the aircraft, automatic home systems (electric system, water system, fire alarm system,
doors system etc). These are best examples of the automation systems.

Here we are trying to develop such type system which is provide the automation
on the any type of the bookshop. That means a shop which has the type system which
provides the facility to the customers of the shop to purchase the books from the shop
without any complexity.

For example, any customer wants to purchase any book from the shop than first
of all customer just choose the stream of the book than he/she can see the more than one
type of books there and then he/she can choose the specific book from there. And then
purchase it by paying price on bookshop cash counter and receives its invoice.

7
Chapter 2
System Study

2.1 SYSTEM ANALYSIS


This System analysis explains system and proposed system, and also it explains the
benefits of proposed system and disadvantages of existing system. In the existing system the
advertisement is prepared and marketed manually. But in our proposed system all these
processes are carried out though the internet that is online Management services. This proposed
system having many advantages than the manual system.

2.2 EXISTING SYSTEM


At present, the Wholesale and Retail outlets are working under manual management.
All records related to Products, Sales, Suppliers, Orders, Payment are stored in registers.
To manage the whole data, the person maintaining records has to take great pain. Various
registers have to be maintained for each separate process.

Existing system, used for the Management of sales of electronic products, is


completely dependent on human actions and responses (Manual Management), which
couldn’t be free from errors. In each process whether it is Product Management,
Maintaining Customer Records, Payment Management, Report Generation, user has to pay
attention to a greater extent while performing the tasks.

During the manual management, the tasks, which are to be performed by its users, are:
 Maintenance of Customers Records (including the new and the existing customers),

New Products launched in the market.


 Maintenance of Customers Payment Record (including instalment details).

 Issue Orders for more Stock.

 Maintenance of Suppliers and Staff Records.

 Searching and answer the query asked by other users.

 Present monthly, quarterly or annual Reports.


8
All these operations will lead to continuous modifications in the database (Here Registers).

 In case of Customer records, all information related to customers and the product

which the customer has purchased is to be stored in the Customers register. If the
changes in the customer profile (like Phone no, Address) occur, registers must be
updated.
 In case of new product launched, all the entries like product name and brand

must be same in the register (except Model number).


 For the maintenance of the payment records, the customer register has to be

checked to know the details of the product purchased by customer. Monthly


payment of instalment needs record in the register to be updated.
 During issuing order of more stock, the product register is required to

check to availability of stock in hand.


 To generate the reports based on the management requirement, will require

extensive searching of records.


In case of Supplier and Staff Record Management, the registers need to be updated time to
time as information (like Phone No., Address) changes frequently.

2.3 PROPOSED SOLUTION


Here our main goal is that we are just solving the problem of selling of book in the
particular very big book shop which have large number of books within it. Since there are
many people would be in the shop to provide the good service to the customers of the book
shop. But it is not possible to provide the good service to the customers because it is not
possible by the manually. There are some problems which may be solving by our application.
Which are as follows:
Fast service: - In the sense of fast service by this we can give the fast service
(entertain, selling, purchasing, money deposits etc.) to the customers of the shop.
Reduces the workload: - in the sense of workload reduction that means all the
tasks are done by the automated system/machine which give the rest to the shop
owner.

9
Good management: - in the sense of good management our system provides the
good management in the book keeping and provide the good scheduling in the
all the operations of the book shop.

Provide the satisfaction to the customers: - In the sense of satisfaction of the


customer, because customer is doing its all operations with the system on his
requirements and he is completely satisfied because our system is fulfilling its all
requirements.

Able to do all type of money transactions: - we are developing the type system
which is able to do all type of money transactions (debit & credit cards and
internet banking etc.)

Remove the complexity in the operations: - our system is providing the real-life
features to providing the service since the user of the system in not feel the
complexity in its operations.

Provide the long-term relationship with the customers: - our system is


providing the long-term relationship with the customers which are more
important for the good future benefits of the shop.

Provide the flexibility in the purchasing in the books: - it provides the very easy
way to purchase the book from the book shop.

Networking: -It covers the maximum space through its network for its service
at anytime and anywhere.

10
Chapter 3
SYSTEM SPECIFICATION

3.1 HARDWARE SPECIFICATION


processor : Pentium IV 2.4 GHz
Hard Disk : 80GB
RAM : 256 MB

3.2 SOFTWARE SPECIFICATION


Operating System : Mac Os, Widows
Programming Language : HTML,PHP,CSS,JS
Database : MYSQL
Software used : VS CODE, XAMPP

11
3.3 SOFTWARE

HTML
HTML, in full hypertext markup language, a formatting system for displaying
material retrieved over the Internet. Each retrieval unit is known as a Web page (from world
wide web), and such pages frequently contain hypertext links that allow related pages to be
retrieved. HTML is the markup language for encoding Web pages. It was designed by the
British scientist Sir Tim Berners-Lee at the CERN nuclear physics laboratory in Switzerland
during the 1980s. HTML markup tags specify document elements such as headings,
paragraphs, and tables. They mark up a document for display by a computer program known as
a Web browser. The browser interprets the tags, displaying the headings, paragraphs, and
tables in a layout that is adapted to the screen size and fonts available to it.
HTML documents also contain anchors, which are tags that specify links to other Web pages.
An anchor has the form <A HREF= “http://www.example.com”> Example</A>, where the
quoted string is the URL (universal resource locator) to which the link points (the Web
“address”) and the text following it is what appears in a Web browser, underlined to show that
it is a link to another page. What is displayed as a single page may also be formed from
multiple URLs, some containing text and others graphics.

CSS
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended
to simplify the process of making web pages presentable. CSS handles the look and feel part of
a web page. Using CSS, you can control the colour of the text, the style of fonts, the spacing
between paragraphs, how columns are sized and laid out, what background images or colours
are used, layout designs, variations in display for different devices and screen sizes as well as a
variety of other effects. CSS is easy to learn and understand but it provides powerful control
over the presentation of an HTML document. Most commonly, CSS is combined with the
markup languages HTML or XHTML. CSS is created and maintained through a group of
people within the W3C called the CSS Working Group. The CSS Working Group creates
documents called specifications. When a specification has been discussed and officially ratified
by the W3C members, it becomes a recommendation. These ratified specifications are called

12
recommendations because the W3C has no control over the actual implementation of the
language. Independent companies and organizations create that software.

PHP
PHP is a script language and interpreter that is freely available and used primarily on
Linux Web servers. PHP, originally derived from Personal Home Page Tools, now stands for
PHP: Hypertext Pre-processor, which the PHP FAQ describes as a "recursive acronym." PHP
executes on the server, while a comparable alternative, JavaScript, executes on the client. PHP
is an alternative to Microsoft's Active Server Page (ASP) technology. As with ASP, the PHP
script is embedded within a Web page along with its HTML. Before the page is sent to a user
that has requested it, the Web server calls PHP to interpret and perform the operations called
for in the PHP script. An HTML page that includes a PHP script is typically given a file name
suffix of ".php" ".php7," or ".phtml". Like ASP, PHP can be thought of as "dynamic HTML
pages," since content will vary based on the results of interpreting the script.

JAVASCRIPT
JavaScript is a programming language commonly used in web development. It was
originally developed by Netscape as a means to add dynamic and interactive elements to
websites. While JavaScript is influenced by Java, the syntax is more similar to C and is based
on ECMAScript, a scripting language developed by Sun Microsystems. JavaScript is a client-
side scripting language, which means the source code is processed by the client's web browser
rather than on the web server. This means JavaScript functions can run after a webpage has
loaded without communicating with the server. For example, a JavaScript function may check
a web form before it is submitted to make sure all the required fields have been filled out. The
JavaScript code can produce an error message before any information is actually transmitted to
the server. Like server-side scripting languages, such as PHP and ASP, JavaScript code can be
inserted anywhere within the HTML of a webpage. However, only the output of server-side
code is displayed in the HTML, while JavaScript code remains fully visible in the source of the
webpage. It can also be referenced in a separate .JS file, which may also be viewed in a
browser.

13
MYSQL
Microsoft SQL Server is a relational database server, developed by Microsoft: It is a
software product whose primary function is to store and retrieve data as requested by other
software applications, be it those on the same computer or those running on another computer
across a network (including the Internet). There are at least a dozen different editions of
Microsoft SQL Server aimed at different audiences and for different workloads. True to its
namesake, Microsoft SQL Server's primary query languages are T-SQL and ANSI SQL.

XAMPP
XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache, M
stands for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-source
package of web solutions that includes Apache distribution for many servers and command-line
executables along with modules such as Apache server, MariaDB, PHP, and Perl. XAMPP
helps a local host or server to test its website and clients via computers and laptops before
releasing it to the main server. It is a platform that furnishes a suitable environment to test and
verify the working of projects based on Apache, Perl, MySQL database, and PHP through the
system of the host itself. Among these technologies, Perl is a programming language used for
web development, PHP is a backend scripting language, and MariaDB is the most vividly used
database developed by MySQL.

14
Chapter 4
Requirement Specification

Book shop automation system (BAS)


 BAS should help the customers query whether a book in a stock the user can query the

availability of a book either by using the book title or by using the name of author.
 If the book is not currently sold by the bookshop, then the customer is asked to enter the

full detail of the book for procurement of the book by the bookshop.
 The customer can also provide his e-mail address and mobile, so that he can be

intimated automatically by the software as and when the book copy received.
 If a book in stock, the exact number of copies available and the rack number in which

the book is located should be displayed.


 If a book not in the stock, the query for the book is used to increment a request field for

the book.
 The manager can periodically view the request field of the book arrive at a rough

estimate regarding the current demand for different books.


 BAS should maintain the price of various books.

 BAS should allow employees to update inventory whenever new supply arrives. Also,

upon request by the owner of book shop.


 BAS should generate sales statistics (viz, book name, publisher, ISBN number, number

of copies sold and the sales revenue) for any period.


 The sales statistics will help the owner to know the exact business done over any period

of time and also determine the inventory level required for various books.
 The inventory level required for a book is equal to the number of copies of the book sold

over a period of one week multiplied by the average number of weeks it takes to
procure the book from its publisher.
 Every day the bookshop owner would give a command for BAS to print the book which

have fallen below the threshold and the number of copies to be procured along with the
full address of the publisher

15
4.1 Interface Requirements
User Interfaces
The system users are: -

 The book shop management as the system administrators.

 Book shop cashiers as the normal users.

System administrators
The administrator logs on to the system by inserting administrator user name
and password. Administrator can do any transaction as well as editing all details inside
the database such as adding, editing and deleting a new user or adding, editing and
deleting items.

System users
System users are the ones who at the cashier and do transactions with
customers. The users have to enter the user’s name and password and click on ‘Login’
button. If user makes any mistake the system will ask for the correct username and
password until he enters the correct one.

When the user wants to do any transaction, user has to click on the menu icon
on the main menu. Then the transaction window will open. User has to enter the Book
No and press enter. Then user has to select the transaction type and the quantity. Then
click on the update button. Then the system will automatically update the database
according to the transaction type. Hardware Interfaces

The Book Shop System is having the following hardware:

 Book shop main computer

 another pc

16
Software Interfaces

 System will interact with the system database to record all transaction
data.

Performance Requirements:

 The response time for menu changes will be not more than 3 seconds.

 The time for search for a book will not more than 3 seconds.

 The time to print the stock valuation will not be more than 3 seconds.

 The time taken to update the database or get information from the

database will not be more than 2 seconds.


 The time taken to prompt message boxes will not more than 2 seconds.

Design Constraints:

 The system is based on menu driven interfaces. Menu selection will

be done by using the mouse and the key board keys.


 Confirmation messages on taken actions, input acceptance and

error conditions will be displayed after each input.


 Error messages will be displayed at the time of detection of input errors

and the system errors.


Attributes:
Qualities of the product

Reliability
The system is thoroughly tested at the time of delivery so that
computational errors are minimized.

Maintainability
To make ease of maintain the system to the Book shop administrators the
user manual and the system manual is provided at the delivery. Each
module is designed independently so that at any change of a request can be
modified easily.

17
Security
Only the administrators have the authority to edit details in Users and
Items tables. No one can enter the system without a username and a
password. Normal system users cannot access the Administrators login. All
deleting actions are notified by a message box asking to confirm deletion.

18
Chapter 5
System design
5.1 General Characteristics
Product Function
The Book Shop System will perform following functions:

 User Identification

 Select service

 Record purchases

 Record sales

 Search for existing books

 Calculate budget

 Prepare stock evaluation

 Display stock details

User Characteristics

 The users (Book shop officers) should have a basic computer literacy to work

with a computer.
 The users of this software should be well trained and should give the relevant

user documentation, reference materials and instructions.


 The user should be able to follow simple instructions given by the system.

General Constraints
The following are the general design constraints
 Data encoding scheme: ASCII character.

 Total available memory for programming, logic, tables etc as specified in

this document should not be exceeded.

19
Assumptions and Dependencies

 The bookshop’s database is accessible in real time

 The bookshop’s database will be modified to identify accounts.

5.2 Challenges

 It was a difficult task to convince the staff members and the management

about the new technologies that are going to use in the proposed system
and it was difficult to win over them.

 It was difficult to get the confirmation and the approval for the cost

estimation for the proposed system form the top management.

 It was a time-consuming task to make the staff members convince

about the proposed system and make the cashiers at the counter sure
about that they will not lose their jobs because of the system.

 It was time consuming to collect the relevant information form the users

due to the busy environment in the company.

 There was resistance from the cashiers for the system due to the fear of

losing their jobs and had to face this challenge also during that period.

20
Procedural design:

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CHAPTER 5

SYSTEM TESTING

Testing is a process of checking whether the developed system is working


according the original objectives and requirements. Testing is a set of activities
that can be planned in advance and conducted systematically. Testing is vital to
the success of the system. System testing makes a logical assumption that if all the
parts of the system are correct, the global will be successfully achieved. In
adequate testing if not testing leads to errors that may not appear even many
months. This creates two problems,

 The time lag between the cause and the appearance of the problem.
 The effect of the system errors on the files and records within the
system.

A small system error can conceivably explode into a much larger Problem. Effective
testing early in the purpose translates directly into long term cost savings from a
reduced number of errors. Another reason for system testing is its utility, as a user-
oriented vehicle before implementation. Testing is the stage of implementation of
which aimed at ensuring that the system works accurately and efficiently before live
operation commences. Testing is vital to the success of the system. System testing
makes a logical assumption that if all the parts of the system are correct and the goal
will be achieved. The steps involved in testing are,

1. Unit testing
2. Integration testing
3. Acceptance testing & Validation testing

38
Unit Testing
Unit testing focuses verification efforts on the smallest of the software design
of the module. This is also known as module testing. Unit tests ensure that each path
of a business process performs accurately to the documented specifications,
functionality and contains clearly defined inputs and expected and expected results.

Integration Testing
Integration testing is any type of software testing that seeks to verify the
interfaces between components against a software design. Software components may
be integrated in an iterative way or all together ("big bang"). Normally the former is
considered a better practice since it allows interface issues to be localized more
quickly and fixed.

Acceptance testing
Acceptance testing can mean one of two things:
1. A smoke test is used as an acceptance test prior to introducing a new build
to the main testing process, i.e., before integration or regression.
2. Acceptance testing performed by the customer, often in their lab
environment on their own hardware, is known as user acceptance testing
(UAT). Acceptance testing may be performed as part of the hand-off process
between any two phases of development.

Validation Testing
Validation succeeds when the developed system functions as per the requirements of
the customer. Software validation is achieved through a series of black box that
demonstrate the conformity with the requirements. Deviations or errors in this step
are corrected.

39
CHAPTER 6
SYSTEM IMPLEMENTATION
System implementation is the process of making the newly designed system
fully operational and consistent in performance. The following step has been followed
in the implementation of the system.

 Implementation in planning
 User Training

As the part of implementation, the system is taken the site and loaded on to client's
computer. Some of the user's level, exposure to computer etc. These users are trained
first and they run the system for a month. A detailed documentation is prepared for
the employees and they trained to access the software. These users are trained first
and they can run the system for a month.

After installation of software, the hardware specifications are checked. If hardware


specifications are satisfactory, then the software is loaded for pilot run. User training
starts at this time itself. Users will be given a user manual, which documents how to
use the system and all the exception handling procedures.

System implementation is the stage of the project when the theoretical design is
turned into a working system. If the implementation stage is not correctly planned and
controlled, it can be chaos.

40
Chapter 8
Conclusion
This Bookshop Automation System is an attempt to overcome the
present inefficient and time-consuming process of locating, reserving and
purchasing quality reading materials available in the store. Currently, clients
have to go through a time-consuming process to perform aforementioned tasks
which cause waste of labour and firms’ resources. Through our automated book
store solution, we provide an easy way of searching, reserving and purchasing
of books.
User data are validated and checked for authenticity with the data stored
in the system database. All the newly coined processes will address time
consuming, ineffective and inefficient areas of the existing system which has
been wasting a lot of firm’s resources such as, labour, electricity, equipment,
products and services, while discouraging customers to make purchases and
repelling clients from the book store.
Proposed system will support both clients and the store in many areas.
It’s worth analysing and identifying the benefits as it would directly influence
the productivity of the store.
Customer satisfaction plays the most vital role in any form of product
and service rendering store as the existence of any firm solely depends on its
customer-base. Therefore, every system should facilitate the customer
satisfaction up to a certain extent which is feasible from the company
perspective.

41
The aforementioned facts ensure customer satisfaction to a greater extent
benefiting the store in:

 Retaining current customers


 Tempting current customers to attract their friends to the store Attracting new
customers
 Enhancing the customer faith on the firm due to secure transaction techniques
while temping customers to make more online purchases
 Identifying profitable customers
 Identifying different categories of customers
 Making necessary alterations and plans to address broader range of customers
 Identifying key areas of the inventory which need to be maintained at a healthy
stock limit
 Analysing trends to make more effective management decisions and
development of new strategies to increase profit

These particulars will make sure the broadening the customer base of
the store which will have good impact on the sales and revenue of the
store.

42
Chapter 9
Reference and Bibliography
Australian Computer Society, 2003, ASC Code of Ethics. Retrieved March 15,
2007, from http://www.acs.org.au.htm

Elmasri, R. and Navathe, S. 2004. Enhanced Entity Relationship and UML. In


Fundamentals of Database Systems, 3rd Edition

Out Source 2 India n.d. :Why Do Software Projects Fail? Retrieved 22 March
2007 from
http://www.outsource2india.com/software/SoftwareProjectFailure.asp

Six Sigma n.d. : Applying Six Sigma to Software Implementation Projects


Retrieved 22 March 2007 from
http://software.isixsigma.com/library/content/c040915b.asp

Sommerville, Ian 2004. Object Oriented Design Software Engineering, 7th


Edition

Start your journey the easy way n.d : Retrieved 4th February 2007 from
http://www.liverpooljohnlennonairport.com/TravelServices/CarParking.php

Ramakrishnan, R. and Gehrke, J. 2003. The Relational Model In Database


Management Systems, 3rd Edition

43
APPENDIX
Home.php

<?php

include 'config.php';

session_start();

$user_id = $_SESSION['user_id'];

if (! isset($user_id)) {
header('location:login.php');
}

if(isset($_POST['add_to_cart'])) {

$product_name = $_POST['product_name'];
$product_price = $_POST['product_price'];
$product_image = $_POST['product_image'];
$product_quantity = $_POST['product_quantity'];

$check_cart_numbers = mysqli_query($conn, "SELECT * FROM


`cart` WHERE name = '$product_name' AND user_id =
'$user_id'") or die('query failed');

if(mysqli_num_rows($check_cart_numbers) > 0) {
$message [] = 'already added to cart!';
} else {
mysqli_query($conn, "INSERT INTO `cart`(user_id, name, price,
quantity, image) VALUES('$user_id', '$product_name',
'$product_price', '$product_quantity', '$product_image')") or
die('query failed');
$message [] = 'product added to cart!';
}

?>

44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>home</title>

<! -- font awesome cdn link -->


<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-
awesome/6.0.0/css/all.min.css">

<! -- custom css file link -->


<link rel="stylesheet" href="css/style.css">

</head>
<body>

<?php include 'header.php';?>

<section class="home">

<div class="content">
<h3>Hand Picked Book to your door. </h3>
<p>Selling almost every genre of book, this bookstore continues to
be one of the most popular bookstores amongst Delhiites. </p>
<a href="about.php" class="white-btn">discover more</a>
</div>

</section>

<section class="products">

<h1 class="title">latest products</h1>

<div class="box-container">

45
<?php
$select_products = mysqli_query($conn, "SELECT * FROM
`products` LIMIT 6") or die('query failed');
if(mysqli_num_rows($select_products) > 0) {
while ($fetch_products =
mysqli_fetch_assoc($select_products)) {
?>
<form action="" method="post" class="box">
<img class="image" src="uploaded_img/<?php echo
$fetch_products['image']; ?>" alt="">
<div class="name"><?php echo $fetch_products['name']; ?></div>
<div class="price">$<?php echo $fetch_products['price']; ?>/-
</div>
<input type="number" min="1" name="product_quantity"
value="1" class="qty">
<input type="hidden" name="product_name" value="<?php echo
$fetch_products['name']; ?>">
<input type="hidden" name="product_price" value="<?php echo
$fetch_products['price']; ?>">
<input type="hidden" name="product_image" value="<?php echo
$fetch_products['image']; ?>">
<input type="submit" value="add to cart" name="add_to_cart"
class="btn">
</form>
<?php
}
} else {
echo '<p class="empty">no products added yet! </p>';
}
?>
</div>

<div class="load-more" style="margin-top: 2rem; text-align:center">


<a href="shop.php" class="option-btn">load more</a>
</div>

</section>

<section class="about">

46
<div class="flex">

<div class="image">
<img src="images/bg.jpg" alt="">
</div>

<div class="content">
<h3>about us</h3>
<p>Bookly works to connect readers with independent
booksellers all over the world.</p>
<a href="about.php" class="btn">read more</a>
</div>

</div>

</section>

<section class="home-contact">

<div class="content">
<h3>have any questions?</h3>
<p>Feel free to ask any questions regarding our website or books
we sell. Any queris contact us</p>
<a href="contact.php" class="white-btn">contact us</a>
</div>

</section>

<?php include 'footer.php'; ?>

<! -- custom js file link -->


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

</body>
</html>

47
Header.php
<?php
if(isset($message)) {
foreach ($message as $message) {
echo '
<div class="message">
<span> ‘. $message.'</span>
<i class="fas fa-times"
onclick="this.parentElement.remove();"></i>
</div>
';
}
}
?>

<header class="header">

<div class="header-1">
<div class="flex">
<div class="share">
<a href="#" class="fab fa-facebook-f"></a>
<a href="#" class="fab fa-twitter"></a>
<a href="#" class="fab fa-instagram"></a>
<a href="#" class="fab fa-linkedin"></a>
</div>
<p> new <a href="login.php">login</a> | <a
href="register.php">register</a> </p>
</div>
</div>

<div class="header-2">
<div class="flex">
<a href="home.php" class="logo">Bookly. </a>

<nav class="navbar">
<a href="home.php">home</a>
<a href="about.php">about</a>
<a href="shop.php">shop</a>
<a href="contact.php">contact</a>
<a href="orders.php">orders</a>

48
</nav>

<div class="icons">
<div id="menu-btn" class="fas fa-bars"></div>
<a href="search_page.php" class="fas fa-search"></a>
<div id="user-btn" class="fas fa-user"></div>
<?php
$select_cart_number = mysqli_query($conn, "SELECT *
FROM `cart` WHERE user_id = '$user_id'") or die('query failed');
$cart_rows_number =
mysqli_num_rows($select_cart_number);
?>
<a href="cart.php"> <i class="fas fa-shopping-cart"></i>
<span>(<?php echo $cart_rows_number; ?>)</span> </a>
</div>

<div class="user-box">
<p>username: <span><?php echo $_SESSION['user_name'];
?></span></p>
<p>email: <span><?php echo $_SESSION['user_email'];
?></span></p>
<a href="logout.php" class="delete-btn">logout</a>
</div>
</div>
</div>

</header>

49
Output
Registration form:

Login form:

50
Admin dashboard:

Admin product panel:

51
Admin orders panel:

Admin User accounts:

52
Message Panel:

User Home page:

53
User about Page:

Contact page:

54
User order history page:

User Cart:

55

You might also like