Started work on backend with self-written models

This commit is contained in:
2019-04-15 15:40:10 +02:00
parent 5c93c0b74c
commit 9c407e750f
7 changed files with 399 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Joomla\CMS\Router\Route;
// No direct access.
defined('_JEXEC') or die;
?>
<table width='100%' class='table table-stiped, table-hover'>
<thead>
<tr>
<th></th>
<th width='30%'>Benutzername</th>
<th width='30%'>Ort</th>
<th width='30%'>E-Mail</th>
<th width='5%'>id</th>
</tr>
</thead>
<?php foreach($this->users as $user): ?>
<?php $link = Route::_('index.php?option=com_clubs&view=user&id=' . $user->getId()); ?>
<tr>
<td></td>
<td><a href='<?php echo $link; ?>'><?php echo htmlentities($user->getName()); ?></a></td>
<td><?php echo htmlentities($user->getCity()); ?></td>
<td><?php echo htmlentities($user->getMail()); ?></td>
<td><?php echo htmlentities($user->getId()); ?></td>
</tr>
<?php endforeach; ?>
</table>