[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: index.php,v 1.8 2004/10/31 13:35:08 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/groupart/index.php,v $ 21 * 22 */ 23 require ("./pre.inc.php"); 24 25 llxHeader(); 26 27 if ($sortfield == "") 28 { 29 $sortfield="lower(g.nom)"; 30 } 31 if ($sortorder == "") 32 { 33 $sortorder="ASC"; 34 } 35 36 37 if ($page == -1) { $page = 0 ; } 38 $limit = $conf->liste_limit; 39 $offset = $limit * $page ; 40 41 42 print_barre_liste("Liste des Artistes/Groupes", $page, "index.php"); 43 44 $sql = "SELECT g.rowid, g.nom, groupart FROM ".MAIN_DB_PREFIX."groupart as g"; 45 46 $sql .= " ORDER BY $sortfield $sortorder "; 47 $sql .= $db->plimit( $limit ,$offset); 48 49 if ( $db->query($sql) ) { 50 $num = $db->num_rows(); 51 $i = 0; 52 print "<table class=\"noborder\" width=\"100%\">"; 53 print "<tr class=\"liste_titre\">"; 54 print_liste_field_titre($langs->trans("Ref"),"index.php", "p.ref"); 55 print "<td> </td>"; 56 print "</tr>\n"; 57 58 $var=True; 59 while ($i < $num) { 60 $objp = $db->fetch_object( $i); 61 $var=!$var; 62 print "<tr $bc[$var]>"; 63 print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->nom</a></td>\n"; 64 print "<td>".ucfirst(strtolower(strtoupper($objp->groupart)))."</td>\n"; 65 print "</tr>\n"; 66 $i++; 67 } 68 print "</table>"; 69 $db->free(); 70 } 71 72 73 $db->close(); 74 75 llxFooter("<em>Dernière modification $Date: 2004/10/31 13:35:08 $ révision $Revision: 1.8 $</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 |
![]() |