[ 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: osc-languages.php,v 1.9 2005/07/09 14:34:44 eldy Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/admin/osc-languages.php,v $ 20 * 21 */ 22 23 /*! \file htdocs/admin/osc-languages.php 24 \ingroup boutique 25 \brief Page d'administration/configuration du module Boutique 26 \version $Revision: 1.9 $ 27 */ 28 29 require ("./pre.inc.php"); 30 31 $langs->load("admin"); 32 33 if (!$user->admin) 34 accessforbidden(); 35 36 37 llxHeader(); 38 39 40 if (! strlen(OSC_DB_NAME)) 41 { 42 print "Non dispo"; 43 llxFooter(); 44 } 45 46 if ($sortfield == "") { 47 $sortfield="lower(p.label),p.price"; 48 } 49 if ($sortorder == "") { 50 $sortorder="ASC"; 51 } 52 53 if ($page == -1) { $page = 0 ; } 54 $limit = $conf->liste_limit; 55 $offset = $limit * $page ; 56 57 58 print_barre_liste("Liste des langues oscommerce", $page, "osc-languages.php"); 59 60 $sql = "SELECT l.languages_id, l.name, l.code FROM ".OSC_DB_NAME.".languages as l"; 61 62 $sql .= $db->plimit( $limit ,$offset); 63 64 print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">"; 65 print "<TR class=\"liste_titre\">"; 66 print "<td>id</td>"; 67 print "<td>Name</td>"; 68 print "<TD>Code</TD>"; 69 print "</TR>\n"; 70 71 if ( $db->query($sql) ) { 72 $num = $db->num_rows(); 73 $i = 0; 74 75 $var=True; 76 while ($i < $num) { 77 $objp = $db->fetch_object(); 78 $var=!$var; 79 print "<TR $bc[$var]>"; 80 print "<TD>$objp->languages_id</TD>\n"; 81 print "<TD>$objp->name</TD>\n"; 82 print "<TD>$objp->code</TD>\n"; 83 print "</TR>\n"; 84 $i++; 85 } 86 $db->free(); 87 } 88 89 print "</TABLE>"; 90 91 92 $db->close(); 93 94 llxFooter("<em>Dernière modification $Date: 2005/07/09 14:34:44 $ révision $Revision: 1.9 $</em>"); 95 ?>
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 |
![]() |