$adjustment_data[++$this_row] = (array) $row_adjustment; } // Start over and cycle through the data $this_row = 0; while ($this_row++ < $number_of_rows) { $adjustment_data['this_row'] = $this_row; show_adjustment_row($adjustment_data, $unique_data); // $unique_data['show_adjustment'] = show_adjustment_row($adjustment_data, $unique_data); // $display .= show_adjustment_row($adjustment_data, $unique_data); } // Close minor // if ($show_minor_adjustment) $display .= minor_adjustment_close($adjustment_data, $unique_data); // Close major // if ($show_major_adjustment) $display .= major_adjustment_close($adjustment_data, $unique_data); // Close the page $display .= close_list_bottom($product_data, $adjustment_data, $unique_data); $page_specific_css .= ' <link rel="stylesheet" type="text/css" href="' . PATH . 'show_report.css"> <link rel="stylesheet" type="text/css" href="basket_dropdown.css"> <style type="text/css"> #basket_dropdown { right:3%; } #content_top { margin-bottom:25px; } .pager a { width:' . ($pager['last_page'] == 0 ? 0 : number_format(72 / $pager['last_page'], 2)) . '%; } .adjustment { font-size:80%;
// Handle prior values to catch changes ${$major_division_prior} = $row[$major_division]; ${$minor_division_prior} = $row[$minor_division]; } $unique['completed'] = 'true'; // Close minor if there were any products if ($unique['product_count'] > 0 && $show_minor_division) { $display .= minor_division_close($row, $unique); } // Close major if there were any products if ($unique['product_count'] > 0 && $show_major_division) { $display .= major_division_close($row); } // Close the product list if there were any products listed if ($pager['found_rows'] && $unique['product_count'] > 0) { $display .= close_list_bottom($row, $unique); } else { $display .= no_product_message(); $pager['found_rows'] = 0; } // Some product_list types need dynamically generated titles and subtitles if ($_GET['type'] == 'subcategory') { $page_title_html = '<span class="title">Products</span>'; $page_subtitle_html = '<span class="subtitle">' . $subcategory_name . ' Subcategory</span>'; $page_title = 'Products: ' . $subcategory_name . ' Subcategory'; $page_tab = 'shopping_panel'; } elseif ($_GET['producer_id'] || strpos($_SERVER['SCRIPT_NAME'], 'producers')) { $page_title_html = '<span class="title">Products</span>'; $page_subtitle_html = '<span class="subtitle">' . $business_name . '</span>'; $page_title = 'Products: ' . $business_name; $page_tab = 'shopping_panel';