' . "\n"; echo ' #' . $htmlID . ' { border: solid 1px ' . $this->bordercolor . '; border-collapse: collapse; width:100%; margin-bottom: 20px; background-color: ' . $this->bgcolor . '}' . "\n"; echo ' #' . $htmlID . ' TD { border-collapse:collapse; font: normal 9px Verdana, Arial, Helvetica; padding: 2px 5px 2px 5px; }' . "\n"; echo ' #' . $htmlID . ' TD.tabletitle { font: bold 12px Verdana, Arial, Helvetica; background-color: ' . $this->headcolor . '; border-bottom: solid 1px #000000; }' . "\n"; echo ' #' . $htmlID . ' TD.separation { font-size: 4px; }' . "\n"; echo ' #' . $htmlID . ' TD.title { width: 10%; border-right: solid 1px #cccccc; text-align: right; }' . "\n"; echo ' #' . $htmlID . ' TD.bar { font-size: 5px; }' . "\n"; echo ' #' . $htmlID . ' TD.value { text-align: right; padding-right: 10px; width: 10%; }' . "\n"; echo '' . "\n"; } function drawGraphic( $regs, $scale = '', $title = "", $comments = '' ) { $count = 0; $colors = count($this->bar_colors); if ( $comments ) echo "\n" . '' . "\n\n"; echo '' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; while ( list($id) = each($regs) ) { echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; if ( $count == $colors ) $count = 0; else $count++; } echo ' ' . "\n"; echo '
' . $title . '
 
' . $regs[$id]['name'] . '

 

' . $regs[$id]['value'] . $this->legend . '
 
' . "\n"; if ( $comments ) echo "\n" . '' . "\n"; } } ?>