rearrange category picker
authorGreg Gay <info@atutor.ca>
Thu, 12 Aug 2010 19:52:14 +0000 (19:52 -0000)
committerGreg Gay <info@atutor.ca>
Thu, 12 Aug 2010 19:52:14 +0000 (19:52 -0000)
docs/themes/default/tests/question_db_top.tmpl.php

index f4c6362..e8c15b8 100644 (file)
@@ -10,6 +10,8 @@
 /* as published by the Free Software Foundation.                        */\r
 /************************************************************************/\r
 \r
+require_once(TR_INCLUDE_PATH.'../tests/classes/TestsUtility.class.php');\r
+\r
 ?>\r
 <div class="input-form">\r
 <table class="qdb_table">\r
                        </div>\r
                </form>\r
        </fieldset>\r
-</td>
\ No newline at end of file
+</td>\r
+<td>\r
+       <fieldset class="group_form1"><legend class="group_form1"><?php echo _AT('category'); ?></legend>\r
+       <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
+               <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />\r
+               <div class="row">\r
+                       <label for="cats"><?php echo _AT('category'); ?></label><br />\r
+                       <select name="category_id" id="cats">\r
+                               <option value="-1"><?php echo _AT('cats_all'); ?></option>\r
+                               <?php TestsUtility::printQuestionCatsInDropDown($_GET['category_id']); ?>\r
+                       </select>\r
+               </div>\r
+               <div class="row buttons">\r
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />\r
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />\r
+               </div>\r
+       </form>\r
+\r
+       </fieldset>\r
+\r
+</td></tr></table>\r
+</div>
\ No newline at end of file