From b77885c5d54a13896374f16cdea5b091b7b202c7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 13 Feb 2004 14:16:56 +0000 Subject: [PATCH] Synchro --- htdocs/comm/people.php | 53 +----------------------------------------- 1 file changed, 1 insertion(+), 52 deletions(-) diff --git a/htdocs/comm/people.php b/htdocs/comm/people.php index 38f2ddd77b5..e9a964f3f9d 100644 --- a/htdocs/comm/people.php +++ b/htdocs/comm/people.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2004 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,42 +28,6 @@ if ($sortorder == "") $sortorder="ASC"; } -if ($action == 'add') -{ - $email = trim($email); - - if (strlen(trim($name)) + strlen(trim($firstname)) > 0) - { - $sql = "INSERT INTO ".MAIN_DB_PREFIX."socpeople (datec, fk_soc,name, firstname, poste, phone,fax,email) "; - $sql .= " VALUES (now(),$socid,'$name','$firstname','$poste','$phone','$fax','$email')"; - $result = $db->query($sql); - if ($result) - { - Header("Location: fiche.php?socid=$socid"); - } - } -} -if ($action == 'update') -{ - if (strlen(trim($name)) + strlen(trim($firstname)) > 0) - { - $contact = new Contact($db); - $contact->name = $name; - $contact->firstname = $firstname; - $contact->poste = $poste; - $contact->phone = $phone; - $contact->fax = $fax; - $contact->note = $note; - $contact->email = $email; - - $result = $contact->update($contactid); - if ($result) - { - Header("Location: fiche.php?socid=$socid"); - } - } -} - if ($action == 'create_user') { $nuser = new User($db); @@ -165,21 +129,6 @@ if ($socid > 0) print ""; - if ($action == 'addcontact') - { - print "
"; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print "
NomPrenom
Poste
TelFax
Email
"; - print "
"; - } /* * * Edition du contact