Add favicon and update layout files; enhance product query and table styles

This commit is contained in:
2024-12-11 17:36:38 +01:00
parent 82a183fd18
commit 4e3dfccff2
10 changed files with 3727 additions and 1551 deletions

View File

@@ -5,7 +5,7 @@ class Products
static public function get_products( $client_id, $limit, $start, $order_name, $order_dir )
{
global $mdb;
return $mdb -> query( 'SELECT pt.* FROM products_temp AS pt INNER JOIN products AS p ON p.id = pt.product_id WHERE client_id = \'' . $client_id . '\' ORDER BY ' . $order_name . ' ' . $order_dir . ' LIMIT ' . $start . ', ' . $limit ) -> fetchAll();
return $mdb -> query( 'SELECT pt.*, p.offer_id FROM products_temp AS pt INNER JOIN products AS p ON p.id = pt.product_id WHERE client_id = \'' . $client_id . '\' ORDER BY ' . $order_name . ' ' . $order_dir . ' LIMIT ' . $start . ', ' . $limit ) -> fetchAll();
}
static public function get_records_total_products( $client_id )