AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / themes / default / tests / question_cats.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* AContent                                                             */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2010                                                   */\r
6 /* Inclusive Design Institute                                           */\r
7 /*                                                                      */\r
8 /* This program is free software. You can redistribute it and/or        */\r
9 /* modify it under the terms of the GNU General Public License          */\r
10 /* as published by the Free Software Foundation.                        */\r
11 /************************************************************************/\r
12 \r
13 if (is_array($this->rows)) {\r
14 ?>\r
15         <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">\r
16         <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />\r
17         <div class="input-form">\r
18         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('question_categories'); ?></legend>\r
19 <?php   foreach ($this->rows as $row) { ?>\r
20                         <div class="row">\r
21                                 <input type="radio" id="cat_<?php echo $row['category_id']; ?>" name="category" value="<?php echo $row['category_id']; ?>" />   <label for="cat_<?php echo $row['category_id']; ?>"><?php echo AT_print($row['title'], 'tests_questions_categories.title'); ?></label>\r
22                         </div>\r
23 <?php \r
24                 }\r
25 ?>\r
26                 <div class="row buttons">\r
27                         <input type="submit" value="<?php echo _AT('edit'); ?>"   name="edit" />\r
28                         <input type="submit" value="<?php echo _AT('delete'); ?>" name="delete" />\r
29                 </div>\r
30         </div>\r
31         </form>\r
32 <?php\r
33 \r
34         } else {\r
35         echo '<div class="input-form">';\r
36                 $this->msg->addFeedback('NO_QUESTION_CATS');\r
37                 $this->msg->printAll();\r
38         echo'</div>';\r
39         }\r
40 ?>\r