getAnnonceCollecte($idan, $siret); $idanResult = $O['result']; } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client, $fault, $_SESSION['tabInfo']); } return $idanResult; } function supprAnnonceCollecte($idan, $siret = ''){ global $client; try { $O = $client->supprAnnonceCollecte($idan, $siret); $error = $O['error']; } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client, $fault, $_SESSION['tabInfo']); } if ( isset($error) && $error['errNum'] == 0 ){ $output = 'Annonce '.$idan.' supprimé !'; } elseif ( isset($error) && $error['errNum'] != 0 ) { $output = 'Erreur lors de la suppression.'; } else { $output = "Une erreur est survenue..."; } return $output; } function dupliqueAnnonceCollecte($idan, $siret){ global $client; try { $O = $client->dupliqueAnnonceCollecte($idan, $siret); $error = $O['error']; } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client, $fault, $_SESSION['tabInfo']); } if ( isset($error) && $error['errNum'] == 0 ){ $output = 'Annonce '.$idan.' dupliqué sur '.$siret.'!'; } elseif ( isset($error) && $error['errNum'] != 0 ) { $output = 'Erreur lors de la duplication.'; } else { $output = "Une erreur est survenue..."; } return $output; } switch ( $subaction ) { case 'deleteDialog': $idan = $params[2]; $siret = $params[3]; ?>