mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-29 14:50:44 +00:00
Add filters to wallets and big miners tables
This commit is contained in:
parent
751507a13b
commit
5d3cb76563
4 changed files with 58 additions and 24 deletions
|
@ -14,7 +14,7 @@ echo <<<end
|
||||||
<a href='/site/monsters'>Big Miners</a>
|
<a href='/site/monsters'>Big Miners</a>
|
||||||
<a href='/site/emptymarkets'>EmptyMarket</a>
|
<a href='/site/emptymarkets'>EmptyMarket</a>
|
||||||
|
|
||||||
<div align=right>
|
<div align="right" style="margin-top: -14px;">
|
||||||
Select Server:
|
Select Server:
|
||||||
<select id='server_select'>
|
<select id='server_select'>
|
||||||
<option value=''>all</option>
|
<option value=''>all</option>
|
||||||
|
@ -25,6 +25,7 @@ Select Server:
|
||||||
<option value='yaamp5'>yaamp5</option>
|
<option value='yaamp5'>yaamp5</option>
|
||||||
<option value='yaamp6'>yaamp6</option>
|
<option value='yaamp6'>yaamp6</option>
|
||||||
</select>
|
</select>
|
||||||
|
<input class="search" type="search" data-column="all" style="width: 140px;" placeholder="Search..." />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id='main_results'>
|
<div id='main_results'>
|
||||||
|
@ -39,7 +40,7 @@ Select Server:
|
||||||
<!-- br><a href='/site/updateprice'><img width=16 src=''><b>UPDATE PRICE</b></a -->
|
<!-- br><a href='/site/updateprice'><img width=16 src=''><b>UPDATE PRICE</b></a -->
|
||||||
<!-- br><a href='/site/dopayments'><img width=16 src=''><b>DO PAYMENTS</b></a -->
|
<!-- br><a href='/site/dopayments'><img width=16 src=''><b>DO PAYMENTS</b></a -->
|
||||||
|
|
||||||
<br><br><br><br><br><br><br><br><br><br>
|
<br><br><br>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
//echo '<br><table id="maintable" class="dataGrid">';
|
echo <<<end
|
||||||
|
<style type="text/css">
|
||||||
|
tr.ssrow.filtered { display: none; }
|
||||||
|
</style>
|
||||||
|
end;
|
||||||
|
|
||||||
showTableSorter('maintable', '{
|
showTableSorter('maintable', '{
|
||||||
headers: {
|
headers: {
|
||||||
0:{sorter:false},
|
0:{sorter:false},
|
||||||
|
@ -16,6 +21,13 @@ headers: {
|
||||||
8:{sorter:"currency"},
|
8:{sorter:"currency"},
|
||||||
9:{sorter:"currency"},
|
9:{sorter:"currency"},
|
||||||
10:{sorter:"currency"}
|
10:{sorter:"currency"}
|
||||||
|
},
|
||||||
|
widgets: ["zebra","filter"],
|
||||||
|
widgetOptions: {
|
||||||
|
filter_external: ".search",
|
||||||
|
filter_columnFilters: false,
|
||||||
|
filter_childRows : true,
|
||||||
|
filter_ignoreCase: true
|
||||||
}}');
|
}}');
|
||||||
|
|
||||||
echo <<<end
|
echo <<<end
|
||||||
|
|
|
@ -18,7 +18,7 @@ JavascriptFile("/extensions/jqplot/plugins/jqplot.highlighter.js");
|
||||||
<a href='/site/version'>Version</a>
|
<a href='/site/version'>Version</a>
|
||||||
<a href='/site/earning'>Earnings</a>
|
<a href='/site/earning'>Earnings</a>
|
||||||
<a href='/site/payments'>Payments</a>
|
<a href='/site/payments'>Payments</a>
|
||||||
<a href='/site/monsters'>Monitor</a>
|
<a href='/site/monsters'>Big Miners</a>
|
||||||
<a href='/site/connections'>Conns</a>
|
<a href='/site/connections'>Conns</a>
|
||||||
<a href='/site/emptymarkets'>EmptyMarket</a>
|
<a href='/site/emptymarkets'>EmptyMarket</a>
|
||||||
<a href='/coin'>New</a>
|
<a href='/coin'>New</a>
|
||||||
|
|
|
@ -12,25 +12,46 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
echo "<a href='/site/monsters'>refresh</a><br>";
|
echo <<<end
|
||||||
|
<div align="right" style="margin-top: -14px;">
|
||||||
|
<input class="search" type="search" data-column="all" style="width: 140px;" placeholder="Search..." />
|
||||||
|
</div>
|
||||||
|
<style type="text/css">
|
||||||
|
tr.ssrow.filtered { display: none; }
|
||||||
|
</style>
|
||||||
|
end;
|
||||||
|
|
||||||
echo "<br><table class='dataGrid'>";
|
showTableSorter('maintable', "{
|
||||||
echo "<thead>";
|
headers: { 0: { sorter: false} },
|
||||||
echo "<tr>";
|
widgets: ['zebra','filter'],
|
||||||
echo "<th></th>";
|
widgetOptions: {
|
||||||
echo "<th></th>";
|
filter_external: '.search',
|
||||||
echo "<th>Wallet</th>";
|
filter_columnFilters: false,
|
||||||
echo "<th></th>";
|
filter_childRows : true,
|
||||||
echo "<th>Last</th>";
|
filter_ignoreCase: true
|
||||||
echo "<th>Blocks</th>";
|
}
|
||||||
echo "<th>Balance</th>";
|
}");
|
||||||
echo "<th>Total Paid</th>";
|
|
||||||
echo "<th>Miners</th>";
|
echo <<<end
|
||||||
echo "<th>Shares</th>";
|
<thead>
|
||||||
echo "<th></th>";
|
<tr>
|
||||||
echo "<th></th>";
|
<th></th>
|
||||||
echo "</tr>";
|
<th>Coin</th>
|
||||||
echo "</thead><tbody>";
|
<th></th>
|
||||||
|
<th>Wallet</th>
|
||||||
|
<th></th>
|
||||||
|
<th>Last</th>
|
||||||
|
<th>Blocks</th>
|
||||||
|
<th>Balance</th>
|
||||||
|
<th>Total Paid</th>
|
||||||
|
<th>Miners</th>
|
||||||
|
<th>Shares</th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
end;
|
||||||
|
|
||||||
function showUser($userid, $what)
|
function showUser($userid, $what)
|
||||||
{
|
{
|
||||||
|
@ -53,9 +74,9 @@ function showUser($userid, $what)
|
||||||
echo "<tr class='ssrow'>";
|
echo "<tr class='ssrow'>";
|
||||||
|
|
||||||
if($coin)
|
if($coin)
|
||||||
echo "<td><img src='$coin->image' width=16> $coin->symbol</td>";
|
echo '<td><img src="'.$coin->image.'" width="16"></td><td>'.$coin->symbol.'</td>';
|
||||||
else
|
else
|
||||||
echo "<td></td>";
|
echo '<td colspan="2"></td>';
|
||||||
|
|
||||||
echo "<td>$user->id</td>";
|
echo "<td>$user->id</td>";
|
||||||
echo "<td><a href='/site?address=$user->username'>$user->username</a></td>";
|
echo "<td><a href='/site?address=$user->username'>$user->username</a></td>";
|
||||||
|
|
Loading…
Add table
Reference in a new issue