|
|
|
<?php
|
|
|
|
#
|
|
|
|
include_once('page_workers.php');
|
|
|
|
#
|
|
|
|
function doallwork($data, $user)
|
|
|
|
{
|
|
|
|
$pg = '<h1>All Workers</h1>';
|
|
|
|
|
|
|
|
$pg .= "<table callpadding=0 cellspacing=0 border=0>\n";
|
|
|
|
|
|
|
|
$totshare = 0;
|
|
|
|
$totdiff = 0;
|
|
|
|
$totinvalid = 0;
|
|
|
|
$totrate = 0;
|
|
|
|
$offset = 0;
|
|
|
|
|
|
|
|
$pg .= worktitle($data, $user);
|
|
|
|
|
|
|
|
$ans = getAllUsers($user);
|
|
|
|
if ($ans['STATUS'] == 'ok')
|
|
|
|
{
|
|
|
|
$count = $ans['rows'];
|
|
|
|
for ($i = 0; $i < $count; $i++)
|
|
|
|
{
|
|
|
|
$pg .= workuser($data, $ans['username:'.$i],
|
|
|
|
$offset, $totshare, $totdiff,
|
|
|
|
$totinvalid, $totrate, 3600);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$pg .= worktotal($offset, $totshare, $totdiff, $totinvalid, $totrate);
|
|
|
|
|
|
|
|
$pg .= "</table>\n";
|
|
|
|
|
|
|
|
return $pg;
|
|
|
|
}
|
|
|
|
#
|
|
|
|
function show_allwork($page, $menu, $name, $user)
|
|
|
|
{
|
|
|
|
gopage(NULL, 'doallwork', $page, $menu, $name, $user);
|
|
|
|
}
|
|
|
|
#
|
|
|
|
?>
|