| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_progress_bar($percent, $message) |
Return a themed progress bar.
$percent The percentage of the progress.
$message A string containing information to be displayed.
A themed HTML string representing the progress bar.
includes/
<?php
function theme_progress_bar($percent, $message) {
$output = '<div id="progress" class="progress">';
$output .= '<div class="bar"><div class="filled" style="width: ' . $percent . '%"></div></div>';
$output .= '<div class="percentage">' . $percent . '%</div>';
$output .= '<div class="message">' . $message . '</div>';
$output .= '</div>';
return $output;
}
?>
Kommentare
Kommentar hinzufügen