diff --git a/htdocs/admin/propale.php b/htdocs/admin/propale.php
index 46a37ed02a4..44fc2ad25c6 100644
--- a/htdocs/admin/propale.php
+++ b/htdocs/admin/propale.php
@@ -71,24 +71,25 @@ if ($_GET["action"] == 'specimen')
}
}
-if ($_POST["action"] == 'nbprod')
+if ($_POST["action"] == 'setnbprod')
{
dolibarr_set_const($db, "PROPALE_NEW_FORM_NB_PRODUCT",$_POST["value"]);
Header("Location: propale.php");
exit;
}
-if ($_GET["action"] == 'activate_classifiedinvoiced')
+if ($_POST["action"] == 'setdefaultduration')
{
- dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER", "1");
+ dolibarr_set_const($db, "PROPALE_VALIDITY_DURATION",$_POST["value"]);
Header("Location: propale.php");
exit;
}
-else if ($_GET["action"] == 'disable_classifiedinvoiced')
+
+if ($_POST["action"] == 'setclassifiedinvoiced')
{
- dolibarr_del_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER");
- Header("Location: propale.php");
- exit;
+ dolibarr_set_const($db, "PROPALE_CLASSIFIED_INVOICED_WITH_ORDER",$_POST["value"]);
+ Header("Location: propale.php");
+ exit;
}
if ($_GET["action"] == 'set')
@@ -348,6 +349,62 @@ while (($file = readdir($handle))!==false)
closedir($handle);
print '';
+print '
';
+
+
+/*
+ * Autres options
+ *
+ */
+print_titre($langs->trans("OtherOptions"));
+
+$var=true;
+print "
";
+print "";
+print "| ".$langs->trans("Parameter")." | \n";
+print "".$langs->trans("Value")." | \n";
+print " | \n";
+print "
";
+
+$var=!$var;
+print "';
+
+$var=!$var;
+print "';
+
+
+if ($conf->commande->enabled)
+{
+ $var=!$var;
+ print "';
+}
+
+print '
';
+
+
/*
* Repertoire
@@ -365,70 +422,6 @@ print "\n
";
-/*
- * Formulaire création
- *
- */
-print_titre($langs->trans("CreateForm"));
-
-print "';
-
-print '
';
-
-/*
- * Classé facturée une propale en même temps que la commande
- *
- */
-
-if ($conf->commande->enabled)
-{
- print_titre($langs->trans("ClassifiedInvoiced"));
- print '';
- print '';
- print '| '.$langs->trans("Name").' | ';
- print ' | ';
- print ''.$langs->trans("Active").' | ';
- print "
\n";
- print "
';
- print '';
-
- print '
';
-}
-
$db->close();
llxFooter('$Date$ - $Revision$');