diff options
author | root <root@adnab.me> | 2014-01-31 16:42:40 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 16:42:40 +0100 |
commit | b0c23ea84327d48e3a4383fac3e795c2dc0a1215 (patch) | |
tree | 625a8f0882815d9442a4ff2ec15a49e669a15ed3 /tpl/deck | |
parent | cee55b766230837c21453f85e76a921cb5b8b89e (diff) | |
download | Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.tar.gz Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.zip |
Remove all studying apps code.
Diffstat (limited to 'tpl/deck')
-rw-r--r-- | tpl/deck/ef.php | 16 | ||||
-rw-r--r-- | tpl/deck/index.php | 20 | ||||
-rw-r--r-- | tpl/deck/new.php | 8 | ||||
-rw-r--r-- | tpl/deck/view.php | 35 |
4 files changed, 0 insertions, 79 deletions
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 @@ - -<?php -require("tpl/general/top.php"); - -if (isset($fields)) - require("tpl/general/inc_form.php"); - -echo '</div><div class="contents-left">'; - -echo '<h1>' . $deck['name'] . '</h1>'; -echo '<ul><li><a href="view-deck-' . $deck['id'] . '">Back to deck</a></li>'; -echo '<li><a href="edit-deck-' . $deck['id'] . '">Edit deck</a></li>'; -echo '<li><a href="addent-deck-' . $deck['id'] . '">Add card to deck</a></li>'; -echo '</ul>'; - -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 @@ -<?php - -$title = "Study decks"; - -if ($user['id'] == 0) $message = "Hey, you should create an account so that you can study with us!"; - -require("tpl/general/top.php"); - -echo '<div class="ordering_links">' . filters_html_full() . '</div>'; - -echo "<table><tr><th>Name</th><th>Users</th>"; -foreach ($decks as $deck) { - echo '<tr><td><code>' . $deck["owner"] . ':<a href="view-deck-' . $deck['id'] . '">' . $deck["name"] . '</a></code></td>'; - echo '<td>' . $deck["nbUsers"] . '</td></tr>'; -} -echo "</table>"; - -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 @@ -<?php -require("tpl/general/top.php"); - -require("tpl/general/inc_form.php"); - -require("tpl/study/lib_sidebar.php"); - -require("tpl/general/bottom.php"); diff --git a/tpl/deck/view.php b/tpl/deck/view.php deleted file mode 100644 index d15de4e..0000000 --- a/tpl/deck/view.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php - -$title = $deck["owner"] . ':' . $deck["name"]; - -require("tpl/general/top.php"); - -if ($can_edit) { - echo '<div class="small_right"><a href="edit-deck-' . $deck['id'] . '">edit</a> | '; - echo '<a href="addent-deck-' . $deck['id'] . '">add card</a></div>'; -} - -echo $deck["comment"]; - -if ($can_start_study) { - echo '<p style="text-align: center; font-size: 1.2em;"><a href="deckadd-study-' . $deckid . '">>> start studying this deck <<</a></p>'; -} - -echo '<div class="ordering_links">' . filters_html_full() . '</div>'; -foreach ($cards as $card) { - echo '<div class="study_card">'; - if ($can_edit) { - echo '<div class="small_right"><a href="edent-deck-' . $card['id'] . '">edit</a> | <a href="rment-deck-' . $card['id'] . '">remove</a> | '; - echo '<a href="#" onclick="if (pos = prompt(\'What position do you want to move this card to ?\', ' . $card['number'] . ')) { window.location = \'mvent-deck-' . $card['id'] . '-\' + pos; }">move</a>'; - echo '</div>'; - } - echo '<code>#' . $card["number"] . ": " . $card["name"] . '</code>'; - echo $card['text']; - echo '</div>'; -} -if ($can_edit) - echo '<a class="tool_link" href="addent-deck-' . $deck['id'] . '">[+] add card</a>'; - -require("tpl/study/lib_sidebar.php"); - -require("tpl/general/bottom.php"); |