mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-06 15:28:41 +00:00
706 lines
43 KiB
PHP
706 lines
43 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package Modules\ItemManagement
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @var \Modules\ItemManagement\Models\Item $item
|
|
*/
|
|
$item = $this->getData('item');
|
|
|
|
echo $this->getData('nav')->render();
|
|
?>
|
|
|
|
<div class="tabview tab-2">
|
|
<div class="box wf-100 col-xs-12">
|
|
<ul class="tab-links">
|
|
<li><label for="c-tab-1"><?= $this->getHtml('Profile'); ?></label></li>
|
|
<li><label for="c-tab-2"><?= $this->getHtml('Localization'); ?></label></li>
|
|
<li><label for="c-tab-3"><?= $this->getHtml('Attributes'); ?></label></li>
|
|
<li><label for="c-tab-4"><?= $this->getHtml('Sales'); ?></label></li>
|
|
<li><label for="c-tab-5"><?= $this->getHtml('Purchasing'); ?></label></li>
|
|
<li><label for="c-tab-6"><?= $this->getHtml('Production'); ?></label></li>
|
|
<li><label for="c-tab-7"><?= $this->getHtml('QA'); ?></label></li>
|
|
<li><label for="c-tab-8"><?= $this->getHtml('Packaging'); ?></label></li>
|
|
<li><label for="c-tab-9"><?= $this->getHtml('Accounting'); ?></label></li>
|
|
<li><label for="c-tab-10"><?= $this->getHtml('Stock'); ?></label></li>
|
|
<li><label for="c-tab-11"><?= $this->getHtml('Disposal'); ?></label></li>
|
|
<li><label for="c-tab-12"><?= $this->getHtml('Media'); ?></label></li>
|
|
<li><label for="c-tab-13"><?= $this->getHtml('Logs'); ?></label></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tab-content">
|
|
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : '' ?>>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-lg-3 last-lg">
|
|
<section class="portlet">
|
|
<form>
|
|
<div class="portlet-body">
|
|
<table class="layout wf-100">
|
|
<tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
|
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="number" id="iId" min="1" name="id" value="<?= $this->printHtml($item->getNumber()); ?>" disabled></span>
|
|
<tr><td><label for="iName1"><?= $this->getHtml('Name1') ?></label>
|
|
<tr><td><input type="text" id="iName1" name="name1" value="<?= $this->printHtml(''); ?>" required>
|
|
<tr><td><label for="iName2"><?= $this->getHtml('Name2') ?></label>
|
|
<tr><td><input type="text" id="iName2" name="name2" value="<?= $this->printHtml(''); ?>">
|
|
<tr><td><label for="iName3"><?= $this->getHtml('Name3') ?></label>
|
|
<tr><td><input type="text" id="iName3" name="name3" value="<?= $this->printHtml(''); ?>">
|
|
</table>
|
|
</div>
|
|
<div class="portlet-foot">
|
|
<input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>"> <input type="submit" value="<?= $this->getHtml('Delete', '0', '0'); ?>">
|
|
</div>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="portlet highlight-4">
|
|
<div class="portlet-body">
|
|
<textarea class="undecorated"></textarea>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="col-xs-12 col-lg-9 plain-grid">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-lg-4">
|
|
<section class="portlet highlight-1">
|
|
<div class="portlet-body">
|
|
<table>
|
|
<tr><td>YTD Sales:
|
|
<td>
|
|
<tr><td>MTD Sales:
|
|
<td>
|
|
<tr><td>ILV:
|
|
<td>
|
|
<tr><td>MRR:
|
|
<td>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-lg-4">
|
|
<section class="portlet highlight-2">
|
|
<div class="portlet-body">
|
|
<table>
|
|
<tr><td>Last Order:
|
|
<td>
|
|
<tr><td>Price Change:
|
|
<td>
|
|
<tr><td>Created:
|
|
<td>
|
|
<tr><td>Modified:
|
|
<td>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-lg-4">
|
|
<section class="portlet highlight-3">
|
|
<div class="portlet-body">
|
|
<table>
|
|
<tr><td>Sales Price:
|
|
<td>
|
|
<tr><td>Purchase Price:
|
|
<td>
|
|
<tr><td>Margin:
|
|
<td>
|
|
<tr><td>Avg. Price:
|
|
<td>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Notes</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Documents</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Invoices</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Customers</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Sales</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Regions</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="portlet">
|
|
<div class="portlet-head">Margins</div>
|
|
<div class="portlet-body"></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-2" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('Description'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iLanguages" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iLanguages"><?= $this->getHtml('Type'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iLanguages" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iText1"><?= $this->getHtml('Text'); ?></label>
|
|
<tr>
|
|
<td><textarea id="iText1" name="text1"></textarea>
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<table id="groupTable" class="box table default">
|
|
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td>
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<tbody>
|
|
<?php $c = 0;
|
|
$l11ns = [];
|
|
foreach ($l11ns as $key => $value) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
|
<?php endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr>
|
|
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-3" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('Attribute'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iLanguages"><?= $this->getHtml('Language'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iLanguages" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iLanguages"><?= $this->getHtml('Type'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iLanguages" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iLanguages"><?= $this->getHtml('Unit'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iLanguages" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iText1"><?= $this->getHtml('Value'); ?></label>
|
|
<tr>
|
|
<td><input id="iName5" name="name5" type="text" value="<?= $this->printHtml($item->getName5()); ?>">
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<table id="groupTable" class="box table default">
|
|
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td>
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<tbody>
|
|
<?php $c = 0;
|
|
$l11ns = [];
|
|
foreach ($l11ns as $key => $value) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
|
<?php endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr>
|
|
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-4" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('Customer'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iCustomerGroup"><?= $this->getHtml('CustomerGroup'); ?></label>
|
|
<tr>
|
|
<td><input id="iCustomerGroup" name="customergroup" type="text" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iGeneralPriceStart"><?= $this->getHtml('Start'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPriceStart" name="generalpricestart" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iGeneralPriceEnd"><?= $this->getHtml('End'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPriceEnd" name="generalpriceend" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iPQuantity"><?= $this->getHtml('Quantity'); ?></label>
|
|
<tr>
|
|
<td><input id="iPQuantity" name="quantity" type="text" placeholder="">
|
|
<tr>
|
|
<td><label for="iGeneralPrice"><?= $this->getHtml('Price'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPrice" name="generalprice" type="number" step="0.0001" value="<?= $this->printHtml('0.00'); ?>">
|
|
<!-- todo: maybe add promotion key/password here for online shop to provide special prices for certain customer groups -->
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Discount'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('DiscountP'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iBonus"><?= $this->getHtml('Bonus'); ?></label>
|
|
<tr>
|
|
<td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
<table id="groupTable" class="box table default">
|
|
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td>
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<tbody>
|
|
<?php $c = 0;
|
|
$l11ns = [];
|
|
foreach ($l11ns as $key => $value) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
|
<?php endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr>
|
|
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-5" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6 col-lg-4">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('Purchase'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label>
|
|
<tr>
|
|
<td><select id="iPVariation" name="pvariation">
|
|
<option value="0">
|
|
</select>
|
|
<tr>
|
|
<td><label for="iPName"><?= $this->getHtml('ReorderLevel'); ?></label>
|
|
<tr>
|
|
<td><input id="iPName" name="pname" type="text" placeholder="">
|
|
<tr>
|
|
<td><label for="iPName"><?= $this->getHtml('MinimumLevel'); ?></label>
|
|
<tr>
|
|
<td><input id="iPName" name="pname" type="text" placeholder="">
|
|
<tr>
|
|
<td><label for="iPName"><?= $this->getHtml('MaximumLevel'); ?></label>
|
|
<tr>
|
|
<td><input id="iPName" name="pname" type="text" placeholder="">
|
|
<tr>
|
|
<td><label for="iPName"><?= $this->getHtml('Leadtime'); ?></label>
|
|
<tr>
|
|
<td><input id="iPName" name="pname" type="number" min="0" step="1" placeholder="">
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6 col-lg-4">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('Supplier'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iSupplierGroup"><?= $this->getHtml('ID'); ?></label>
|
|
<tr>
|
|
<td><input id="iSupplierGroup" name="Suppliergroup" type="text" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iGeneralPriceStart"><?= $this->getHtml('Start'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPriceStart" name="generalpricestart" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iGeneralPriceEnd"><?= $this->getHtml('End'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPriceEnd" name="generalpriceend" type="datetime-local" value="<?= $this->printHtml(''); ?>">
|
|
<tr>
|
|
<td><label for="iPQuantity"><?= $this->getHtml('Quantity'); ?></label>
|
|
<tr>
|
|
<td><input id="iPQuantity" name="quantity" type="text" placeholder="">
|
|
<tr>
|
|
<td><label for="iGeneralPrice"><?= $this->getHtml('Price'); ?></label>
|
|
<tr>
|
|
<td><input id="iGeneralPrice" name="generalprice" type="number" step="0.0001" value="<?= $this->printHtml('0.00'); ?>">
|
|
<!-- todo: maybe add promotion key/password here for online shop to provide special prices for certain customer groups -->
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Discount'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('DiscountP'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscountP" name="discountp" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iBonus"><?= $this->getHtml('Bonus'); ?></label>
|
|
<tr>
|
|
<td><input id="iBonus" name="bonus" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iPPriceUnit"><?= $this->getHtml('PriceUnit'); ?></label>
|
|
<tr>
|
|
<td><select id="iPPriceUnit" name="ppriceunit">
|
|
<option value="0">
|
|
</select>
|
|
<tr>
|
|
<td><label for="iPQuantityUnit"><?= $this->getHtml('QuantityUnit'); ?></label>
|
|
<tr>
|
|
<td><select id="iPQuantityUnit" name="pquantityunit">
|
|
<option value="0">
|
|
</select>
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6 col-lg-4">
|
|
<table id="groupTable" class="box table default">
|
|
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td>
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
|
<tbody>
|
|
<?php $c = 0;
|
|
$l11ns = [];
|
|
foreach ($l11ns as $key => $value) : ++$c;
|
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
|
<tr data-href="<?= $url; ?>">
|
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
|
<?php endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr>
|
|
<td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-6" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-7" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-8" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('General'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iPVariation"><?= $this->getHtml('Container'); ?></label>
|
|
<tr>
|
|
<td><select id="iPVariation" name="pvariation">
|
|
<option value="0">
|
|
</select>
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Quantity'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('GrossWeight'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('NetWeight'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Width'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Height'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Length'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><label for="iDiscount"><?= $this->getHtml('Volume'); ?></label>
|
|
<tr>
|
|
<td><input id="iDiscount" name="discount" type="number" step="any" min="0" placeholder="">
|
|
<tr>
|
|
<td><input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<input type="radio" id="c-tab-9" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-6">
|
|
<section class="box wf-100">
|
|
<header>
|
|
<h1><?= $this->getHtml('General'); ?></h1>
|
|
</header>
|
|
<div class="inner">
|
|
<form id="item-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}itemmgmt/item'); ?>" method="post">
|
|
<table class="layout wf-100">
|
|
<tbody>
|
|
<tr>
|
|
<td><label for="iEarningIndicator"><?= $this->getHtml('EarningIndicator'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iEarningIndicator" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iCostIndicator"><?= $this->getHtml('CostIndicator'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iCostIndicator" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iCostCenter"><?= $this->getHtml('CostCenter'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iCostCenter" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
<tr>
|
|
<td><label for="iCostObject"><?= $this->getHtml('CostObject'); ?></label>
|
|
<tr>
|
|
<td>
|
|
<select id="iCostObject" name="settings_1000000020">
|
|
<?php foreach ($languages as $code => $language) : ?>
|
|
<option value="<?= $this->printHtml($code); ?>" <?= $this->printHtml(\strtolower($code) === \strtolower($settings[1000000020]) ? ' selected' : ''); ?>><?= $this->printHtml($language); ?>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="radio" id="c-tab-10" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
|
|
<input type="radio" id="c-tab-11" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
|
|
<input type="radio" id="c-tab-12" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
</div>
|
|
</div>
|
|
|
|
<input type="radio" id="c-tab-13" name="tabular-2" checked>
|
|
<div class="tab">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<table class="default">
|
|
<caption><?= $this->getHtml('Logs'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
<thead>
|
|
<tr>
|
|
<td>IP
|
|
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
|
<td><?= $this->getHtml('Name') ?>
|
|
<td class="wf-100"><?= $this->getHtml('Log') ?>
|
|
<td><?= $this->getHtml('Date') ?>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6">
|
|
<tbody>
|
|
<tr>
|
|
<td><?= $this->printHtml($this->request->getOrigin()); ?>
|
|
<td><?= $this->printHtml($this->request->getHeader()->getAccount()); ?>
|
|
<td><?= $this->printHtml($this->request->getHeader()->getAccount()); ?>
|
|
<td>Creating item
|
|
<td><?= $this->printHtml((new \DateTime('now'))->format('Y-m-d H:i:s')); ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|