Affichage de tous les aperçus
This commit is contained in:
parent
035073b964
commit
728ecbf607
@ -273,6 +273,7 @@ elseif (file_exists($fileimagebis))
|
|||||||
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercupropal&file='.urlencode($preview).'"><p>';
|
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercupropal&file='.urlencode($preview).'"><p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
@ -141,15 +141,15 @@ if ($_GET["id"] > 0) {
|
|||||||
* Documents
|
* Documents
|
||||||
*/
|
*/
|
||||||
$commanderef = sanitize_string($commande->ref);
|
$commanderef = sanitize_string($commande->ref);
|
||||||
$file = $conf->commande->dir_output . "/" . $commanderef . "/" . $commanderef . ".pdf";
|
$dir_output = $conf->commande->dir_output . "/";
|
||||||
$filedetail = $conf->commande->dir_output . "/" . $commanderef . "/" . $commanderef . "-detail.pdf";
|
$filepath = $dir_output . $commanderef . "/";
|
||||||
|
$file = $filepath . $commanderef . ".pdf";
|
||||||
|
$filedetail = $filepath . $commanderef . "-detail.pdf";
|
||||||
$relativepath = "${commanderef}/${commanderef}.pdf";
|
$relativepath = "${commanderef}/${commanderef}.pdf";
|
||||||
$relativepathdetail = "${commanderef}/${commanderef}-detail.pdf";
|
$relativepathdetail = "${commanderef}/${commanderef}-detail.pdf";
|
||||||
|
|
||||||
// Chemin vers png aperçus
|
// Chemin vers png aperçus
|
||||||
$relativepathimage = "${commanderef}/${commanderef}.pdf.png";
|
$relativepathimage = "${commanderef}/${commanderef}.pdf.png";
|
||||||
$relativepathimagebis = "${commanderef}/${commanderef}.pdf.png.0";
|
|
||||||
$relativepathimagebis2 = "${commanderef}/${commanderef}.pdf.png.1";
|
|
||||||
$fileimage = $file.".png"; // Si PDF d'1 page
|
$fileimage = $file.".png"; // Si PDF d'1 page
|
||||||
$fileimagebis = $file.".png.0"; // Si PDF de plus d'1 page
|
$fileimagebis = $file.".png.0"; // Si PDF de plus d'1 page
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ if ($_GET["id"] > 0) {
|
|||||||
// ligne 7
|
// ligne 7
|
||||||
// partie Gauche
|
// partie Gauche
|
||||||
print '<tr><td height="10">'.$langs->trans('AmountHT').'</td>';
|
print '<tr><td height="10">'.$langs->trans('AmountHT').'</td>';
|
||||||
print '<td align="right" colspan="1"><b>'.price($commande->amount_ht).'</b></td>';
|
print '<td align="right" colspan="1"><b>'.price($commande->total_ht).'</b></td>';
|
||||||
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
|
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
}
|
}
|
||||||
@ -258,8 +258,17 @@ if (file_exists($fileimage))
|
|||||||
// Si fichier png PDF de plus d'1 page trouvé
|
// Si fichier png PDF de plus d'1 page trouvé
|
||||||
elseif (file_exists($fileimagebis))
|
elseif (file_exists($fileimagebis))
|
||||||
{
|
{
|
||||||
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercucommande&file='.urlencode($relativepathimagebis).'"><p>';
|
$multiple = $relativepathimage . ".";
|
||||||
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercucommande&file='.urlencode($relativepathimagebis2).'"></p>';
|
|
||||||
|
for ($i = 0; $i < 20; $i++)
|
||||||
|
{
|
||||||
|
$preview = $multiple.$i;
|
||||||
|
|
||||||
|
if (file_exists($dir_output.$preview))
|
||||||
|
{
|
||||||
|
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercucommande&file='.urlencode($preview).'"><p>';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -268,6 +268,7 @@ elseif (file_exists($fileimagebis))
|
|||||||
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercufacture&file='.urlencode($preview).'"><p>';
|
print '<img src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercufacture&file='.urlencode($preview).'"><p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user