end; showTableSorter('maintable', "{ tableClass: 'dataGrid', headers: { 0:{sorter:false}, 1:{sorter:'text'}, 2:{sorter:'text'}, 3:{sorter:'currency'}, 4:{sorter:'numeric'}, 5:{sorter:'metadata'}, 6:{sorter:'metadata'}, 7:{sorter:false} }, widgets: ['zebra','filter','Storage','saveSort'], widgetOptions: { saveSort: true, filter_saveFilters: true, filter_external: '.search', filter_columnFilters: false, filter_childRows : true, filter_ignoreCase: true } }"); echo ""; echo ""; echo ""; echo "Coin"; echo "Wallet"; //echo "Status"; //echo "Amount"; echo "Quantity"; echo "Block"; echo "Status"; echo "Sent"; echo ""; echo ""; echo ""; $earnings = getdbolist('db_earnings', "status!=2 ORDER BY create_time DESC LIMIT 500"); foreach($earnings as $earning) { // if(!$earning) debuglog($earning); $coin = getdbo('db_coins', $earning->coinid); if(!$coin) continue; $user = getdbo('db_accounts', $earning->userid); if(!$user) continue; $block = getdbo('db_blocks', $earning->blockid); if(!$block) continue; $t1 = datetoa2($earning->create_time). ' ago'; $t2 = datetoa2($earning->mature_time); if ($t2) $t2 = '+'.$t2; $coinimg = CHtml::image($coin->image, $coin->symbol, array('width'=>'16')); $coinlink = CHtml::link($coin->name, '/site/coin?id='.$coin->id); echo ""; echo "$coinimg"; echo "$coinlink ($coin->symbol_show)"; echo ''.$user->username.''; echo ''.bitcoinvaluetoa($earning->amount).''; echo "$block->height"; echo "$block->category ($block->confirmations)"; echo ''."$t1 $t2"; echo " [clear] [delete] "; // echo "$earning->tx"; echo ""; // if($block->category == 'generate' && $earning->status == 0) // { // $earning->status = 1; // $earning->mature_time = time()-100*60; // $earning->save(); // } } echo "";