mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Ajout config du nombre de ligne
This commit is contained in:
@@ -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> </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();
|
||||
|
||||
Reference in New Issue
Block a user