AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / themes / default / home / course / course_property.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 $languageManager;
14 require_once(TR_INCLUDE_PATH.'classes/CoursesUtility.class.php');
15 ?>
16
17 <form method="post" action="<?php echo $_SERVER['PHP_SELF'].'?_course_id='.$this->course_id; ?>" name="form">
18 <input type="hidden" name="_course_id" value="<?php echo $this->course_id; ?>" />
19
20 <div class="input-form">
21 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_property'); ?></legend>
22
23         <table class="form-data" align="center">
24                 <tr>
25                         <td colspan="2" align="left"><br/><?php echo _AT('required_field_text') ;?></td>
26                 </tr>
27
28                 <tr>
29                         <td align="left"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
30                         <label for="title"><?php echo _AT('title'); ?></label>:</td>
31                         <td align="left"><input id="title" name="title" type="text" maxlength="255" size="45" value="<?php if (isset($_POST['login'])) echo stripslashes(htmlspecialchars($_POST['title'])); else echo stripslashes(htmlspecialchars($this->course_row['title'])); ?>" /></td>
32                 </tr>
33
34                 <tr>
35                         <td align="left"><label for="category"><?php  echo _AT('category_name'); ?></label></td>
36                         <td align="left">
37                         <select name="category_id" id="category">
38                                 <?php if (isset($_POST['category_id'])) $category_id = $_POST['category_id'];
39                                       else $category_id = $this->course_row['category_id'];
40                                       CoursesUtility::printCourseCatsInDropDown($category_id); ?>
41                         </select>
42                         </td>
43                 </tr>
44
45                 <tr>
46                         <td align="left"><label for="pri_lang"><?php  echo _AT('primary_language'); ?></label></td>
47                         <td align="left"><?php $languageManager->printDropdown($this->course_row['primary_language'], 'pri_lang', 'pri_lang'); ?></td>
48                 </tr>
49
50                 <tr>
51                         <td align="left"><label for="description"><?php echo _AT('description'); ?></label></td>
52                         <td align="left"><textarea id="description" cols="45" rows="2" name="description"><?php if (isset($_POST['description'])) echo stripslashes(htmlspecialchars($_POST['description'])); else echo stripslashes(htmlspecialchars($this->course_row['description'])); ?></textarea></td>
53                 </tr>
54                 
55                 <tr>
56                         <td align="left"><label for="copyright"><?php echo _AT('course_copyright'); ?></label></td>
57                         <td align="left"><textarea name="copyright" rows="2" cols="65" id="copyright"><?php if (isset($_POST['copyright'])) echo stripslashes(htmlspecialchars($_POST['copyright'])); else echo stripslashes(htmlspecialchars($this->course_row['copyright'])); ?></textarea></td>
58                 </tr>
59
60                 <tr>
61                         <td colspan="2" align="left">
62                           <input type="checkbox" name="hide_course" id="hide_course" value="1" <?php if ($this->course_row['access']=='private') echo "checked"; ?> />
63                           <label for="hide_course"><?php echo _AT('hide_course'); ?></label>
64                         </td>
65                 </tr>
66
67                 <tr>
68                         <td colspan="2">
69                         <p class="submit_button">
70                                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" class="submit" /> 
71                                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" class="submit" />
72                         </p>
73                         </td>
74                 </tr>
75         </table>
76
77 </fieldset>
78 </div>
79 </form>