





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
assignment 1649 Web design for Pass
Typology: Assignments
1 / 29
This page cannot be seen from the preview
Don't miss anything!






















Qualification BTEC Level 5 HND Diploma in Computing Unit number and title WEBG301 - Project Web Submission date 28?08/2023 Date Received 1st submission 29/08/ Re-submission Date Date Received 2nd submission Student Name Nguyễn Văn Trường Student ID CCH Class GCH1107 Assessor name Lại Mạnh Dũng Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Trường Grade
❒ Summative Feedback: ❒ Resubmission Feedback: Grade: Assessor Signature: Date: Signature & Date:
Figure 1 Sitemap
Figure 2 ERD
Categories table includes primary key named Category_id and Category_name, this table has the effect of dividing categories by product. The color table includes color_id as the primary key and color_name, color_code, this table has the effect of dividing the color for each product. The provider table includes provider_id as the primary key and provider_name, this table has the effect of checking each product is provided by which provider. The products table plays a pivotal role in managing products and encompasses various attributes. These consist of product_id serving as the primary key, along with product name, price, description, size, and quantity. Additionally, it incorporates foreign key relationships: Category_id establishes a connection with the category table, signifying a one-to-many relationship where numerous products fall under a single category. Similarly, color_id forms a linkage with the color table in a one-to-many arrangement, where multiple products share the same color. Lastly, Provider_id acts as a foreign key, connecting with the supplier table in a one-to-many relationship, signifying that a single supplier can provide multiple products.
b. Project Structure
- ProductController Figure 3 Source code productController Run the Laravel php artisan make:controller ProductController to create ProductController. ProductController allows users can see the product, about, and product details.
Figure 4 Source code template homepage The HomeTemplate is designed to showcase various products prominently on the homepage. It presents comprehensive product information directly on the website, allowing visitors to easily engage with the displayed items. By clicking on either the "View Details" button or the product image, users can access more in-depth information about the product. This action will trigger a process that is executed through an external file, enabling a seamless transition to the detailed product view.
Figure 6 Source AdminController
Figure 7 Source AdminController
Figure 8 4 Source code template editproduct Editproduct page the data is transferred when admin presses edit, after editing is done admin press submit edited data will be transmitted and display changed data with the message ''Edit product Successful''.
Figure 9 Source model product The Products Entity outlines the necessary functionalities that need to be present within the Products database. This entity has been generated in Laravel using the command "php artisan make:model Product". It encompasses a range of attributes, including product_id, product_name, price, image, size, description, quantity, Category_id, Color_id, and provider_id. These attributes collectively define the characteristics and details associated with each product.
Figure 11 Homepage
Figure 12 Homepage