diff --git a/htdocs/comm/propal/contact.php b/htdocs/comm/propal/contact.php index 194286a04b7..8fd58c52d95 100644 --- a/htdocs/comm/propal/contact.php +++ b/htdocs/comm/propal/contact.php @@ -279,12 +279,12 @@ if ($id > 0 || ! empty($ref)) print ''; $selectedCompany = isset($_GET["newcompany"])?$_GET["newcompany"]:$propal->client->id; - $selectedCompany = $formcompany->selectCompaniesForNewContact($propal, 'propalid', $selectedCompany, $htmlname = 'newcompany'); + $selectedCompany = $formcompany->selectCompaniesForNewContact($propal, 'propalid', $selectedCompany, 'newcompany'); print ''; print ''; //$contactAlreadySelected = $propal->getListContactId('external'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type - $nbofcontacts=$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0, $contactAlreadySelected); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; diff --git a/htdocs/commande/contact.php b/htdocs/commande/contact.php index 10e2aa00ea2..472fbd74523 100644 --- a/htdocs/commande/contact.php +++ b/htdocs/commande/contact.php @@ -281,7 +281,7 @@ if ($id > 0 || ! empty($ref)) print ''; // $contactAlreadySelected = $commande->getListContactId('external'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type - $nbofcontacts=$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0, $contactAlreadySelected); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; diff --git a/htdocs/contrat/contact.php b/htdocs/contrat/contact.php index 819a016bba8..e45d73cdb39 100644 --- a/htdocs/contrat/contact.php +++ b/htdocs/contrat/contact.php @@ -279,7 +279,7 @@ if ($id > 0) print ''; //$contactAlreadySelected = $contrat->getListContactId('external'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type - $nbofcontacts=$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0, $contactAlreadySelected); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php index 422fce2b8bd..d4207cdcda3 100644 --- a/htdocs/fichinter/contact.php +++ b/htdocs/fichinter/contact.php @@ -266,7 +266,7 @@ if ($id > 0) print ''; //$contactAlreadySelected = $fichinter->getListContactId('external'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type - $nbofcontacts=$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0, $contactAlreadySelected); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; diff --git a/htdocs/fourn/commande/contact.php b/htdocs/fourn/commande/contact.php index 8663a821ac8..4890d4b7b3a 100644 --- a/htdocs/fourn/commande/contact.php +++ b/htdocs/fourn/commande/contact.php @@ -273,7 +273,7 @@ if ($id > 0 || ! empty($ref)) print ''; // $contactAlreadySelected = $commande->getListContactId('external'); // On ne doit pas desactiver un contact deja selectionner car on doit pouvoir le seclectionner une deuxieme fois pour un autre type - $nbofcontacts=$html->select_contacts($selectedCompany, $selected = '', $htmlname = 'contactid',0,$contactAlreadySelected); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0, $contactAlreadySelected); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php index bef003cfea5..07787090655 100644 --- a/htdocs/projet/contact.php +++ b/htdocs/projet/contact.php @@ -267,15 +267,15 @@ if ($id > 0 || ! empty($ref)) print ''; - print '
'; - print ''; - print ''; - print ''; - print ''; - // Line to add external contact. Only if project is linked to a third party. if ($project->societe->id) { + print ''; + print ''; + print ''; + print ''; + print ''; + $var=!$var; print ""; @@ -289,7 +289,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; - $nbofcontacts=$html->select_contacts($selectedCompany,'','contactid',0); + $nbofcontacts=$html->select_contacts($selectedCompany, '', 'contactid', 0); if ($nbofcontacts == 0) print $langs->trans("NoContactDefined"); print ''; print ''; @@ -299,9 +299,9 @@ if ($id > 0 || ! empty($ref)) if (! $nbofcontacts) print ' disabled="true"'; print '>'; print ''; - } - print "
"; + print ""; + } print ' '; } diff --git a/htdocs/projet/tasks/contact.php b/htdocs/projet/tasks/contact.php index 6e66ac78256..eda1ee9fd80 100644 --- a/htdocs/projet/tasks/contact.php +++ b/htdocs/projet/tasks/contact.php @@ -268,15 +268,15 @@ if ($id > 0 || ! empty($ref)) print ''; - print '
'; - print ''; - print ''; - print ''; - print ''; - // Line to add an external contact. Only if project linked to a third party. if ($project->socid) { + print ''; + print ''; + print ''; + print ''; + print ''; + $var=!$var; print ""; @@ -302,9 +302,9 @@ if ($id > 0 || ! empty($ref)) if (! $nbofcontacts) print ' disabled="true"'; print '>'; print ''; - } - print "
"; + print ""; + } print ' '; }