72b7de5616eab5f2791930982075d863e7fd1491
[moodle.git] / mod / glossary / import.html
1 <form method="post" action="import.php" enctype="multipart/form-data">
2 <table border="0" cellpadding="3" cellspacing="3" width="100%">
3 <tr>
4     <td align="right" style="width:30%;vertical-align:top"><b><?php print_string("filetoimport","glossary") ?>:<br />
5         <?php
6            echo '(';
7            print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
8            echo ') ';
9            echo $OUTPUT->help_icon('filetoimport', 'glossary');
10         ?>
11     </b></td>
12     <td style="width:70%">
13     <?php
14        require_once($CFG->dirroot.'/lib/uploadlib.php');
15        upload_print_form_fragment(1,array('file'),null,false,null,0,0);
16     ?>
17     </td>
18 </tr>
19 <tr valign="top">
20     <td align="right" colspan="2">
21     <table border="0" cellpadding="0" cellspacing="3" width="100%">
22       <tr>
23         <td align="right" style="width:25%"><?php print_string("destination","glossary") ?>:</td>
24         <td style="width:25%"><select size="1" name="dest">
25         <option selected="selected" value="current"><?php print_string("currentglossary","glossary") ?></option>
26         <option value="new"><?php print_string("newglossary","glossary") ?></option>
27         </select> <?php echo $OUTPUT->help_icon('destination', 'glossary') ?></td>
28         <td style="width:25%" align="right"><?php print_string("importcategories","glossary") ?>:</td>
29         <td style="width:25%"><input type="checkbox" name="catsincl" value="1" alt="<?php print_string("importcategories","glossary") ?>" /></td>
30       </tr>
31     </table>
32     </td>
33 </tr>
34 <tr>
35     <td align="right" colspan="2">
36     <table border="0" cellpadding="3" cellspacing="3" width="100%">
37       <tr>
38         <td style="width:50%" align="right"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
39         <td style="width:50%"><input type="reset" value="<?php print_string("revert") ?>" /></td>
40       </tr>
41     </table>
42     </td>
43 </tr>
44 </table>
45 <div>
46 <input type="hidden" name="id" value="<?php p($id) ?>" />
47 <input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
48 <input type="hidden" name="step" value="1" />
49 </div>
50 </form>