AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / themes / default / tests / index.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 ?>\r
14 <form method="post" action="tests/import_test.php" enctype="multipart/form-data" >\r
15 <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />\r
16 <div class="input-form">\r
17         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('import_test'); ?></legend>\r
18         <div class="row">\r
19                 <label for="to_file"><?php echo _AT('upload_test'); ?></label><br />\r
20                 <input type="file" name="file" id="to_file" />\r
21         </div>\r
22 \r
23         <div class="row buttons">\r
24                 <input type="submit" name="submit_import" value="<?php echo _AT('import'); ?>" />\r
25         </div>\r
26         </fieldset>\r
27 </div>\r
28 </form>\r
29 \r
30 <form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
31 <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />\r
32 <table class="data" summary="" rules="cols">\r
33 <thead>\r
34 <tr>\r
35         <th scope="col">&nbsp;</th>\r
36         <th scope="col"><?php echo _AT('title'); ?></th>\r
37         <th scope="col"><?php echo _AT('description'); ?></th>\r
38 <!--    <th scope="col"><?php echo _AT('assigned_to');    ?></th> -->\r
39 </tr>\r
40 </thead>\r
41 \r
42 <?php if (is_array($this->rows)){?>\r
43         <tfoot>\r
44         <tr>\r
45                 <td colspan="3">\r
46                         <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />\r
47                         <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />\r
48                         <input type="submit" name="questions" value="<?php echo _AT('questions'); ?>" />\r
49                 </td>\r
50         </tr>\r
51         <tr>    \r
52                 <td colspan="3" style="padding-left:38px;">\r
53                         <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />\r
54                         <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />\r
55                 </td>\r
56         </tr>\r
57         </tfoot>\r
58         <tbody>\r
59 \r
60         <?php foreach ($this->rows as $row) { ?>\r
61                 <tr onmousedown="document.form['t<?php echo $row['test_id']; ?>'].checked = true;trans.utility.rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
62                         <td><input type="radio" name="id" value="<?php echo $row['test_id']; ?>" id="t<?php echo $row['test_id']; ?>" /></td>\r
63                         <td><label for="t<?php echo $row['test_id']; ?>"><?php echo $row['title']; ?></label></td>\r
64                         <td><?php echo $row['description']; ?></td>\r
65                 </tr>\r
66         <?php }} // end of if (is_array($rows)) \r
67         else { ?>\r
68         <tbody>\r
69         <tr>\r
70                 <td colspan="7"><?php echo _AT('none_found'); ?></td>\r
71         </tr>\r
72 <?php } // end of else ?>\r
73 </tbody>\r
74 </table>\r
75 </form>\r
76 \r