The tag for ATutor 2.0.3 release.
[atutor.git] / mods / _core / enrolment / import_course_list.php
1 <?php
2 /************************************************************************/
3 /* ATutor                                                                                                                               */
4 /************************************************************************/
5 /* Copyright (c) 2002-2010                                              */
6 /* Inclusive Design Institute                                           */
7 /* http://atutor.ca                                                     */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12 // $Id$
13
14 define('AT_INCLUDE_PATH', '../../../include/');
15 require (AT_INCLUDE_PATH.'vitals.inc.php');
16 authenticate(AT_PRIV_ENROLLMENT);
17
18 require(AT_INCLUDE_PATH.'header.inc.php');
19 ?>
20 <form enctype="multipart/form-data" action="mods/_core/enrolment/verify_list.php" method="post">
21 <input type="hidden" name="from" value="import" />
22 <input type="hidden" name="MAX_FILE_SIZE" value="100000" />
23
24 <div class="input-form">
25         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('import'); ?></legend>
26         <div class="row">
27                 <p><?php echo _AT('list_import_howto'); ?></p>
28         </div>
29
30         <div class="row">
31                 <label for="sep_choice"><?php echo _AT('import_sep_txt'); ?></label><br />
32                 <input type="radio" name="sep_choice" id="und" value="_" checked="checked" />
33                 <label for="und"><?php echo _AT('underscore'); ?></label>
34                 <input type="radio" name="sep_choice" id="per" value="." />
35                 <label for="per"><?php echo _AT('period'); ?></label>
36         </div>
37
38         <div class="row">
39                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="course_list"><?php echo _AT('list_import_course_list'); ?></label><br />
40                 <input type="file" name="file" id="course_list" />
41         </div>
42
43         <div class="row buttons">
44                 <input type="submit" name="submit" value="<?php echo _AT('list_import_course_list');  ?>" />
45         </div>
46         </fieldset>
47 </div>
48 </form>
49
50 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>