|
|
@ -42,37 +42,7 @@ function workuser($data, $user, &$offset, &$totshare, &$totdiff, |
|
|
|
$ld = ' '; |
|
|
|
$ld = ' '; |
|
|
|
$pg .= "<td class=dr>$ld</td>"; |
|
|
|
$pg .= "<td class=dr>$ld</td>"; |
|
|
|
|
|
|
|
|
|
|
|
if ($lst < 60) |
|
|
|
$pg .= '<td class=dr>'.howlongago($lst).'</td>'; |
|
|
|
$lstdes = $lst.'s'; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lst = round($lst/60); |
|
|
|
|
|
|
|
if ($lst < 60) |
|
|
|
|
|
|
|
$lstdes = $lst.'min'; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lst = round($lst/60); |
|
|
|
|
|
|
|
if ($lst < 24) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lstdes = $lst.'hr'; |
|
|
|
|
|
|
|
if ($lst != 1) |
|
|
|
|
|
|
|
$lstdes .= 's'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lst = round($lst/24); |
|
|
|
|
|
|
|
if ($lst < 9999) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lstdes = $lst.'day'; |
|
|
|
|
|
|
|
if ($lst != 1) |
|
|
|
|
|
|
|
$lstdes .= 's'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
$lstdes = 'never'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$pg .= "<td class=dr>$lstdes</td>"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$shareacc = number_format($ans['w_shareacc:'.$i], 0); |
|
|
|
$shareacc = number_format($ans['w_shareacc:'.$i], 0); |
|
|
|
$totshare += $ans['w_shareacc:'.$i]; |
|
|
|
$totshare += $ans['w_shareacc:'.$i]; |
|
|
|