moved code up one level to eliminate the docs subdirectory
[acontent.git] / themes / default / home / create_course.tmpl.php
1 <?php 
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
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
13 global $_current_user;
14
15 if (isset($_current_user) && $_current_user->isAuthor())
16 {
17 ?>
18         <div class="input-form">
19         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_course'); ?></legend>
20         <form name="form1" method="post" action="home/ims/ims_import.php" enctype="multipart/form-data" onsubmit="openWindow('<?php echo TR_BASE_HREF; ?>home/prog.php');">
21                 <input type="hidden" name="allow_test_import" value="1" />
22                 <input type="hidden" name="allow_a4a_import" value="1" />
23                 <table class="form_data">
24                 <tr><td>
25                 <?php echo _AT('create_course_1'); ?>
26                 <a href="home/course/course_property.php"><?php echo htmlentities_utf8(_AT('course_wizard')); ?></a><br /><br />
27                 </td></tr>
28
29                 <tr><td>
30                 <?php echo _AT('create_course_2'); ?>
31                 </td></tr>
32                 <tr><td>
33                         <label for="to_file"><?php echo _AT('upload_content_package'); ?></label>
34                         <input type="file" name="file" id="to_file" />
35                 </td></tr>
36         
37                 <tr><td>
38                         <label for="to_url"><?php echo _AT('specify_url_to_content_package'); ?></label>
39                         <input type="text" name="url" value="http://" size="40" id="to_url" />
40                 </td></tr>
41
42                 <tr><td>
43                         <input type="checkbox" name="ignore_validation" id="ignore_validation" value="1" />
44                         <label for="ignore_validation"><?php echo _AT('ignore_validation'); ?></label> <br />
45                 </td></tr>
46         
47                 <tr><td>
48                         <input type="checkbox" name="hide_course" id="hide_course" value="1" /><label for="hide_course"><?php echo _AT('hide_course'); ?></label>
49                 </td></tr>
50         
51                 <tr align="center"><td>
52                         <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
53                 </td></tr>
54                 </table>
55         </form>
56         </fieldset>
57         </div>
58
59 <script language="javascript" type="text/javascript">
60 function openWindow(page) {
61         newWindow = window.open(page, "progWin", "width=400,height=200,toolbar=no,location=no");
62         newWindow.focus();
63 }
64 </script>
65
66 <?php 
67 }
68 ?>