From df1c3c03cb40d3d2abef458781f75bfd508c56fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Jun 2006 23:23:17 +0000 Subject: [PATCH] =?UTF-8?q?Le=20param=E8tre=20PROPALE=5FVALIDITY=5FDURATIO?= =?UTF-8?q?N=20peut=20s'=E9diter=20depuis=20page=20config=20module=20propa?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/propale.php | 135 +++++++++++++++++++-------------------- 1 file changed, 64 insertions(+), 71 deletions(-) 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 "\n"; +print "\n"; +print "\n"; +print ""; + +$var=!$var; +print ""; +print ""; +print ""; +print ''; +print ""; +print ''; +print ''; +print ''; + +$var=!$var; +print ""; +print ""; +print ""; +print ''; +print ""; +print ''; +print ''; +print ''; + + +if ($conf->commande->enabled) +{ + $var=!$var; + print ""; + print ""; + print ""; + print ''; + print ""; + print ''; + print ''; + print ''; +} + +print '
".$langs->trans("Parameter")."".$langs->trans("Value")." 
'.$langs->trans("NumberOfProductLines").'global->PROPALE_NEW_FORM_NB_PRODUCT."\">
'.$langs->trans("DefaultProposalDurationValidity").'global->PROPALE_VALIDITY_DURATION."\">
'.$langs->trans("ClassifiedInvoicedWithOrder").'"; + print $html->selectyesno('value',$conf->global->PROPALE_CLASSIFIED_INVOICED_WITH_ORDER,1); + print "
'; + + /* * Repertoire @@ -365,70 +422,6 @@ print "\n
"; -/* - * Formulaire création - * - */ -print_titre($langs->trans("CreateForm")); - -print "
"; -print ""; -print ""; -print ""; -print " \n"; -print " \n"; -print " \n"; -print ""; -print ''; -print ""; -print ''; -print ''; -print '
".$langs->trans("Name")."".$langs->trans("Value")." 
'.$langs->trans("NumberOfProductLines").'
'; -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 ''; - print ''; - print ''; - print "\n"; - print ""; - print ""; - print ""; - print ''; - print ''; - print ""; - print ''; - print '
'.$langs->trans("Name").' '.$langs->trans("Active").'
'.$langs->trans("ClassifiedInvoicedWithOrder").''; - if($conf->global->PROPALE_CLASSIFIED_INVOICED_WITH_ORDER == 1) - { - print img_tick(); - } - print '"; - if($conf->global->PROPALE_CLASSIFIED_INVOICED_WITH_ORDER == 0) - { - print ''.$langs->trans("Activate").''; - } - else if($conf->global->PROPALE_CLASSIFIED_INVOICED_WITH_ORDER == 1) - { - print ''.$langs->trans("Disable").''; - } - print "
'; - print ''; - - print '
'; -} - $db->close(); llxFooter('$Date$ - $Revision$');