How qphuong-06/24ct1-phanquocphuong-techshop works
This is a PHP storefront for technology accessories with a separate admin area. Customers browse the catalog and product details, manage a session cart, place orders, and review order history; account registration and login support authenticated actions. Administrators manage products, orders, and accounts. The sampled pages and SOURCE INDEX show direct use of a shared MySQL connection. Several checkout and payment details are unsampled, so the graph avoids asserting links between those stages without evidence.
Main entry points: database.php MySQL database · index.php Home page · san-pham.php Product catalog · chi-tiet.php Product detail
Components 22
Storefront
- Home page
index.php - Product catalog
san-pham.php - Product detail
chi-tiet.php
Accounts
- Registration
dang-ky.php - Login
dang-nhap.php - Logout
dang-xuat.php
Cart and orders
- Shopping cart
gio-hang.php - Order placement
dat-hang.php - Payment page
thanh-toan.php - Order history
lich-su-don-hang.php
Administration
- Admin dashboard
admin/index.php - Product management
admin/san-pham.php - Add product
admin/them-san-pham.php - Delete product
admin/xoa-san-pham.php - Order management
admin/don-hang.php - Update order
admin/cap-nhat-don.php - Account management
admin/tai-khoan.php - Edit account
admin/sua-tai-khoan.php - Delete account
admin/xoa-tai-khoan.php
Persistence
- MySQL database
config/database.php
Other components
- Shopper
- Administrator
Connections 38
- Shopper → Home page: browses
index.php - Home page → Product catalog: links to
index.php - Shopper → Product catalog: browses
san-pham.php - Shopper → Product detail: views
chi-tiet.php - Shopper → Registration: registers
dang-ky.php - Shopper → Login: signs in
dang-nhap.php - Shopper → Logout: signs out
dang-xuat.php - Shopper → Shopping cart: manages
gio-hang.php - Shopper → Order placement: submits order
dat-hang.php - Shopper → Payment page: visits
thanh-toan.php - Shopper → Order history: views
lich-su-don-hang.php - Administrator → Admin dashboard: manages store
admin/index.php - Administrator → Product management: manages products
admin/san-pham.php - Administrator → Add product: adds products
admin/them-san-pham.php - Administrator → Delete product: deletes products
admin/xoa-san-pham.php - Administrator → Order management: reviews orders
admin/don-hang.php - Administrator → Update order: updates orders
admin/cap-nhat-don.php - Administrator → Account management: manages accounts
admin/tai-khoan.php - Administrator → Edit account: edits accounts
admin/sua-tai-khoan.php - Administrator → Delete account: deletes accounts
admin/xoa-tai-khoan.php - Home page → MySQL database: queries
index.php - Product catalog → MySQL database: queries
san-pham.php - Product detail → MySQL database: queries
chi-tiet.php - Registration → MySQL database: uses connection
dang-ky.php - Login → MySQL database: uses connection
dang-nhap.php - Shopping cart → MySQL database: uses connection
gio-hang.php - Order placement → MySQL database: checks stock
dat-hang.php - Payment page → MySQL database: uses connection
thanh-toan.php - Order history → MySQL database: reads orders
lich-su-don-hang.php - Admin dashboard → MySQL database: queries
admin/index.php - Product management → MySQL database: uses connection
admin/san-pham.php - Add product → MySQL database: uses connection
admin/them-san-pham.php - Delete product → MySQL database: uses connection
admin/xoa-san-pham.php - Order management → MySQL database: uses connection
admin/don-hang.php - Update order → MySQL database: uses connection
admin/cap-nhat-don.php - Account management → MySQL database: uses connection
admin/tai-khoan.php - Edit account → MySQL database: uses connection
admin/sua-tai-khoan.php - Delete account → MySQL database: uses connection
admin/xoa-tai-khoan.php