tr.ssrow.filtered { display: none; } end; showTableSorter('maintable', '{ tableClass: "dataGrid", headers: { 0:{sorter:"metadata"}, /* reset filter */ 1:{sorter:"metadata"}, 2:{sorter:"text"}, 3:{sorter:"text"}, 4:{sorter:"currency"}, 5:{sorter:"currency"}, 6:{sorter:"currency"}, 7:{sorter:"currency"}, 8:{sorter:"currency"}, 9:{sorter:"currency"}, 10:{sorter:"currency"}, 11:{sorter:"currency"} }, widgets: ["zebra","filter","Storage","saveSort"], widgetOptions: { saveSort: true, filter_saveFilters: true, filter_external: ".search", filter_columnFilters: false, filter_childRows : true, filter_ignoreCase: true }}'); echo << Name Server Diff/Height Profit Owed/BTC Balance/Mint Price BTC USD Win/Market end; $server = getparam('server'); if(!empty($server)) { $coins = getdbolist('db_coins', "(installed or enable) and rpchost=:server order by algo, index_avg desc", array(':server'=>$server)); } else $coins = getdbolist('db_coins', "installed or enable order by algo, index_avg desc"); $mining = getdbosql('db_mining'); foreach($coins as $coin) { echo ''; $lowsymbol = strtolower($coin->symbol); echo ""; $algo_color = getAlgoColors($coin->algo); echo ''; if($coin->enable) { echo "u"; if($coin->auto_ready) echo " a"; else echo " d"; echo '
'; if($coin->visible) echo "v"; else echo ' '; if($coin->auxpow) echo " x"; if($coin->block_height < $coin->target_height) { $percent = round($coin->block_height*100/$coin->target_height, 2); echo "
$percent%"; } } echo "
"; $version = formatWalletVersion($coin); if (!empty($coin->symbol2)) $version .= " ({$coin->symbol2})"; echo "$coin->name ($coin->symbol)
$version"; echo "$coin->rpchost:$coin->rpcport"; if($coin->connections) echo " ($coin->connections)"; echo "
$coin->rpcencoding   ($coin->algo)  "; $difficulty = Itoa2($coin->difficulty, 3); if ($difficulty > 1e20) $difficulty = ' '; if(!empty($coin->errors)) echo "$difficulty
$coin->block_height"; else echo "$difficulty
$coin->block_height"; // $network_ttf = $coin->network_ttf? sectoa($coin->network_ttf): ''; // $actual_ttf = $coin->actual_ttf? sectoa($coin->actual_ttf): ''; // $pool_ttf = $coin->pool_ttf? sectoa($coin->pool_ttf): ''; $btcmhd = yaamp_profitability($coin); $btcmhd = mbitcoinvaluetoa($btcmhd); $h = $coin->block_height-100; $ss1 = dboscalar("select count(*) from blocks where coin_id=$coin->id and height>=$h and category!='orphan'"); $ss2 = dboscalar("select count(*) from blocks where coin_id=$coin->id and height>=$h and category='orphan'"); $percent_pool1 = $ss1? $ss1.'%': ''; $percent_pool2 = $ss2? $ss2.'%': ''; // echo "$network_ttf
$actual_ttf"; // echo "$pool_ttf
"; if($ss1 > 50) echo "$btcmhd
$percent_pool1"; else echo "$btcmhd
$percent_pool1"; echo " $percent_pool2"; $owed = dboscalar("select sum(balance) from accounts where coinid=$coin->id"); $owed_btc = bitcoinvaluetoa($owed*$coin->price); $owed = bitcoinvaluetoa($owed); if($coin->balance+$coin->mint < $owed) echo "$owed
$owed_btc
"; else echo "$owed
$owed_btc"; echo ''.$coin->balance.'
'.$coin->mint.''; $price = bitcoinvaluetoa($coin->price); $price2 = bitcoinvaluetoa($coin->price2); // $marketcount = getdbocount('db_markets', "coinid=$coin->id"); if($coin->dontsell) echo "$price
$price2"; else echo "$price
$price2"; $btc = bitcoinvaluetoa($coin->balance * $coin->price); $mint = bitcoinvaluetoa($coin->mint * $coin->price); echo ''.$btc.'
'.$mint.''; $fiat = round($coin->balance * $coin->price * $mining->usdbtc, 2). ' $'; $mint = round($coin->mint * $coin->price * $mining->usdbtc, 2). ' $'; echo ''.$fiat.'
'.$mint.''; $marketname = ''; $bestmarket = getBestMarket($coin); if($bestmarket) $marketname = $bestmarket->name; echo "$coin->reward
$marketname"; echo ""; } $total = count($coins); echo ""; echo ""; echo "$total Coins"; echo ""; echo ""; echo ""; ////////////////////////////////////////// echo "
";