Tải bản đầy đủ (.doc) (28 trang)

báo cáo đồ án lập trình web _ lập trình web sai bán hoa quả có kết nối database hệ quản trị sql bằng tiếng anh

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1001.79 KB, 28 trang )

VINH UNIVERSITY
TECHNICAL INSTITUTE AND TECHNOLOGY

WEB PROGRAMMING
BUILDING FRUITS SALE WEBSITE

TEACHER: TS. Cao Thanh Sơn
Students :
+ Hoàng Ngọc Cường : 18574802010082
+ Hồ Văn Cường : 18574802010178
Class : K59-CLC-CNTT

NGHE AN, 06/20201


2


CONTENTS
PREFACE........................................................................................................................... 4
CHAPTER 1. SYSTEM SURVEY AND ANALYSIS.........................................................6
I. ANALYSIS OF TOPIC REQUIREMENTS..................................................................6
1. FUNCTION..............................................................................................................6
2. REQUIREMENTS....................................................................................................6
II. ANALYSIS AND DESIGN SYSTEM.........................................................................7
1. SITUATION STUDY AND NEW SYSTEM BUILDING........................................7
2. SYSTEM ANALYSIS...............................................................................................8
2.1 Scene-level data flow chart.....................................................................................9
2.2 Bottom-level functional hierarchy diagram..........................................................10
2.2.1 View product information function....................................................................10
2.2.2 Item select function............................................................................................11


2.2.3 Member registrantion function...........................................................................11
2.2.4 Search function..................................................................................................12
2.2.5 Order function....................................................................................................12
2.2.6 Feeback-contact function....................................................................................13
2.3 function block diagram Add new...........................................................................14
2.4 Functional diagram Update...................................................................................15
2.5 Select and orders function block diagram..............................................................16
2.6 Block diagram of member registration function...................................................17
2.7 Build entity relational model (ERD)......................................................................18
2.7.1 Diagram.............................................................................................................. 18
2.8 Several tables Represent data elements.................................................................18
2.8.1 Description of PRODUCT TYPE table..............................................................18
2.8.2 CUSTOMERS table description.........................................................................18
2.8.3 Description of the table PRODUCTS.................................................................19
2.8.4 DETAILS ORDERING table description...........................................................19
2.8.5 Description of ORDER table..............................................................................19
2.8.6 Description of the EMPLOYEE table................................................................20
2.8.7 SUPPLIER table description..............................................................................20
2.8.8 SUPPORT table description...............................................................................20
2.8.9 Description of the ADMIN table........................................................................20
2.8.10 Description of the ARTICLE table...................................................................21
2.8.11 Description of the MENU table........................................................................21
CHAPTER 2. ANALYTICAL DESIGN............................................................................22
I. Some program interface images..................................................................................22
1. Home page section..................................................................................................22
2. Admin interface.......................................................................................................22
3. The page interface allows customers to choose goods.............................................23
4. Shopping cart interface............................................................................................23
CHAPTER 3 : SUMMARY OF ASSESSMENT AND EVELOPMENT DIRECTION OF
THE APP........................................................................................................................... 24

I. What the program can do............................................................................................24
1. For the user, the program has launched...................................................................24
2. For the administrator, the program offered..............................................................24
II . Points that can't be done and solutions......................................................................24
III. The development direction of the program...............................................................24
PRESENTER....................................................................................................................26
3


4


PREFACE
Today, the application of information technology and computerization is
considered as one of the decisive factors in the activities of governments,
organizations, as well as companies, it plays a very important role. important, can
make powerful breakthroughs.
Along with the continuous development of computer technology and electronic
networks, information technology also has high-class technologies and in turn
conquers one peak after another. The Internet is one of the products of great value and
is increasingly becoming an indispensable tool, the main foundation for the
transmission and exchange of information globally.
Now, everything related to information becomes easy for users: just have a
computer connected to the internet and a stream of data to search almost instantly…
the whole world about your problem. interested will appear, full of information,
pictures and sometimes even sounds if you need…
Using the internet, we have done many jobs at a much faster speed and at a much
lower cost than the traditional way. It is this, which has promoted the birth and
development of e-commerce and e-government around the world, significantly
changed the face of culture, and improved the quality of people's lives.

In production and business activities, now, e-commerce has affirmed its role in
promoting and promoting the development of enterprises. For a store or shop, it is
necessary to promote and introduce to customers new products that meet the needs of
customers. So how to promote it is to build a Website for your store to promote all
your products for sale.
Therefore, I have implemented the project "BUILDING A WEBSITE SELL
FRUIT ONLINE" for a fruit shop XYZ.
The store owner puts those products on his website and manages it with that
website. Customers can order products on the website without going to the store. The
shop owner will send the product to the customer when the customer places an order.
With the enthusiastic guidance of Mr. Cao Thanh Son, the group completed this
project report. Although we have tried our best to learn, analyze, design and install the
system, it is inevitable that there will be shortcomings. I look forward to receiving
your understanding and suggestions. Thank you sincerely.
5


Students :
+ Hoàng Ngọc Cường : 18574802010082
+ Hồ Văn Cường : 18574802010178
+ Class : K59-CLC-CNTT
Nghe An , June 6, 2021

6


CHAPTER 1. SYSTEM SURVEY AND ANALYSIS

I. ANALYSIS OF TOPIC REQUIREMENTS
Part 1. SUBJECT NAME

“Building a Website for a Fruit Shop”
1. FUNCTION
This is a website that sells and introduces products of stores and companies to
consumers with item details with accurate prices. Has the following functions:
- Allow to update rows in the database.
- Displays a list of items by category.
- Display the goods the customer has selected to buy.
- Display customer information
- Manage orders
- Update goods, manufacturers, types of goods, news.
- Order processing.
- Statistics of customers who buy during the day, in a period of time
2. REQUIREMENTS
a. Equipment and software
- Computer can design web
- MySQL database management system
- Install Appserver, Xampp...
- Web design software: Dreamwear, sothink, flast…
b. Request a Website
The system has 2 parts:
First: Customer section:
Customers are those who have a need to shop for goods, they will search for
necessary items from the system and order these items. Therefore, the following
functions must be present:
- Display a list of store items for customers to view, choose and buy.
7


- Customers see the latest news, promotions on the website
- After the customer selects and places an order directly, it must be displayed

order so that customers can enter purchase information and view purchase
invoices.
Second: For administrators: The owner of the application has the right to control
all activities of the system. This person is provided with a username and password to
log into the system to perform his/her functions:
- Function to update, edit, delete items, types of goods, manufacturers, news.
(must control the system). It requires precision.
- Receiving and checking customer orders. Display orders.
- Statistics by date, time period.
In addition to the above functions, the Web site must be designed so that it is
easy to understand, the interface is easy to use and beautiful, so that customers can see
the information they are looking for, provide attractive advertising information, and
provide relevant information. promotions to attract customers. It is important to ensure
absolute safety of customer information during the online ordering process. At the
same time, the Web site must always be innovative and attractive.

II. ANALYSIS AND DESIGN SYSTEM
1. SITUATION STUDY AND NEW SYSTEM BUILDING
a. After the survey, I have grasped the following information
- Customer management: Each customer can manage the following information:
full name, address, phone number, fax, email.
- Goods management: commodity code, name of goods, unit price, quantity,
image, details, code of goods, name of goods.
- Manufacturer management: manufacturer's house code, manufacturer's name
- Manage news: News code, news name, item, news details - Process orders and
statistics.
b. Customer

8



the person who selects the item to buy. Unlike buying directly at the store, the
company here customers manually manipulate through each specific step to be able to
purchase. On the net, the items are arranged in an easy-to-find order
2. SYSTEM ANALYSIS
After surveying the current status of the system and building the system, I
presented the database files of "Building a website to sell fruits and vegetables".
The database files are saved in the file dongho.sql.zip in the report file.
- Through the process of surveying, analyzing the current situation and building
a development direction for the new system, I built the structure of the system.
“Building a Website to sell Fruits”
- Build functional hierarchy chart
. Data Flow Diagram: We build the data flow chart as follows
WEBSITE SELL FRUIT ONLINE

Figure 2.1 diagram function.

9


2.1 Scene-level data flow chart

Figure 2.2 Scene level data flow chart .


2.2 Bottom-level functional hierarchy diagram

Figure 2.2 Customer functional diagram.
2.2.1 View product information function
- Allows viewing of product-related information.

- Input :
+ Product name
+ Product group
- Processing processes:
+ Module to enter information (Name of goods, group of goods) of the item to
be viewed.
+ Module displays the list of goods on demand.


- Output : + list of goods as required .
2.2.2 Item select function
Listing product categories by group, category, detail... allows customers to select
and add items to the cart .
a. Input :Information related to the product :
Processes to perform :
+ Module list, display item list by group, type, details.
+ Module add items to the cart.
+ Module remove items in the cart.
+Module displays the list of items currently in the cart.
b. Output: List of items to be ordered.
2.2.3 Member registrantion function
- Customers can register to become regular customers of the company and be granted
a user account to register.
Enter when ordering, payment, technical support ...
a. Input: -Customer's personal information
+ User name
+ Password
Full name
+ Address
+ Email

+ Phone number (Tel) and some other information.
b. Execution processes:
+ Module to enter customer's personal information.
+ Module confirms the information just entered.
+ Module notifies customers and requests to re-enter the account
user if that account already has a registered .
+ Module saves customer information just registered to the database.


+ Module notifies and sends Email to customers registration results.
c. Output :
+ Notify the customer and ask to re-enter the account or Email if that account or
Email already exists in the database.
+ Notify and request to re-enter information in case the information entered is
incorrect or inappropriate.
+ Notify registration results, customer code is issued.
2.2.4 Search function
- Search for information about customers themselves (by customer code).
- Search for information about the order that customer has placed (by customer code).
- Search for product information (by product group type)
- Input :
+ word or phrase to search for
+ Search form (search for customers, orders or products).
- Execution processes:
+ Module search in the database.
+ Module displays search results.
- Output: Search results
2.2.5 Order function
- After the customer selects the products to buy and places them in the shopping cart,
the customer can place an official order through the Website.

- Input :
+ List of items in the shopping cart.
+ Personal information of customers (Customer code, Full name, password, ...)
+ Information related to the purchase (purchase date, time of delivery, quantity
of each ordered item, payment method, place of receipt, recipient, total amount,
USD/VND exchange rate ...)
- Execution processes:


+ Module displays full information related to the product the customer has
selected.
+ The module calculates the total amount of goods (in USD and VND) according
to the unit price and exchange rate (USD/VND) of the date of purchase.
+ Module to enter order information.
+ Module to check if the registered customer is a regular customer of the
company
+ Module updates orders to the database.
+ Module notifies customers of successful orders, payment procedures, receipt
of goods, ordering instructions or unsuccessful order notifications.
- Output :
+ Notification of order status (success\failure), payment procedures, receipt of
goods, or instructions for re-ordering in case the order information is not appropriate.
2.2.6 Feeback-contact function
- Allow users to comment, complaint, feedback ... some information related to the
product.
a. Input:
- The information of suggestions, feedback in the form of Email.
- Execution processes:
+ Module to input comments and feedback.
+ Module saves comment information to the database.

b. Output:
- Detailed information about comments and feedback waiting for the administrator to
reply.


2.3 function block diagram Add new

Figure 2.3 Function Chart Add New.


2.4 Functional diagram Update

Figure 2.4 Functional diagram Update.


2.5 Select and orders function block diagram

Figure 2.1 Order function block diagram


2.6 Block diagram of member registration function

Figure 2.5 Graph of membership registration function


2.7 Build entity relational model (ERD)
2.7.1 Diagram

Figure 2.6.1 diagram


2.8 Several tables Represent data elements
Data components:
2.8.1 Description of PRODUCT TYPE table

2.8.2 CUSTOMERS table description


2.8.3 Description of the table PRODUCTS

2.8.4 DETAILS ORDERING table description

2.8.5 Description of ORDER table

2.8.6 Description of the EMPLOYEE table


2.8.7 SUPPLIER table description

2.8.8 SUPPORT table description

2.8.9 Description of the ADMIN table

2.8.10 Description of the ARTICLE table


2.8.11 Description of the MENU table


CHAPTER 2. ANALYTICAL DESIGN
I. Some program interface images

1. Home page section

Figure 1.1 homepage design.


2. Admin interface

Figure 1.2 Admin interface design

3. The page interface allows customers to choose goods

Figure 1.3 Design the interface of the page to allow customers to choose goods


4. Shopping cart interface

Figure 1.4 Shopping cart interface design


×