[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/product/critiques/ -> fiche.php (source)

   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: fiche.php,v 1.3 2004/10/20 20:06:50 opensides Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/critiques/fiche.php,v $
  20   *
  21   */
  22  
  23  require ("./pre.inc.php");
  24  
  25  llxHeader();
  26  
  27  if ($id)
  28  {
  29  
  30    $critique = new Critique($db);
  31    $result = $critique->fetch($id);
  32    
  33    if ( $result )
  34      { 
  35  
  36        print '<div class="titre">Fiche Critique</div><br>';
  37        
  38        print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
  39        print "<tr>";
  40        print '<td width="20%">Produit</td><td width="80%">'.$critique->product_name.'</td></tr>';
  41  
  42        print '<tr><td width="20%">Texte</td><td width="80%">'.nl2br($critique->text).'</td></tr>';
  43        print "</table>";
  44        
  45  
  46  
  47      }
  48    else
  49      {
  50        print "Fetch failed";
  51      }
  52    
  53  }
  54  
  55  /* ************************************************************************** */
  56  /*                                                                            */ 
  57  /* Barre d'action                                                             */ 
  58  /*                                                                            */ 
  59  /* ************************************************************************** */
  60  
  61  print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
  62  print '<td width="20%" align="center">-</td>';
  63  print '<td width="20%" align="center">-</td>';
  64  print '<td width="20%" align="center">-</td>';
  65  print '<td width="20%" align="center">-</td>';
  66  print '<td width="20%" align="center">-</td>';    
  67  print '</table><br>';
  68  
  69  
  70  
  71  $db->close();
  72  
  73  llxFooter("<em>Derni&egrave;re modification $Date: 2004/10/20 20:06:50 $ r&eacute;vision $Revision: 1.3 $</em>");
  74  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics