diff --git a/ChangeLog b/ChangeLog index 636403a0b16..7f10f204e3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,3 @@ -2003-09-12 Brian Fraval - - * Ajout de la suppression d'une société, avec confirmation. - 2003-09-12 Rodolphe Quiédeville * Correction DOL_URL_ROOT dans fourn/contact.php sur l'image diff --git a/htdocs/soc.php b/htdocs/soc.php index 2148c413241..76634dd6a73 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -36,15 +36,6 @@ if ($user->societe_id > 0) llxHeader(); - -if ($action == 'del') -{ - print_titre("Suppression de la société"); - - $soc = new Societe($db); - $soc->delete($socid); -} - if ($action == 'add') { $soc = new Societe($db); @@ -165,40 +156,22 @@ elseif ($action == 'edit') print ''; } } else { - - - if ($action != "del") - { - print_titre("Fiche société"); - - $soc = new Societe($db); - $soc->id = $socid; - $soc->fetch($socid); - - print " - -"; - - print ''; - print ''; - print ''; - print ''; - - print ''; - print ''; - print ''; + + + print_titre("Fiche société"); + + $soc = new Societe($db); + $soc->id = $socid; + $soc->fetch($socid); + + print '
Nom'.$soc->nom.'
Adresse'.nl2br($soc->adresse).' 
CP'.$soc->cp.' '.$soc->ville.'
Tel'.$soc->tel.'
Fax'.$soc->fax.'
Webhttp://'.$soc->url.'
'; + print ''; + print ''; + print ''; + + print ''; + print ''; + print ''; print ''; @@ -232,7 +205,7 @@ function Delete(socid) print ''; - print ''; + print ''; print ''; print ''; print ''; @@ -267,8 +240,6 @@ function Delete(socid) } } } - } - } $db->close(); diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 95e31adc75a..c356b36917a 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -96,7 +96,8 @@ class Societe { /* * Suppression d'une societe. - * TODO: il faut ajouter la suppression du répertoire de la societe + * TODO: Cette fonction n'est pas utilisée.. + * Attente des contraintes d'intégrité dans MySql */ Function delete($id) { @@ -126,7 +127,6 @@ class Societe { rmdir(${dir}); } - if (file_exists ($docdir)) { deldir($docdir);
Nom'.$soc->nom.'
Adresse'.nl2br($soc->adresse).' 
CP'.$soc->cp.' '.$soc->ville.'
Tel'.$soc->tel.'
Fax'.$soc->fax.'
Webhttp://'.$soc->url.'
Siren'.$soc->siren.' 
[Editer][Supprimer]---[Notifications]