PERFORMANCE TV SYSTEM - PHP / MySQL

INSTALL (XAMPP):
1. Copy performance_system folder to C:\xampp\htdocs\performance_system
2. Start Apache and MySQL.
3. Open phpMyAdmin and import database.sql (database name: performance_tv).
4. PhpSpreadsheet is already in vendor/. If you move the folder without vendor, run:
   composer require phpoffice/phpspreadsheet
5. Edit config.php if the MySQL user or password is not root with an empty password.
6. Admin: http://localhost/performance_system/admin.php
7. TV board: http://localhost/performance_system/tv.php
8. Customer / style detail: http://localhost/performance_system/jobs.php

EXCEL TEMPLATE (see data.xlsx):
- One workbook, four sheets named Printing, cutting, checking, packing.
- Job header columns: Production Date (B), Job No (D), PO (E), Customer (F), Style (G).
- Column Q is the employee name. The next row is "Qty - 123".
- Column R on that qty row is the working-time range. Column S is attendance.
- Extra size lines repeat the employee name and another Qty row. Those quantities are added.
- A final numeric total in column Q is the job total and is not imported again.
- Printing quantities are metres (MTS). The other departments are pieces (PCS).
- Each sheet can have its own production date. The TV shows all four departments on one 32-inch screen. The highest output employee in each department is shown large. Upload their photo in admin.
- Order progress uses Job Qty (column M) and Finished (column N). Printing stays in metres and the other departments stay in pieces. If the same job is produced on another day, that day's finished quantity is added. Uploading the same day again replaces it.
- The Balance column is not used. In the sample file it does not equal order quantity minus finished quantity.

Uploading a file again replaces the departments and dates contained in that file. Older dates stay until you delete them from the admin page.
