stop studying';
echo '' . filters_html_full() . '
';
echo 'Batch name | actions | last test | score |
';
foreach ($batches as $batch) {
$color = "";
if ($batch['lr_date']) {
if ($batch['lr_score'] == 100)
$color = "#00AA00";
else if ($batch['lr_score'] >= 90)
$color = "#55FF55";
else if ($batch['lr_score'] >= 50)
$color = "#FFFF00";
else
$color = "#FF7777";
}
if ($color != "") $color = ' style="background-color: ' . $color . '"';
echo '';
echo '' . $batch['name'] . ' | ';
echo 'view | test | ';
echo '' . ($batch['lr_date'] ? $batch['lr_date'] : "never") . ' | ';
echo '' . ($batch['lr_date'] ? $batch['lr_score'] . '/100' : 'N/A') . ' | ';
echo '
';
}
echo '
';
require("lib_sidebar.php");
require("tpl/general/bottom.php");