* ---------------------------------------------------------------------- */ include "get.php"; include "update.php"; $_get = new REPORT_GET(); $_update = new REPORT_UPDATE(); if (isset($_REQUEST['root'])) { $root = $_get->get_cat_id(filter_var($_REQUEST['root'], FILTER_SANITIZE_NUMBER_INT)); $root_name = $root->category_name; $root = $root->category_id; } else { $root = 'top'; $root_name = "All Categories"; } if (isset($_GET['date_start'])) { $date_start = $_GET['date_start']; } else { $date_start = '0000-00-00 00:00:00'; } if (isset($_GET['date_end'])) { $date_end = $_GET['date_end']; } else { $date_end = '9999-01-01 23:59:59'; } $iteration = $_get->iterate_category($root, 'all'); $root_sales_detail = $_get->find_sales($root); $count_root_sales_detail = $_get->count_find_sales($root); $sales_items = $_get->find_sales_items($root); ?>