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

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

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

revision 1.28 by eldy, Sat Dec 3 03:49:01 2005 UTC revision 1.29 by eldy, Sat Dec 3 18:13:25 2005 UTC
# Line 222  if ($_GET["action"] == 'edit_price' && $ Line 222  if ($_GET["action"] == 'edit_price' && $
222    
223    
224  // Liste des evolutions du prix  // Liste des evolutions du prix
225  $sql = "SELECT p.rowid, p.price, ".$db->pdate("p.date_price")." as dp, u.login";  $sql = "SELECT p.rowid, p.price, ".$db->pdate("p.date_price")." as dp, u.rowid as user_id, u.login";
226  $sql .= " FROM ".MAIN_DB_PREFIX."product_price as p, llx_user as u";  $sql .= " FROM ".MAIN_DB_PREFIX."product_price as p, llx_user as u";
227  $sql .= " WHERE fk_product = ".$product->id;  $sql .= " WHERE fk_product = ".$product->id;
228  $sql .= " AND p.fk_user_author = u.rowid ";  $sql .= " AND p.fk_user_author = u.rowid ";
# Line 265  if ($result) Line 265  if ($result)
265              $objp = $db->fetch_object($result);              $objp = $db->fetch_object($result);
266              $var=!$var;              $var=!$var;
267              print "<tr $bc[$var]>";              print "<tr $bc[$var]>";
268            
269                // Date
270              print "<td>".dolibarr_print_date($objp->dp,"%d %b %Y %H:%M:%S")."</td>";              print "<td>".dolibarr_print_date($objp->dp,"%d %b %Y %H:%M:%S")."</td>";
271                
272                // Prix
273              print "<td>".price($objp->price)."</td>";              print "<td>".price($objp->price)."</td>";
             print "<td>".$objp->login."</td>";  
274    
275                // User
276                print '<td><a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$objp->user_id.'">'.img_object($langs->trans("ShowUser"),'user').' '.$objp->login.'</a></td>';
277              print "</tr>\n";              print "</tr>\n";
278              $i++;              $i++;
279          }          }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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