[ 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.7 2004/10/31 13:35:08 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/album/index.php,v $ 21 * 22 */ 23 require ("./pre.inc.php"); 24 25 llxHeader(); 26 27 if ($sortfield == "") 28 { 29 $sortfield="lower(a.title)"; 30 } 31 32 if ($sortorder == "") 33 { 34 $sortorder="ASC"; 35 } 36 37 38 if ($page == -1) { $page = 0 ; } 39 $limit = $conf->liste_limit; 40 $offset = $limit * $page ; 41 42 43 print_barre_liste("Liste des albums", $page, "index.php"); 44 45 $sql = "SELECT a.rowid, a.title, a.osc_id FROM ".MAIN_DB_PREFIX."album as a"; 46 47 $sql .= " ORDER BY $sortfield $sortorder "; 48 $sql .= $db->plimit( $limit ,$offset); 49 50 if ( $db->query($sql) ) { 51 $num = $db->num_rows(); 52 $i = 0; 53 print "<table class=\noborder\" width=\"100%\">"; 54 print "<tr class=\"liste_titre\">"; 55 print_liste_field_titre("Titre","index.php", "a.title"); 56 print "</td>"; 57 print "<td> </td>"; 58 print "</tr>\n"; 59 $var=True; 60 while ($i < $num) { 61 $objp = $db->fetch_object( $i); 62 $var=!$var; 63 print "<tr $bc[$var]>"; 64 print "<td><a href=\"fiche.php?id=$objp->rowid\">$objp->title</a></td>\n"; 65 print '<td align="right"><a href="'.OSC_CATALOG_URL.'product_info.php?products_id='.$objp->osc_id.'">url</a></td>'; 66 print "</tr>\n"; 67 $i++; 68 } 69 print "</table>"; 70 $db->free(); 71 } 72 73 74 $db->close(); 75 76 llxFooter("<em>Dernière modification $Date: 2004/10/31 13:35:08 $ révision $Revision: 1.7 $</em>"); 77 ?>
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 |
![]() |