|
|
|
@ -16,39 +16,17 @@ $stok = Security::get_token(); |
|
|
|
|
|
|
|
|
|
<!-- Actions: The menu with the different options in cathe course management --> |
|
|
|
|
<div id="actions" class="actions"> |
|
|
|
|
<?php if ($action != 'subscribe') { ?> |
|
|
|
|
<a href="<?php echo api_get_self() ?>?action=subscribe"><?php echo Display::return_icon('subscribe_course.png', get_lang('SubscribeToCourse'),'','32'); ?></a>
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
<?php if ($action != 'sortmycourses' && isset($action)) { ?> |
|
|
|
|
<a href="<?php echo api_get_self() ?>?action=sortmycourses"><?php echo Display::return_icon('course_move.png', get_lang('SortMyCourses'),'','32'); ?></a>
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
<?php if ($action != 'createcoursecategory') { ?> |
|
|
|
|
<a href="<?php echo api_get_self() ?>?action=createcoursecategory"><?php echo Display::return_icon('new_folder.png', get_lang('CreateCourseCategory'),'','32'); ?></a>
|
|
|
|
|
<?php } ?> |
|
|
|
|
|
|
|
|
|
<a href="<?php echo api_get_self() ?>?action=sortmycourses"><?php echo Display::return_icon('back.png', get_lang('Back'),'','32'); ?></a>
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
if (!empty($message)) { Display::display_confirmation_message($message, false); } |
|
|
|
|
if (!empty($error)) { Display::display_error_message($error, false); } |
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
<form name="create_course_category" method="post" action="<?php echo api_get_self() ?>?action=createcoursecategory">
|
|
|
|
|
<input type="hidden" name="sec_token" value="<?php echo $stok ?>">
|
|
|
|
|
<input type="text" name="title_course_category" /> |
|
|
|
|
<button type="submit" class="save" name="create_course_category"><?php echo get_lang('Ok') ?></button>
|
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
echo get_lang('ExistingCourseCategories'); |
|
|
|
|
|
|
|
|
|
if (!empty($user_course_categories)) { |
|
|
|
|
?> |
|
|
|
|
<ul> |
|
|
|
|
<?php foreach ($user_course_categories as $row) { ?> |
|
|
|
|
<li><?php echo $row['title'] ?></li>
|
|
|
|
|
<?php } ?> |
|
|
|
|
</ul> |
|
|
|
|
<?php } ?> |
|
|
|
|
<button type="submit" class="save" name="create_course_category"><?php echo get_lang('AddCategory') ?></button>
|
|
|
|
|
</form> |