Browse Source

php - add link to blocks page

master
kanoi 10 years ago
parent
commit
40ea334adb
  1. 7
      pool/page_blocks.php

7
pool/page_blocks.php

@ -2,6 +2,8 @@
# #
function doblocks($data, $user) function doblocks($data, $user)
{ {
$blink = '<a href=https://blockchain.info/block-height/';
$pg = '<h1>Blocks</h1>'; $pg = '<h1>Blocks</h1>';
$ans = getBlocks($user); $ans = getBlocks($user);
@ -31,8 +33,11 @@ function doblocks($data, $user)
if ($stat == '1-Confirm') if ($stat == '1-Confirm')
$stat = 'Conf'; $stat = 'Conf';
$hi = $ans['height'.$i];
$hifld = "$blink$hi>$hi</a>";
$pg .= "<tr class=$row>"; $pg .= "<tr class=$row>";
$pg .= "<td class=dl$ex>".$ans['height'.$i].'</td>'; $pg .= "<td class=dl$ex>$hifld</td>";
$pg .= "<td class=dl$ex>".$ans['workername'.$i].'</td>'; $pg .= "<td class=dl$ex>".$ans['workername'.$i].'</td>';
$pg .= "<td class=dr$ex>".btcfmt($ans['reward'.$i]).'</td>'; $pg .= "<td class=dr$ex>".btcfmt($ans['reward'.$i]).'</td>';
$pg .= "<td class=dl$ex>".gmdate('Y-m-d H:i:s+00', $ans['firstcreatedate'.$i]).'</td>'; $pg .= "<td class=dl$ex>".gmdate('Y-m-d H:i:s+00', $ans['firstcreatedate'.$i]).'</td>';

Loading…
Cancel
Save