From fc2077f984bad6d9cf3993d57a8d806620f833f1 Mon Sep 17 00:00:00 2001 From: Michael Ang Date: Wed, 23 Sep 2009 01:47:05 +0000 Subject: [PATCH] Print icon and link. These are not themselves printed. --- GnuBookIA/www/print.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/GnuBookIA/www/print.php b/GnuBookIA/www/print.php index 243bade..fd21f42 100644 --- a/GnuBookIA/www/print.php +++ b/GnuBookIA/www/print.php @@ -53,10 +53,10 @@ function imageURL($paperAspect, $index, $format, $width, $height) { if ($imgAspect > $paperAspect) { // wider than paper, fit width - $htmlAttrs = "width='100%'"; + $htmlAttrs = "width='95%'"; } else { // taller than paper, fit height - $htmlAttrs = "height='100%'"; + $htmlAttrs = "height='95%'"; } $file = sprintf("%s_%s/%s_%04d.%s", $id, $format, $id, $index, $format); @@ -74,7 +74,13 @@ function imageURL($paperAspect, $index, $format, $width, $height) { return ""; } -echo "" . $id . ""; +echo ""; +echo ''; +echo ""; +echo "" . $id . ""; +echo "

Print

"; echo "

"; echo imageURL($paperAspect, $index, $format, $width, $height); echo "

"; -- 2.20.1