diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2013-08-29 10:27:29 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2013-08-29 10:27:29 +0200 |
commit | 32802edf1a4753822b03bc148f23079f5ea89f66 (patch) | |
tree | 5be8e80b59e956b1d781e7d55122fe327ed38e98 /tpl/study | |
parent | 281c96082c00b9382d074ed72e03f22e236b6520 (diff) | |
download | Bits-32802edf1a4753822b03bc148f23079f5ea89f66.tar.gz Bits-32802edf1a4753822b03bc148f23079f5ea89f66.zip |
Minor changes to study app.
Diffstat (limited to 'tpl/study')
-rw-r--r-- | tpl/study/batch.php | 2 | ||||
-rw-r--r-- | tpl/study/list.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tpl/study/batch.php b/tpl/study/batch.php index 842deaa..6eaa99c 100644 --- a/tpl/study/batch.php +++ b/tpl/study/batch.php @@ -11,7 +11,7 @@ $onload_js = 'show_batch_table();'; require("tpl/general/top.php"); -echo '<div class="small_right"><a href="batchreview-study-' . $info['batchid'] . '">test now</a></div>'; +echo '<div class="small_right"><a href="batchreview-study-' . $info['batchid'] . '">test now</a> | <a href="list-study-' . $info['studyid'] . '#batch_' . $info['batchid'] . '">back</a></div>'; echo '<h2>Items in this list</h2>'; echo '<div id="items">Please wait, processing...</div>'; diff --git a/tpl/study/list.php b/tpl/study/list.php index 3bb16dd..265d8a7 100644 --- a/tpl/study/list.php +++ b/tpl/study/list.php @@ -39,14 +39,14 @@ foreach ($batches as $batch) { $dc = ($batch['lr_date'] ? ' style="background-color: ' . $days_color .'"' : ''); echo '<tr>'; - echo '<td><code>' . $batch['name'] . '</code></td>'; + echo '<td><a id="batch_' . $batch['id'] . '"></a><code>' . $batch['name'] . '</code></td>'; echo '<td><a href="batch-study-' . $batch['id'] . '">view</a> | <a href="batchreview-study-' . $batch['id'] . '">test</a></td>'; echo '<td>' . $batch['num_reviews'] . '</td>'; echo '<td'.$dc.'>' . ($batch['lr_date'] ? $batch['lr_date'] : "never") . '</td>'; echo '<td'.$color.'>' . ($batch['lr_date'] ? $batch['lr_score'] . '/100' : 'N/A') . - ($batch['blr_date'] ? ($batch['lr_score'] > $batch['blr_score'] ? '<span style="color: green"> ⬈</span>' : - ($batch['lr_score'] < $batch['blr_score'] ? '<span style="color: orange;"> ⬊</span>' : - '<span style="color: grey"> ➡</span>')) : '') . '</td>'; + ($batch['blr_date'] ? ($batch['lr_score'] > $batch['blr_score'] ? '<span style="color: green"> ➚</span>' : + ($batch['lr_score'] < $batch['blr_score'] ? '<span style="color: orange;"> ➘</span>' : + '<span style="color: grey"> ➙</span>')) : '') . '</td>'; echo '</tr>'; } echo '</table>'; |