# duniasatunya/drmed architecture

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

- Interactive diagram: https://gitdiagram.com/duniasatunya/drmed
- Repository: https://github.com/duniasatunya/drmed

## Overview

DRMEDIA PAGE is a PHP web application for managing media equipment, borrowing requests, and studio crew. Users enter through the home page, sign in when needed, then browse or maintain equipment, submit and track loans, or view crew and studio activity. The graph preserves the documented home-page entry points and the sampled inventory and loan actions. Several listed modules were not excerpted, so their internal behavior and links are left out; the shown pages access a shared MySQL connection.

Main entry points: [`index.php`](https://github.com/duniasatunya/drmed/blob/main/index.php) (Home dashboard), [`config/koneksi.php`](https://github.com/duniasatunya/drmed/blob/main/config/koneksi.php) (MySQL database), [`peminjamandetil.php`](https://github.com/duniasatunya/drmed/blob/main/peminjamandetil.php) (Request details), [`isi_studio.php`](https://github.com/duniasatunya/drmed/blob/main/isi_studio.php) (Studio activity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site and identity"]
  node_home["Home dashboard<br/>[index.php]"]
  node_layout["Page layout and session<br/>[intro.php]"]
  node_navigation["Site navigation<br/>[header.php]"]
  node_login["Member login<br/>[login_drmed.php]"]
  node_login_process["Login processing"]
  node_logout["Sign out<br/>[logout.php]"]
  node_barcode["Barcode attendance"]
end

subgraph group_inventory["Equipment inventory"]
  node_inventory_list["Equipment storage<br/>[barangkita.php]"]
  node_equipment_create["Add equipment<br/>[buatbarang.php]"]
  node_equipment_detail["Equipment details"]
  node_cart_add["Add to cart<br/>[add_to_cart.php]"]
  node_cart_remove["Remove from cart"]
end

subgraph group_loans["Borrowing workflow"]
  node_borrow_list["Borrowing requests<br/>[peminjaman.php]"]
  node_borrow_detail["Request details"]
end

subgraph group_studio["Crew and studio"]
  node_crew["Media crew<br/>[crew.php]"]
  node_studio["Studio activity<br/>[isi_studio.php]"]
  node_crew_update["Update crew task<br/>[update_kerjaan.php]"]
  node_santri_lookup["Student lookup<br/>[fetch_santri.php]"]
  node_studio_messages["Studio messages"]
end

node_visitor(("Visitor or member"))
node_database[("MySQL database<br/>[koneksi.php]")]

node_visitor -->|"opens"| node_home
node_home -->|"links to"| node_inventory_list
node_home -->|"links to"| node_borrow_list
node_home -->|"links to"| node_crew
node_home -->|"includes"| node_layout
node_home -->|"includes"| node_navigation
node_inventory_list -->|"links to"| node_equipment_create
node_equipment_create -->|"redirects to"| node_equipment_detail
node_equipment_create -->|"inserts equipment"| node_database
node_inventory_list -->|"queries equipment"| node_database
node_equipment_detail -->|"updates equipment"| node_database
node_borrow_list -->|"creates and lists"| node_database
node_borrow_detail -->|"reads and updates"| node_database
node_home -->|"links to"| node_borrow_detail
node_studio -->|"posts task"| node_crew_update
node_studio -->|"reads crew records"| node_database
node_login -->|"uses connection"| node_database
node_login_process -->|"uses connection"| node_database
node_logout -->|"redirects to"| node_home
node_visitor -->|"signs in"| node_login
node_visitor -.->|"submits scan"| node_barcode
node_borrow_detail -.->|"removes item"| node_cart_remove
node_borrow_detail -.->|"adds item"| node_cart_add
node_crew -.->|"uses lookup"| node_santri_lookup
node_studio -.->|"related messages"| node_studio_messages

click node_home "https://github.com/duniasatunya/drmed/blob/main/index.php"
click node_layout "https://github.com/duniasatunya/drmed/blob/main/intro.php"
click node_navigation "https://github.com/duniasatunya/drmed/blob/main/header.php"
click node_login "https://github.com/duniasatunya/drmed/blob/main/login_drmed.php"
click node_login_process "https://github.com/duniasatunya/drmed/blob/main/proses_logindrmed.php"
click node_logout "https://github.com/duniasatunya/drmed/blob/main/logout.php"
click node_database "https://github.com/duniasatunya/drmed/blob/main/config/koneksi.php"
click node_inventory_list "https://github.com/duniasatunya/drmed/blob/main/barangkita.php"
click node_equipment_create "https://github.com/duniasatunya/drmed/blob/main/buatbarang.php"
click node_equipment_detail "https://github.com/duniasatunya/drmed/blob/main/product-details.php"
click node_cart_add "https://github.com/duniasatunya/drmed/blob/main/add_to_cart.php"
click node_cart_remove "https://github.com/duniasatunya/drmed/blob/main/remove_from_cart.php"
click node_borrow_list "https://github.com/duniasatunya/drmed/blob/main/peminjaman.php"
click node_borrow_detail "https://github.com/duniasatunya/drmed/blob/main/peminjamandetil.php"
click node_barcode "https://github.com/duniasatunya/drmed/blob/main/absen_barcodeproses.php"
click node_crew "https://github.com/duniasatunya/drmed/blob/main/crew.php"
click node_studio "https://github.com/duniasatunya/drmed/blob/main/isi_studio.php"
click node_crew_update "https://github.com/duniasatunya/drmed/blob/main/update_kerjaan.php"
click node_santri_lookup "https://github.com/duniasatunya/drmed/blob/main/fetch_santri.php"
click node_studio_messages "https://github.com/duniasatunya/drmed/blob/main/pesan_masukstudio.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_home,node_layout,node_navigation,node_login,node_login_process,node_logout,node_barcode toneBlue
class node_inventory_list,node_equipment_create,node_equipment_detail,node_cart_add,node_cart_remove,node_database toneAmber
class node_borrow_list,node_borrow_detail toneMint
class node_crew,node_studio,node_crew_update,node_santri_lookup,node_studio_messages toneRose
class node_visitor toneIndigo
```

## Components

### Site and identity

- [Home dashboard](https://github.com/duniasatunya/drmed/blob/main/index.php): `index.php`
- [Page layout and session](https://github.com/duniasatunya/drmed/blob/main/intro.php): `intro.php`
- [Site navigation](https://github.com/duniasatunya/drmed/blob/main/header.php): `header.php`
- [Member login](https://github.com/duniasatunya/drmed/blob/main/login_drmed.php): `login_drmed.php`
- [Login processing](https://github.com/duniasatunya/drmed/blob/main/proses_logindrmed.php): `proses_logindrmed.php`
- [Sign out](https://github.com/duniasatunya/drmed/blob/main/logout.php): `logout.php`
- [Barcode attendance](https://github.com/duniasatunya/drmed/blob/main/absen_barcodeproses.php): `absen_barcodeproses.php`

### Equipment inventory

- [Equipment storage](https://github.com/duniasatunya/drmed/blob/main/barangkita.php): `barangkita.php`
- [Add equipment](https://github.com/duniasatunya/drmed/blob/main/buatbarang.php): `buatbarang.php`
- [Equipment details](https://github.com/duniasatunya/drmed/blob/main/product-details.php): `product-details.php`
- [Add to cart](https://github.com/duniasatunya/drmed/blob/main/add_to_cart.php): `add_to_cart.php`
- [Remove from cart](https://github.com/duniasatunya/drmed/blob/main/remove_from_cart.php): `remove_from_cart.php`

### Borrowing workflow

- [Borrowing requests](https://github.com/duniasatunya/drmed/blob/main/peminjaman.php): `peminjaman.php`
- [Request details](https://github.com/duniasatunya/drmed/blob/main/peminjamandetil.php): `peminjamandetil.php`

### Crew and studio

- [Media crew](https://github.com/duniasatunya/drmed/blob/main/crew.php): `crew.php`
- [Studio activity](https://github.com/duniasatunya/drmed/blob/main/isi_studio.php): `isi_studio.php`
- [Update crew task](https://github.com/duniasatunya/drmed/blob/main/update_kerjaan.php): `update_kerjaan.php`
- [Student lookup](https://github.com/duniasatunya/drmed/blob/main/fetch_santri.php): `fetch_santri.php`
- [Studio messages](https://github.com/duniasatunya/drmed/blob/main/pesan_masukstudio.php): `pesan_masukstudio.php`

### Other components

- **Visitor or member**
- [MySQL database](https://github.com/duniasatunya/drmed/blob/main/config/koneksi.php): `config/koneksi.php`

## Connections

- Visitor or member → Home dashboard: opens (evidence: `index.php`)
- Home dashboard → Equipment storage: links to (evidence: `index.php`)
- Home dashboard → Borrowing requests: links to (evidence: `index.php`)
- Home dashboard → Media crew: links to (evidence: `index.php`)
- Home dashboard → Page layout and session: includes (evidence: `index.php`)
- Home dashboard → Site navigation: includes (evidence: `index.php`)
- Equipment storage → Add equipment: links to (evidence: `barangkita.php`)
- Add equipment → Equipment details: redirects to (evidence: `buatbarang.php`)
- Add equipment → MySQL database: inserts equipment (evidence: `buatbarang.php`)
- Equipment storage → MySQL database: queries equipment (evidence: `barangkita.php`)
- Equipment details → MySQL database: updates equipment (evidence: `product-details.php`)
- Borrowing requests → MySQL database: creates and lists (evidence: `peminjaman.php`)
- Request details → MySQL database: reads and updates (evidence: `peminjamandetil.php`)
- Home dashboard → Request details: links to (evidence: `index.php`)
- Studio activity → Update crew task: posts task (evidence: `isi_studio.php`)
- Studio activity → MySQL database: reads crew records (evidence: `isi_studio.php`)
- Member login → MySQL database: uses connection (evidence: `login_drmed.php`)
- Login processing → MySQL database: uses connection (evidence: `proses_logindrmed.php`)
- Sign out → Home dashboard: redirects to (evidence: `logout.php`)
- Visitor or member → Member login: signs in
- Visitor or member → Barcode attendance: submits scan
- Request details → Remove from cart: removes item
- Request details → Add to cart: adds item
- Media crew → Student lookup: uses lookup
- Studio activity → Studio messages: related messages
