first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
class ProductsOfSuppliersMenu extends Menu
{
public function get_vars()
{
$vars = parent::get_vars();
$SQL = sqlQuery('SELECT * FROM '.getTableName('suppliers').' ORDER BY name');
$suppliers = [];
foreach ($SQL as $key => $row) {
$suppliers[$key] = $row;
}
$SQL = sqlQuery('SELECT id, name FROM '.getTableName('producers').' ORDER BY name');
$producer = [];
foreach ($SQL as $key => $row) {
$producer[$key] = $row;
}
return array_merge($vars, [
'producers' => $producer,
'suppliers' => $suppliers,
]
);
}
}