diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 03f7307dec8..96bfefb3bb9 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -27,6 +27,8 @@ if ($HTTP_POST_VARS["action"] == 'add') { $contact = new Contact($db); + $contact->socid = $HTTP_POST_VARS["socid"]; + $contact->name = $HTTP_POST_VARS["name"]; $contact->firstname = $HTTP_POST_VARS["firstname"]; @@ -75,13 +77,6 @@ if ($action == 'update') $contact->email = $HTTP_POST_VARS["email"]; $contact->jabberid = $HTTP_POST_VARS["jabberid"]; - $contact->birthday = mktime(12, 1 , 1, - $HTTP_POST_VARS["remonth"], - $HTTP_POST_VARS["reday"], - $HTTP_POST_VARS["reyear"]); - - $contact->birthday_alert = $HTTP_POST_VARS["birthday_alert"]; - $result = $contact->update($HTTP_POST_VARS["contactid"], $user); } @@ -103,6 +98,21 @@ if ($action == 'create_user') llxHeader(); +print '
'; +print '| Société | '.$objsoc->nom.' | '; + } + print '|||||
| Nom | '; print ' | Prenom | '; @@ -167,20 +188,6 @@ elseif ($_GET["action"] == 'edit') print ' | |||
| Jabberid | ||||||
| Date de naissance | '; - $html = new Form($db); - print $html->select_date(); - print ' | Alerte : '; - if ($contact->birthday_alert) - { - print ' | '; - } - print ' | |||
| Note | ||||||
| Société : '.$objsoc->nom_url.' | |
| Nom : '.$contact->name.' '.$contact->firstname ." "; if ($contact->poste) @@ -205,12 +227,6 @@ else if ($contact->jabberid) print 'Jabber : '.$contact->jabberid ." "; - if ($contact->birthday) - print 'Date de naissance : '.strftime("%d %B %Y",$contact->birthday); - - if ($contact->birthday_alert) - print ' (alerte)'; - print " "; print ' | ';
@@ -232,25 +248,20 @@ else
print nl2br($contact->note);
+ print "";
+
if ($user->societe_id == 0)
{
- print ' \n"; } - - -$db->close(); + $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$"); ?> |