function ezar($i, $j) { global $totali, $totalt, $totalb, $ttli, $ttlt, $dptinc_glbl; //, $hallwise, $hall_no; $dptinc_glbl = 1; disp_rqd($i, $totali[$i], $totali[$i] + $j); $totali[$i] = $totali[$i] + $j; $totalt[$i] = $totalb[$i] - $totali[$i]; if ($totalt[$i] < 0) { $totalt[$i] = 0; } $ttli = counting('i'); $ttlt = counting('t'); }
function ezar($i, $j) { global $totali, $totalt, $totalb, $ttli, $ttlt; //if( isset($totali[$i+$j]) ) disp_rqd($i, $totali[$i], $totali[$i] + $j); $totali[$i] = $totali[$i] + $j; $totalt[$i] = $totalb[$i] - $totali[$i]; if ($totalt[$i] < 0) { $totalt[$i] = 0; } $ttli = counting('i'); $ttlt = counting('t'); }