2 /************************************************************************/
\r
4 /************************************************************************/
\r
5 /* Copyright (c) 2010 */
\r
6 /* Inclusive Design Institute */
\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
13 if (is_array($this->rows)) {
\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
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
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
35 echo '<div class="input-form">';
\r
36 $this->msg->addFeedback('NO_QUESTION_CATS');
\r
37 $this->msg->printAll();
\r