bugfix avec les dates de naissances

This commit is contained in:
Rodolphe Quiedeville 2004-05-28 15:04:20 +00:00
parent cc4c241edd
commit 8cfa06ab2d

View File

@ -28,10 +28,8 @@ if ($HTTP_POST_VARS["action"] == 'update')
$contact = new Contact($db);
$contact->id = $HTTP_POST_VARS["contactid"];
$contact->birthday = mktime(12, 1 , 1,
$HTTP_POST_VARS["remonth"],
$HTTP_POST_VARS["reday"],
$HTTP_POST_VARS["reyear"]);
$contact->birthday = $HTTP_POST_VARS["reyear"].'-'.$HTTP_POST_VARS["remonth"].'-'.$HTTP_POST_VARS["reday"];
$contact->birthday_alert = $HTTP_POST_VARS["birthday_alert"];
@ -77,7 +75,7 @@ if ($_GET["action"] == 'edit')
print '<tr><td>Date de naissance</td><td>';
$html = new Form($db);
print $contact->birthday;
print $html->select_date('','re',0,0,1);
print '</td><td>Alerte : ';
if ($contact->birthday_alert)