php-mpos/public/templates/mpos/admin/dashboard/registrations.tpl
2014-02-24 11:24:13 +01:00

74 lines
2.9 KiB
Smarty

<article class="module width_full">
<header><h3>Registrations</h3></header>
<article class="module width_quarter">
<header><h3>by time</h3></header>
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
<th align="center">24 hours</th>
<th align="center">7 days</th>
<th align="center">1 month</th>
<th align="center">6 months</th>
<th align="center">1 year</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">{$USER_REGISTRATIONS.24hours}</td>
<td align="center">{$USER_REGISTRATIONS.7days}</td>
<td align="center">{$USER_REGISTRATIONS.1month}</td>
<td align="center">{$USER_REGISTRATIONS.6month}</td>
<td align="center">{$USER_REGISTRATIONS.1year}</td>
</tr>
</tbody>
</table>
</article>
<article class="module width_3_quarter" style="min-height: 150px">
<header><h3>Last registered Users</h3></header>
<div>
<table cellspacing="0" class="tablesorter">
<tbody>
<tr>
<td align="left">
{if $smarty.request.registeredstart|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&registeredstart={$smarty.request.registeredstart|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i> Previous 10</a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&registeredstart={$smarty.request.registeredstart|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}">Next 10 <i class="icon-right-open"></i></a>
</td>
</tbody>
</table>
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
<th align="center">ID</th>
<th>Username</th>
<th align="left">eMail</th>
<th align="center">Reg. Date</th>
<th align="center">Invite</th>
<th align="center">Invited from</th>
</tr>
</thead>
<tbody>
{section user $LASTREGISTEREDUSERS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$LASTREGISTEREDUSERS[user].id|escape}</td>
<td>{$LASTREGISTEREDUSERS[user].mposuser}</td>
<td align="left">{$LASTREGISTEREDUSERS[user].email}</td>
<td align="center">{$LASTREGISTEREDUSERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td align="center">{if !$LASTREGISTEREDUSERS[user].inviter}<i class="icon-cancel">{else}<i class="icon-ok">{/if}</td>
<td align="center"><a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=user&do=query&filter[account]={$LASTREGISTEREDUSERS[user].inviter}">{$LASTREGISTEREDUSERS[user].inviter}</a></td>
</tr>
{/section}
</tbody>
</table>
</article>
</article>