Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/main/admin/resource_sequence.php

32 lines
939 B

<?php
/* For licensing terms, see /chamilo_license.txt */
$cidReset = true;
require_once '../inc/global.inc.php';
$tpl = new Template(get_lang('ResourceSequencing'));
$layout = $tpl->get_template('admin/resource_sequence.tpl');
$form = new FormValidator('');
$sessionList = SessionManager::get_sessions_list();
if (!empty($sessionList)) {
//$sessionList[] = ['name' => get_lang('PleaseSelect'), 'id' => 0];
$sessionList = array_column($sessionList, 'name', 'id');
}
$form->addHidden('sequence_type', 'session');
$form->addSelect(
'sessions',
get_lang('Sessions'),
$sessionList,
['id' => 'item', 'multiple' => 'multiple']
);
$form->addButtonNext(get_lang('UseAsReference'), 'use_as_reference');
$form->addButtonCreate(get_lang('SetAsRequirementForSelected'), 'set_requirement');
$form->addButtonSave(get_lang('Save'), 'save_resource');
$tpl->assign('left_block', $form->returnForm());
$tpl->display($layout);