From 11879e48a2487bbe9720f462b0a154ef2b3c8654 Mon Sep 17 00:00:00 2001 From: pappastech Date: Sat, 24 Mar 2012 03:13:58 +0000 Subject: [PATCH] Fix barcode generation. Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@47 c3eb156b-1dc0-44e1-88ae-e38439141b53 --- application/views/barcode.php | 8 -------- application/views/barcode_sheet.php | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/application/views/barcode.php b/application/views/barcode.php index 26e8998b8..41f1bfa63 100644 --- a/application/views/barcode.php +++ b/application/views/barcode.php @@ -81,7 +81,6 @@ // Startup code //----------------------------------------------------------------------------- - if(isset($_GET["text"])) $text=$_GET["text"]; if(isset($_GET["format"])) $format=$_GET["format"]; if(isset($_GET["quality"])) $quality=$_GET["quality"]; @@ -90,9 +89,6 @@ if(isset($_GET["height"])) $height=$_GET["height"]; if(isset($_GET["type"])) $type=$_GET["type"]; if(isset($_GET["barcode"])) $barcode=$_GET["barcode"]; - - - if (!isset ($text)) $text = ''; if (!isset ($type)) $type = 1; if (empty ($quality)) $quality = 100; @@ -101,7 +97,6 @@ if (empty ($height)) $height = 80; if (!empty ($format)) $format = strtoupper ($format); else $format="PNG"; - switch ($type) { default: @@ -111,7 +106,6 @@ switch ($type) break; } - //----------------------------------------------------------------------------- // Generate a Code 3 of 9 barcode //----------------------------------------------------------------------------- @@ -215,7 +209,6 @@ function Barcode39 ($barcode, $width, $height, $quality, $format, $text) OutputImage ($im, $format, $quality); } - //----------------------------------------------------------------------------- // Output an image to the browser //----------------------------------------------------------------------------- @@ -235,7 +228,6 @@ function OutputImage ($im, $format, $quality) } } - //----------------------------------------------------------------------------- // Returns the Code 3 of 9 value for a given ASCII character //----------------------------------------------------------------------------- diff --git a/application/views/barcode_sheet.php b/application/views/barcode_sheet.php index 1930ef49a..eb196ebf4 100644 --- a/application/views/barcode_sheet.php +++ b/application/views/barcode_sheet.php @@ -18,7 +18,7 @@ foreach($items as $item) { echo ''; } - echo ""; + echo ""; $count++; } ?>