You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
832 B
44 lines
832 B
11 years ago
|
<?php
|
||
|
#
|
||
|
function dopayments($data)
|
||
|
{
|
||
|
$pg = '<h1>Payments</h1>';
|
||
|
|
||
|
$rep = getPayments();
|
||
|
$ans = repDecode($rep);
|
||
|
|
||
|
$pg .= "<table callpadding=0 cellspacing=0 border=0>\n";
|
||
|
$pg .= "<tr class=title>";
|
||
|
$pg .= "<td class=dl>Date</td>";
|
||
|
$pg .= "<td class=dl>Address</td>";
|
||
|
$pg .= "<td class=dr>BTC</td>";
|
||
|
$pg .= "</tr>\n";
|
||
|
if ($ans['STATUS'] == 'ok')
|
||
|
{
|
||
|
$count = $ans['rows'];
|
||
|
for ($i = 0; $i < $count; $i++)
|
||
|
{
|
||
|
if (($i % 2) == 0)
|
||
|
$row = 'even';
|
||
|
else
|
||
|
$row = 'odd';
|
||
|
|
||
|
$pg .= "<tr class=$row>";
|
||
|
$pg .= '<td class=dl>'.$ans['paydate'.$i].'</td>';
|
||
|
$pg .= '<td class=dl>'.$ans['payaddress'.$i].'</td>';
|
||
|
$pg .= '<td class=dr>'.btcfmt($ans['amount'.$i]).'</td>';
|
||
|
$pg .= "</tr>\n";
|
||
|
}
|
||
|
}
|
||
|
$pg .= "</table>\n";
|
||
|
|
||
|
return $pg;
|
||
|
}
|
||
|
#
|
||
|
function show_payments($menu, $name)
|
||
|
{
|
||
|
gopage(NULL, 'dopayments', $menu, $name);
|
||
|
}
|
||
|
#
|
||
|
?>
|