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.
52 lines
988 B
52 lines
988 B
<?php |
|
# |
|
include_once('page_workers.php'); |
|
# |
|
function doallwork($data, $user) |
|
{ |
|
$pg = '<h1>All Workers</h1>'; |
|
|
|
$pg .= worktable(); |
|
|
|
$totshare = 0; |
|
$totdiff = 0; |
|
$totshrate = 0; |
|
$totinvalid = 0; |
|
$totrate = 0; |
|
$offset = 0; |
|
$blockacc = 0; |
|
$blockreward = 0; |
|
$instances = 0; |
|
|
|
$pg .= worktitle($data, $user); |
|
$pg .= '<tbody>'; |
|
$ans = getAllUsers($user); |
|
if ($ans['STATUS'] == 'ok') |
|
{ |
|
$count = $ans['rows']; |
|
$title = NULL; |
|
for ($i = 0; $i < $count; $i++) |
|
{ |
|
$pg .= workuser($data, $ans['username:'.$i], |
|
$offset, $totshare, $totdiff, |
|
$totshrate, $totinvalid, $totrate, |
|
$blockacc, $blockreward, |
|
3600, false, false, |
|
$title, $instances); |
|
} |
|
} |
|
$pg .= '</tbody>'; |
|
$pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, |
|
$totrate, $blockacc, $blockreward, $instances); |
|
|
|
$pg .= "</table>\n"; |
|
|
|
return $pg; |
|
} |
|
# |
|
function show_allwork($info, $page, $menu, $name, $user) |
|
{ |
|
gopage($info, NULL, 'doallwork', $page, $menu, $name, $user); |
|
} |
|
# |
|
?>
|
|
|