categories_list.php 920 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * View (MVC patter) for creating course category
  5. * @author Christian Fasanando <christian1827@gmail.com> - Beeznest
  6. * @package chamilo.auth
  7. */
  8. // Acces rights: anonymous users can't do anything usefull here.
  9. api_block_anonymous_users();
  10. $stok = Security::get_token();
  11. ?>
  12. <!-- Actions: The menu with the different options in cathe course management -->
  13. <div id="actions" class="actions">
  14. <a href="<?php echo api_get_self() ?>?action=sortmycourses">
  15. <?php echo Display::return_icon('back.png', get_lang('Back'), '', '32'); ?>
  16. </a>
  17. </div>
  18. <?php
  19. $form = new FormValidator(
  20. 'create_course_category',
  21. 'post',
  22. api_get_self().'?createcoursecategory'
  23. );
  24. $form->addHidden('sec_token', $stok);
  25. $form->addText('title_course_category', get_lang('Name'));
  26. $form->addButtonSave(get_lang('AddCategory'), 'create_course_category');
  27. $form->display();