Nettoyage du code

This commit is contained in:
Rodolphe Quiedeville 2004-10-07 12:21:19 +00:00
parent 29d90e5c75
commit 876937a84f

View File

@ -114,7 +114,7 @@ if ($_GET["facid"] > 0)
} }
else else
{ {
print '<a href="facture.php?facid='.$fac->id.'&amp;action=classer">Classer la facture</a>'; print '-';
} }
print "&nbsp;</td>"; print "&nbsp;</td>";
} }
@ -130,13 +130,9 @@ if ($_GET["facid"] > 0)
* *
* *
*/ */
$file = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . ".pdf"; $file = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . ".pdf";
$filedetail = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . "-detail.pdf"; $filedetail = FAC_OUTPUTDIR . "/" . $fac->ref . "/" . $fac->ref . "-detail.pdf";
if (file_exists($file)) if (file_exists($file))
{ {
$encfile = urlencode($file); $encfile = urlencode($file);
@ -177,20 +173,19 @@ if ($_GET["facid"] > 0)
$reason = imagick_failedreason( $handle ) ; $reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ; $description = imagick_faileddescription( $handle ) ;
print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ; print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n";
} }
imagick_convert( $handle, "PNG" ) ; imagick_convert( $handle, "PNG" ) ;
/*
if ( !imagick_resize( $handle, 700, 700, IMAGICK_FILTER_UNKNOWN, 0, "200+200!" ) )
{
$reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ;
print "imagick_resize() failed<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n" ; if ( imagick_iserror( $handle ) )
{
$reason = imagick_failedreason( $handle ) ;
$description = imagick_faileddescription( $handle ) ;
print "handle failed!<BR>\nReason: $reason<BR>\nDescription: $description<BR>\n";
} }
*/
imagick_writeimage( $handle, $file .".png"); imagick_writeimage( $handle, $file .".png");
} }