How samerkhokon/pharmacutical-inventory-core-php works
This is a legacy PHP pharmaceutical inventory and sales/distributor management application. A signed-in user enters a section, navigates database-driven menus, and the section’s page controller loads a requested page; the repository also contains product/stock, ordering/invoicing, transfers/returns, reporting, and HR functionality. The excerpts establish the main-shell dispatch and menu/database relationships. Domain branches beyond those excerpts are represented at their existing directories; their internal calls are not inferred.
Main entry points: index.php Main application · inv/index.php Inventory application · hr/index.php HR application · db.php MySQL database
Components 23
Application shells
- Main application
index.php - HR application
hr/index.php - Inventory application
inv/index.php - Main navigation
top_menu.php - Main sidebar
left_menu.php - HR navigation
hr/top_menu.php - HR sidebar
hr/left_menu.php - Inventory navigation
inv/top_menu.php - Inventory sidebar
inv/left_menu.php - Main landing page
includes/blank.php - Main footer
footer.php
Inventory and sales
- Products and stock
includes - Orders and sales
includes - Transfers and returns
includes - Inventory landing page
inv/includes/blank.php - Inventory footer
inv/footer.php
HR management
- Employee management
hr/includes - HR landing page
hr/includes/blank.php - HR footer
hr/footer.php
Reports and output
- Operational reports
includes - PDF output
html2pdf
Shared services
- MySQL database
db.php
Other components
- Signed-in user
Connections 32
- Signed-in user → Main application: opens
index.php - Main application → MySQL database: includes
index.php - Main application → Main navigation: includes
index.php - Main application → Main sidebar: includes
index.php - Main application → Products and stock: dispatches page
index.php - Main application → Orders and sales: dispatches page
index.php - Main application → Transfers and returns: dispatches page
index.php - Main application → Operational reports: dispatches page
index.php - Main application → Main landing page: loads fallback
index.php - Main application → Main footer: includes
index.php - Main navigation → MySQL database: queries menus
top_menu.php - Main sidebar → MySQL database: queries menus
left_menu.php - Signed-in user → HR application: opens
hr/index.php - HR application → HR navigation: includes
hr/index.php - HR application → HR sidebar: includes
hr/index.php - HR application → Employee management: dispatches page
hr/index.php - HR application → HR landing page: loads fallback
hr/index.php - HR application → HR footer: includes
hr/index.php - HR navigation → MySQL database: queries menus
hr/top_menu.php - HR sidebar → MySQL database: queries menus
hr/left_menu.php - Signed-in user → Inventory application: opens
inv/index.php - Inventory application → Inventory navigation: includes
inv/index.php - Inventory application → Inventory sidebar: includes
inv/index.php - Inventory application → Products and stock: dispatches page
inv/index.php - Inventory application → Orders and sales: dispatches page
inv/index.php - Inventory application → Transfers and returns: dispatches page
inv/index.php - Inventory application → Operational reports: dispatches page
inv/index.php - Inventory application → Inventory landing page: loads fallback
inv/index.php - Inventory application → Inventory footer: includes
inv/index.php - Inventory navigation → MySQL database: queries menus
inv/top_menu.php - Inventory sidebar → MySQL database: queries menus
inv/left_menu.php - Operational reports → PDF output: exports PDF