# tdung006/24ct2-dau-tran_thuy_dung architecture

> Architecture diagram of the GitHub repository tdung006/24ct2-dau-tran_thuy_dung, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tdung006/24ct2-dau-tran_thuy_dung
- Repository: https://github.com/tdung006/24ct2-dau-tran_thuy_dung

## Overview

This repository is a small PHP student-management site, with a static dashboard and a database-backed student list and CRUD pages. The visible workflow is to search or browse students, open the add/edit forms, or delete a record; the pages issue SQL against a `sinhvien` table. The tree does not include the referenced connection file, so database configuration is not represented. The Laravel-styled welcome page is separate in the available evidence; its relationship to the management pages is unknown.

Main entry points: [`list.php`](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/list.php) (Student list), [`add.php`](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/add.php) (Add student), [`edit.php`](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/edit.php) (Edit student), [`delete.php`](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/delete.php) (Delete student)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_views["Web views"]
  node_dashboard["Dashboard<br/>[index.php]"]
  node_welcome["Welcome page<br/>[welcome.blade.php]"]
end

subgraph group_student_ops["Student operations"]
  node_student_list["Student list<br/>[list.php]"]
  node_add_student["Add student<br/>[add.php]"]
  node_edit_student["Edit student<br/>[edit.php]"]
  node_delete_student["Delete student<br/>[delete.php]"]
end

subgraph group_data["Student data"]
  node_student_db[("Student records")]
end

node_user(("Site user"))

node_user -.->|"opens"| node_student_list
node_user -.->|"opens"| node_dashboard
node_user -.->|"opens"| node_welcome
node_student_list -->|"queries"| node_student_db
node_student_list -->|"links to"| node_add_student
node_student_list -->|"links to"| node_edit_student
node_student_list -->|"links to"| node_delete_student
node_add_student -->|"inserts"| node_student_db
node_edit_student -->|"reads and updates"| node_student_db
node_delete_student -->|"deletes"| node_student_db
node_add_student -->|"redirects to"| node_dashboard
node_edit_student -->|"redirects to"| node_dashboard
node_delete_student -->|"redirects to"| node_student_list

click node_dashboard "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/index.php"
click node_student_list "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/list.php"
click node_add_student "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/add.php"
click node_edit_student "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/edit.php"
click node_delete_student "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/delete.php"
click node_welcome "https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/welcome.blade.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_welcome,node_user toneBlue
class node_student_list,node_add_student,node_edit_student,node_delete_student toneAmber
class node_student_db toneMint
```

## Components

### Web views

- [Dashboard](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/index.php): `index.php`
- [Welcome page](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/welcome.blade.php): `welcome.blade.php`

### Student operations

- [Student list](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/list.php): `list.php`
- [Add student](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/add.php): `add.php`
- [Edit student](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/edit.php): `edit.php`
- [Delete student](https://github.com/tdung006/24ct2-dau-tran_thuy_dung/blob/main/delete.php): `delete.php`

### Student data

- **Student records**

### Other components

- **Site user**

## Connections

- Site user → Student list: opens
- Site user → Dashboard: opens
- Site user → Welcome page: opens
- Student list → Student records: queries (evidence: `list.php`)
- Student list → Add student: links to (evidence: `list.php`)
- Student list → Edit student: links to (evidence: `list.php`)
- Student list → Delete student: links to (evidence: `list.php`)
- Add student → Student records: inserts (evidence: `add.php`)
- Edit student → Student records: reads and updates (evidence: `edit.php`)
- Delete student → Student records: deletes (evidence: `delete.php`)
- Add student → Dashboard: redirects to (evidence: `add.php`)
- Edit student → Dashboard: redirects to (evidence: `edit.php`)
- Delete student → Student list: redirects to (evidence: `delete.php`)
