pageTitle = "$renter->address | yiimp"; echo "
"; echo "
Transactions from $renter->address
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $btc = getdbosql('db_coins', "symbol='BTC'"); if(!$btc) return; $remote = new Bitcoin($btc->rpcuser, $btc->rpcpasswd, $btc->rpchost, $btc->rpcport); $ts = $remote->listtransactions(yaamp_renter_account($renter), 10); $res_array = array(); foreach($ts as $val) { $t = $val['time']; if($t<$renter->created) continue; $res_array[$t] = $val; } krsort($res_array); $total = 0; foreach($res_array as $transaction) { if($transaction['category'] != 'receive') continue; $d = datetoa2($transaction['time']); echo ""; echo ""; echo ""; if(isset($transaction['confirmations'])) echo ""; else echo ""; echo ""; echo ""; $total += $transaction['amount']; } echo ""; echo ""; echo "
TimeAmountConfirmationsTx
$d{$transaction['amount']}{$transaction['confirmations']}"; if(isset($transaction['txid'])) echo "{$transaction['txid']}"; echo "
total$total

"; echo "

";