Browse Source

php - fix allwork sorting failure due to multiple <tbody>s

master
kanoi 9 years ago
parent
commit
f98d37d2e5
  1. 4
      pool/page_allwork.php
  2. 4
      pool/page_workers.php

4
pool/page_allwork.php

@ -19,7 +19,7 @@ function doallwork($data, $user)
$instances = 0; $instances = 0;
$pg .= worktitle($data, $user); $pg .= worktitle($data, $user);
$pg .= '<tbody>';
$ans = getAllUsers($user); $ans = getAllUsers($user);
if ($ans['STATUS'] == 'ok') if ($ans['STATUS'] == 'ok')
{ {
@ -35,7 +35,7 @@ function doallwork($data, $user)
$title, $instances); $title, $instances);
} }
} }
$pg .= '</tbody>';
$pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid,
$totrate, $blockacc, $blockreward, $instances); $totrate, $blockacc, $blockreward, $instances);

4
pool/page_workers.php

@ -49,7 +49,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff,
$pg = ''; $pg = '';
if ($ans['STATUS'] == 'ok') if ($ans['STATUS'] == 'ok')
{ {
$pg .= '<tbody>';
if (isset($ans['blockacc'])) if (isset($ans['blockacc']))
$blockacc = $ans['blockacc']; $blockacc = $ans['blockacc'];
if (isset($ans['blockreward'])) if (isset($ans['blockreward']))
@ -203,7 +202,6 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff,
$offset++; $offset++;
} }
$pg .= '</tbody>';
} }
return $pg; return $pg;
} }
@ -262,9 +260,11 @@ function doworker($data, $user)
$instances = 0; $instances = 0;
$pg .= worktitle($data, $user); $pg .= worktitle($data, $user);
$pg .= '<tbody>';
$pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate, $pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate,
$totinvalid, $totrate, $blockacc, $blockreward, $totinvalid, $totrate, $blockacc, $blockreward,
false, true, true, $title, $instances); false, true, true, $title, $instances);
$pg .= '</tbody>';
$pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid,
$totrate, $blockacc, $blockreward, $instances); $totrate, $blockacc, $blockreward, $instances);

Loading…
Cancel
Save