*/ /** * \file htdocs/boutique/promotion/index.php * \ingroup boutique * \brief Page gestion promotions OSCommerce */ require "../../main.inc.php"; require_once DOL_DOCUMENT_ROOT . '/boutique/osc_master.inc.php'; llxHeader(); if ($action == "inactive") { $promotion = new Promotion($dbosc); $promotion->set_inactive($id); } if ($action == "active") { $promotion = new Promotion($dbosc); $promotion->set_active($id); } if ($sortfield == "") { $sortfield = "pd.products_name"; } if ($sortorder == "") { $sortorder = "ASC"; } if ($page == -1) { $page = 0; } $limit = $conf->liste_limit; $offset = $limit * $page; print_barre_liste("Liste des promotions", $page, "index.php", "", $sortfield, $sortorder); $urladd = "&sortorder={$sortorder}&sortfield={$sortfield}"; $sql = "SELECT pd.products_name, s.specials_new_products_price, p.products_price, p.products_model, s.status, p.products_id,";