Ajout config du nombre de ligne

This commit is contained in:
Rodolphe Quiedeville
2003-09-23 11:55:51 +00:00
parent 9954932d0c
commit 3c7b3f084c

View File

@@ -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 <20>t<EFBFBD> lue en avant du nouveau set
// on passe donc par une variable pour avoir un affichage coh<6F>rent
Header("Location: propale.php");
}
}
llxHeader();
if (!$user->admin)
@@ -87,7 +99,6 @@ if ($action == 'setmod')
}
}
/*
*
*
@@ -245,6 +256,18 @@ print '</table>';
*
*
*/
print_titre("Formulaire de cr<63>ation");
print '<form method="post" action="propale.php?action=nbprod">';
print '<table border="1" cellpadding="3" cellspacing="0">';
print '<TR class="liste_titre">';
print '<td>Nom</td>';
print '<td>Valeur</td><td>&nbsp;</td>';
print "</TR>\n";
print '<tr><td>';
print 'Nombre de ligne produits</td><td align="center">';
print '<input size="3" type="text" name="value" value="'.PROPALE_NEW_FORM_NB_PRODUCT.'">';
print '</td><td><input type="submit" value="changer"></td></tr></table></form>';
$db->close();