Remove whitespace

This commit is contained in:
Dennis Eichhorn 2018-05-21 22:30:04 +02:00
parent 87c943bfaf
commit 0bd61648b0
36 changed files with 1001 additions and 23 deletions

View File

@ -16,6 +16,7 @@ namespace Modules\Exchange;
use Modules\Navigation\Models\Navigation;
use Modules\Navigation\Views\NavigationView;
use phpOMS\Contract\RenderableInterface;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
@ -23,6 +24,9 @@ use phpOMS\Module\ModuleAbstract;
use phpOMS\Module\WebInterface;
use phpOMS\Views\View;
use Modules\Exchange\Models\InterfaceManager;
use Modules\Exchange\Models\InterfaceManagerMapper;
/**
* Exchange controller class.
*
@ -98,6 +102,17 @@ final class Controller extends ModuleAbstract implements WebInterface
$view->setTemplate('/Modules/Exchange/Theme/Backend/exchange-export-list');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1007001001, $request, $response));
$interfaces = InterfaceManagerMapper::getAll();
$export = [];
foreach ($interfaces as $interface) {
if ($interface->hasExport()) {
$export[] = $interface;
}
}
$view->addData('interfaces', $export);
return $view;
}
@ -107,6 +122,17 @@ final class Controller extends ModuleAbstract implements WebInterface
$view->setTemplate('/Modules/Exchange/Theme/Backend/exchange-import-list');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1007001001, $request, $response));
$interfaces = InterfaceManagerMapper::getAll();
$import = [];
foreach ($interfaces as $interface) {
if ($interface->hasImport()) {
$import[] = $interface;
}
}
$view->addData('interfaces', $import);
return $view;
}

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

215
Interfaces/GSD/Importer.php Normal file
View File

@ -0,0 +1,215 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces\GSD;
use Interfaces\ImporterAbstract;
use Interfaces\GSD\Model\GSDCostCenterMapper;
use Interfaces\GSD\Model\GSDCostObjectMapper;
use Interfaces\GSD\Model\GSDCustomerMapper;
use Modules\Accounting\Models\CostCenterMapper;
use Modules\Accounting\Models\CostCenter;
use Modules\Accounting\Models\CostObjectMapper;
use Modules\Accounting\Models\CostObject;
use Modules\ClientManagement\Models\ClientMapper;
use Modules\ClientManagement\Models\Client;
use phpOMS\DataStorage\Database\Query\Builder;
/**
* GSD import class
*
* @package Interfaces\GSD
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
final class Importer extends ImporterAbstract
{
/**
* Import all data in time span
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function import(\DateTime $start, \DateTime $end) : void
{
$this->importCostCenter($start, $end);
$this->importCostObject($start, $end);
$this->importAddress($start, $end);
$this->importCustomer($start, $end);
$this->importSupplier($start, $end);
$this->importArticle($start, $end);
$this->importAccount($start, $end);
$this->importInvoice($start, $end);
$this->importPosting($start, $end);
$this->importBatchPosting($start, $end);
}
/**
* Import cost centers
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importCostCenter(\DateTime $start, \DateTime $end) : void
{
DataMapperAbstract::setConnection($this->app->dbPool->get('gsd'));
$costCenters = GSDCostCenterMapper::getAll();
$obj = new CostCenter();
DataMapperAbstract::setConnection($this->app->dbPool->get('oms'));
foreach ($costCenters as $cc) {
$obj->setCostCenter((int) $cc->getCostCenter());
$obj->setCostCenterName($cc->getDescription());
CostCenterMapper::create($obj);
}
}
/**
* Import cost objects
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importCostObject(\DateTime $start, \DateTime $end) : void
{
DataMapperAbstract::setConnection($this->app->dbPool->get('gsd'));
$costObjects = GSDCostObjectMapper::getAll();
$obj = new CostObject();
DataMapperAbstract::setConnection($this->app->dbPool->get('oms'));
foreach ($costObjects as $co) {
$obj->setCostObject((int) $co->getCostObject());
$obj->setCostObjectName($co->getDescription());
CostObjectMapper::create($obj);
}
}
/**
* Import addresses
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importAddress(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import customers
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importCustomer(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import suppliers
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importSupplier(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import accounts
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importAccount(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import invoices
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importInvoice(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import postings
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importPosting(\DateTime $start, \DateTime $end) : void
{
}
/**
* Import batch postings
*
* @param \DateTime $start Start time (inclusive)
* @param \DateTime $end End time (inclusive)
*
* @return void
*
* @since 1.0.0
*/
public function importBatchPosting(\DateTime $start, \DateTime $end) : void
{
}
}

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,201 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces\GSD\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces\GSD\Models;
use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/**
* Cost center class.
*
* @package Interfaces\GSD\Models
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
final class GSDCostCenter implements \JsonSerializable
{
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected $id = 0;
/**
* Creator.
*
* @var int
* @since 1.0.0
*/
protected $createdBy = 0;
/**
* Created.
*
* @var \DateTime
* @since 1.0.0
*/
protected $createdAt = null;
/**
* Description.
*
* @var string
* @since 1.0.0
*/
protected $description = '';
/**
* Cost center.
*
* @var string
* @since 1.0.0
*/
protected $costCenter = '';
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->createdAt = new \DateTime('now');
}
/**
* @return \DateTime
*
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
return $this->createdAt ?? new \DateTime();
}
/**
* Get created by
*
* @return mixed
*
* @since 1.0.0
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* Set created by
*
* @param mixed $id Created by
*
* @return void
*
* @since 1.0.0
*/
public function setCreatedBy($id) : void
{
$this->createdBy = $id;
}
/**
* Set description
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
$this->description = $description;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;
}
/**
* Set cost center
*
* @param string $costCenter Cost center
*
* @return void
*
* @since 1.0.0
*/
public function setCostCenter(string $costCenter) : void
{
$this->costCenter = $costCenter;
}
/**
* Get cost center
*
* @return string
*
* @since 1.0.0
*/
public function getCostCenter() : string
{
return $this->costCenter;
}
/**
* Get id
*
* @return int
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function toArray() : array
{
return [
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
'description' => $this->description,
'costcenter' => $this->costCenter,
];
}
/**
* {@inheritdoc}
*/
public function jsonSerialize()
{
return $this->toArray();
}
}

View File

@ -0,0 +1,67 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces\GSD\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces\GSD\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* Mapper class.
*
* @package Interfaces\GSD\Models
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
final class GSDCostCenterMapper extends DataMapperAbstract
{
/**
* Columns.
*
* @var array
* @since 1.0.0
*/
protected static $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => '\DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'KST' => ['name' => 'KST', 'type' => 'string', 'internal' => 'costcenter'],
'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'],
];
/**
* Primary table.
*
* @var string
* @since 1.0.0
*/
protected static $table = 'FiKostenstellen';
/**
* Created at.
*
* @var string
* @since 1.0.0
*/
protected static $createdAt = 'row_create_time';
/**
* Primary field name.
*
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'ROW_ID';
}

View File

@ -0,0 +1,201 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces\GSD\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces\GSD\Models;
use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/**
* Cost object class.
*
* @package Interfaces\GSD\Models
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
final class GSDCostObject implements \JsonSerializable
{
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected $id = 0;
/**
* Creator.
*
* @var int
* @since 1.0.0
*/
protected $createdBy = 0;
/**
* Created.
*
* @var \DateTime
* @since 1.0.0
*/
protected $createdAt = null;
/**
* Description.
*
* @var string
* @since 1.0.0
*/
protected $description = '';
/**
* Cost object.
*
* @var string
* @since 1.0.0
*/
protected $costObject = '';
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->createdAt = new \DateTime('now');
}
/**
* @return \DateTime
*
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
return $this->createdAt ?? new \DateTime();
}
/**
* Get created by
*
* @return mixed
*
* @since 1.0.0
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* Set created by
*
* @param mixed $id Created by
*
* @return void
*
* @since 1.0.0
*/
public function setCreatedBy($id) : void
{
$this->createdBy = $id;
}
/**
* Set description
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
$this->description = $description;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;
}
/**
* Set cost object
*
* @param string $costObject Cost object
*
* @return void
*
* @since 1.0.0
*/
public function setCostObject(string $costObject) : void
{
$this->costObject = $costObject;
}
/**
* Get cost object
*
* @return string
*
* @since 1.0.0
*/
public function getCostObject() : string
{
return $this->costObject;
}
/**
* Get id
*
* @return int
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function toArray() : array
{
return [
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
'description' => $this->description,
'costObject' => $this->costObject,
];
}
/**
* {@inheritdoc}
*/
public function jsonSerialize()
{
return $this->toArray();
}
}

View File

@ -0,0 +1,67 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces\GSD\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces\GSD\Models;
use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* Mapper class.
*
* @package Interfaces\GSD\Models
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
final class GSDCostObjectMapper extends DataMapperAbstract
{
/**
* Columns.
*
* @var array
* @since 1.0.0
*/
protected static $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => '\DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'KTR' => ['name' => 'KTR', 'type' => 'string', 'internal' => 'costobject'],
'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'],
];
/**
* Primary table.
*
* @var string
* @since 1.0.0
*/
protected static $table = 'FiKostentraeger';
/**
* Created at.
*
* @var string
* @since 1.0.0
*/
protected static $createdAt = 'row_create_time';
/**
* Primary field name.
*
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'ROW_ID';
}

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

74
Interfaces/GSD/base.sql Normal file
View File

@ -0,0 +1,74 @@
-- CostCenter
SELECT
ROW_ID, row_create_time, row_create_user, KST, Bezeichnung, Auslaufkennzeichen as Status
FROM FiKostenstellen
-- CostObject
SELECT
ROW_ID, row_create_time, row_create_user, KTR, Bezeichnung
FROM FiKostentraeger
-- Addresses
SELECT
ROW_ID, row_create_user, row_create_time, Name1, Name2, Name3, Ort, Land, Telefon, PLZ, Strasse, Fax, Email, InternetAdresse
FROM Adressen
-- Customer
SELECT
row_id, row_create_time, row_create_user, Kundennummer, Info, Auftragssperre, KreditLimitintern, EGUstId, BIC, IBAN, Verkaeufer, AdressId, Steuernummer
FROM Kunden
-- Supplier
SELECT
row_id, row_create_time, row_create_user, LieferantenNummer, Info, Auftragssperre, EGUstId, BIC, IBAN, AdressId, Steuernummer
FROM Lieferanten
-- Article
SELECT
row_id, row_create_time, row_create_user, Artikelnummer, Info, Artikelbezeichnung, Artikelbezeichnung2, _Englisch1, _Englisch2, ArtikelGruppenId, Auslaufartikel as Status, Chargenverwaltung, Gewicht, BeschaffungszeitTage, EUWarengruppe
FROM Artikel
-- Outbound Invoices
SELECT
ROW_ID, ROW_CREATE_TIME, ROW_CREATE_USER, KundenId, BelegartId, AdressId, Status, Auftragsnummer, Frachtkosten, Versandkosten, ReferenzNummer, Belegnummer, Belegdatum, RechnungsAdressId, LieferAdressId, Sachbearbeiter, Verkaeufer
FROM ArchivBelegkopf
-- Outbound Invoice Elements
SELECT
ROW_ID, ROW_CREATE_TIME, ROW_CREATE_USER, ParentID, ArtikelId, BelegzeilenId, Belegzeilentyp, Rabatt, Einzelpreis, Menge, Belegzeilentext, Steuersatz
FROM ArchivBelegzeilen
-- Stock
SELECT
ROW_ID, row_create_time, row_create_user, ArtikelID, Charge, Lager, Seriennummer, Bestand
FROM Bestaende
-- Warehouse
SELECT
row_id, lagernummer, lagerbezeichnung, AdressID
FROM Lagerstammdaten
-- Stock movement
SELECT
ROW_ID, row_create_time, row_create_user, Charge, Lager, Seriennummer, Belegnummer, Menge, Uhrzeit, Bestand, ArtikelID, PlusMinus, Modus, Wert, Typ
FROM Lagerbewegungsprotokoll
-- Finance Postings
SELECT
ROW_ID, row_create_time, row_create_user, Konto, GegenKonto, BelegNr, Buchungsdatum, Belegdatum, OPNummer, Steuerschluessel, Betrag, Nettobetrag, BuchText, JournalNr, KST, KTR, EGUstID, FremdbelegNr, StapelID, BuchungsID, KontoC, GegenkontoC, Buchungstyp
From FiBuchungsArchiv
-- Finance Accounts
SELECT
ROW_ID, row_create_time, row_create_user, Konto, Bezeichnung, BilanzGuv, Zuordnung, Steuerart, Steuerschluesse, UVAPosition, UVAGrundlage, Saldovortrag, EGStatistik, Auslaufkonto as Status, Aktuell, KSTRechn, KTRRechn, KST, KTR,
FROM FiSachkonten
-- Finance Batch Posting
SELECT
ROW_ID, row_create_time, row_create_user, Buchungsdatum, Buchungsart, BelegNr, BelegDatum, Konto, Betrag, BetragSkontierf, FWBetrag, FremdBelegNr, Buchungstext, Zahlungsbedingung, SkontoTage1, SkontoProz1, SontoTage2, SkontoProz2, SontoTage3, SkontoProz3, Nettotage, EGUstID, Status
FROM FiStapelBuchungen
-- Finance Batch
SELECT
ROW_ID, row_create_time, row_create_user, Status, Stapeltyp, Buchungsart, Datum
FROM FiStapelInfo

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,58 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package Interfaces
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Interfaces;
use phpOMS\DataStorage\Database\Connection\ConnectionInterface;
/**
* Import abstract
*
* @package Interfaces
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
*/
abstract class ImporterAbstract
{
/**
* Database connection.
*
* @var ConnectionInterface
* @since 1.0.0
*/
private $local = null;
/**
* Database connection.
*
* @var ConnectionInterface
* @since 1.0.0
*/
private $remote = null;
/**
* Constructor
*
* @param ConnectionInterface $local Database connection
* @param ConnectionInterface $remote Database connection
*
* @since 1.0.0
*/
public function __construct(ConnectionInterface $local, ConnectionInterface $remote)
{
$this->remote = $remote;
$this->local = $local;
}
}

View File

@ -60,11 +60,23 @@ final class InterfaceManager
*
* @since 1.0.0
*/
public function __construct(string $path)
public function __construct(string $path = '')
{
$this->path = $path;
}
/**
* Get id
*
* @return string
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
}
/**
* Get info path
*
@ -77,6 +89,42 @@ final class InterfaceManager
return $this->path;
}
/**
* Get info name
*
* @return string
*
* @since 1.0.0
*/
public function getName() : string
{
return $this->info['name'];
}
/**
* Provides import interface
*
* @return string
*
* @since 1.0.0
*/
public function hasImport() : bool
{
return $this->info['import'];
}
/**
* Provides export interface
*
* @return string
*
* @since 1.0.0
*/
public function hasExport() : bool
{
return $this->info['export'];
}
/**
* Load info data from path.
*
@ -117,7 +165,7 @@ final class InterfaceManager
* @param string $path Value path
* @param mixed $data Scalar or array of data to set
* @param string $delim Delimiter of path
*
*
* @return void
*
* @since 1.0.0

View File

@ -11,10 +11,13 @@
* @link http://website.orange-management.de
*/
/**
/**
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?>
$interfaces = $this->getData('interfaces');
echo $this->getData('nav')->render();
?>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
@ -23,20 +26,15 @@ echo $this->getData('nav')->render(); ?>
<thead>
<tr>
<td class="wf-100"><?= $this->getHtml('Title') ?>
<td><?= $this->getHtml('Website') ?>
<tfoot>
<tr>
<td colspan="2">
<tbody>
<?php $count = 0; foreach ($interfaces as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/export/profile?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
<td data-label="<?= $this->getHtml('Website') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>

View File

@ -11,10 +11,13 @@
* @link http://website.orange-management.de
*/
/**
/**
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?>
$interfaces = $this->getData('interfaces');
echo $this->getData('nav')->render();
?>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
@ -23,20 +26,15 @@ echo $this->getData('nav')->render(); ?>
<thead>
<tr>
<td class="wf-100"><?= $this->getHtml('Title') ?>
<td><?= $this->getHtml('Website') ?>
<tfoot>
<tr>
<td colspan="2">
<tbody>
<?php $count = 0; foreach ($interfaces as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/import/profile?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/export/profile?{?}&id=' . $value->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
<td data-label="<?= $this->getHtml('Website') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>