| [ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: boutique-special-all.php,v 1.7 2004/10/23 16:57:27 eldy Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/admin/boutique-special-all.php,v $ 20 * 21 */ 22 23 /*! \file htdocs/admin/boutique-special-all.php 24 \ingroup boutique 25 \brief Page d'administration/configuration du module Boutique 26 \version $Revision: 1.7 $ 27 */ 28 29 require ("./pre.inc.php"); 30 require ("../boutique/livre/livre.class.php"); 31 require ("../boutique/editeur/editeur.class.php"); 32 require ("../boutique/auteur/auteur.class.php"); 33 require ("../product/promotion/promotion.class.php"); 34 35 $langs->load("admin"); 36 37 if (!$user->admin) 38 accessforbidden(); 39 40 41 llxHeader(); 42 43 44 print_barre_liste("Mise a jour de tous les livres", $page, "boutique-special-all.php"); 45 46 $sql = "SELECT l.rowid FROM ".MAIN_DB_PREFIX."livre as l"; 47 48 if ( $db->query($sql) ) 49 { 50 $num = $db->num_rows(); 51 $i = 0; 52 53 while ($i < $num) { 54 $objp = $db->fetch_object(); 55 56 $livre = new Livre($db); 57 if ($livre->fetch($objp->rowid)) 58 { 59 60 $prom = new Promotion($db); 61 $prom->create($user,$livre->oscid, 5); 62 63 } 64 else 65 { 66 print "Error can't fetch"; 67 } 68 $i++; 69 } 70 } 71 else 72 { 73 print $db->error(); 74 } 75 76 77 78 llxFooter(); 79 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
|