How yants02/proyecto_final_front-back works
Front_Back_2026 is a PHP inventory and sales management application with a public landing page, login and registration, and a logged-in administration panel for managing business records. Its main workflow is user authentication, followed by CRUD operations on clients, products, suppliers, purchases, sales, and users; the project also documents PDF and spreadsheet exports. The source index confirms database-backed CRUD and identifies export, PDF, and email components. Several routes and wiring details were not sampled, so their relationships are omitted or marked unverified.
Main entry points: index.php Admin dashboard · conexion.php MySQL database · acciones Session actions · clientes Client records
Components 19
Site and access
- Public landing
onepage.php - Login and registration
login.php - Session actions
php/acciones - Admin dashboard
index.php
Record management
- Client records
php/crud/clientes - Product records
php/crud/productos - Supplier records
php/crud/proveedores - Purchase records
php/crud/compras - Sales records
php/crud/ventas - User records
php/crud/usuarios
Reports and exports
- PDF documents
php/acciones/generar_orden_compra.php - Spreadsheet export
php/acciones/exportar_excel.php - Report generation
php/acciones/generar_reporte.php
Shared services
- Admin access check
php/config/verificar_administrador.php - MySQL database
php/config/conexion.php - Contact mailer
php/acciones/enviar_contacto.php - PHPMailer
php/includes/PHPMailer/PHPMailer.php - TCPDF library
php/includes/tcpdf/tcpdf.php
Other components
- Visitor
Connections 25
- Visitor → Public landing: visits
- Visitor → Login and registration: authenticates
- Login and registration → Session actions: submits credentials
- Session actions → MySQL database: reads or writes
php/acciones/generar_orden_compra.php - Session actions → Admin dashboard: opens session
- Admin dashboard → Client records: manages records
- Admin dashboard → Product records: manages records
- Admin dashboard → Supplier records: manages records
- Admin dashboard → Purchase records: manages records
- Admin dashboard → Sales records: manages records
- Admin dashboard → User records: manages records
- Client records → MySQL database: queries and updates
php/crud/clientes/clientes.php - Product records → MySQL database: reads and writes
php/crud/productos/productos.php - Supplier records → MySQL database: reads and writes
php/crud/proveedores/proveedores.php - Purchase records → MySQL database: reads and writes
php/crud/compras/guardar_compra.php - Sales records → MySQL database: reads and writes
php/crud/ventas/guardar_venta.php - User records → MySQL database: reads and writes
php/crud/usuarios/usuarios.php - Admin dashboard → PDF documents: requests PDF
- Purchase records → PDF documents: creates documents
- PDF documents → TCPDF library: renders PDF
php/acciones/generar_orden_compra.php - Admin dashboard → Spreadsheet export: exports data
- Client records → Spreadsheet export: offers CSV export
php/crud/clientes/clientes.php - Admin dashboard → Report generation: requests report
- Visitor → Contact mailer: sends contact form
- Contact mailer → PHPMailer: sends email
php/acciones/enviar_contacto.php