More flexbox implementations

This commit is contained in:
Dennis Eichhorn 2017-01-29 12:35:25 +01:00
parent afc94bce89
commit d5125faa1a
4 changed files with 220 additions and 200 deletions

View File

@ -25,27 +25,31 @@ $footerView->setPage(1);
$accounts = $this->getData('accounts'); $accounts = $this->getData('accounts');
?> ?>
<div class="box"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Profiles'); ?></caption> <div class="box wf-100">
<thead> <table class="table">
<tr> <caption><?= $this->getText('Profiles'); ?></caption>
<td><?= $this->getText('ID', 0, 0); ?> <thead>
<td class="wf-100"><?= $this->getText('Name'); ?> <tr>
<td><?= $this->getText('Activity'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<tfoot> <td class="wf-100"><?= $this->getText('Name'); ?>
<tr> <td><?= $this->getText('Activity'); ?>
<td colspan="3"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr>
<?php $count = 0; foreach($accounts as $key => $account) : $count++; <td colspan="3"><?= $footerView->render(); ?>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?id=' . $account->getId()); ?> <tbody>
<tr> <?php $count = 0; foreach($accounts as $key => $account) : $count++;
<td><a href="<?= $url; ?>"><?= $account->getId(); ?></a> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?id=' . $account->getId()); ?>
<td><a href="<?= $url; ?>"><?= $account->getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $account->getLastActive()->format('Y-m-d'); ?></a> <td><a href="<?= $url; ?>"><?= $account->getId(); ?></a>
<?php endforeach; ?> <td><a href="<?= $url; ?>"><?= $account->getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?></a>
<?php if($count === 0) : ?> <td><a href="<?= $url; ?>"><?= $account->getLastActive()->format('Y-m-d'); ?></a>
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php endforeach; ?>
<?php endif; ?> <?php if($count === 0) : ?>
</table> <tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div> </div>

View File

@ -28,83 +28,89 @@ $footerView->setResults(1);
echo $this->getData('nav')->render(); echo $this->getData('nav')->render();
?> ?>
<section itemscope itemtype="http://schema.org/Person" class="box w-33"> <div class="row">
<header><h1><?= $this->getText('Profile'); ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section itemscope itemtype="http://schema.org/Person" class="box wf-100">
<!-- @formatter:off --> <header><h1><?= $this->getText('Profile'); ?></h1></header>
<table class="list"> <div class="inner">
<tr> <!-- @formatter:off -->
<th><?= $this->getText('Name'); ?> <table class="list">
<td><span itemprop="familyName"><?= $account->getName3(); ?></span>, <span itemprop="givenName"><?= $account->getName1(); ?></span> <tr>
<tr> <th><?= $this->getText('Name'); ?>
<th><?= $this->getText('Occupation'); ?> <td><span itemprop="familyName"><?= $account->getName3(); ?></span>, <span itemprop="givenName"><?= $account->getName1(); ?></span>
<td itemprop="jobTitle">Sailor <tr>
<tr> <th><?= $this->getText('Occupation'); ?>
<th><?= $this->getText('Birthday'); ?> <td itemprop="jobTitle">Sailor
<td itemprop="birthDate">06.09.1934 <tr>
<tr> <th><?= $this->getText('Birthday'); ?>
<th><?= $this->getText('Ranks'); ?> <td itemprop="birthDate">06.09.1934
<td itemprop="memberOf">Gosling <tr>
<tr> <th><?= $this->getText('Ranks'); ?>
<th><?= $this->getText('Email'); ?> <td itemprop="memberOf">Gosling
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $account->getEmail(); ?></a> <tr>
<tr> <th><?= $this->getText('Email'); ?>
<th>Address <td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $account->getEmail(); ?></a>
<td> <tr>
<tr> <th>Address
<th class="vT">Private <td>
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA <tr>
<tr> <th class="vT">Private
<th class="vT">Work <td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA <tr>
<tr> <th class="vT">Work
<th><?= $this->getText('Phone'); ?> <td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<td> <tr>
<tr> <th><?= $this->getText('Phone'); ?>
<th>Private <td>
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Private
<th>Mobile <td itemprop="telephone">+01 12345-4567
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Mobile
<th>Work <td itemprop="telephone">+01 12345-4567
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Work
<th><?= $this->getText('Registered'); ?> <td itemprop="telephone">+01 12345-4567
<td><?= $account->getCreatedAt()->format('Y-m-d'); ?> <tr>
<tr> <th><?= $this->getText('Registered'); ?>
<th><?= $this->getText('LastLogin'); ?> <td><?= $account->getCreatedAt()->format('Y-m-d'); ?>
<td><?= $account->getLastActive()->format('Y-m-d'); ?> <tr>
<tr> <th><?= $this->getText('LastLogin'); ?>
<th><?= $this->getText('Status'); ?> <td><?= $account->getLastActive()->format('Y-m-d'); ?>
<td><span class="tag green"><?= $account->getStatus(); ?></span> <tr>
</table> <th><?= $this->getText('Status'); ?>
<!-- @formatter:on --> <td><span class="tag green"><?= $account->getStatus(); ?></span>
</table>
<!-- @formatter:on -->
</div>
</section>
</div> </div>
</section>
<div class="box w-100"> <div class="col-xs-12 col-md-6">
<table class="table"> <div class="box wf-100">
<caption><?= $this->getText('Media', 'Media'); ?></caption> <table class="table">
<thead> <caption><?= $this->getText('Media', 'Media'); ?></caption>
<tr> <thead>
<td><?= $this->getText('ID', 0, 0); ?> <tr>
<td class="wf-100"><?= $this->getText('Name', 'Media'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Type', 'Media'); ?> <td class="wf-100"><?= $this->getText('Name', 'Media'); ?>
<td><?= $this->getText('Created', 'Media'); ?> <td><?= $this->getText('Type', 'Media'); ?>
<tfoot> <td><?= $this->getText('Created', 'Media'); ?>
<tr><td colspan="4"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr><td colspan="4"><?= $footerView->render(); ?>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <tbody>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> <?php $c = 0; foreach ([] as $key => $value) : $c++;
<tr> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a>
<?php endforeach; ?> <td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a>
<?php if($c === 0) : ?> <?php endforeach; ?>
<tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php if($c === 0) : ?>
<?php endif; ?> <tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?>
</table> <?php endif; ?>
</table>
</div>
</div>
</div> </div>

View File

@ -25,27 +25,31 @@ $footerView->setPage(1);
$accounts = $this->getData('accounts'); $accounts = $this->getData('accounts');
?> ?>
<div class="box"> <div class="row">
<table class="table"> <div class="col-xs-12">
<caption><?= $this->getText('Profiles'); ?></caption> <div class="box wf-100">
<thead> <table class="table">
<tr> <caption><?= $this->getText('Profiles'); ?></caption>
<td><?= $this->getText('ID', 0, 0); ?> <thead>
<td class="wf-100"><?= $this->getText('Name'); ?> <tr>
<td><?= $this->getText('Activity'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<tfoot> <td class="wf-100"><?= $this->getText('Name'); ?>
<tr> <td><?= $this->getText('Activity'); ?>
<td colspan="3"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr>
<?php $count = 0; foreach($accounts as $key => $account) : $count++; <td colspan="3"><?= $footerView->render(); ?>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?id=' . $account->getId()); ?> <tbody>
<tr> <?php $count = 0; foreach($accounts as $key => $account) : $count++;
<td><a href="<?= $url; ?>"><?= $account->getId(); ?></a> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?id=' . $account->getId()); ?>
<td><a href="<?= $url; ?>"><?= $account->getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $account->getLastActive()->format('Y-m-d'); ?></a> <td><a href="<?= $url; ?>"><?= $account->getId(); ?></a>
<?php endforeach; ?> <td><a href="<?= $url; ?>"><?= $account->getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?></a>
<?php if($count === 0) : ?> <td><a href="<?= $url; ?>"><?= $account->getLastActive()->format('Y-m-d'); ?></a>
<tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php endforeach; ?>
<?php endif; ?> <?php if($count === 0) : ?>
</table> <tr><td colspan="3" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div> </div>

View File

@ -28,83 +28,89 @@ $footerView->setResults(1);
echo $this->getData('nav')->render(); echo $this->getData('nav')->render();
?> ?>
<section itemscope itemtype="http://schema.org/Person" class="box w-33"> <div class="row">
<header><h1><?= $this->getText('Profile'); ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section itemscope itemtype="http://schema.org/Person" class="box wf-100">
<!-- @formatter:off --> <header><h1><?= $this->getText('Profile'); ?></h1></header>
<table class="list"> <div class="inner">
<tr> <!-- @formatter:off -->
<th><?= $this->getText('Name'); ?> <table class="list">
<td><span itemprop="familyName"><?= $account->getName3(); ?></span>, <span itemprop="givenName"><?= $account->getName1(); ?></span> <tr>
<tr> <th><?= $this->getText('Name'); ?>
<th><?= $this->getText('Occupation'); ?> <td><span itemprop="familyName"><?= $account->getName3(); ?></span>, <span itemprop="givenName"><?= $account->getName1(); ?></span>
<td itemprop="jobTitle">Sailor <tr>
<tr> <th><?= $this->getText('Occupation'); ?>
<th><?= $this->getText('Birthday'); ?> <td itemprop="jobTitle">Sailor
<td itemprop="birthDate">06.09.1934 <tr>
<tr> <th><?= $this->getText('Birthday'); ?>
<th><?= $this->getText('Ranks'); ?> <td itemprop="birthDate">06.09.1934
<td itemprop="memberOf">Gosling <tr>
<tr> <th><?= $this->getText('Ranks'); ?>
<th><?= $this->getText('Email'); ?> <td itemprop="memberOf">Gosling
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $account->getEmail(); ?></a> <tr>
<tr> <th><?= $this->getText('Email'); ?>
<th>Address <td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $account->getEmail(); ?></a>
<td> <tr>
<tr> <th>Address
<th class="vT">Private <td>
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA <tr>
<tr> <th class="vT">Private
<th class="vT">Work <td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA <tr>
<tr> <th class="vT">Work
<th><?= $this->getText('Phone'); ?> <td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<td> <tr>
<tr> <th><?= $this->getText('Phone'); ?>
<th>Private <td>
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Private
<th>Mobile <td itemprop="telephone">+01 12345-4567
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Mobile
<th>Work <td itemprop="telephone">+01 12345-4567
<td itemprop="telephone">+01 12345-4567 <tr>
<tr> <th>Work
<th><?= $this->getText('Registered'); ?> <td itemprop="telephone">+01 12345-4567
<td><?= $account->getCreatedAt()->format('Y-m-d'); ?> <tr>
<tr> <th><?= $this->getText('Registered'); ?>
<th><?= $this->getText('LastLogin'); ?> <td><?= $account->getCreatedAt()->format('Y-m-d'); ?>
<td><?= $account->getLastActive()->format('Y-m-d'); ?> <tr>
<tr> <th><?= $this->getText('LastLogin'); ?>
<th><?= $this->getText('Status'); ?> <td><?= $account->getLastActive()->format('Y-m-d'); ?>
<td><span class="tag green"><?= $account->getStatus(); ?></span> <tr>
</table> <th><?= $this->getText('Status'); ?>
<!-- @formatter:on --> <td><span class="tag green"><?= $account->getStatus(); ?></span>
</table>
<!-- @formatter:on -->
</div>
</section>
</div> </div>
</section>
<div class="box w-100"> <div class="col-xs-12 col-md-6">
<table class="table"> <div class="box wf-100">
<caption><?= $this->getText('Media', 'Media'); ?></caption> <table class="table">
<thead> <caption><?= $this->getText('Media', 'Media'); ?></caption>
<tr> <thead>
<td><?= $this->getText('ID', 0, 0); ?> <tr>
<td class="wf-100"><?= $this->getText('Name', 'Media'); ?> <td><?= $this->getText('ID', 0, 0); ?>
<td><?= $this->getText('Type', 'Media'); ?> <td class="wf-100"><?= $this->getText('Name', 'Media'); ?>
<td><?= $this->getText('Created', 'Media'); ?> <td><?= $this->getText('Type', 'Media'); ?>
<tfoot> <td><?= $this->getText('Created', 'Media'); ?>
<tr><td colspan="4"><?= $footerView->render(); ?> <tfoot>
<tbody> <tr><td colspan="4"><?= $footerView->render(); ?>
<?php $c = 0; foreach ([] as $key => $value) : $c++; <tbody>
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?> <?php $c = 0; foreach ([] as $key => $value) : $c++;
<tr> $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a> <tr>
<td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a>
<td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a> <td><a href="<?= $url; ?>"><?= $value->getNewestHistory()->getPosition(); ?></a>
<?php endforeach; ?> <td><a href="<?= $url; ?>"><?= $value->getNewestStatus()->getStatus(); ?></a>
<?php if($c === 0) : ?> <?php endforeach; ?>
<tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?> <?php if($c === 0) : ?>
<?php endif; ?> <tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?>
</table> <?php endif; ?>
</table>
</div>
</div>
</div> </div>