* * * 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Source$ * */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/societe.class.php"); require_once("../includes/configure.php"); llxHeader(); if ($action == '' && !$cancel) { if ($_GET['custid']) { $osc_cust = new Osc_customer($_GET['custid']); $result = $osc_cust->fetch($_GET['custid']); if ( !$result) { print '
| Ville | '.$osc_cust->osc_custcity.' | '; print '
| Pays | '.$osc_cust->osc_custcountry.' | '; print '
| Id OSC | '.$osc_cust->osc_custid.' | '; print '
| Téléphone | '.$osc_cust->osc_custtel.' | '; print '
| '.$osc_cust->osc_custmail.' | '; print "
ERROR 1c
\n"; dolibarr_print_error('',"erreur webservice ".$osc_cust->error); } } else { print "ERROR 1b
\n"; print "Error"; } } /* action Import création de l'objet product de dolibarr * */ if (($_GET["action"] == 'import' ) && ( $_GET["custid"] != '' ) && $user->rights->produit->creer) { $osc_cust = new Osc_customer(); $result = $osc_cust->fetch($_GET['custid']); if ( !$result ) { $societe = new Societe($db); if ($_error == 1) { print '