How quoctan342/sales-website-php works
This is a PHP/MySQL shop. The main customer-facing workflow covers product browsing and search, cart actions and checkout, followed by account and order access; the separate admin area manages catalog data, orders and accounts. The graph preserves these documented subsystems, but the excerpts do not expose checkout persistence or several unsampled route implementations, so those internal relationships are not asserted.
Main entry points: adminpanel/index.php Admin dashboard · giohang/index.php Cart router · SanPham/index.php Catalog router · db.php MySQL database
Components 24
Customer shop
- Catalog router
Source/SanPham/index.php - Product detail
Source/SanPham/sanpham.php - Product listings
Source/SanPham/dssp.php - Product search
Source/timkiem.php - Cart router
Source/giohang/index.php - Cart view
Source/giohang/giohang.php - Cart actions
Source/giohang - Checkout
Source/giohang/thanhtoan.php
Accounts and orders
- Account router
Source/taikhoan/index.php - Account profile
Source/taikhoan/taikhoan.php - Profile update
Source/taikhoan/capnhat.php - Order router
Source/donhang/index.php - Order history
Source/donhang/dsdh.php - Order details
Source/donhang/chitiet.php
Administration
- Admin dashboard
Source/adminpanel/index.php - Product management
Source/qlySanPham - Category management
Source/qlyLoaiSP - Manufacturer management
Source/qlyHangSX - Order management
Source/qlyDonhang - Account management
Source/qlyTaiKhoan
Shared runtime
- Shop header
Source/header.php - Admin header
Source/adminpanel/header.php - MySQL database
Source/db.php
Other components
- Shopper
Connections 20
- Shopper → Catalog router: browses
- Shopper → Cart router: manages cart
- Catalog router → Product detail: dispatches
Source/SanPham/index.php - Catalog router → Product listings: dispatches
Source/SanPham/index.php - Cart router → Cart view: dispatches
Source/giohang/index.php - Cart router → Cart actions: dispatches
Source/giohang/index.php - Cart router → Checkout: dispatches
Source/giohang/index.php - Account router → Account profile: dispatches
Source/taikhoan/index.php - Account router → Profile update: dispatches
Source/taikhoan/index.php - Order router → Order history: dispatches
Source/donhang/index.php - Order router → Order details: dispatches
Source/donhang/index.php - Shop header → MySQL database: queries
Source/header.php - Admin header → MySQL database: loads
Source/adminpanel/header.php - Admin dashboard → Admin header: requires
Source/adminpanel/index.php - Admin dashboard → Product management: dispatches
Source/qlySanPham/index.php - Admin dashboard → Category management: dispatches
Source/qlyLoaiSP/index.php - Admin dashboard → Manufacturer management: dispatches
Source/qlyHangSX/index.php - Admin dashboard → Order management: dispatches
Source/qlyDonhang/index.php - Admin dashboard → Account management: dispatches
Source/qlyTaiKhoan/index.php - Product management → MySQL database: inserts product
Source/qlySanPham/add.php