Today progress Today goal

Total progress Total goal

 
 
'; $out = ''; if((0+$num) > 0 && (0+$outof) > 0 ) { $pct = floor(1000*$num/$outof)/10; $out = "

" . $header ."

"; $out .= str_replace('%%pct%%',$pct/10,$template); $out .= "

".$num."/".$outof." (".($pct)."%)

"; } return $out; } function makebarsrc($header,$num,$outof) { $out = makebar($header,$num,$outof); $out = str_replace(' ','',$out); $out = str_replace(': ',':',$out); $out = str_replace('; ',';',$out); $out = str_replace(';','; ',$out); $out = str_replace('&','&',$out); $out = str_replace('<','<',$out); return $out; } print makebar("Today's progress",$todayp,$todayg); print makebar("Total progress",$totalp,$totalg); print '

'; print makebarsrc("Today's progress",$todayp,$todayg); print '
'; print makebarsrc("Total progress",$totalp,$totalg); print '

'; ?>