oms-Exchange/Interfaces/GSD/import.tpl.php

84 lines
5.6 KiB
PHP
Executable File

<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getHtml('Import') ?> - GSD</h1></header>
<div class="inner">
<form id="fImport" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/exchange/import/profile?{?}&exchange=GSD&csrf={$CSRF}'); ?>">
<table class="layout wf-100" style="table-layout: fixed">
<tbody>
<tr><td><label for="iHost"><?= $this->getHtml('Host') ?></label>
<tr><td><input type="text" id="iHost" name="host" placeholder="&#xf040; <?= $this->getHtml('Host') ?>" required><input type="hidden" id="iDb" name="db" value="<?= \phpOMS\DataStorage\Database\DatabaseType::SQLSRV; ?>" required>
<tr><td><label for="iPort"><?= $this->getHtml('Port') ?></label>
<tr><td><input type="text" id="iPort" name="port" value="1433" required>
<tr><td><label for="iDatabase"><?= $this->getHtml('Database') ?></label>
<tr><td><input type="text" id="iDatabase" name="database" placeholder="&#xf040; <?= $this->getHtml('Database') ?>" required>
<tr><td><label for="iLogin"><?= $this->getHtml('Login') ?></label>
<tr><td><input type="text" id="iLogin" name="login" placeholder="&#xf040; <?= $this->getHtml('Login') ?>" required>
<tr><td><label for="iPassword"><?= $this->getHtml('Password') ?></label>
<tr><td><input type="password" id="iPassword" name="password" placeholder="&#xf040; <?= $this->getHtml('Password') ?>" required>
<tr><td><label for="iStart"><?= $this->getHtml('Start') ?></label>
<tr><td><input type="datetime-local" id="iStart" name="start" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
<tr><td><label for="iEnd"><?= $this->getHtml('End') ?></label>
<tr><td><input type="datetime-local" id="iEnd" name="end" value="<?= $this->printHtml((new \DateTime('NOW'))->format('Y-m-d\TH:i:s')); ?>">
<tr><td><?= $this->getHtml('Options') ?>
<tr><td>
<table class="layout wf-100"><tr><td>
<span class="checkbox">
<input id="iCustomers" name="customers" type="checkbox" value="1">
<label for="iCustomers"><?= $lang['Customers']; ?></label>
</span>
<td>
<span class="checkbox">
<input id="iInvoices" name="invoices" type="checkbox" value="1">
<label for="iInvoices"><?= $lang['Invoices']; ?></label>
</span>
<tr><td>
<span class="checkbox">
<input id="iSuppliers" name="suppliers" type="checkbox" value="1">
<label for="iSuppliers"><?= $lang['Suppliers']; ?></label>
</span>
<td>
<span class="checkbox">
<input id="iStocks" name="stocks" type="checkbox" value="1">
<label for="iStocks"><?= $lang['Stocks']; ?></label>
</span>
<tr><td>
<span class="checkbox">
<input id="iAccounts" name="accounts" type="checkbox" value="1">
<label for="iAccounts"><?= $lang['Accounts']; ?></label>
</span>
<td>
<span class="checkbox">
<input id="iAssets" name="assets" type="checkbox" value="1">
<label for="iAssets"><?= $lang['Assets']; ?></label>
</span>
<tr><td>
<span class="checkbox">
<input id="iCostCenters" name="costcenters" type="checkbox" value="1">
<label for="iCostCenters"><?= $lang['CostCenters']; ?></label>
</span>
<td>
<span class="checkbox">
<input id="iPostings" name="postings" type="checkbox" value="1">
<label for="iPostings"><?= $lang['Postings']; ?></label>
</span>
<tr><td>
<span class="checkbox">
<input id="iCostObjects" name="costobjects" type="checkbox" value="1">
<label for="iCostObjects"><?= $lang['CostObjects']; ?></label>
</span>
<tr><td>
<span class="checkbox">
<input id="iArticles" name="articles" type="checkbox" value="1">
<label for="iArticles"><?= $lang['Articles']; ?></label>
</span>
</table>
<tr><td>
<input type="submit" value="<?= $this->getHtml('Import'); ?>">
</table>
</form>
</div>
</section>
</div>
</div>