|
|
@ -114,35 +114,33 @@ if (-1 == $current_access_url_id) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// action menu |
|
|
|
$actions = Display::url( |
|
|
|
echo '<div class="actions">'; |
|
|
|
|
|
|
|
echo Display::url( |
|
|
|
|
|
|
|
Display::return_icon('new_link.png', get_lang('Add URL'), [], ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('new_link.png', get_lang('Add URL'), [], ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit.php' |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit.php' |
|
|
|
); |
|
|
|
); |
|
|
|
echo Display::url( |
|
|
|
$actions .= Display::url( |
|
|
|
Display::return_icon('user.png', get_lang('Manage users'), [], ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('user.png', get_lang('Manage users'), [], ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_users_to_url.php' |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_users_to_url.php' |
|
|
|
); |
|
|
|
); |
|
|
|
echo Display::url( |
|
|
|
$actions .= Display::url( |
|
|
|
Display::return_icon('course.png', get_lang('Manage courses'), [], ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('course.png', get_lang('Manage courses'), [], ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_courses_to_url.php' |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_courses_to_url.php' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$userGroup = new UserGroup(); |
|
|
|
$userGroup = new UserGroup(); |
|
|
|
if ($userGroup->getUseMultipleUrl()) { |
|
|
|
if ($userGroup->getUseMultipleUrl()) { |
|
|
|
echo Display::url( |
|
|
|
$actions .= Display::url( |
|
|
|
Display::return_icon('class.png', get_lang('Manage user groups'), [], ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('class.png', get_lang('Manage user groups'), [], ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_usergroup_to_url.php' |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_usergroup_to_url.php' |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
echo Display::url( |
|
|
|
$actions .= Display::url( |
|
|
|
Display::return_icon('folder.png', get_lang('Manage course categories'), [], ICON_SIZE_MEDIUM), |
|
|
|
Display::return_icon('folder.png', get_lang('Manage course categories'), [], ICON_SIZE_MEDIUM), |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_course_category_to_url.php' |
|
|
|
api_get_path(WEB_CODE_PATH).'admin/access_url_edit_course_category_to_url.php' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
echo Display::toolbarAction('urls', [$actions]); |
|
|
|
|
|
|
|
|
|
|
|
$data = UrlManager::get_url_data(); |
|
|
|
$data = UrlManager::get_url_data(); |
|
|
|
$urls = []; |
|
|
|
$urls = []; |
|
|
|