From 8d9321225140a3db0b72796d4d0236d6cacfeb8a Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sat, 17 Sep 2011 19:36:41 +0200 Subject: Started working on a study program. --- tpl/deck/view.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tpl/deck/view.php (limited to 'tpl/deck/view.php') diff --git a/tpl/deck/view.php b/tpl/deck/view.php new file mode 100644 index 0000000..f54da3d --- /dev/null +++ b/tpl/deck/view.php @@ -0,0 +1,33 @@ +edit | '; + echo 'add card'; +} + +echo '

Description

'; +echo $deck["comment"]; + +echo '

Cards

'; +echo ''; +foreach ($cards as $card) { + echo '
'; + if ($can_edit) { + echo '
edit | remove | '; + echo 'move'; + 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"); -- cgit v1.2.3