mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-07 23:35:04 -04:00
Fix barcode generation.
Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@47 c3eb156b-1dc0-44e1-88ae-e38439141b53
This commit is contained in:
@@ -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
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -18,7 +18,7 @@ foreach($items as $item)
|
||||
{
|
||||
echo '</tr><tr>';
|
||||
}
|
||||
echo "<td><img src='index.php?c=barcode&barcode=$barcode&text=$text&width=256' /></td>";
|
||||
echo "<td><img src='".site_url()."/barcode?barcode=$barcode&text=$text&width=256' /></td>";
|
||||
$count++;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user