[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2001-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: osc-reviews.php,v 1.6 2005/07/09 14:34:44 eldy Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/osc-reviews.php,v $ 20 * 21 */ 22 23 require ("./pre.inc.php"); 24 25 llxHeader(); 26 27 if ($sortfield == "") { 28 $sortfield="lower(p.label),p.price"; 29 } 30 if ($sortorder == "") { 31 $sortorder="ASC"; 32 } 33 34 35 if ($page == -1) { $page = 0 ; } 36 $limit = $conf->liste_limit; 37 $offset = $limit * $page ; 38 39 40 print_barre_liste("Liste des produits oscommerce", $page, "osc-reviews.php"); 41 42 $sql = "SELECT r.reviews_rating FROM ".OSC_DB_NAME.".reviews as r"; 43 44 //$sql .= " ORDER BY $sortfield $sortorder "; 45 $sql .= $db->plimit( $limit ,$offset); 46 47 print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">"; 48 print '<TR class="liste_titre">'; 49 print "<td></td>"; 50 print "<TD align=\"right\">Prix de vente</TD>"; 51 print "</TR>\n"; 52 53 if ( $db->query($sql) ) { 54 $num = $db->num_rows(); 55 $i = 0; 56 57 $var=True; 58 while ($i < $num) { 59 $objp = $db->fetch_object( $i); 60 $var=!$var; 61 print "<TR $bc[$var]>"; 62 print "<TD>$objp->reviews_rating</TD>\n"; 63 64 print "</TR>\n"; 65 $i++; 66 } 67 $db->free(); 68 } 69 70 print "</TABLE>"; 71 72 73 $db->close(); 74 75 llxFooter("<em>Dernière modification $Date: 2005/07/09 14:34:44 $ révision $Revision: 1.6 $</em>"); 76 ?>
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 |
![]() |