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 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 highclass 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 ecommerce and egovernment around the world, significantly changed the face of culture, and improved the quality of peoples lives. In production and business activities, now, ecommerce 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.
Trang 1VINH UNIVERSITY TECHNICAL INSTITUTE AND TECHNOLOGY
WEB PROGRAMMING BUILDING FRUITS SALE WEBSITE
TEACHER: TS Cao Thanh Sơn
Trang 22
Trang 3PREFACE 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
Trang 5Today, the application of information technology and computerization isconsidered as one of the decisive factors in the activities of governments,organizations, as well as companies, it plays a very important role important, canmake powerful breakthroughs
Along with the continuous development of computer technology and electronicnetworks, information technology also has high-class technologies and in turnconquers 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 thetransmission and exchange of information globally
Now, everything related to information becomes easy for users: just have acomputer 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 muchlower cost than the traditional way It is this, which has promoted the birth anddevelopment of e-commerce and e-government around the world, significantlychanged the face of culture, and improved the quality of people's lives
In production and business activities, now, e-commerce has affirmed its role inpromoting and promoting the development of enterprises For a store or shop, it isnecessary to promote and introduce to customers new products that meet the needs ofcustomers So how to promote it is to build a Website for your store to promote allyour products for sale
Therefore, I have implemented the project "BUILDING A WEBSITE SELLFRUIT ONLINE" for a fruit shop XYZ
The store owner puts those products on his website and manages it with thatwebsite Customers can order products on the website without going to the store Theshop 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 thisproject report Although we have tried our best to learn, analyze, design and install thesystem, it is inevitable that there will be shortcomings I look forward to receivingyour understanding and suggestions Thank you sincerely
5
Trang 7CHAPTER 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 toconsumers 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
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 fornecessary items from the system and order these items Therefore, the followingfunctions must be present:
- Display a list of store items for customers to view, choose and buy
7
Trang 8- Customers see the latest news, promotions on the website
- After the customer selects and places an order directly, it must be displayedorder so that customers can enter purchase information and view purchaseinvoices
Second: For administrators: The owner of the application has the right to controlall activities of the system This person is provided with a username and password tolog 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 iseasy to understand, the interface is easy to use and beautiful, so that customers can seethe information they are looking for, provide attractive advertising information, andprovide relevant information promotions to attract customers It is important to ensureabsolute safety of customer information during the online ordering process At thesame 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 andstatistics
b Customer
8
Trang 9the person who selects the item to buy Unlike buying directly at the store, thecompany here customers manually manipulate through each specific step to be able topurchase 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, Ipresented 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
Trang 102.1 Scene-level data flow chart
Figure 2.2 Scene level data flow chart
Trang 112.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
Trang 12- Output : + list of goods as required
2.2.2 Item select function
Listing product categories by group, category, detail allows customers to selectand 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
+ 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
Trang 13+ Module notifies and sends Email to customers registration results.
- 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:
Trang 14+ Module displays full information related to the product the customer hasselected.
+ 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 thecompany
+ Module updates orders to the database
+ Module notifies customers of successful orders, payment procedures, receipt
of goods, ordering instructions or unsuccessful order notifications
+ 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 toreply
Trang 152.3 function block diagram Add new
Figure 2.3 Function Chart Add New
Trang 162.4 Functional diagram Update
Figure 2.4 Functional diagram Update
Trang 172.5 Select and orders function block diagram
Figure 2.1 Order function block diagram
Trang 182.6 Block diagram of member registration function
Figure 2.5 Graph of membership registration function
Trang 192.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
Trang 202.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
Trang 212.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
Trang 222.8.11 Description of the MENU table
Trang 23CHAPTER 2 ANALYTICAL DESIGN
I Some program interface images
1 Home page section
Figure 1.1 homepage design
Trang 242 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
Trang 254 Shopping cart interface
Figure 1.4 Shopping cart interface design
Trang 26CHAPTER 3 : SUMMARY OF ASSESSMENT AND EVELOPMENT
DIRECTION OF THE APP
I What the program can do
1 For the user, the program has launched
Ways to search, look up by different topics, combine many topics according to customers' preferences View detailed commercial product information and complete store information Allows customers to register information to make product purchases.Check the validity of the client login to the system Create an order Can run on many operating systems
2 For the administrator, the program offered
View information of items to be managed such as: Customers, products, orders Provide forms to enter new data of various types of documents The above data can be modified or updated In adding new products, the program automatically
generates product codes, which is convenient for the administrator and the data is always consistent These functions are performed through the web interface
Can run on many operating systems
II Points that can't be done and solutions
The connection between the server and the database is slow
This is also understandable because establishing the bridge has to go through many levels The only solution is to let the server run on a machine with strong
configuration, fast disk access speed
III The development direction of the program
The development direction of the Web site is to move towards an e-commerce with full functions of online payment But because in our country today, the problem
of paying money online is still difficult and not very popular, so the function of the Web site to support administrators is still limited The main problem of the Web site isserving advertising Since then, besides commercial, the issue needs to focus on
attracting customers to contact and negotiate the design and installation of a certain project in the company's area of expertise Therefore, in the future, it is necessary to add the functions of inventory: Statistics of database accesses, statistics of import and export prices, inventory, revenue statistics, automatic invoice processing Warehouse management (checking product inventory automatically), electronic payment using Edit card Add some functions to check input data, change access password of
customers as well as administrators Although we have tried to complete the
requirements, the report still has many shortcomings I hope to receive the guidance and guidance of other teachers to help review and propose additional ideas and issues
Trang 27for the construction of the Web site so that I can be more complete I would like to thank the teachers.
PRESENTER