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
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
19 <label for="to_file"><?php echo _AT('upload_test'); ?></label><br />
\r
20 <input type="file" name="file" id="to_file" />
\r
23 <div class="row buttons">
\r
24 <input type="submit" name="submit_import" value="<?php echo _AT('import'); ?>" />
\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
35 <th scope="col"> </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
42 <?php if (is_array($this->rows)){?>
\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
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
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
66 <?php }} // end of if (is_array($rows))
\r
70 <td colspan="7"><?php echo _AT('none_found'); ?></td>
\r
72 <?php } // end of else ?>
\r