* * 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. * * */ require("./pre.inc.php"); $langs->load("companies"); llxHeader(); if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; print_barre_liste("Liste des commandes de la boutique web", $page, "index.php"); set_magic_quotes_runtime(0); //WebService Client. require_once(NUSOAP_PATH."nusoap.php"); require_once("../includes/configure.php"); // Set the parameters to send to the WebService $parameters = array("orderid"=>"0"); // Set the WebService URL $client = new soapclient(OSCWS_DIR."ws_orders.php"); $result = $client->call("get_Order",$parameters ); // echo '
'; print_r($result); echo ''; if ($client->fault) { dolibarr_print_error('',"erreur de connection "); } elseif (!($err = $client->getError()) ) { $num=0; if ($result) $num = sizeof($result); $var=True; $i=0; // une commande osc $OscOrder = new Osc_Order($db); if ($num > 0) { print "
| id | "; print 'Commande | '; print "Client | "; print "Date | "; print "Montant | "; print 'Paiement | '; print 'Statut | '; print 'Importer | '; print "
| '.$result[$i][orders_id]." | \n"; print ''.$ordid." | \n"; print "".$result[$i][customers_name]." | \n"; print "".$result[$i][date_purchased]." | \n"; $tot = convert_price($result[$i][total]) + convert_price($result[$i][port]); print "".$tot." | \n"; print ''.' '.$result[$i][payment_method]." | \n"; print ''.$result[$i][statut]." | \n"; if ($ordid) $lib = "modifier"; else $lib = "importer"; print ''.$lib." | \n"; print "