99999999) $b4 = ''; else if ($num > 9999999) $b4 = ''; if ($b4 != '') $af = ''; return $b4.$fmt.$af; } # function dockp($data, $user) { $pg = '

CKPool

'; $msg = msgEncode('stats', 'stats', array(), $user); $rep = sendsockreply('stats', $msg); if ($rep == false) $ans = array(); else $ans = repDecode($rep); addSort(); $r = "input type=radio name=srt onclick=\"sott('ckpsrt',this);\""; $pg .= 'TotalRAM: '.stnum($ans['totalram']).'
'; $pg .= "\n"; $pg .= ''; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ''; $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $pg .= ''; $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $pg .= "'; $pg .= ''; $pg .= ''; $pg .= "'; $pg .= "'; $pg .= "'; $pg .= ''; $pg .= "\n"; } $pg .= ''; } $pg .= "
Name:<$r id=srtname data-sf=s0>InitialAllocated<$r id=srtname data-sf=r3>:In Store<$r id=srtname data-sf=r4>:RAM<$r id=srtname data-sf=r5>:RAM2Cull
".$ans['name:'.$i].''.stnum($ans['initial:'.$i]).''.stnum($ans['allocated:'.$i]).'".stnum($ans['instore:'.$i]).'".stnum($ans['ram:'.$i]).'".stnum($ans['ram2:'.$i]).''.stnum($ans['cull:'.$i]).'
\n"; return $pg; } # function show_ckp($info, $page, $menu, $name, $user) { gopage($info, NULL, 'dockp', $page, $menu, $name, $user); } # ?>