From d45c7f14891d951f8a6987cc6492073b97e05b5b Mon Sep 17 00:00:00 2001
From: Nicolas BERNSTEIN
Date: Sun, 20 Nov 2011 13:39:47 +0100
Subject: Added the bit list study system
---
tpl/general/top.php | 11 ++++++++++-
tpl/list/ef.php | 15 +++++++++++++++
tpl/list/index.php | 20 ++++++++++++++++++++
tpl/list/new.php | 8 ++++++++
tpl/list/view.php | 29 +++++++++++++++++++++++++++++
tpl/study/batch.php | 20 ++++++++++++++++++++
tpl/study/batch_review.php | 13 +++++++++++++
tpl/study/index.php | 10 +++++++++-
tpl/study/lib_sidebar.php | 24 ++++++++++++++++++++++++
tpl/study/list.php | 37 +++++++++++++++++++++++++++++++++++++
10 files changed, 185 insertions(+), 2 deletions(-)
create mode 100644 tpl/list/ef.php
create mode 100644 tpl/list/index.php
create mode 100644 tpl/list/new.php
create mode 100644 tpl/list/view.php
create mode 100644 tpl/study/batch.php
create mode 100644 tpl/study/batch_review.php
create mode 100644 tpl/study/list.php
(limited to 'tpl')
diff --git a/tpl/general/top.php b/tpl/general/top.php
index 28a9658..2ddc84e 100644
--- a/tpl/general/top.php
+++ b/tpl/general/top.php
@@ -7,9 +7,17 @@ global $user, $apps; //These might be hidden because this page is called from sq
+ ';
+ }
+ }
+ if (isset($javascript)) echo '';
+ ?>
-
+ >
';
+}
+
+echo $list['comment'];
+
+if ($can_start_study) {
+ echo '>> start studying this list <<
';
+}
+
+echo 'Batch name ' . ($can_edit ? 'actions ' : '') . ' ';
+foreach ($batches as $batch) {
+ echo '' . $batch['name'] . ' ';
+ if ($can_edit) {
+ echo 'edit | remove ';
+ }
+ echo ' ';
+}
+echo '
';
+
+require("tpl/study/lib_sidebar.php");
+
+require("tpl/general/bottom.php");
diff --git a/tpl/study/batch.php b/tpl/study/batch.php
new file mode 100644
index 0000000..666fdc8
--- /dev/null
+++ b/tpl/study/batch.php
@@ -0,0 +1,20 @@
+test now ';
+
+echo 'Items in this list ';
+echo 'Please wait, processing...
';
+echo 'Reviews ';
+echo 'Please wait, processing...
';
+
+require("tpl/study/lib_sidebar.php");
+require("tpl/general/bottom.php");
+
diff --git a/tpl/study/batch_review.php b/tpl/study/batch_review.php
new file mode 100644
index 0000000..ed81b75
--- /dev/null
+++ b/tpl/study/batch_review.php
@@ -0,0 +1,13 @@
+Please wait, processing...';
+
+require("tpl/general/bottom.php");
diff --git a/tpl/study/index.php b/tpl/study/index.php
index be78f22..82178df 100644
--- a/tpl/study/index.php
+++ b/tpl/study/index.php
@@ -5,7 +5,10 @@ require("tpl/general/top.php");
?>
-Welcome to the My studies section. This is a simple study program based on
+
Welcome to the My studies section. This is a simple study program, with two methods of studying available.
+
+First method : cards
+The first method is based on
decks of cards, keeping track of your progress and everything.
Please take a look in the List of decks and start learning whatever you want to learn.
@@ -26,6 +29,11 @@ Cards you are supposed to study or review today appear with a bold title : that
stuff you are learning right now. When the load is smaller than the study rate you ask for, new cards will be suggested for
you to learn.
+Second method : study lists
+In this method, we have lists of stuff to learn (like vocabulary), divided into batches (the batches are sorted
+for a given list). You will study one batch at a time, and take a test for one batch at a time. All your test results
+ are kept in storage and are used to display your progress.
+
';
echo '
Studying decks ';
+
+
+ echo '
Studying lists ';
+
+ echo '
My lists ';
+
}
diff --git a/tpl/study/list.php b/tpl/study/list.php
new file mode 100644
index 0000000..feffc72
--- /dev/null
+++ b/tpl/study/list.php
@@ -0,0 +1,37 @@
+
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 = "#00CC00";
+ 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");
--
cgit v1.2.3