Payments';
$pg .= 'The payment transactions on blockchain are here:';
$pg .= " BTCa,";
$pg .= " BTCa and";
$pg .= " BTCb
";
$pg .= "The payments below don't yet show when they have been sent.
";
$ans = getPayments($user);
$pg .= "
\n";
$pg .= "";
$pg .= "Block | ";
$pg .= "Address | ";
$pg .= "Status | ";
$pg .= "BTC | ";
$pg .= " | ";
$pg .= "
\n";
if ($ans['STATUS'] == 'ok')
{
$all = array();
$count = $ans['rows'];
for ($i = 0; $i < $count; $i++)
{
$all[] = array('payoutid' => $ans['payoutid:'.$i],
'height' => $ans['height:'.$i],
'payaddress' => $ans['payaddress:'.$i],
'amount' => $ans['amount:'.$i],
'paydate' => $ans['paydate:'.$i]);
}
usort($all, 'sortheight');
$hasdust = false;
for ($i = 0; $i < $count; $i++)
{
if (($i % 2) == 0)
$row = 'even';
else
$row = 'odd';
$pg .= "";
$pg .= ''.$all[$i]['height'].' | ';
$pg .= ''.$all[$i]['payaddress'].' | ';
$pg .= ' | ';
$amount = $all[$i]['amount'];
if ($amount < '10000')
{
$dust = '*';
$hasdust = true;
}
else
$dust = ' ';
$pg .= ''.btcfmt($amount).' | ';
$pg .= "$dust | ";
$pg .= "
\n";
}
if ($hasdust === true)
{
$pg .= '';
$pg .= '* ';
$pg .= 'Dust payments are not automatically sent out';
$pg .= ' |
';
}
}
$pg .= "
\n";
return $pg;
}
#
function show_payments($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'dopayments', $page, $menu, $name, $user);
}
#
?>