More flexbox implementations

This commit is contained in:
Dennis Eichhorn 2017-01-29 19:59:42 +01:00
parent 694b166ff3
commit e8a90b92b4
3 changed files with 78 additions and 66 deletions

View File

@ -21,25 +21,29 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Items') ?></caption> <div class="box wf-100">
<thead> <table class="table">
<tr> <caption><?= $this->getText('Items') ?></caption>
<td><?= $this->getText('ID', 0, 0); ?> <thead>
<td class="wf-100"><?= $this->getText('Name'); ?> <tr>
<td><?= $this->getText('Price'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Available'); ?> <td class="wf-100"><?= $this->getText('Name'); ?>
<td><?= $this->getText('Reserved'); ?> <td><?= $this->getText('Price'); ?>
<td><?= $this->getText('Ordered'); ?> <td><?= $this->getText('Available'); ?>
<tfoot> <td><?= $this->getText('Reserved'); ?>
<tr> <td><?= $this->getText('Ordered'); ?>
<td colspan="6"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <td colspan="6"><?= $footerView->render(); ?>
<?php endforeach; ?> <tbody>
<?php if($count === 0) : ?> <?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php endforeach; ?>
<?php endif; ?> <?php if($count === 0) : ?>
</table> <tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div> </div>

View File

@ -21,25 +21,29 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Items') ?></caption> <div class="box wf-100">
<thead> <table class="table">
<tr> <caption><?= $this->getText('Items') ?></caption>
<td><?= $this->getText('ID', 0, 0); ?> <thead>
<td class="wf-100"><?= $this->getText('Name'); ?> <tr>
<td><?= $this->getText('Price'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Available'); ?> <td class="wf-100"><?= $this->getText('Name'); ?>
<td><?= $this->getText('Reserved'); ?> <td><?= $this->getText('Price'); ?>
<td><?= $this->getText('Ordered'); ?> <td><?= $this->getText('Available'); ?>
<tfoot> <td><?= $this->getText('Reserved'); ?>
<tr> <td><?= $this->getText('Ordered'); ?>
<td colspan="6"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <td colspan="6"><?= $footerView->render(); ?>
<?php endforeach; ?> <tbody>
<?php if($count === 0) : ?> <?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php endforeach; ?>
<?php endif; ?> <?php if($count === 0) : ?>
</table> <tr><td colspan="6" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div> </div>

View File

@ -26,28 +26,32 @@ $footerView->setResults(1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Stock'); ?></caption> <div class="box wf-100">
<thead> <table class="table">
<tr> <caption><?= $this->getText('Stock'); ?></caption>
<td><?= $this->getText('ID', 0, 0); ?> <thead>
<td class="wf-100"><?= $this->getText('Article'); ?> <tr>
<td><?= $this->getText('Quantity'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<tfoot> <td class="wf-100"><?= $this->getText('Article'); ?>
<tr><td colspan="8"><?= $footerView->render(); ?> <td><?= $this->getText('Quantity'); ?>
<tbody> <tfoot>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <tr><td colspan="8"><?= $footerView->render(); ?>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?id=' . $value->getId()); ?> <tbody>
<tr> <?php $c = 0; foreach ([] as $key => $value) : $c++;
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/business/department/profile?id=' . $value->getId()); ?>
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
<?php endforeach; ?> <td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
<?php if($c === 0) : ?> <td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a>
<tr> <?php endforeach; ?>
<td colspan="8" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php if($c === 0) : ?>
<?php endif; ?> <tr>
</table> <td colspan="8" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div> </div>