[ 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/admin/ -> produit.php (source)

   1  <?php
   2  /* Copyright (C) 2004-2005 Laurent Destailleur       <eldy@users.sourceforge.net>
   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: produit.php,v 1.1 2005/10/13 21:40:43 eldy Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/admin/produit.php,v $
  20   */
  21  
  22  /**
  23          \file       htdocs/admin/produit.php
  24          \ingroup    produit
  25          \brief      Page d'administration/configuration du module Produit
  26          \version    $Revision: 1.1 $
  27  */
  28  
  29  require ("./pre.inc.php");
  30  
  31  $langs->load("admin");
  32  $langs->load("propal");
  33  
  34  if (!$user->admin)
  35    accessforbidden();
  36  
  37  
  38  if ($_POST["action"] == 'nbprod')
  39  {
  40      dolibarr_set_const($db, "PRODUIT_LIMIT_SIZE", $_POST["value"]);
  41      Header("Location: produit.php");
  42      exit;
  43  }
  44  
  45  
  46  
  47  /*
  48   * Affiche page
  49   */
  50  
  51  llxHeader('',$langs->trans("ProductSetup"));
  52  
  53  
  54  print_titre($langs->trans("ProductSetup"));
  55  
  56  /*
  57   * Formulaire parametres divers
  58   */
  59  
  60  print '<br>';
  61  print "<form method=\"post\" action=\"produit.php\">";
  62  print "<input type=\"hidden\" name=\"action\" value=\"nbprod\">";
  63  print "<table class=\"noborder\" width=\"100%\">";
  64  print "<tr class=\"liste_titre\">";
  65  print "  <td>".$langs->trans("Name")."</td>\n";
  66  print "  <td align=\"left\">".$langs->trans("Value")."</td>\n";
  67  print "  <td>&nbsp;</td>\n";
  68  print "</tr><tr ".$bc[false].">";
  69  print '<td>'.$langs->trans("NumberOfProductShowInSelect").'</td>';
  70  print "<td align=\"left\"><input size=\"3\" type=\"text\" class=\"flat\" name=\"value\" value=\"".$conf->global->PRODUIT_LIMIT_SIZE."\"></td>";
  71  print '<td><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
  72  print '</tr>';
  73  print '</table>';
  74  print '</form>';
  75  
  76  $db->close();
  77  
  78  llxFooter();
  79  ?>


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