* * 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. * * $Id$ */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/product.class.php"); require_once(DOL_DOCUMENT_ROOT."/oscommerce_ws/includes/configure.php"); llxHeader(); $html = new Form($db); if ($_GET["action"] == 'liste' ) { // affichage des produits en vente a partir de la tavle de transco $sql = "SELECT o.doli_prodidp as idp, o.osc_prodid as oscid, o.osc_lastmodif as date "; $sql .= "FROM ".MAIN_DB_PREFIX."osc_product as o"; if ( $db->query($sql) ) { $langs->load("products"); $num = $db->num_rows(); if ($num) { $i = 0; print '
| '.$langs->trans("OscProds").' | |
| '.img_object($langs->trans("ShowProduct"),"Product").' '.$obj->idp.' | '; print ''.img_object($langs->trans("OscProd"),"Product").' '.$obj->oscid.' |
le produit ".$product->ref." ".$product->libelle.' est en vente en ligne consulter
'; print "\n"; // print_r($result); } } } else { print "Le produit ".$_POST["idprod"].' est deja en vente en ligne : consulter
'; print "\n"; } } /* choix du produit */ print '| '.$langs->trans('ProductsAndServices').' | '; print ''.$langs->trans('Qty').' | '; print '