";
$pg .= ''.$all[$i]['payaddress'].' | ';
$pg .= ''.$all[$i]['payname'].' | ';
$shareacc = number_format($all[$i]['p_shareacc'], 0);
$totshare += $all[$i]['p_shareacc'];
$diffacc = number_format($all[$i]['p_diffacc'], 0);
$totdiff += $all[$i]['p_diffacc'];
$pg .= "$shareacc | ";
$pg .= "$diffacc | ";
$dtot = $all[$i]['p_diffacc'] + $all[$i]['p_diffinv'];
if ($dtot > 0)
$rej = number_format(100.0 * $all[$i]['p_diffinv'] / $dtot, 3);
else
$rej = '0';
$totinvalid += $all[$i]['p_diffinv'];
$pg .= "$rej% | ";
if ($blockacc <= 0)
$blkpct = ' ';
else
$blkpct = number_format(100.0 * $all[$i]['p_diffacc'] / $blockacc, 3) . '%';
$pg .= "$blkpct | ";
$uhr = $all[$i]['p_uhr'];
if ($uhr == '?')
$uhr = '?GHs';
else
{
$totrate += $uhr;
$uhr = dsprate($uhr);
}
$pg .= "$uhr | ";
$pg .= ''.$all[$i]['payratio'].' | ';
$paypct = number_format($all[$i]['paypercent'], 3);
$pg .= "$paypct% | ";
$pg .= "
\n";
$offset++;
}
$pg .= '