mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-26 18:09:06 -04:00
32 lines
1.3 KiB
PHP
Executable File
32 lines
1.3 KiB
PHP
Executable File
<?php
|
|
if (!defined('IN_CB')) { die('You are not allowed to access to this page.'); }
|
|
?>
|
|
|
|
<div class="output">
|
|
<section class="output">
|
|
<h3>Output</h3>
|
|
<?php
|
|
$finalRequest = '';
|
|
foreach (getImageKeys() as $key => $value) {
|
|
$finalRequest .= '&' . $key . '=' . urlencode($value);
|
|
}
|
|
if (strlen($finalRequest) > 0) {
|
|
$finalRequest[0] = '?';
|
|
}
|
|
?>
|
|
<div id="imageOutput">
|
|
<?php if ($imageKeys['text'] !== '') { ?><img src="image.php<?php echo $finalRequest; ?>" alt="Barcode Image" /><?php }
|
|
else { ?>Fill the form to generate a barcode.<?php } ?>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="footer">
|
|
<footer>
|
|
All Rights Reserved © <?php date_default_timezone_set('UTC'); echo date('Y'); ?> <a href="http://www.barcodephp.com" target="_blank">Barcode Generator</a>
|
|
<br /><?php echo $code; ?> PHP5-v<?php echo $codeVersion; ?>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|