This commit is contained in:
Dennis Eichhorn 2024-01-02 23:34:18 +00:00
parent 6a561ade53
commit 479fd5b055
13 changed files with 207 additions and 210 deletions

View File

@ -21,7 +21,6 @@ use Modules\SalesAnalysis\Models\ItemMapper;
use Modules\SalesAnalysis\Models\RegionMapper; use Modules\SalesAnalysis\Models\RegionMapper;
use phpOMS\Asset\AssetType; use phpOMS\Asset\AssetType;
use phpOMS\Contract\RenderableInterface; use phpOMS\Contract\RenderableInterface;
use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Localization\ISO3166CharEnum; use phpOMS\Localization\ISO3166CharEnum;
use phpOMS\Localization\ISO3166NameEnum; use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\ISO3166TwoEnum; use phpOMS\Localization\ISO3166TwoEnum;
@ -143,7 +142,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -332,7 +331,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -360,7 +359,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -444,7 +443,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -619,7 +618,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response

View File

@ -42,16 +42,16 @@ omsApp.Modules.SalesAnalysis = class {
const data = JSON.parse(chart.getAttribute('data-chart')); const data = JSON.parse(chart.getAttribute('data-chart'));
if (data.type === 'choropleth') { if (data.type === 'choropleth') {
const parts = data.mapurl.split('/'); const parts = data.mapurl.split('/');
const fileName = parts[parts.length - 1]; const fileName = parts[parts.length - 1];
const mapName = fileName.replace('.topo.json', ''); const mapName = fileName.replace('.topo.json', '');
fetch(data.mapurl).then((r) => r.json()).then((d) => { fetch(data.mapurl).then((r) => r.json()).then((d) => {
const countries = ChartGeo.topojson.feature(d, d.objects[mapName]).features; const countries = ChartGeo.topojson.feature(d, d.objects[mapName]).features;
data.data.labels = countries.map((c) => c.properties.name); data.data.labels = countries.map((c) => c.properties.name);
const vals = {}; const vals = {};
const length = data.data.datasets[0].data.length; const length = data.data.datasets[0].data.length;
for (let i = 0; i < length; ++i) { for (let i = 0; i < length; ++i) {
vals[data.data.datasets[0].data[i].id] = data.data.datasets[0].data[i].value; vals[data.data.datasets[0].data[i].id] = data.data.datasets[0].data[i].value;
@ -62,7 +62,7 @@ omsApp.Modules.SalesAnalysis = class {
)); ));
const myChart = new Chart(chart.getContext('2d'), data); const myChart = new Chart(chart.getContext('2d'), data);
}); });
} else { } else {
const myChart = new Chart(chart.getContext('2d'), data); const myChart = new Chart(chart.getContext('2d'), data);
} }

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime; use phpOMS\Stdlib\Base\SmartDateTime;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\SalesAnalysis\Models * @package Modules\SalesAnalysis\Models
* @license OMS License 1.0 * @license OMS License 1.0
@ -84,10 +84,10 @@ class ClientMapper extends DataMapperFactory
$oldIndex = 1; $oldIndex = 1;
$period = 1; $period = 1;
$mtdAClientAttribute = []; $mtdAClientAttribute = [];
$mtdPYClientAttribute = []; $mtdPYClientAttribute = [];
$ytdAClientAttribute = []; $ytdAClientAttribute = [];
$ytdPYClientAttribute = []; $ytdPYClientAttribute = [];
foreach ($results as $result) { foreach ($results as $result) {
@ -106,7 +106,7 @@ class ClientMapper extends DataMapperFactory
// indexed according to the fiscal year // indexed according to the fiscal year
$temp = [ $temp = [
'net_sales' => (int) $result['netsales'], 'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'], 'net_profit' => (int) $result['netprofit'],
]; ];
@ -125,13 +125,13 @@ class ClientMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) { if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYClientAttribute[$result['clientmgmt_attr_type_name']])) { if (!isset($ytdPYClientAttribute[$result['clientmgmt_attr_type_name']])) {
$ytdPYClientAttribute[$result['clientmgmt_attr_type_name']] = [ $ytdPYClientAttribute[$result['clientmgmt_attr_type_name']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
'value_l11n' => $result['clientmgmt_attr_value_l11n_title'], 'value_l11n' => $result['clientmgmt_attr_value_l11n_title'],
]; ];
$ytdAClientAttribute[$result['clientmgmt_attr_type_name']] = [ $ytdAClientAttribute[$result['clientmgmt_attr_type_name']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
'value_l11n' => $result['clientmgmt_attr_value_l11n_title'], 'value_l11n' => $result['clientmgmt_attr_value_l11n_title'],
]; ];
@ -147,11 +147,11 @@ class ClientMapper extends DataMapperFactory
} }
} }
return [ return [
$mtdAClientAttribute, $mtdAClientAttribute,
$mtdPYClientAttribute, $mtdPYClientAttribute,
$ytdAClientAttribute, $ytdAClientAttribute,
$ytdPYClientAttribute, $ytdPYClientAttribute,
]; ];
} }
} }

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime; use phpOMS\Stdlib\Base\SmartDateTime;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\SalesAnalysis\Models * @package Modules\SalesAnalysis\Models
* @license OMS License 1.0 * @license OMS License 1.0
@ -64,15 +64,15 @@ class GeneralMapper extends DataMapperFactory
$monthlySales = []; $monthlySales = [];
for ($i = 1; $i < 3; ++$i) { for ($i = 1; $i < 3; ++$i) {
$monthlySales[$i] = \array_fill(0, 12, [ $monthlySales[$i] = \array_fill(0, 12, [
'net_sales' => null, 'net_sales' => null,
'net_profit' => null, 'net_profit' => null,
]); ]);
} }
$mtdA = ['net_sales' => 0, 'net_profit' => 0]; $mtdA = ['net_sales' => 0, 'net_profit' => 0];
$mtdPY = ['net_sales' => 0, 'net_profit' => 0]; $mtdPY = ['net_sales' => 0, 'net_profit' => 0];
$ytdA = ['net_sales' => 0, 'net_profit' => 0]; $ytdA = ['net_sales' => 0, 'net_profit' => 0];
$ytdPY = ['net_sales' => 0, 'net_profit' => 0]; $ytdPY = ['net_sales' => 0, 'net_profit' => 0];
foreach ($results as $result) { foreach ($results as $result) {
@ -91,7 +91,7 @@ class GeneralMapper extends DataMapperFactory
// indexed according to the fiscal year // indexed according to the fiscal year
$monthlySales[$period][$monthIndex - 1] = [ $monthlySales[$period][$monthIndex - 1] = [
'net_sales' => (int) $result['netsales'], 'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'], 'net_profit' => (int) $result['netprofit'],
]; ];
@ -117,7 +117,7 @@ class GeneralMapper extends DataMapperFactory
return [ return [
$mtdA, $mtdPY, $mtdA, $mtdPY,
$ytdA, $ytdPY, $ytdA, $ytdPY,
$monthlySales $monthlySales,
]; ];
} }
@ -126,7 +126,6 @@ class GeneralMapper extends DataMapperFactory
\DateTime $endCurrent, \DateTime $endCurrent,
int $businessStart = 1 int $businessStart = 1
) : array { ) : array {
$query = new Builder(self::$db); $query = new Builder(self::$db);
$query->raw( $query->raw(
'SELECT 'SELECT
@ -151,9 +150,9 @@ class GeneralMapper extends DataMapperFactory
$annualSales = []; $annualSales = [];
for ($i = 1; $i < 11; ++$i) { for ($i = 1; $i < 11; ++$i) {
$annualSales[$i] = [ $annualSales[$i] = [
'net_sales' => null, 'net_sales' => null,
'net_profit' => null, 'net_profit' => null,
'year' => $historyStart->format('Y'), 'year' => $historyStart->format('Y'),
]; ];
$historyStart->smartModify(1); $historyStart->smartModify(1);
@ -184,10 +183,10 @@ class GeneralMapper extends DataMapperFactory
$annualSales[$period]['net_sales'] ??= 0; $annualSales[$period]['net_sales'] ??= 0;
$annualSales[$period]['net_profit'] ??= 0; $annualSales[$period]['net_profit'] ??= 0;
$annualSales[$period]['net_sales'] += (int) $result['netsales']; $annualSales[$period]['net_sales'] += (int) $result['netsales'];
$annualSales[$period]['net_profit'] += (int) $result['netprofit']; $annualSales[$period]['net_profit'] += (int) $result['netprofit'];
} }
return $annualSales; return $annualSales;
} }
} }

View File

@ -19,7 +19,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\Stdlib\Base\SmartDateTime; use phpOMS\Stdlib\Base\SmartDateTime;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\SalesAnalysis\Models * @package Modules\SalesAnalysis\Models
* @license OMS License 1.0 * @license OMS License 1.0
@ -86,10 +86,10 @@ class ItemMapper extends DataMapperFactory
$oldIndex = 1; $oldIndex = 1;
$period = 1; $period = 1;
$mtdAItemAttribute = []; $mtdAItemAttribute = [];
$mtdPYItemAttribute = []; $mtdPYItemAttribute = [];
$ytdAItemAttribute = []; $ytdAItemAttribute = [];
$ytdPYItemAttribute = []; $ytdPYItemAttribute = [];
foreach ($results as $result) { foreach ($results as $result) {
@ -108,7 +108,7 @@ class ItemMapper extends DataMapperFactory
// indexed according to the fiscal year // indexed according to the fiscal year
$temp = [ $temp = [
'net_sales' => (int) $result['netsales'], 'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'], 'net_profit' => (int) $result['netprofit'],
]; ];
@ -127,13 +127,13 @@ class ItemMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) { if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYItemAttribute[$result['itemmgmt_attr_type_name']])) { if (!isset($ytdPYItemAttribute[$result['itemmgmt_attr_type_name']])) {
$ytdPYItemAttribute[$result['itemmgmt_attr_type_name']] = [ $ytdPYItemAttribute[$result['itemmgmt_attr_type_name']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
'value_l11n' => $result['itemmgmt_attr_value_l11n_title'], 'value_l11n' => $result['itemmgmt_attr_value_l11n_title'],
]; ];
$ytdAItemAttribute[$result['itemmgmt_attr_type_name']] = [ $ytdAItemAttribute[$result['itemmgmt_attr_type_name']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
'value_l11n' => $result['itemmgmt_attr_value_l11n_title'], 'value_l11n' => $result['itemmgmt_attr_value_l11n_title'],
]; ];
@ -149,11 +149,11 @@ class ItemMapper extends DataMapperFactory
} }
} }
return [ return [
$mtdAItemAttribute, $mtdAItemAttribute,
$mtdPYItemAttribute, $mtdPYItemAttribute,
$ytdAItemAttribute, $ytdAItemAttribute,
$ytdPYItemAttribute, $ytdPYItemAttribute,
]; ];
} }
} }

View File

@ -17,7 +17,7 @@ namespace Modules\SalesAnalysis\Models;
use phpOMS\Stdlib\Base\Enum; use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\SalesAnalysis\Models * @package Modules\SalesAnalysis\Models
* @license OMS License 1.0 * @license OMS License 1.0

View File

@ -20,7 +20,7 @@ use phpOMS\Localization\ISO3166TwoEnum;
use phpOMS\Stdlib\Base\SmartDateTime; use phpOMS\Stdlib\Base\SmartDateTime;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\SalesAnalysis\Models * @package Modules\SalesAnalysis\Models
* @license OMS License 1.0 * @license OMS License 1.0
@ -69,8 +69,8 @@ class RegionMapper extends DataMapperFactory
$monthlySales = []; $monthlySales = [];
$mtd = []; $mtd = [];
$ytd = []; $ytd = [];
foreach ($results as $result) { foreach ($results as $result) {
$monthIndex = SmartDateTime::calculateMonthIndex((int) $result['salesmonth'], $businessStart); $monthIndex = SmartDateTime::calculateMonthIndex((int) $result['salesmonth'], $businessStart);
@ -86,7 +86,7 @@ class RegionMapper extends DataMapperFactory
for ($i = 1; $i < 3; ++$i) { for ($i = 1; $i < 3; ++$i) {
$monthlySales[$result['address_country']][$i] = \array_fill(1, 12, [ $monthlySales[$result['address_country']][$i] = \array_fill(1, 12, [
'net_sales' => null, 'net_sales' => null,
'net_profit' => null, 'net_profit' => null,
]); ]);
} }
@ -94,7 +94,7 @@ class RegionMapper extends DataMapperFactory
// indexed according to the fiscal year // indexed according to the fiscal year
$monthlySales[$result['address_country']][$monthIndex] = [ $monthlySales[$result['address_country']][$monthIndex] = [
'net_sales' => (int) $result['netsales'], 'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'], 'net_profit' => (int) $result['netprofit'],
]; ];
@ -167,7 +167,7 @@ class RegionMapper extends DataMapperFactory
if (!isset($annualCustomer[$result['address_country']])) { if (!isset($annualCustomer[$result['address_country']])) {
for ($i = 1; $i < 11; ++$i) { for ($i = 1; $i < 11; ++$i) {
$annualCustomer[$result['address_country']][$i] = [ $annualCustomer[$result['address_country']][$i] = [
'client_count' => 0 'client_count' => 0,
]; ];
$historyStart->smartModify(1); $historyStart->smartModify(1);
@ -223,10 +223,10 @@ class RegionMapper extends DataMapperFactory
$oldIndex = 1; $oldIndex = 1;
$period = 1; $period = 1;
$mtdAClientCountry = []; $mtdAClientCountry = [];
$mtdPYClientCountry = []; $mtdPYClientCountry = [];
$ytdAClientCountry = []; $ytdAClientCountry = [];
$ytdPYClientCountry = []; $ytdPYClientCountry = [];
foreach ($results as $result) { foreach ($results as $result) {
@ -274,7 +274,7 @@ class RegionMapper extends DataMapperFactory
if ($period === 1) { if ($period === 1) {
$ytdPYClientCountry[$result['address_country']]['client_count'] += $temp['client_count']; $ytdPYClientCountry[$result['address_country']]['client_count'] += $temp['client_count'];
} else { } else {
$ytdAClientCountry[$result['address_country']]['client_count'] += $temp['client_count']; $ytdAClientCountry[$result['address_country']]['client_count'] += $temp['client_count'];
} }
} }
} }
@ -317,7 +317,7 @@ class RegionMapper extends DataMapperFactory
$results = $query->execute()->fetchAll(\PDO::FETCH_ASSOC); $results = $query->execute()->fetchAll(\PDO::FETCH_ASSOC);
$sales = []; $sales = [];
$period = 0; $period = 0;
foreach ($results as $result) { foreach ($results as $result) {
@ -333,9 +333,9 @@ class RegionMapper extends DataMapperFactory
if (!isset($sales[$result['address_country']])) { if (!isset($sales[$result['address_country']])) {
for ($i = 1; $i < 11; ++$i) { for ($i = 1; $i < 11; ++$i) {
$sales[$result['address_country']][$i] = [ $sales[$result['address_country']][$i] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
'year' => $period === 0 ? 'PY' : 'A', 'year' => $period === 0 ? 'PY' : 'A',
]; ];
} }
} }
@ -387,10 +387,10 @@ class RegionMapper extends DataMapperFactory
$oldIndex = 1; $oldIndex = 1;
$period = 1; $period = 1;
$mtdAClientCountry = []; $mtdAClientCountry = [];
$mtdPYClientCountry = []; $mtdPYClientCountry = [];
$ytdAClientCountry = []; $ytdAClientCountry = [];
$ytdPYClientCountry = []; $ytdPYClientCountry = [];
foreach ($results as $result) { foreach ($results as $result) {
@ -409,7 +409,7 @@ class RegionMapper extends DataMapperFactory
// indexed according to the fiscal year // indexed according to the fiscal year
$temp = [ $temp = [
'net_sales' => (int) $result['netsales'], 'net_sales' => (int) $result['netsales'],
'net_profit' => (int) $result['netprofit'], 'net_profit' => (int) $result['netprofit'],
]; ];
@ -428,12 +428,12 @@ class RegionMapper extends DataMapperFactory
if ($monthIndex <= $endCurrentIndex) { if ($monthIndex <= $endCurrentIndex) {
if (!isset($ytdPYClientCountry[$result['address_country']])) { if (!isset($ytdPYClientCountry[$result['address_country']])) {
$ytdPYClientCountry[$result['address_country']] = [ $ytdPYClientCountry[$result['address_country']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
]; ];
$ytdAClientCountry[$result['address_country']] = [ $ytdAClientCountry[$result['address_country']] = [
'net_sales' => 0, 'net_sales' => 0,
'net_profit' => 0, 'net_profit' => 0,
]; ];
} }
@ -475,7 +475,7 @@ class RegionMapper extends DataMapperFactory
foreach ($definitions as $r => $c) { foreach ($definitions as $r => $c) {
if (\in_array($country, $c)) { if (\in_array($country, $c)) {
foreach ($columns as $column) { foreach ($columns as $column) {
$regions[$r][$column] += $data[$column]; $regions[$r][$column] += $data[$column];
} }
$found = true; $found = true;
@ -484,7 +484,7 @@ class RegionMapper extends DataMapperFactory
if (!$found) { if (!$found) {
foreach ($columns as $column) { foreach ($columns as $column) {
$regions['Other'][$column] += $data[$column]; $regions['Other'][$column] += $data[$column];
} }
} }
} }

View File

@ -13,103 +13,103 @@
declare(strict_types=1); declare(strict_types=1);
return ['SalesAnalysis' => [ return ['SalesAnalysis' => [
'ItemAttribute' => 'Item Attribute', 'ItemAttribute' => 'Item Attribute',
'ClientAttribute' => 'Client Attribute', 'ClientAttribute' => 'Client Attribute',
'SalesRegion' => 'Sales Region', 'SalesRegion' => 'Sales Region',
'Customers' => 'Customers', 'Customers' => 'Customers',
'Months' => 'Months', 'Months' => 'Months',
'Total' => 'Total', 'Total' => 'Total',
'Year' => 'Year', 'Year' => 'Year',
'Month' => 'Month', 'Month' => 'Month',
'A' => 'A', 'A' => 'A',
'PY' => 'PY', 'PY' => 'PY',
'B' => 'B', 'B' => 'B',
'All' => 'All', 'All' => 'All',
'New' => 'New', 'New' => 'New',
'Lost' => 'Lost', 'Lost' => 'Lost',
'Product' => 'Product', 'Product' => 'Product',
'Continent' => 'Continent', 'Continent' => 'Continent',
'SalesPY' => 'Sales PY', 'SalesPY' => 'Sales PY',
'SalesB' => 'Sales B', 'SalesB' => 'Sales B',
'SalesA' => 'Sales A', 'SalesA' => 'Sales A',
'ProfitPY' => 'Profit PY', 'ProfitPY' => 'Profit PY',
'ProfitB' => 'Profit B', 'ProfitB' => 'Profit B',
'ProfitA' => 'Profit A', 'ProfitA' => 'Profit A',
'DiffPY' => 'Δ PY', 'DiffPY' => 'Δ PY',
'DiffB' => 'Δ B', 'DiffB' => 'Δ B',
'Data' => 'Data', 'Data' => 'Data',
'Actual' => 'Actual', 'Actual' => 'Actual',
'Budget' => 'Budget', 'Budget' => 'Budget',
'Segment' => 'Segment', 'Segment' => 'Segment',
'Section' => 'Section', 'Section' => 'Section',
'Group' => 'Group', 'Group' => 'Group',
'Region' => 'Region', 'Region' => 'Region',
'Filter' => 'Filter', 'Filter' => 'Filter',
'Country' => 'Country', 'Country' => 'Country',
'Category' => 'Category', 'Category' => 'Category',
'General' => 'General', 'General' => 'General',
'MTD' => 'MTD', 'MTD' => 'MTD',
'Other' => 'Other', 'Other' => 'Other',
'YTD' => 'YTD', 'YTD' => 'YTD',
'GrossProfit' => 'Gross Profit', 'GrossProfit' => 'Gross Profit',
'SalesProfit' => 'Sales / Profit', 'SalesProfit' => 'Sales / Profit',
'monthly' => 'monthly', 'monthly' => 'monthly',
'annually' => 'annually', 'annually' => 'annually',
'Profit' => 'Profit', 'Profit' => 'Profit',
'Start' => 'Start', 'Start' => 'Start',
'End' => 'End', 'End' => 'End',
'Sales' => 'Sales', 'Sales' => 'Sales',
'Client' => 'Client', 'Client' => 'Client',
'Clients' => 'Clients', 'Clients' => 'Clients',
'Item' => 'Item', 'Item' => 'Item',
'World' => 'World', 'World' => 'World',
'Africa' => 'Africa', 'Africa' => 'Africa',
'America' => 'America', 'America' => 'America',
'DomesticExport' => 'Domestic & Export', 'DomesticExport' => 'Domestic & Export',
'Oceania' => 'Oceania', 'Oceania' => 'Oceania',
'Analysis' => 'Analysis', 'Analysis' => 'Analysis',
'Asia' => 'Asia', 'Asia' => 'Asia',
'Change' => 'Change', 'Change' => 'Change',
'ChangeAcc' => 'Change Acc.', 'ChangeAcc' => 'Change Acc.',
'Charts' => 'Charts', 'Charts' => 'Charts',
'Comparison' => 'Comparison', 'Comparison' => 'Comparison',
'Continents' => 'Continents', 'Continents' => 'Continents',
'CurrentMonth' => 'Current Month', 'CurrentMonth' => 'Current Month',
'CurrentYear' => 'Current Year', 'CurrentYear' => 'Current Year',
'CurrentYearAcc' => 'Current Year Acc.', 'CurrentYearAcc' => 'Current Year Acc.',
'Customers' => 'Customers', 'Customers' => 'Customers',
'Data' => 'Data', 'Data' => 'Data',
'Database' => 'Database', 'Database' => 'Database',
'Day' => 'Day', 'Day' => 'Day',
'Developed' => 'Developed', 'Developed' => 'Developed',
'Developed/Undeveloped' => 'Developed/Undeveloped', 'Developed/Undeveloped' => 'Developed/Undeveloped',
'Development' => 'Development', 'Development' => 'Development',
'Domestic' => 'Domestic', 'Domestic' => 'Domestic',
'Domestic/Export' => 'Domestic/Export', 'Domestic/Export' => 'Domestic/Export',
'Employees' => 'Employees', 'Employees' => 'Employees',
'Europe' => 'Europe', 'Europe' => 'Europe',
'Export' => 'Export', 'Export' => 'Export',
'Forecast' => 'Forecast', 'Forecast' => 'Forecast',
'Frequency' => 'Frequency', 'Frequency' => 'Frequency',
'Interval' => 'Interval', 'Interval' => 'Interval',
'Invoices' => 'Invoices', 'Invoices' => 'Invoices',
'LastMonth' => 'Last Month', 'LastMonth' => 'Last Month',
'LastYear' => 'Last Year', 'LastYear' => 'Last Year',
'LastYearAcc' => 'Last Year Acc.', 'LastYearAcc' => 'Last Year Acc.',
'Marketing' => 'Marketing', 'Marketing' => 'Marketing',
'Misc' => 'Misc', 'Misc' => 'Misc',
'Month' => 'Month', 'Month' => 'Month',
'Current' => 'Current', 'Current' => 'Current',
'Analyze' => 'Analyze', 'Analyze' => 'Analyze',
'Overview' => 'Overview', 'Overview' => 'Overview',
'Products' => 'Products', 'Products' => 'Products',
'Regions' => 'Regions', 'Regions' => 'Regions',
'To' => 'To', 'To' => 'To',
'Today' => 'Today', 'Today' => 'Today',
'Top10' => 'Top 10', 'Top10' => 'Top 10',
'Total' => 'Total', 'Total' => 'Total',
'Type' => 'Type', 'Type' => 'Type',
'Undeveloped' => 'Undeveloped', 'Undeveloped' => 'Undeveloped',
'Year' => 'Year', 'Year' => 'Year',
'Yesterday' => 'Yesterday', 'Yesterday' => 'Yesterday',
]]; ]];

View File

@ -21,10 +21,10 @@ echo $this->data['nav']->render();
<div class="tabview tab-2"> <div class="tabview tab-2">
<div class="box"> <div class="box">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('All'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('All'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('New'); ?></label></li> <li><label for="c-tab-2"><?= $this->getHtml('New'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Lost'); ?></label></li> <li><label for="c-tab-3"><?= $this->getHtml('Lost'); ?></label>
<!--<li><label for="c-tab-1"><?= $this->getHtml('Filter'); ?></label></li>--> <!--<li><label for="c-tab-1"><?= $this->getHtml('Filter'); ?></label>-->
</ul> </ul>
</div> </div>
<div class="tab-content"> <div class="tab-content">

View File

@ -21,11 +21,11 @@ echo $this->data['nav']->render();
<div class="tabview tab-2"> <div class="tabview tab-2">
<div class="box"> <div class="box">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('Segment'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('Segment'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('Section'); ?></label></li> <li><label for="c-tab-2"><?= $this->getHtml('Section'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Group'); ?></label></li> <li><label for="c-tab-3"><?= $this->getHtml('Group'); ?></label>
<li><label for="c-tab-4"><?= $this->getHtml('Type'); ?></label></li> <li><label for="c-tab-4"><?= $this->getHtml('Type'); ?></label>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label></li>--> <!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label>-->
</ul> </ul>
</div> </div>
<div class="tab-content"> <div class="tab-content">
@ -36,7 +36,7 @@ echo $this->data['nav']->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Segment'); ?></div> <div class="portlet-head"><?= $this->getHtml('Segment'); ?></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>
@ -82,7 +82,7 @@ echo $this->data['nav']->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Section'); ?></div> <div class="portlet-head"><?= $this->getHtml('Section'); ?></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>
@ -128,7 +128,7 @@ echo $this->data['nav']->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Group'); ?></div> <div class="portlet-head"><?= $this->getHtml('Group'); ?></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>
@ -174,7 +174,7 @@ echo $this->data['nav']->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Type'); ?></div> <div class="portlet-head"><?= $this->getHtml('Type'); ?></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>

View File

@ -13,7 +13,6 @@
declare(strict_types=1); declare(strict_types=1);
use phpOMS\Localization\ISO3166NameEnum; use phpOMS\Localization\ISO3166NameEnum;
use phpOMS\Localization\Money;
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;
/** /**
@ -239,7 +238,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Month'); ?> <td><?= $this->getHtml('Month'); ?>
@ -386,7 +385,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Year'); ?> <td><?= $this->getHtml('Year'); ?>
@ -416,7 +415,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('ItemAttribute'); ?> <?= $this->getHtml('ItemAttribute'); ?>
</div> </div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>
@ -456,7 +455,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('ClientAttribute'); ?> <?= $this->getHtml('ClientAttribute'); ?>
</div> </div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Category'); ?> <td><?= $this->getHtml('Category'); ?>
@ -496,7 +495,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('Country'); ?> <?= $this->getHtml('Country'); ?>
</div> </div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Country'); ?> <td><?= $this->getHtml('Country'); ?>

View File

@ -24,11 +24,11 @@ echo $this->data['nav']->render();
<div class="tabview tab-2"> <div class="tabview tab-2">
<div class="box"> <div class="box">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('World'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('World'); ?></label>
<li><label for="c-tab-2"><?= $this->getHtml('DomesticExport'); ?></label></li> <li><label for="c-tab-2"><?= $this->getHtml('DomesticExport'); ?></label>
<li><label for="c-tab-3"><?= $this->getHtml('Continents'); ?></label></li> <li><label for="c-tab-3"><?= $this->getHtml('Continents'); ?></label>
<li><label for="c-tab-4"><?= $this->getHtml('Regions'); ?></label></li> <li><label for="c-tab-4"><?= $this->getHtml('Regions'); ?></label>
<!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label></li>--> <!--<li><label for="c-tab-5"><?= $this->getHtml('Filter'); ?></label>-->
</ul> </ul>
</div> </div>
<div class="tab-content"> <div class="tab-content">
@ -51,7 +51,7 @@ echo $this->data['nav']->render();
$temp = []; $temp = [];
foreach ($this->data['ytdAClientCountry'] as $lang => $values) { foreach ($this->data['ytdAClientCountry'] as $lang => $values) {
$temp[] = '{"id": "' . ISO3166CharEnum::getBy2Code($lang) . '", "value": ' . ($values['net_sales'] / 10000) . '}'; $temp[] = '{"id": "' . ISO3166CharEnum::getBy2Code($lang) . '", "value": ' . ($values['net_sales'] / 10000) . '}';
}; ?> } ?>
<?= \implode(',', $temp); ?> <?= \implode(',', $temp); ?>
] ]
}] }]
@ -85,7 +85,7 @@ echo $this->data['nav']->render();
<?= $this->getHtml('Country'); ?> <?= $this->getHtml('Country'); ?>
</div> </div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Country'); ?> <td><?= $this->getHtml('Country'); ?>
@ -273,7 +273,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Month'); ?> <td><?= $this->getHtml('Month'); ?>
@ -463,7 +463,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Month'); ?> <td><?= $this->getHtml('Month'); ?>
@ -507,7 +507,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div> <div class="portlet-head"><?= $this->getHtml('Sales'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="sales-domestic-export" data-chart='{ <canvas id="sales-domestic-export" data-chart='{
"type": "pie", "type": "pie",
@ -539,7 +539,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -582,7 +582,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualDomesticExport'] as $region => $values) : foreach ($this->data['annualDomesticExport'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->printHtml($region); ?>", "label": "<?= $this->printHtml($region); ?>",
@ -614,7 +614,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -648,7 +648,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Profit') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div> <div class="portlet-head"><?= $this->getHtml('Profit'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="profit-domestic-export-region" data-chart='{ <canvas id="profit-domestic-export-region" data-chart='{
"type": "pie", "type": "pie",
@ -680,7 +680,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -723,7 +723,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualDomesticExport'] as $region => $values) : foreach ($this->data['annualDomesticExport'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->printHtml($region); ?>", "label": "<?= $this->printHtml($region); ?>",
@ -765,7 +765,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -799,7 +799,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Clients') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport') ?></div> <div class="portlet-head"><?= $this->getHtml('Clients'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('DomesticExport'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="client-count-domestic-export" data-chart='{ <canvas id="client-count-domestic-export" data-chart='{
"type": "pie", "type": "pie",
@ -831,7 +831,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -874,7 +874,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualDomesticExportCount'] as $region => $values) : foreach ($this->data['annualDomesticExportCount'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->printHtml($region); ?>", "label": "<?= $this->printHtml($region); ?>",
@ -906,7 +906,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -943,7 +943,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div> <div class="portlet-head"><?= $this->getHtml('Sales'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="sales-continent" data-chart='{ <canvas id="sales-continent" data-chart='{
"type": "pie", "type": "pie",
@ -975,7 +975,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1018,7 +1018,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualContinent'] as $region => $values) : foreach ($this->data['annualContinent'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->getHtml($region); ?>", "label": "<?= $this->getHtml($region); ?>",
@ -1050,7 +1050,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1084,7 +1084,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Profit') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div> <div class="portlet-head"><?= $this->getHtml('Profit'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="profit-continent-region" data-chart='{ <canvas id="profit-continent-region" data-chart='{
"type": "pie", "type": "pie",
@ -1116,7 +1116,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1159,7 +1159,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualContinent'] as $region => $values) : foreach ($this->data['annualContinent'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->getHtml($region); ?>", "label": "<?= $this->getHtml($region); ?>",
@ -1201,7 +1201,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1235,7 +1235,7 @@ echo $this->data['nav']->render();
<div class="row"> <div class="row">
<div class="col-xs-12 col-lg-4"> <div class="col-xs-12 col-lg-4">
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Clients') ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent') ?></div> <div class="portlet-head"><?= $this->getHtml('Clients'); ?> (<?= $this->getHtml('YTD'); ?>) - <?= $this->getHtml('Continent'); ?></div>
<div class="portlet-body"> <div class="portlet-body">
<canvas id="client-count-continent" data-chart='{ <canvas id="client-count-continent" data-chart='{
"type": "pie", "type": "pie",
@ -1267,7 +1267,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1310,7 +1310,7 @@ echo $this->data['nav']->render();
<?php <?php
$first = true; $first = true;
foreach ($this->data['annualContinentCount'] as $region => $values) : foreach ($this->data['annualContinentCount'] as $region => $values) :
echo ($first ? '' : ','); echo($first ? '' : ',');
$first = false; $first = false;
?>{ ?>{
"label": "<?= $this->printHtml($region); ?>", "label": "<?= $this->printHtml($region); ?>",
@ -1342,7 +1342,7 @@ echo $this->data['nav']->render();
<i class="g-icon expand">chevron_right</i> <i class="g-icon expand">chevron_right</i>
</label> </label>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>
@ -1381,7 +1381,7 @@ echo $this->data['nav']->render();
<section class="portlet"> <section class="portlet">
<div class="portlet-head"><?= $this->getHtml('Sales'); ?></div> <div class="portlet-head"><?= $this->getHtml('Sales'); ?></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Region'); ?> <td><?= $this->getHtml('Region'); ?>

View File

@ -21,7 +21,7 @@ echo $this->data['nav']->render();
<div class="tabview tab-2"> <div class="tabview tab-2">
<div class="box"> <div class="box">
<ul class="tab-links"> <ul class="tab-links">
<li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label></li> <li><label for="c-tab-1"><?= $this->getHtml('General'); ?></label>
</ul> </ul>
</div> </div>
<div class="tab-content"> <div class="tab-content">