From 8c24f8d84c338de8320596c5a9b8da72c2541080 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Mon, 12 Aug 2013 21:17:29 +0200 Subject: Small presentation changes. --- tpl/study/list.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'tpl/study/list.php') diff --git a/tpl/study/list.php b/tpl/study/list.php index c44e45e..8d240fb 100644 --- a/tpl/study/list.php +++ b/tpl/study/list.php @@ -3,11 +3,12 @@ $title = "Studying " . $study['listowner'] . ':' . $study['listname']; require("tpl/general/top.php"); + echo '
stop studying
'; echo ''; -echo ''; +echo '
Batch nameactionslast testscore
'; foreach ($batches as $batch) { $color = ""; if ($batch['lr_date']) { @@ -23,12 +24,25 @@ foreach ($batches as $batch) { } if ($color != "") $color = ' style="background-color: ' . $color . '"'; + $days_color = ($batch['lr_days'] >= 30 ? "#BFBFBF" : + ($batch['lr_days'] >= 20 ? "#C7C7C7" : + ($batch['lr_days'] >= 14 ? "#CFCFCF" : + ($batch['lr_days'] >= 10 ? "#D7D7D7" : + ($batch['lr_days'] >= 7 ? "#DFDFDF" : + ($batch['lr_days'] >= 5 ? "#E7E7E7" : + ($batch['lr_days'] >= 3 ? "#EFEFEF" : + ($batch['lr_days'] >= 1 ? "#F7F7F7" : "#FFFFFF")))))))); + $dc = ($batch['lr_date'] ? ' style="background-color: ' . $days_color .'"' : ''); echo ''; echo ''; echo ''; - echo ''; - echo '' . ($batch['lr_date'] ? $batch['lr_score'] . '/100' : 'N/A') . ''; + echo ''; + echo '' . ($batch['lr_date'] ? $batch['lr_date'] : "never") . ''; + echo '' . ($batch['lr_date'] ? $batch['lr_score'] . '/100' : 'N/A') . + ($batch['blr_date'] ? ($batch['lr_score'] > $batch['blr_score'] ? '' : + ($batch['lr_score'] < $batch['blr_score'] ? '' : + '')) : '') . ''; echo ''; } echo '
Batch nameactionstestslast testscore
' . $batch['name'] . 'view | test' . ($batch['lr_date'] ? $batch['lr_date'] : "never") . '' . $batch['num_reviews'] . '
'; -- cgit v1.2.3