/[dolibarr]/dolibarr/htdocs/compta/propal.php
ViewVC logotype

Diff of /dolibarr/htdocs/compta/propal.php

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

revision 1.54 by eldy, Sun Aug 14 01:25:05 2005 UTC revision 1.55 by eldy, Tue Aug 23 19:35:45 2005 UTC
# Line 453  if ($_GET["propalid"]) Line 453  if ($_GET["propalid"])
453    
454    print '<table width="100%"><tr><td width="50%" valign="top">';    print '<table width="100%"><tr><td width="50%" valign="top">';
455    
456    /*      /*
457     * Documents       * Documents générés
458     */       */
459        $filename=sanitize_string($propal->ref);
460    print_titre($langs->trans('Documents'));      $filedir=$conf->propal->dir_output . "/" . sanitize_string($propal->ref);
461        $urlsource=$_SERVER["PHP_SELF"]."?propalid=".$propal->id;
462    print '<table class="border" width="100%">';      $genallowed=0;
463    $propref = sanitize_string($propal->ref);      $delallowed=0;
464    $file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf';      
465    $relativepath = $propref.'/'.$propref.'.pdf';      $var=true;
466        
467    $var=true;      print "<br>\n";
468        $form->show_documents('propal',$filename,$filedir,$urlsource,$genallowed,$delallowed);
469    if (file_exists($file))      
     {  
       print '<tr '.$bc[$var].'><td>'.$langs->trans('Propal').' PDF</td>';  
       print '<td><a href="'.DOL_URL_ROOT . '/document.php?modulepart=propal&file='.urlencode($relativepath).'">'.$propal->ref.'.pdf</a></td>';  
       print '<td align="right">'.filesize($file). ' bytes</td>';  
       print '<td align="right">'.strftime('%d %B %Y %H:%M:%S',filemtime($file)).'</td></tr>';  
     }  
   
   print "</table>\n";  
470    
           
471    /*    /*
472     * Commandes rattachées     * Commandes rattachées
473     */     */

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

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