How massdann/kasir-dkrispy works
This is a PHP point-of-sale and restaurant order-management application. Staff enter through a session-aware page router, work with menu, customer, order, and user screens, then manage order items and record cash or QRIS payments; administrators also have dashboard and reporting views. PHP pages and request handlers issue SQL through a shared MySQL connection. The supplied excerpts show routing, shared layout, menu/order-item operations, and payment handling; several other major screens are present in the source index but were not sampled, so their internal behavior is not expanded here.
Main entry points: connect.php MySQL connection · main.php Shared layout · order_item.php Order items · index.php Page router
Components 21
Routing and layout
- Page router
index.php - Login screen
login.php - Shared layout
main.php - Header
header.php - Navigation
sidebar.php
Sales operations
- Orders
orders.php - Counter orders
cs_order.php - Order items
order_item.php - Item handlers
proses - Payment handler
proses/proses_bayar.php - Item view
view_item.php - Fried items
fried.php
Administration
- Dashboard
home.php - Menu catalog
menu.php - Menu handlers
proses - Customers
customers.php - User management
user.php - Reports
report.php
Persistence
- Application database
mysql/data/db_d@0027kriuk - MySQL connection
proses/connect.php
Other components
- Staff
Connections 23
- Staff → Page router: requests pages
index.php - Page router → Shared layout: routes views
index.php - Page router → Login screen: routes login
index.php - Shared layout → Header: includes
main.php - Shared layout → Navigation: includes
main.php - Menu catalog → Menu handlers: submits forms
menu.php - Order items → Item handlers: submits edits
order_item.php - Order items → Payment handler: submits payment
- Shared layout → MySQL connection: queries user
main.php - Menu catalog → MySQL connection: queries catalog
menu.php - Order items → MySQL connection: queries order items
order_item.php - Dashboard → MySQL connection: queries data
home.php - Orders → MySQL connection: queries data
orders.php - Customers → MySQL connection: queries data
customers.php - Counter orders → MySQL connection: queries data
cs_order.php - User management → MySQL connection: queries users
user.php - Reports → MySQL connection: queries data
report.php - Item view → MySQL connection: queries data
view_item.php - Fried items → MySQL connection: queries data
fried.php - Menu handlers → MySQL connection: uses connection
proses/proses_input_menu.php - Item handlers → MySQL connection: uses connection
proses/proses_input_orderitem.php - Payment handler → MySQL connection: records payment
proses/proses_bayar.php - MySQL connection → Application database: connects
proses/connect.php