summaryrefslogtreecommitdiff
path: root/lib/study/list.php
diff options
context:
space:
mode:
authorroot <root@adnab.me>2014-01-31 16:42:40 +0100
committerroot <root@adnab.me>2014-01-31 16:42:40 +0100
commitb0c23ea84327d48e3a4383fac3e795c2dc0a1215 (patch)
tree625a8f0882815d9442a4ff2ec15a49e669a15ed3 /lib/study/list.php
parentcee55b766230837c21453f85e76a921cb5b8b89e (diff)
downloadBits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.tar.gz
Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.zip
Remove all studying apps code.
Diffstat (limited to 'lib/study/list.php')
-rw-r--r--lib/study/list.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/study/list.php b/lib/study/list.php
deleted file mode 100644
index bebffa6..0000000
--- a/lib/study/list.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-assert_redir(count($args) == 3, 'study');
-$studyid = intval($args[2]);
-
-$study = mysql_fetch_assoc(sql(
- "SELECT lists.id AS listid, lists.name AS listname, account.login AS listowner, ".
- " list_study.user AS learn_user ".
- "FROM list_study LEFT JOIN lists ON list_study.list = lists.id LEFT JOIN account ON account.id = lists.owner ".
- "WHERE list_study.id = $studyid"));
-assert_error($study && $study['learn_user'] == $user['id'], "You are not at the right place here.");
-
-$filters = array(
- "order" => array(
- "name" => "name",
- "lr_score" => "last score",
- "lr_date" => "last reviewed"
- ),
- "way" => $ord_ways,
-);
-$fdefaults = array(
- "order" => "name",
- "way" => "ASC",
-);
-
-$batches = array();
-$n = sql(
- "SELECT batches.id AS id, batches.name AS name, ".
- "batch_study.id AS bs_id, ba.date AS lr_date, TO_DAYS(NOW()) - TO_DAYS(ba.date) AS lr_days, ".
- "ba.score AS lr_score, bc.date AS blr_date, bc.score AS blr_score, ".
- "COUNT(bb.id) AS num_reviews ".
- "FROM batches ".
- "LEFT JOIN batch_study ON batch_study.batch = batches.id AND batch_study.user = " . $user['id'] . " " .
- "LEFT JOIN batch_review ba ON ba.id = batch_study.last_review ".
- "LEFT JOIN batch_review bb ON bb.batch = batches.id AND bb.user = " . $user['id'] . " ".
- "LEFT JOIN batch_review bc ON bc.id = batch_study.before_last_review ".
- "WHERE batches.list = " . $study['listid'] . " " .
- "GROUP BY batches.id ".
- "ORDER BY " . get_filter("order") . " " . get_filter("way")
- );
-while ($b = mysql_fetch_assoc($n)) $batches[] = $b;
-
-require("tpl/study/list.php");