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 $languageManager;
14 require_once(TR_INCLUDE_PATH.'classes/CoursesUtility.class.php');
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; ?>" />
20 <div class="input-form">
21 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_property'); ?></legend>
23 <table class="form-data" align="center">
25 <td colspan="2" align="left"><br/><?php echo _AT('required_field_text') ;?></td>
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>
35 <td align="left"><label for="category"><?php echo _AT('category_name'); ?></label></td>
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); ?>
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>
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>
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>
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>
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" />