Make app,localization in url optional+tld+subdomain

This commit is contained in:
Dennis Eichhorn 2019-03-09 23:21:29 +01:00
parent c16b040988
commit 56e62194ed
6 changed files with 65 additions and 65 deletions

View File

@ -1,11 +1,11 @@
[ [
{ {
"id": 1004805001, "id": 1004805001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/lang}/backend/sales/item/list?{?}", "uri": "{/prefix}sales/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -15,11 +15,11 @@
"children": [ "children": [
{ {
"id": 1004805101, "id": 1004805101,
"pid": "/backend/sales/item", "pid": "/sales/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/sales/item/list?{?}", "uri": "{/prefix}sales/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -29,11 +29,11 @@
"children": [ "children": [
{ {
"id": 1004805301, "id": 1004805301,
"pid": "/backend/sales/item", "pid": "/sales/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/lang}/backend/sales/item/single?{?}", "uri": "{/prefix}sales/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -46,11 +46,11 @@
}, },
{ {
"id": 1004805201, "id": 1004805201,
"pid": "/backend/sales/item", "pid": "/sales/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/sales/item/create?{?}", "uri": "{/prefix}sales/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -63,11 +63,11 @@
}, },
{ {
"id": 1004806001, "id": 1004806001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/lang}/backend/purchase/item/list?{?}", "uri": "{/prefix}purchase/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -77,11 +77,11 @@
"children": [ "children": [
{ {
"id": 1004806101, "id": 1004806101,
"pid": "/backend/purchase/item", "pid": "/purchase/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/purchase/item/list?{?}", "uri": "{/prefix}purchase/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -91,11 +91,11 @@
"children": [ "children": [
{ {
"id": 1004806301, "id": 1004806301,
"pid": "/backend/purchase/item", "pid": "/purchase/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/lang}/backend/purchase/item/single?{?}", "uri": "{/prefix}purchase/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -108,11 +108,11 @@
}, },
{ {
"id": 1004806201, "id": 1004806201,
"pid": "/backend/purchase/item", "pid": "/purchase/item",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/purchase/item/create?{?}", "uri": "{/prefix}purchase/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -125,11 +125,11 @@
}, },
{ {
"id": 1004807001, "id": 1004807001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Stock", "name": "Stock",
"uri": "{/lang}/backend/warehouse/stock/list?{?}", "uri": "{/prefix}warehouse/stock/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -139,11 +139,11 @@
"children": [ "children": [
{ {
"id": 1004807101, "id": 1004807101,
"pid": "/backend/warehouse/stock", "pid": "/warehouse/stock",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/warehouse/stock/list?{?}", "uri": "{/prefix}warehouse/stock/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -153,11 +153,11 @@
"children": [ "children": [
{ {
"id": 1004807301, "id": 1004807301,
"pid": "/backend/warehouse/stock", "pid": "/warehouse/stock",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/lang}/backend/warehouse/stock/single?{?}", "uri": "{/prefix}warehouse/stock/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -170,11 +170,11 @@
}, },
{ {
"id": 1004807201, "id": 1004807201,
"pid": "/backend/warehouse/stock", "pid": "/warehouse/stock",
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/warehouse/stock/create?{?}", "uri": "{/prefix}warehouse/stock/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -187,11 +187,11 @@
}, },
{ {
"id": 1004808001, "id": 1004808001,
"pid": "/backend", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Articles", "name": "Articles",
"uri": "{/lang}/backend/production/item/list?{?}", "uri": "{/prefix}production/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -205,7 +205,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/lang}/backend/production/item/list?{?}", "uri": "{/prefix}production/item/list?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -219,7 +219,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Article", "name": "Article",
"uri": "{/lang}/backend/production/item/single?{?}", "uri": "{/prefix}production/item/single?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -236,7 +236,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/lang}/backend/production/item/create?{?}", "uri": "{/prefix}production/item/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,

View File

@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
use phpOMS\Router\RouteVerb; use phpOMS\Router\RouteVerb;
return [ return [
'^.*/backend/sales/item/list.*$' => [ '^.*/sales/item/list.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementSalesList', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementSalesList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -17,7 +17,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/item/list.*$' => [ '^.*/purchase/item/list.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementPurchaseList', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementPurchaseList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -28,7 +28,7 @@ return [
], ],
], ],
], ],
'^.*/backend/warehouse/stock/list.*$' => [ '^.*/warehouse/stock/list.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementWarehousingList', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementWarehousingList',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -39,7 +39,7 @@ return [
], ],
], ],
], ],
'^.*/backend/sales/item/create.*$' => [ '^.*/sales/item/create.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementSalesCreate', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementSalesCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -50,7 +50,7 @@ return [
], ],
], ],
], ],
'^.*/backend/purchase/item/create.*$' => [ '^.*/purchase/item/create.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementPurchaseCreate', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementPurchaseCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,
@ -61,7 +61,7 @@ return [
], ],
], ],
], ],
'.*/backend/warehouse/stock/create.*$' => [ '.*/warehouse/stock/create.*$' => [
[ [
'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementWarehousingCreate', 'dest' => '\Modules\ItemManagement\Controller\BackendController:viewItemManagementWarehousingCreate',
'verb' => RouteVerb::GET, 'verb' => RouteVerb::GET,

View File

@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100"> <section class="box wf-100">
<header><h1><?= $this->getHtml('Item'); ?></h1></header> <header><h1><?= $this->getHtml('Item'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iSource"><?= $this->getHtml('ID'); ?></label> <tr><td><label for="iSource"><?= $this->getHtml('ID'); ?></label>
@ -68,7 +68,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100"> <section class="box wf-100">
<header><h1><?= $this->getHtml('Language'); ?></h1></header> <header><h1><?= $this->getHtml('Language'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iLanguage"><?= $this->getHtml('Language'); ?></label> <tr><td><label for="iLanguage"><?= $this->getHtml('Language'); ?></label>
@ -96,7 +96,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Property'); ?></h1></header> <header><h1><?= $this->getHtml('Property'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPCustomsId"><?= $this->getHtml('Name'); ?></label> <tr><td><label for="iPCustomsId"><?= $this->getHtml('Name'); ?></label>
@ -115,7 +115,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Language'); ?></h1></header> <header><h1><?= $this->getHtml('Language'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label> <tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label>
@ -134,7 +134,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Language'); ?></h1></header> <header><h1><?= $this->getHtml('Language'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label> <tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label>
@ -154,7 +154,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Attribute'); ?></h1></header> <header><h1><?= $this->getHtml('Attribute'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPCustomsId"><?= $this->getHtml('Name'); ?></label> <tr><td><label for="iPCustomsId"><?= $this->getHtml('Name'); ?></label>
@ -173,7 +173,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Language'); ?></h1></header> <header><h1><?= $this->getHtml('Language'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label> <tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label>
@ -192,7 +192,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Language'); ?></h1></header> <header><h1><?= $this->getHtml('Language'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label> <tr><td><label for="iPTradingUnit"><?= $this->getHtml('Language'); ?></label>
@ -214,7 +214,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Sales'); ?></h1></header> <header><h1><?= $this->getHtml('Sales'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPType"><?= $this->getHtml('Status'); ?></label> <tr><td><label for="iPType"><?= $this->getHtml('Status'); ?></label>
@ -256,7 +256,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Price'); ?></h1></header> <header><h1><?= $this->getHtml('Price'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td colspan="2"><label for="iPName"><?= $this->getHtml('Name'); ?></label> <tr><td colspan="2"><label for="iPName"><?= $this->getHtml('Name'); ?></label>
@ -292,7 +292,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Purchase'); ?></h1></header> <header><h1><?= $this->getHtml('Purchase'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iSupplierId"><?= $this->getHtml('Supplier'); ?></label> <tr><td><label for="iSupplierId"><?= $this->getHtml('Supplier'); ?></label>
@ -325,7 +325,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Price'); ?></h1></header> <header><h1><?= $this->getHtml('Price'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPName"><?= $this->getHtml('Name'); ?></label> <tr><td><label for="iPName"><?= $this->getHtml('Name'); ?></label>
@ -349,7 +349,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Stock'); ?></h1></header> <header><h1><?= $this->getHtml('Stock'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label> <tr><td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label>
@ -373,7 +373,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Supplier'); ?></h1></header> <header><h1><?= $this->getHtml('Supplier'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPName"><?= $this->getHtml('Name'); ?></label> <tr><td><label for="iPName"><?= $this->getHtml('Name'); ?></label>
@ -391,7 +391,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Accounting'); ?></h1></header> <header><h1><?= $this->getHtml('Accounting'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td colspan="2"><label for="iACostIndicator"><?= $this->getHtml('CostIndicator'); ?></label> <tr><td colspan="2"><label for="iACostIndicator"><?= $this->getHtml('CostIndicator'); ?></label>
@ -412,7 +412,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Production'); ?></h1></header> <header><h1><?= $this->getHtml('Production'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPType"><?= $this->getHtml('Status'); ?></label> <tr><td><label for="iPType"><?= $this->getHtml('Status'); ?></label>
@ -442,7 +442,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('StockList'); ?></h1></header> <header><h1><?= $this->getHtml('StockList'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iSource"><?= $this->getHtml('ID'); ?></label> <tr><td><label for="iSource"><?= $this->getHtml('ID'); ?></label>
@ -460,7 +460,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('QM'); ?></h1></header> <header><h1><?= $this->getHtml('QM'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
</table> </table>
@ -473,7 +473,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Packaging'); ?></h1></header> <header><h1><?= $this->getHtml('Packaging'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPVariation"><?= $this->getHtml('Container'); ?></label> <tr><td><label for="iPVariation"><?= $this->getHtml('Container'); ?></label>
@ -505,7 +505,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Media'); ?></h1></header> <header><h1><?= $this->getHtml('Media'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iDiscount"><?= $this->getHtml('Media'); ?></label> <tr><td><label for="iDiscount"><?= $this->getHtml('Media'); ?></label>
@ -521,7 +521,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Stock'); ?></h1></header> <header><h1><?= $this->getHtml('Stock'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPVariation"><?= $this->getHtml('ShelfLife'); ?></label> <tr><td><label for="iPVariation"><?= $this->getHtml('ShelfLife'); ?></label>
@ -534,7 +534,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Stock'); ?></h1></header> <header><h1><?= $this->getHtml('Stock'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label> <tr><td><label for="iPVariation"><?= $this->getHtml('Stock'); ?></label>
@ -558,7 +558,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Disposal'); ?></h1></header> <header><h1><?= $this->getHtml('Disposal'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
</table> </table>
@ -571,7 +571,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft"> <section class="box w-33 floatLeft">
<header><h1><?= $this->getHtml('Files'); ?></h1></header> <header><h1><?= $this->getHtml('Files'); ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
<table class="layout wf-100"> <table class="layout wf-100">
<tbody> <tbody>
<tr><td><label for="iDiscount"><?= $this->getHtml('Files'); ?></label> <tr><td><label for="iDiscount"><?= $this->getHtml('Files'); ?></label>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="6"> <td colspan="6">
<tbody> <tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count; <?php $count = 0; foreach ($items as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/sales/item/single?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/item/single?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getNumber()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getNumber()); ?></a>
<td> <td>

View File

@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="8"> <tr><td colspan="8">
<tbody> <tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <?php $c = 0; foreach ([] as $key => $value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/business/department/profile?{?}&id=' . $value->getId()); ?> $url = \phpOMS\Uri\UriFactory::build('{/prefix}business/department/profile?{?}&id=' . $value->getId()); ?>
<tr> <tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -25,9 +25,9 @@
"load": [ "load": [
{ {
"pid": [ "pid": [
"/backend/sales/item", "/sales/item",
"/backend/purchase/item", "/purchase/item",
"/backend/warehouse/item" "/warehouse/item"
], ],
"type": 4, "type": 4,
"for": 0, "for": 0,
@ -36,7 +36,7 @@
}, },
{ {
"pid": [ "pid": [
"/backend" "/"
], ],
"type": 5, "type": 5,
"from": "ItemManagement", "from": "ItemManagement",