';
$d = datetoa2($tx['time']);
echo ''.$d.' | ';
echo ''.$category.' | ';
echo ''.$tx['amount'].' | ';
if($block) {
echo ''.$block['height'].' | '.round_difficulty($block['difficulty']).' | ';
} else
echo ' | | ';
if(isset($tx['confirmations']))
echo ''.$tx['confirmations'].' | ';
else
echo ' | ';
echo '';
if(isset($tx['address']))
{
$address = $tx['address'];
$exists = dboscalar("SELECT count(*) AS nb FROM accounts WHERE username=:address", array(':address'=>$address));
if ($exists)
echo CHtml::link($address, '/?address='.$address);
else
echo $address.' ';
}
echo ' | ';
echo '';
if(!empty($block)) {
$txid = arraySafeVal($tx, 'txid');
$label = substr($txid, 0, 7);
echo CHtml::link($label, '/explorer?id='.$coin->id.'&txid='.$txid, array('target'=>'_blank'));
echo ' ('.count($block['tx']).')';
}
echo ' | ';
echo '
';
$rows++;
if ($rows >= $maxrows) break;
}
echo '