6 include_once
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
7 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
8 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
9 include_once
'Services/Search/classes/class.ilUserFilterGUI.php';
45 $this->ctrl->setReturn($this,
"");
47 switch($this->ctrl->getNextClass())
49 case 'iltruserobjectspropstablegui':
50 $user_id = (int)
$_GET[
"user_id"];
51 $this->ctrl->setParameter($this,
"user_id", $user_id);
53 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
55 include_once(
"./Services/Tracking/classes/class.ilTrUserObjectsPropsTableGUI.php");
57 $user_id, $this->details_obj_id, $this->details_id);
58 $this->ctrl->forwardCommand($table_gui);
61 case 'iltrsummarytablegui':
62 $cmd =
"showObjectSummary";
63 if(!$this->details_id)
65 $this->details_id = ROOT_FOLDER_ID;
68 include_once
'./Services/Tracking/classes/class.ilTrSummaryTableGUI.php';
70 $this->ctrl->forwardCommand($table_gui);
73 case 'iltrmatrixtablegui':
74 include_once
'./Services/Tracking/classes/class.ilTrMatrixTableGUI.php';
76 $this->ctrl->forwardCommand($table_gui);
79 case 'iltrobjectuserspropstablegui':
80 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
82 include_once
'./Services/Tracking/classes/class.ilTrObjectUsersPropsTableGUI.php';
84 $this->ctrl->forwardCommand($table_gui);
97 if(isset(
$_GET[
"userdetails_id"]))
106 if(!isset(
$_GET[
"userdetails_id"]))
119 global $ilObjDataCache;
122 if(isset(
$_GET[
"userdetails_id"]))
126 $cancel =
"userdetails";
134 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
136 $info->setFormAction($this->ctrl->getFormAction($this));
141 $this->tpl->setVariable(
"ADM_CONTENT", $this->
__showEditUser((
int)$_GET[
'user_id'], $parent_id, $cancel, $sub_id).
"<br />".$info->getHTML());
148 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
155 $this->
__showButton($this->ctrl->getLinkTarget($this,
'show'),$this->lng->txt(
'trac_view_list'));
159 $print_view = (bool)
$_GET[
'prt'];
162 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
163 $this->ctrl->setParameter($this,
'prt', 1);
164 $ilToolbar->addButton($this->lng->txt(
'print_view'),$this->ctrl->getLinkTarget($this,
'details'),
'_blank');
165 $this->ctrl->setParameter($this,
'prt',
'');
169 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
171 $info->setFormAction($this->ctrl->getFormAction($this));
174 $this->tpl->setCurrentBlock(
"info");
175 $this->tpl->setVariable(
"INFO_TABLE",$info->getHTML());
176 $this->tpl->parseCurrentBlock();
190 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
192 include_once
"Services/Tracking/classes/class.ilTrObjectUsersPropsTableGUI.php";
195 $this->tpl->setVariable(
"LP_OBJECTS", $gui->getHTML());
200 echo $this->tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
207 global $ilObjDataCache, $ilToolbar;
215 $this->ctrl->setParameter($this,
"details_id", $this->details_id);
217 $print_view = (bool)
$_GET[
'prt'];
221 $ilToolbar->addButton($this->lng->txt(
'trac_view_list'), $this->ctrl->getLinkTarget($this,
'details'));
224 $user_id = (int)
$_GET[
"user_id"];
225 $this->ctrl->setParameter($this,
"user_id", $user_id);
229 $this->ctrl->setParameter($this,
'prt', 1);
230 $ilToolbar->addButton($this->lng->txt(
'print_view'),$this->ctrl->getLinkTarget($this,
'userDetails'),
'_blank');
231 $this->ctrl->setParameter($this,
'prt',
'');
234 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
236 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
238 $info->setFormAction($this->ctrl->getFormAction($this));
242 $this->tpl->setVariable(
"INFO_TABLE",$info->getHTML());
244 include_once(
"./Services/Tracking/classes/class.ilTrUserObjectsPropsTableGUI.php");
246 $this->details_obj_id, $this->details_id, $print_view);
247 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());
252 echo $this->tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
260 $this->ctrl->saveParameter($this,
'offset',0);
276 global
$ilUser,$ilObjDataCache;
278 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_list_objects.html',
'Services/Tracking');
280 include_once(
"./Services/Tracking/classes/class.ilTrSummaryTableGUI.php");
283 $this->tpl->setVariable(
"LP_OBJECTS", $lp_table->getHTML());
289 global $ilObjDataCache;
297 $_GET[
'details_id'] = $a_details_id;
298 $this->details_id = $a_details_id;
299 $this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
300 $this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
310 global
$tpl, $ilToolbar;
312 $print_view = (bool)
$_GET[
'prt'];
315 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
316 $this->ctrl->setParameter($this,
'prt', 1);
317 $ilToolbar->addButton($this->lng->txt(
'print_view'),$this->ctrl->getLinkTarget($this,
'showObjectSummary'),
'_blank');
318 $this->ctrl->setParameter($this,
'prt',
'');
321 include_once(
"./Services/Tracking/classes/class.ilTrSummaryTableGUI.php");
325 $tpl->setContent($table->getHTML());
329 $tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
330 echo $tpl->get(
"DEFAULT",
false,
false,
false,
false,
false,
false);
349 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.lp_loo.html',
'Services/Tracking');
351 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
353 $info->setFormAction($this->ctrl->getFormAction($this));
356 $this->tpl->setCurrentBlock(
"info");
357 $this->tpl->setVariable(
"INFO_TABLE",$info->getHTML());
358 $this->tpl->parseCurrentBlock();
361 include_once(
"./Services/Tracking/classes/class.ilTrMatrixTableGUI.php");
363 $this->tpl->setVariable(
'LP_OBJECTS', $table->getHTML());