You are here

function theme_quiz_results_browser_header in Quiz 8.4

Theme quiz_results_browser_header.

1 theme call to theme_quiz_results_browser_header()
quiz_results_manage_results_form in ./quiz.admin.inc
Form for searching after and manipulating results for a quiz

File

./quiz.theme.inc, line 82
Preprocessors and helper functions to make theming easier.

Code

function theme_quiz_results_browser_header(&$vars) {
  $form = $vars['form'];
  $html = '<thead id="quiz-browser-head">';
  $html .= '<tr>';
  foreach ($form['#header'] as $header) {
    $html .= '<th>' . $header['data'] . '</th>';
  }
  $html .= '</tr>';
  $html .= '<tr id="quiz-question-browser-filters">';
  $html .= '<td class="container-inline" style="white-space: nowrap">';
  $html .= drupal_render($form['filters']['all']) . drupal_render($form['filters']['name']);
  $html .= '</td><td>';
  $html .= drupal_render($form['filters']['started']);
  $html .= '</td><td>';
  $html .= drupal_render($form['filters']['finished']);
  $html .= '</td><td>';
  $html .= drupal_render($form['filters']['score']);
  $html .= '</td><td>';
  $html .= drupal_render($form['filters']['evaluated']);
  $html .= '</td>';
  $html .= '</tr>';
  $html .= '</thead>';
  return $html;
}