2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2010 */
6 /* Inclusive Design Institute */
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 /************************************************************************/
13 global $_current_user;
15 if (isset($_current_user) && $_current_user->isAuthor())
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">
25 <?php echo _AT('create_course_1'); ?>
26 <a href="home/course/course_property.php"><?php echo htmlentities(_AT('course_wizard')); ?></a><br /><br />
30 <?php echo _AT('create_course_2'); ?>
33 <label for="to_file"><?php echo _AT('upload_content_package'); ?></label>
34 <input type="file" name="file" id="to_file" />
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" />
43 <input type="checkbox" name="ignore_validation" id="ignore_validation" value="1" />
44 <label for="ignore_validation"><?php echo _AT('ignore_validation'); ?></label> <br />
48 <input type="checkbox" name="hide_course" id="hide_course" value="1" /><label for="hide_course"><?php echo _AT('hide_course'); ?></label>
51 <tr align="center"><td>
52 <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
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");