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 |
*/ |
*/ |