[ 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/commande/ -> info.php (source)

   1  <?php
   2  /* Copyright (C) 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: info.php,v 1.3 2005/10/02 19:33:00 eldy Exp $
  19   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/commande/info.php,v $
  20   *
  21   */
  22  
  23  /**
  24          \file       htdocs/commande/info.php
  25          \ingroup    commande
  26          \brief      Page des informations d'une commande
  27          \version    $Revision: 1.3 $
  28  */
  29  
  30  require ("./pre.inc.php");
  31  require_once (DOL_DOCUMENT_ROOT."/commande/commande.class.php");
  32  
  33  $langs->load("orders");
  34  $langs->load("sendings");
  35  
  36  
  37  /*
  38   * Visualisation de la fiche
  39   *
  40   */
  41  
  42  llxHeader();
  43  
  44  $commande = new Commande($db);
  45  $commande->fetch($_GET["id"]);
  46  $commande->info($_GET["id"]);
  47  $soc = new Societe($db, $commande->socidp);
  48  $soc->fetch($commande->socidp);
  49  
  50  $h = 0;
  51  
  52        if ($conf->commande->enabled && $user->rights->commande->lire)
  53          {
  54            $head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
  55            $head[$h][1] = $langs->trans("OrderCard");
  56            $h++;
  57          }
  58               
  59        if ($conf->expedition->enabled && $user->rights->expedition->lire)
  60          {
  61            $head[$h][0] = DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id;
  62            $head[$h][1] = $langs->trans("SendingCard");
  63            $h++;
  64          }
  65  
  66        if ($conf->compta->enabled)
  67          {
  68            $head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id;
  69            $head[$h][1] = $langs->trans("ComptaCard");
  70            $h++;
  71          }
  72   
  73        $head[$h][0] = DOL_URL_ROOT.'/commande/info.php?id='.$commande->id;
  74        $head[$h][1] = $langs->trans("Info");
  75          $hselected = $h;
  76        $h++;
  77  
  78  dolibarr_fiche_head($head, $hselected, $langs->trans("Order").": $commande->ref");
  79  
  80  
  81  print '<table width="100%"><tr><td>';
  82  dolibarr_print_object_info($commande);
  83  print '</td></tr></table>';
  84  
  85  print '</div>';
  86  
  87  // Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent
  88  print '<div class="tabsAction">';
  89  print '</div>';
  90  
  91  
  92  $db->close();
  93  
  94  llxFooter('$Date: 2005/10/02 19:33:00 $ - $Revision: 1.3 $');
  95  ?>


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