Merge pull request #131 from TheSerapher/issue-130
Fixing admin panel user display
This commit is contained in:
commit
c80fae30d2
@ -189,13 +189,13 @@ class Statistics {
|
||||
a.username AS username,
|
||||
a.donate_percent AS donate_percent,
|
||||
a.email AS email,
|
||||
COUNT(s.id) AS shares,
|
||||
ROUND(COUNT(s.id) * POW(2," . $this->config['difficulty'] . ") / 600 / 1000,2) AS hashrate
|
||||
FROM " . $this->user->getTableName() . " AS a
|
||||
LEFT JOIN " . $this->share->getTableName() . " AS s
|
||||
ON a.username = SUBSTRING_INDEX( s.username, '.', 1 )
|
||||
WHERE
|
||||
a.username LIKE ?
|
||||
AND s.time > DATE_SUB(now(), INTERVAL 10 MINUTE)
|
||||
GROUP BY username
|
||||
ORDER BY username
|
||||
");
|
||||
|
||||
@ -9,21 +9,7 @@
|
||||
|
||||
{include file="global/block_header.tpl" BLOCK_HEADER="User Information"}
|
||||
<center>
|
||||
<div id="pager">
|
||||
<form>
|
||||
<img src="{$PATH}/images/first.png" class="first"/>
|
||||
<img src="{$PATH}/images/prev.png" class="prev"/>
|
||||
<input type="text" class="pagedisplay"/>
|
||||
<img src="{$PATH}/images/next.png" class="next"/>
|
||||
<img src="{$PATH}/images/last.png" class="last"/>
|
||||
<select class="pagesize">
|
||||
<option selected="selected" value="10">10</option>
|
||||
<option value="20">20</option>
|
||||
<option value="30">30</option>
|
||||
<option value="40">40</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
{include file="global/pagination.tpl"}
|
||||
</center>
|
||||
<table width="100%" class="pagesort">
|
||||
<thead>
|
||||
@ -32,7 +18,6 @@
|
||||
<th>Username</th>
|
||||
<th>E-Mail</th>
|
||||
<th class="right">Hashrate </th>
|
||||
<th class="right">Shares </th>
|
||||
<th class="right">Est. Donation </th>
|
||||
<th class="right">Est. Payout </th>
|
||||
<th class="right">Balance </th>
|
||||
@ -45,8 +30,7 @@
|
||||
<td class="center">{$USERS[user].id}</td>
|
||||
<td>{$USERS[user].username}</td>
|
||||
<td>{$USERS[user].email}</td>
|
||||
<td class="right">{$USERS[user].hashrate / 1024}</td>
|
||||
<td class="right">{$USERS[user].shares}</td>
|
||||
<td class="right">{$USERS[user].hashrate}</td>
|
||||
<td class="right">{$USERS[user].payout.est_donation|number_format:"8"}</td>
|
||||
<td class="right">{$USERS[user].payout.est_payout|number_format:"8"}</td>
|
||||
<td class="right">{$USERS[user].balance|number_format:"8"}</td>
|
||||
@ -66,7 +50,6 @@
|
||||
<th>Username</th>
|
||||
<th>E-Mail</th>
|
||||
<th class="right">Hashrate</th>
|
||||
<th class="center">Shares</th>
|
||||
<th class="right">Est. Donation</th>
|
||||
<th class="right">Est. Payout</th>
|
||||
<th class="right">Balance</th>
|
||||
|
||||
15
public/templates/mmcFE/global/pagination.tpl
Normal file
15
public/templates/mmcFE/global/pagination.tpl
Normal file
@ -0,0 +1,15 @@
|
||||
<div id="pager">
|
||||
<form>
|
||||
<img src="{$PATH}/images/first.png" class="first"/>
|
||||
<img src="{$PATH}/images/prev.png" class="prev"/>
|
||||
<input type="text" class="pagedisplay"/>
|
||||
<img src="{$PATH}/images/next.png" class="next"/>
|
||||
<img src="{$PATH}/images/last.png" class="last"/>
|
||||
<select class="pagesize">
|
||||
<option selected="selected" value="10">10</option>
|
||||
<option value="20">20</option>
|
||||
<option value="30">30</option>
|
||||
<option value="40">40</option>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user