diff options
Diffstat (limited to 'tpl/deck/index.php')
-rw-r--r-- | tpl/deck/index.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tpl/deck/index.php b/tpl/deck/index.php new file mode 100644 index 0000000..b8e9a76 --- /dev/null +++ b/tpl/deck/index.php @@ -0,0 +1,20 @@ +<?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"); |