/[dolibarr]/dolibarr/htdocs/product/stats/fiche.php
ViewVC logotype

Diff of /dolibarr/htdocs/product/stats/fiche.php

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

revision 1.47 by eldy, Thu Aug 25 20:27:18 2005 UTC revision 1.48 by eldy, Sat Sep 3 14:31:12 2005 UTC
# Line 291  if ($_GET["id"]) Line 291  if ($_GET["id"])
291          print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=productstats&file='.urlencode($file).'" alt="Nombre de propales sur les 12 derniers mois">';          print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=productstats&file='.urlencode($file).'" alt="Nombre de propales sur les 12 derniers mois">';
292          print '</td><td align="center" colspan="2">&nbsp;</td></tr>';          print '</td><td align="center" colspan="2">&nbsp;</td></tr>';
293          print '<tr>';          print '<tr>';
294          if (file_exists($filenbpropal) && filemtime($filenbpropal))          if (file_exists($filenbpropal) && filemtime($filenbpropal) && ! $px->isGraphKo())
295          {          {
296              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpropal),"%d %b %Y %H:%M:%S")).'</td>';              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpropal),"%d %b %Y %H:%M:%S")).'</td>';
297          }          }
298          else          else
299          {          {
300              print '<td>'.$langs->trans("ChartNotGenerated").'</td>';              print '<td>'.($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated")).'</td>';
301          }          }
302          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td>';          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td>';
303          if (file_exists($filenbpiece) && filemtime($filenbpiece))          if (file_exists($filenbpiece) && filemtime($filenbpiece) && ! $px->isGraphKo())
304          {          {
305              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpiece),"%d %b %Y %H:%M:%S")).'</td>';              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpiece),"%d %b %Y %H:%M:%S")).'</td>';
306          }          }
307          else          else
308          {          {
309              print '<td>'.$langs->trans("ChartNotGenerated").'</td>';              print '<td>'.($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated")).'</td>';
310          }          }
311          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td></tr>';          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td></tr>';
312                    
# Line 321  if ($_GET["id"]) Line 321  if ($_GET["id"])
321          print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=productstats&file='.urlencode($file).'" alt="Nombre de pièces vendues sur les 12 derniers mois">';          print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=productstats&file='.urlencode($file).'" alt="Nombre de pièces vendues sur les 12 derniers mois">';
322          print '</td></tr>';          print '</td></tr>';
323          print '<tr>';          print '<tr>';
324          if (file_exists($filenbvente) && filemtime($filenbvente))          if (file_exists($filenbvente) && filemtime($filenbvente) && ! $px->isGraphKo())
325          {          {
326              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbvente),"%d %b %Y %H:%M:%S")).'</td>';              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbvente),"%d %b %Y %H:%M:%S")).'</td>';
327          }          }
328          else          else
329          {          {
330              print '<td>'.$langs->trans("ChartNotGenerated").'</td>';              print '<td>'.($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated")).'</td>';
331          }          }
332          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td>';          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td>';
333          if (file_exists($filenbpiece) && filemtime($filenbpiece))          if (file_exists($filenbpiece) && filemtime($filenbpiece) && ! $px->isGraphKo())
334          {          {
335              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpiece),"%d %b %Y %H:%M:%S")).'</td>';              print '<td>'.$langs->trans("GeneratedOn",dolibarr_print_date(filemtime($filenbpiece),"%d %b %Y %H:%M:%S")).'</td>';
336          }          }
337          else          else
338          {          {
339              print '<td>'.$langs->trans("ChartNotGenerated").'</td>';              print '<td>'.($mesg?'<font class="error">'.$mesg.'</font>':$langs->trans("ChartNotGenerated")).'</td>';
340          }          }
341          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td></tr>';          print '<td align="center">[<a href="fiche.php?id='.$product->id.'&amp;action=recalcul">'.$langs->trans("ReCalculate").'</a>]</td></tr>';
342    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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