[UPDATE] added datatable to user info
This commit is contained in:
parent
f7e6e6a4ce
commit
452d468843
@ -8,7 +8,7 @@ if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Some defaults
|
// Some defaults
|
||||||
$iLimit = 30;
|
$iLimit = 100;
|
||||||
$smarty->assign('LIMIT', $iLimit);
|
$smarty->assign('LIMIT', $iLimit);
|
||||||
empty($_REQUEST['start']) ? $start = 0 : $start = $_REQUEST['start'];
|
empty($_REQUEST['start']) ? $start = 0 : $start = $_REQUEST['start'];
|
||||||
$smarty->assign('ADMIN', array('' => '', '0' => 'No', '1' => 'Yes'));
|
$smarty->assign('ADMIN', array('' => '', '0' => 'No', '1' => 'Yes'));
|
||||||
|
|||||||
@ -81,9 +81,9 @@
|
|||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<i class="fa fa-info fa-fw"></i> User Information
|
<i class="fa fa-info fa-fw"></i> User Information
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body no-padding">
|
<div class="panel-body">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-bordered table-hover">
|
<table class="table table-striped table-bordered table-hover {if $USERS}datatable{/if}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
|
|||||||
@ -7,23 +7,23 @@
|
|||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-bordered table-hover {if $ROUNDTRANSACTIONS}datatable{/if}">
|
<table class="table table-striped table-bordered table-hover {if $ROUNDTRANSACTIONS}datatable{/if}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>User Name</th>
|
<th>User Name</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>Round Shares</th>
|
<th>Round Shares</th>
|
||||||
<th>Round %</th>
|
<th>Round %</th>
|
||||||
<th>Amount</th>
|
<th>Amount</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{section txs $ROUNDTRANSACTIONS}
|
{section txs $ROUNDTRANSACTIONS}
|
||||||
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username} style="background-color:#99EB99;"{else}{/if}>
|
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username} style="background-color:#99EB99;"{else}{/if}>
|
||||||
<td>{if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}</td>
|
<td>{if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}</td>
|
||||||
<td>{$ROUNDTRANSACTIONS[txs].type|default:""}</td>
|
<td>{$ROUNDTRANSACTIONS[txs].type|default:""}</td>
|
||||||
<td>{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
|
<td>{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
|
||||||
<td>{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|default:"0"|number_format:"2"}</td>
|
<td>{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|default:"0"|number_format:"2"}</td>
|
||||||
<td>{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
|
<td>{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/section}
|
{/section}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user