function theme_progress_bar

Same name and namespace in other branches
  1. 7.x drupal-7.x/includes/theme.inc \theme_progress_bar()

Return a themed progress bar.

Parameters

$percent: The percentage of the progress.

$message: A string containing information to be displayed.

Return value

A themed HTML string representing the progress bar.

Related topics

1 theme call to theme_progress_bar()
_batch_progress_page_nojs in drupal-6.x/includes/batch.inc
Batch processing page without JavaScript support.

Archivo

drupal-6.x/includes/theme.inc, line 1725
The theme system, which controls the output of Drupal.

Código

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;
}