From 00de718e79937268f9eb17f869bac6edba9d1793 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 5 Feb 2012 12:40:08 +0100 Subject: [PATCH] Fix: W3C --- htdocs/contact/perso.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index 3699c0747e8..5ffdfaaab7b 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -45,11 +45,11 @@ $object = new Contact($db); if ($action == 'update' && ! $_POST["cancel"] && $user->rights->societe->contact->creer) { $ret = $object->fetch($id); - + // Note: Correct date should be completed with location to have exact GM time of birth. $object->birthday = dol_mktime(0,0,0,$_POST["birthdaymonth"],$_POST["birthdayday"],$_POST["birthdayyear"]); $object->birthday_alert = $_POST["birthday_alert"]; - + $result = $object->update_perso($id, $user); if ($result > 0) { @@ -84,13 +84,14 @@ if ($action == 'edit') /* * Fiche en mode edition */ - print ''; print ''; print ''; print ''; print ''; + print '
'; + // Ref print ''; // Date To Birth + print ''; if ($object->birthday != '') { include_once(DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'); - print '"; + print '"; } print ""; print "
'.$langs->trans("Ref").''; print $object->id; @@ -191,11 +192,12 @@ else print '
'.$langs->trans("DateToBirth").''.dol_print_date($object->birthday,"day"); + print ''.$langs->trans("DateToBirth").''.dol_print_date($object->birthday,"day"); print '   '; //var_dump($birthdatearray); @@ -214,15 +216,19 @@ else } else { - print '
'.$langs->trans("DateToBirth").''.$langs->trans("Unknown")."'.$langs->trans("DateToBirth").''.$langs->trans("Unknown")."
"; - print ""; +} + +dol_fiche_end(); +if ($action != 'edit') +{ // Barre d'actions if ($user->societe_id == 0) { @@ -235,11 +241,10 @@ else print ""; } - } + llxFooter(); $db->close(); - ?>