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.
35 lines
1.0 KiB
35 lines
1.0 KiB
13 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
|
||
|
$cidReset = true;
|
||
13 years ago
|
|
||
8 years ago
|
require_once __DIR__.'/../inc/global.inc.php';
|
||
13 years ago
|
|
||
13 years ago
|
$this_section = SECTION_PLATFORM_ADMIN;
|
||
|
|
||
13 years ago
|
api_protect_admin_script();
|
||
4 years ago
|
SkillModel::isAllowed();
|
||
13 years ago
|
|
||
13 years ago
|
//Adds the JS needed to use the jqgrid
|
||
|
$htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js');
|
||
9 years ago
|
$htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js');
|
||
13 years ago
|
$htmlHeadXtra[] = api_get_js('skills.js');
|
||
13 years ago
|
|
||
4 years ago
|
$skill = new SkillModel();
|
||
8 years ago
|
$type = 'edit'; //edit
|
||
7 years ago
|
$tree = $skill->getSkillsTree(null, null, true);
|
||
13 years ago
|
$skill_visualizer = new SkillVisualizer($tree, $type);
|
||
|
|
||
13 years ago
|
$html = $skill_visualizer->return_html();
|
||
8 years ago
|
$url = api_get_path(WEB_AJAX_PATH).'skill.ajax.php?1=1';
|
||
13 years ago
|
|
||
13 years ago
|
$tpl = new Template(null, false, false);
|
||
|
$tpl->assign('url', $url);
|
||
|
$tpl->assign('html', $html);
|
||
|
$tpl->assign('skill_visualizer', $skill_visualizer);
|
||
|
$tpl->assign('js', $skill_visualizer->return_js());
|
||
8 years ago
|
$templateName = $tpl->get_template('skill/skill_tree.tpl');
|
||
|
$content = $tpl->fetch($templateName);
|
||
13 years ago
|
$tpl->assign('content', $content);
|
||
10 years ago
|
$tpl->display_no_layout_template();
|