Case fix!

This commit is contained in:
Dennis Eichhorn 2016-03-26 18:59:38 +01:00
parent 87a96032e6
commit 2679416dd7
6 changed files with 225 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
$MODLANG['Navigation'] = [
'List' => 'List',
'Profile' => 'Profile',
'Profiles' => 'Profiles',
];

View File

@ -0,0 +1,18 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
$MODLANG[1] = [
'i:ModuleInstalled' => 'Installation of the module {$1} was successful.',
];

View File

@ -0,0 +1,34 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
$MODLANG['Profile'] = [
'Activity' => 'Activity',
'Birthday' => 'Birthday',
'ContactInformation' => 'Contact Information',
'Community' => 'Community',
'Email' => 'Email',
'LastLogin' => 'Last Login',
'Name' => 'Name',
'Occupation' => 'Occupation',
'OFF' => 'OFF',
'ON' => 'ON',
'Phone' => 'Phone',
'Profile' => 'Profile',
'Profiles' => 'Profiles',
'Ranks' => 'Ranks',
'Registered' => 'Registered',
'Skype' => 'Skype',
'Status' => 'Status',
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -0,0 +1,51 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
/**
* @var \phpOMS\Views\View $this
*/
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
$accounts = $this->getData('accounts');
?>
<section class="box">
<table class="table">
<caption><?= $this->l11n->lang['Profile']['Profiles']; ?></caption>
<thead>
<tr>
<td><?= $this->l11n->lang[0]['ID']; ?>
<td class="wf-100"><?= $this->l11n->lang['Profile']['Name']; ?>
<td><?= $this->l11n->lang['Profile']['Activity']; ?>
<tfoot>
<tr>
<td colspan="3"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach($accounts as $key => $account) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/profile/single?id=' . $account->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $account->getId(); ?></a>
<td><a href="<?= $url; ?>"><?= $account->getName3() . ' ' . $account->getName2() . ' ' . $account->getName1(); ?></a>
<td><a href="<?= $url; ?>"><?= $account->getLastActive()->format('Y-m-d'); ?></a>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="3" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
<?php endif; ?>
</table>
</section>

View File

@ -0,0 +1,102 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
/**
* @var \phpOMS\Views\View $this
* @var \Modules\Tasks\Models\Task[] $tasks
*/
$account = $this->getData('account');
echo $this->getData('nav')->render();
?>
<section itemscope itemtype="http://schema.org/Person" class="box w-33">
<h1><?= $this->l11n->lang['Profile']['Profile']; ?></h1>
<div class="inner">
<!-- @formatter:off -->
<table class="list">
<tr>
<th><?= $this->l11n->lang['Profile']['Name']; ?>
<td><span itemprop="familyName"><?= $account->getName3(); ?></span>, <span itemprop="givenName"><?= $account->getName1(); ?></span>
<tr>
<th><?= $this->l11n->lang['Profile']['Occupation']; ?>
<td itemprop="jobTitle">Sailor
<tr>
<th><?= $this->l11n->lang['Profile']['Birthday']; ?>
<td itemprop="birthDate">06.09.1934
<tr>
<th><?= $this->l11n->lang['Profile']['Ranks']; ?>
<td itemprop="memberOf">Gosling
<tr>
<th><?= $this->l11n->lang['Profile']['Email']; ?>
<td itemprop="email"><a href="mailto:>donald.duck@email.com<"><?= $account->getEmail(); ?></a>
<tr>
<th>Address
<td>
<tr>
<th class="vT">Private
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<tr>
<th class="vT">Work
<td itemprop="address">SMALLSYS INC<br>795 E DRAGRAM<br>TUCSON AZ 85705<br>USA
<tr>
<th><?= $this->l11n->lang['Profile']['Phone']; ?>
<td>
<tr>
<th>Private
<td itemprop="telephone">+01 12345-4567
<tr>
<th>Mobile
<td itemprop="telephone">+01 12345-4567
<tr>
<th>Work
<td itemprop="telephone">+01 12345-4567
<tr>
<th><?= $this->l11n->lang['Profile']['Registered']; ?>
<td><?= $account->getCreatedAt()->format('Y-m-d'); ?>
<tr>
<th><?= $this->l11n->lang['Profile']['LastLogin']; ?>
<td><?= $account->getLastActive()->format('Y-m-d'); ?>
<tr>
<th><?= $this->l11n->lang['Profile']['Status']; ?>
<td><span class="tag green"><?= $account->getStatus(); ?></span>
</table>
<!-- @formatter:on -->
</div>
</section>
<section class="box w-100">
<table class="table">
<caption><?= $this->l11n->lang['Profile']['Media']; ?></caption>
<thead>
<tr>
<td><?= $this->l11n->lang[0]['ID']; ?>
<td class="wf-100"><?= $this->l11n->lang['Profile']['Title']; ?>
<td><?= $this->l11n->lang['Profile']['Type']; ?>
<td><?= $this->l11n->lang['Profile']['Created']; ?>
<tfoot>
<tr><td colspan="4"><?= $footerView->render(); ?>
<tbody>
<?php $c = 0; foreach ($employees as $key => $value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
<tr>
<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>
<?php endforeach; ?>
<?php if($c === 0) : ?>
<tr><td colspan="4" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
<?php endif; ?>
</table>
</section>