From 3d30262af57d9f28e95809b181c7d719d268664f Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Nov 2008 18:17:57 +0000 Subject: [PATCH] Only show the label layout if the type is label --- admin/reports_editor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/reports_editor.php b/admin/reports_editor.php index a499975..f9e0791 100644 --- a/admin/reports_editor.php +++ b/admin/reports_editor.php @@ -390,11 +390,11 @@ function createData(x,y,w,h,l,face,align,valign,value) { echo ""; echo "\n"; - echo "

Label Data Locations

"; - $l_w=$report_stock[$report['option']['stock']]['label_width']; $l_h=$report_stock[$report['option']['stock']]['label_height']; - if($l_w && $l_h) { + if($l_w && $l_h && $report['option']['type']=="label") { + echo "

Label Data Locations

"; + $doCanvasSample=true; $ratio=$l_h/$l_w; $canvaswidth=600;