Date: Fri, 31 Jan 2014 16:42:40 +0100
Subject: Remove all studying apps code.
---
tpl/deck/ef.php | 16 -----------
tpl/deck/index.php | 20 --------------
tpl/deck/new.php | 8 ------
tpl/deck/view.php | 35 ------------------------
tpl/general/top.php | 2 --
tpl/list/ef.php | 15 ----------
tpl/list/index.php | 20 --------------
tpl/list/new.php | 8 ------
tpl/list/view.php | 29 --------------------
tpl/study/batch.php | 23 ----------------
tpl/study/batch_review.php | 15 ----------
tpl/study/deck.php | 68 ----------------------------------------------
tpl/study/index.php | 43 -----------------------------
tpl/study/lib_sidebar.php | 50 ----------------------------------
tpl/study/list.php | 55 -------------------------------------
tpl/study/setrate.php | 18 ------------
16 files changed, 425 deletions(-)
delete mode 100644 tpl/deck/ef.php
delete mode 100644 tpl/deck/index.php
delete mode 100644 tpl/deck/new.php
delete mode 100644 tpl/deck/view.php
delete mode 100644 tpl/list/ef.php
delete mode 100644 tpl/list/index.php
delete mode 100644 tpl/list/new.php
delete mode 100644 tpl/list/view.php
delete mode 100644 tpl/study/batch.php
delete mode 100644 tpl/study/batch_review.php
delete mode 100644 tpl/study/deck.php
delete mode 100644 tpl/study/index.php
delete mode 100644 tpl/study/lib_sidebar.php
delete mode 100644 tpl/study/list.php
delete mode 100644 tpl/study/setrate.php
(limited to 'tpl')
diff --git a/tpl/deck/ef.php b/tpl/deck/ef.php
deleted file mode 100644
index 40d0ecc..0000000
--- a/tpl/deck/ef.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
-';
-
-echo '
' . $deck['name'] . '
';
-echo '
';
-
-require("tpl/general/bottom.php");
diff --git a/tpl/deck/index.php b/tpl/deck/index.php
deleted file mode 100644
index b8e9a76..0000000
--- a/tpl/deck/index.php
+++ /dev/null
@@ -1,20 +0,0 @@
-' . filters_html_full() . '
';
-
-echo "Name | Users | ";
-foreach ($decks as $deck) {
- echo '
---|
' . $deck["owner"] . ':' . $deck["name"] . ' | ';
- echo '' . $deck["nbUsers"] . ' |
';
-}
-echo "
";
-
-require("tpl/study/lib_sidebar.php");
-
-require("tpl/general/bottom.php");
diff --git a/tpl/deck/new.php b/tpl/deck/new.php
deleted file mode 100644
index 1f7e81e..0000000
--- a/tpl/deck/new.php
+++ /dev/null
@@ -1,8 +0,0 @@
-edit | ';
- echo 'add card';
-}
-
-echo $deck["comment"];
-
-if ($can_start_study) {
- echo '>> start studying this deck <<
';
-}
-
-echo '' . filters_html_full() . '
';
-foreach ($cards as $card) {
- echo '';
- if ($can_edit) {
- echo '
';
- }
- echo '
#' . $card["number"] . ": " . $card["name"] . '
';
- echo $card['text'];
- echo '
';
-}
-if ($can_edit)
- echo '[+] add card';
-
-require("tpl/study/lib_sidebar.php");
-
-require("tpl/general/bottom.php");
diff --git a/tpl/general/top.php b/tpl/general/top.php
index 2e73057..01f7e59 100644
--- a/tpl/general/top.php
+++ b/tpl/general/top.php
@@ -36,12 +36,10 @@ if ($user['id'] == 0) {
if ($user['id'] != 0) {
echo 'notes';
echo 'files';
- echo 'studies';
} else {
if ($user['priv'] >= $apps['file']['upload']) {
echo 'upload file';
}
- echo 'studies';
}
?>
diff --git a/tpl/list/ef.php b/tpl/list/ef.php
deleted file mode 100644
index 1e7387a..0000000
--- a/tpl/list/ef.php
+++ /dev/null
@@ -1,15 +0,0 @@
-';
-
-echo '
' . $list['name'] . '
';
-echo '
';
-
-require("tpl/general/bottom.php");
diff --git a/tpl/list/index.php b/tpl/list/index.php
deleted file mode 100644
index 85a503c..0000000
--- a/tpl/list/index.php
+++ /dev/null
@@ -1,20 +0,0 @@
-' . filters_html_full() . '
';
-
-echo "Name | Users | ";
-foreach ($lists as $list) {
- echo '
---|
' . $list["owner"] . ':' . $list["name"] . ' | ';
- echo '' . $list["nbUsers"] . ' |
';
-}
-echo "
";
-
-require("tpl/study/lib_sidebar.php");
-
-require("tpl/general/bottom.php");
diff --git a/tpl/list/new.php b/tpl/list/new.php
deleted file mode 100644
index 1f7e81e..0000000
--- a/tpl/list/new.php
+++ /dev/null
@@ -1,8 +0,0 @@
-edit | ';
- echo 'add batch';
-}
-
-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
deleted file mode 100644
index 6eaa99c..0000000
--- a/tpl/study/batch.php
+++ /dev/null
@@ -1,23 +0,0 @@
-test now | back';
-
-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
deleted file mode 100644
index abe1944..0000000
--- a/tpl/study/batch_review.php
+++ /dev/null
@@ -1,15 +0,0 @@
-Please wait, processing...';
-
-require("tpl/general/bottom.php");
diff --git a/tpl/study/deck.php b/tpl/study/deck.php
deleted file mode 100644
index 42ef784..0000000
--- a/tpl/study/deck.php
+++ /dev/null
@@ -1,68 +0,0 @@
-stop studying | view whole deck';
-
-echo '';
-
-if (isset($next_card)) {
- if ($next_card) {
- echo '';
- echo '
';
- echo '
(next card) #'.$next_card['number'].': '.$next_card['name'].'
';
- echo $next_card['text_html'];
- echo '
';
- } else {
- echo 'No more cards to study !
';
- }
-}
-
-echo '' . filters_html_full() . '
';
-
-if (count($study_cards) == 0) {
- echo '
No cards in this view. Switch to another view to see more stuff.
';
-} else {
- foreach($study_cards as $card) {
- echo '';
- }
-}
-
-require ("lib_sidebar.php");
-require("tpl/general/bottom.php");
diff --git a/tpl/study/index.php b/tpl/study/index.php
deleted file mode 100644
index 83899e7..0000000
--- a/tpl/study/index.php
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-Welcome to the 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.
-
-The cards you are studying are classified in the following boxes :
-
-- Skipped cards : cards you can't really say you know, but you don't want to study right now.
-- Levels 1 to 3 : you are reviewing these cards frequently, in order to learn them.
-- Level 4 to 6 : we consider you know that card, and you are just reviewing it from times to times,
- making sure you didn't forget it.
-- Level 7 : you totally know that card and will never be asked about it again.
-
-You can freely move cards into different boxes using the links that appear at the right of the card, the number in the parenthesis being
- the level that card will have if you click it.
-Cards you are supposed to study or review today appear with a bold title : that means that today,
- you should decide to put it either in the next box, or somewhere else.
-The load is calculated as a function of the number of cards with levels from 1 to 3 : it represents the quantity of
- 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 (if any are available in the deck).
-
-Please take a look at the list of decks and start learning whatever you want to learn.
-You can also create your own decks, the editor is pretty intuitive.
-
-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.
-
-Please take a look at the list of lists and start learning whatever you want to learn.
-
-';
- echo '
Studying decks
';
-
- echo '
My decks
';
-
-
- echo '
Studying lists
';
-
- echo '
My lists
';
-
-}
diff --git a/tpl/study/list.php b/tpl/study/list.php
deleted file mode 100644
index 265d8a7..0000000
--- a/tpl/study/list.php
+++ /dev/null
@@ -1,55 +0,0 @@
-
stop studying ';
-
-echo '' . filters_html_full() . '
';
-
-echo 'Batch name | actions | tests | 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 = "#22EE22";
- else if ($batch['lr_score'] >= 80)
- $color = "#55FF55";
- else if ($batch['lr_score'] >= 60)
- $color = "#EEEE00";
- else if ($batch['lr_score'] >= 40)
- $color = "#FFAA22";
- else
- $color = "#FF7777";
-
- }
- 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 '' . $batch['name'] . ' | ';
- echo 'view | test | ';
- echo '' . $batch['num_reviews'] . ' | ';
- 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 '
';
-
-require("lib_sidebar.php");
-require("tpl/general/bottom.php");
diff --git a/tpl/study/setrate.php b/tpl/study/setrate.php
deleted file mode 100644
index f632b33..0000000
--- a/tpl/study/setrate.php
+++ /dev/null
@@ -1,18 +0,0 @@
-Current learn rate : ' . $study['learn_rate'] . ' - keep this rate