diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php index 6d23a7fc01e..0cf77b05fd8 100644 --- a/htdocs/admin/propale.php +++ b/htdocs/admin/propale.php @@ -20,6 +20,18 @@ */ require("./pre.inc.php"); +if ($action == 'nbprod' && $user->admin) +{ + $sql = "REPLACE INTO llx_const SET name = 'PROPALE_NEW_FORM_NB_PRODUCT', value='".$value."', visible=0"; + + if ($db->query($sql)) + { + // la constante qui a été lue en avant du nouveau set + // on passe donc par une variable pour avoir un affichage cohérent + Header("Location: propale.php"); + } +} + llxHeader(); if (!$user->admin) @@ -87,7 +99,6 @@ if ($action == 'setmod') } } - /* * * @@ -245,6 +256,18 @@ print ''; * * */ +print_titre("Formulaire de création"); +print '
'; +print ''; +print ''; +print ''; +print ''; +print "\n"; +print '
NomValeur 
'; +print 'Nombre de ligne produits'; +print ''; +print '
'; + $db->close();