Exemple #1
0
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * 	    \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;