diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 3cfbf516322..e2b49475463 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -59,9 +59,9 @@ if ($HTTP_POST_VARS["action"] == 'add_action') $actioncomm->date = $db->idate(mktime($HTTP_POST_VARS["heurehour"], $HTTP_POST_VARS["heuremin"], 0, - $HTTP_POST_VARS["remonth"], - $HTTP_POST_VARS["reday"], - $HTTP_POST_VARS["reyear"]) + $HTTP_POST_VARS["acmonth"], + $HTTP_POST_VARS["acday"], + $HTTP_POST_VARS["acyear"]) ); if ($HTTP_POST_VARS["actionid"] == 5) { @@ -191,7 +191,8 @@ if ($_GET["action"] == 'create') print ''.$societe->nom.''; print 'Contact'.$contact->fullname.''; print 'Date'; - print_date_select(); + $html= new Form($db); + $html->select_date('','ac'); print ''; print 'Heure'; print_heure_select("heure",8,20); @@ -364,22 +365,19 @@ if ($id) /* * */ - print '
'; - print ''; + print 'Annuler'; } else { - print 'Editer'; + print 'Editer'; } - print ''; - print ''; - print ''; - print ''; - print '
'; - if ($action=='edit') + print '
'; + + if ($_GET["action"] == 'edit') { - print 'Annuler
---'; - print 'Supprimer
'; + + print 'Supprimer'; + print ''; } $db->close();