/[dolibarr]/dolibarr/htdocs/html.form.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/html.form.class.php

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

revision 1.111 by eldy, Wed Sep 7 20:26:15 2005 UTC revision 1.112 by eldy, Wed Sep 14 03:47:27 2005 UTC
# Line 1572  class Form Line 1572  class Form
1572       */       */
1573      function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='')      function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='')
1574      {      {
1575            // filedir = conf->...dir_ouput."/".get_exdir(id)
1576            
1577          global $langs,$bc;          global $langs,$bc;
1578          $var=true;          $var=true;
1579    
1580          $filename = sanitize_string($filename);          $filename = sanitize_string($filename);
1581          $relativepath = "${filename}/${filename}.pdf";          if ($modulepart != 'expedition') $relativepath = "${filename}/${filename}.pdf";
1582          $fullpathfile = $filedir . "/" . $filename . ".pdf";          else $relativepath = get_exdir("${filename}")."${filename}.pdf";
1583                                            
1584          $i=0;          $i=0;
1585          if (is_dir($filedir))          if (is_dir($filedir))
# Line 1632  class Form Line 1634  class Form
1634                  if (eregi('\-detail\.pdf',$file)) print '<td nowrap>PDF Détaillé</td>';                  if (eregi('\-detail\.pdf',$file)) print '<td nowrap>PDF Détaillé</td>';
1635                  else print '<td nowrap>PDF</td>';                  else print '<td nowrap>PDF</td>';
1636                                    
1637                  $relativepathdetail = "${filename}/$file";                  print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepath).'">'.$file.'</a></td>';
   
                 print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart='.$modulepart.'&file='.urlencode($relativepathdetail).'">'.$file.'</a></td>';  
1638                  print '<td align="right">'.filesize($filedir."/".$file). ' bytes</td>';                  print '<td align="right">'.filesize($filedir."/".$file). ' bytes</td>';
1639                  print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($filedir."/".$file)).'</td>';                  print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($filedir."/".$file)).'</td>';
1640                  print '</tr>';                  print '</tr>';

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

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