How hmimotech/fgfga works
SONATRACH’s application manages contracts, purchase orders and work attachments, then tracks invoices through multi-role payment approval. Internal staff use the authenticated workspace; suppliers have a separate read-oriented portal for their contracts and invoices. The graph groups the PHP pages by product domain and shows shared authorization and workflow logic. README statements support the broad capabilities; source excerpts and the index support the specific redirects, page calls and workflow invocation shown. Some portal and CRUD internals were not sampled, so their detailed links are omitted.
Main entry points: index.php Application entry · auth.php Authentication and roles · contrats Contract management · bons_paiement Payment orders
Components 25
Access and shared services
- Application entry
index.php - Login
login.php - Authentication and roles
includes/auth.php - Access denied
includes/403.php - Database connection
config/db.php - Staff layout
includes/header.php - Supplier layout
includes/header_fournisseur.php - Shared page footer
includes/footer.php - Activity journal
includes/auth.php - User administration
admin/utilisateurs.php
Clients and suppliers
- Client management
clients - Supplier management
fournisseurs
Contracts and commitments
- Contract management
contrats - Purchase orders and services
bons_commande - Work attachments
attachements
Invoice and payment processing
- Staff dashboard
dashboard/index.php - Invoice management
factures - Payment orders
bons_paiement - Approval workflow
includes/workflow.php
Supplier portal
- Supplier dashboard
espace_fournisseur/dashboard.php - Supplier contracts
espace_fournisseur/contrats.php - Supplier invoices
espace_fournisseur/factures.php
Other components
- Internal staff
- Supplier user
- MySQL or MariaDB
Connections 27
- Internal staff → Application entry: opens
- Supplier user → Application entry: opens
- Application entry → Authentication and roles: checks session
index.php - Application entry → Staff dashboard: redirects staff
index.php - Application entry → Supplier dashboard: redirects supplier
index.php - Login → Authentication and roles: loads
login.php - Authentication and roles → Database connection: loads connection
includes/auth.php - Authentication and roles → Access denied: includes on denial
includes/auth.php - Authentication and roles → Activity journal: records actions
includes/auth.php - Internal staff → Client management: manages
- Internal staff → Supplier management: manages
- Internal staff → Contract management: manages
- Internal staff → Purchase orders and services: manages
- Contract management → Purchase orders and services: creates from contract
bons_commande/add.php - Internal staff → Work attachments: records work
- Contract management → Work attachments: lists by contract
contrats/view.php - Internal staff → Invoice management: manages
- Invoice management → Payment orders: links invoice
factures/view.php - Internal staff → Payment orders: validates
- Payment orders → Approval workflow: applies actions
bons_paiement/view.php - Staff dashboard → Approval workflow: checks available actions
dashboard/index.php - Internal staff → User administration: administers users
- Supplier user → Supplier dashboard: views overview
- Supplier user → Supplier contracts: views contracts
- Supplier user → Supplier invoices: views invoices
- Supplier dashboard → Approval workflow: uses status labels
espace_fournisseur/dashboard.php - Database connection → MySQL or MariaDB: connects