$t->set_var("period_total", $stat_info["total"]); $t->parse("stats_titles", true); $t->parse("stats_totals", true); } $t->set_var("admin_orders_href", "admin_orders.php"); $t->set_var("admin_order_href", $order_details_site_url . "admin_order.php"); $t->set_var("admin_invoice_html_href", "admin_invoice_html.php"); $t->set_var("admin_invoice_pdf_href", "admin_invoice_pdf.php"); $t->set_var("admin_href", "admin.php"); $t->set_var("admin_import_href", "admin_import.php"); $t->set_var("admin_export_href", "admin_export.php"); $t->set_var("admin_invoice_pdf_href", "admin_invoice_pdf.php"); $t->set_var("admin_packing_pdf_href", "admin_packing_pdf.php"); $t->set_var("admin_orders_bom_pdf_href", "admin_orders_bom_pdf.php"); $s = new VA_Sorter($settings["admin_templates_dir"], "sorter_img.html", "admin_orders.php"); $s->set_parameters(false, true, true, false); $s->set_default_sorting(1, "desc"); $s->set_sorter(ORDER_NUMBER_COLUMN, "sorter_id", "1", "o.order_id"); $s->set_sorter(ORDER_ADDED_COLUMN, "sorter_date", "2", "o.order_placed_date"); $s->set_sorter(STATUS_MSG, "sorter_status", "3", "o.order_status"); $s->set_sorter(ADMIN_ORDER_TOTAL_MSG, "sorter_total", "4", "o.order_total"); if (get_setting_value($order_info, "show_delivery_country_id", 0) == 1) { $s->set_sorter(EMAIL_TO_MSG, "sorter_ship_to", "5", "o.delivery_country_id"); } else { $s->set_sorter(EMAIL_TO_MSG, "sorter_ship_to", "5", "o.country_id"); } $s->set_sorter(SITE_NAME_MSG, "sorter_site_name", "6", "sti.site_name"); $n = new VA_Navigator($settings["admin_templates_dir"], "navigator.html", "admin_orders.php"); include_once "./admin_header.php"; include_once "./admin_footer.php"; $where = "";