/[dolibarr]/dolibarr/htdocs/product/barcode.php
ViewVC logotype

Diff of /dolibarr/htdocs/product/barcode.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by eldy, Sat Jul 16 01:33:17 2005 UTC revision 1.5 by eldy, Thu Aug 25 00:21:26 2005 UTC
# Line 52  $product = new Product($db); Line 52  $product = new Product($db);
52  $result = $product->fetch($_GET["id"]);  $result = $product->fetch($_GET["id"]);
53    
54    
55      $h=0;  $h=0;
56    
57      $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;  $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
58      $head[$h][1] = $langs->trans("Card");  $head[$h][1] = $langs->trans("Card");
59      $h++;  $h++;
60    
61      $head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;  $head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
62      $head[$h][1] = $langs->trans("Price");  $head[$h][1] = $langs->trans("Price");
63      $h++;  $h++;
64    
65              if($product->type == 0)  if($product->type == 0)
66              {  {
67                  if ($user->rights->barcode->lire)      if ($user->rights->barcode->lire)
                 {  
                     if ($conf->barcode->enabled)  
                     {  
                         $head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;  
                         $head[$h][1] = $langs->trans("BarCode");  
                         $hselected=$h;  
                         $h++;  
                     }  
                 }  
             }  
   
   
     $head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id;  
     $head[$h][1] = $langs->trans("Photos");  
     $h++;  
   
     if($product->type == 0)  
68      {      {
69          if ($conf->stock->enabled)          if ($conf->barcode->enabled)
70          {          {
71              $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;              $head[$h][0] = DOL_URL_ROOT."/product/barcode.php?id=".$product->id;
72              $head[$h][1] = $langs->trans("Stock");              $head[$h][1] = $langs->trans("BarCode");
73                $hselected=$h;
74              $h++;              $h++;
75          }          }
76      }      }
77    }
78    
79    
80      if ($conf->fournisseur->enabled) {  $head[$h][0] = DOL_URL_ROOT."/product/photos.php?id=".$product->id;
81          $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;  $head[$h][1] = $langs->trans("Photos");
82          $head[$h][1] = $langs->trans("Suppliers");  $h++;
83    
84    if($product->type == 0)
85    {
86        if ($conf->stock->enabled)
87        {
88            $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
89            $head[$h][1] = $langs->trans("Stock");
90          $h++;          $h++;
91      }      }
92    }
93    
94          $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;  if ($conf->fournisseur->enabled) {
95          $head[$h][1] = $langs->trans("Statistics");      $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
96          $h++;      $head[$h][1] = $langs->trans("Suppliers");
97                $h++;
98          //erics: pour créer des produits composés de x 'sous' produits  }
               $head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;  
               $head[$h][1] = $langs->trans('Packs');  
               $h++;  
99    
100          $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;  $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
101          $head[$h][1] = $langs->trans("Bills");  $head[$h][1] = $langs->trans("Statistics");
102          $h++;  $h++;
103    
104    //erics: pour créer des produits composés de x 'sous' produits
105      $head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id;
106      $head[$h][1] = $langs->trans('Packs');
107      $h++;
108    
109    $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id;
110    $head[$h][1] = $langs->trans("Referers");
111    $h++;
112    
113    $head[$h][0] = DOL_URL_ROOT.'/product/document.php?id='.$product->id;
114    $head[$h][1] = $langs->trans('Documents');
115    $h++;
116    
117  dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);  dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
118    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26