63 $this->ctrl->saveParameter($this,
"rel_obj");
71 $next_class = $this->ctrl->getNextClass();
81 $cmd = $this->ctrl->getCmd(
"view");
86 $this->tpl->show(
true);
96 $this->lng->txt(
"personal_desktop"));
97 $this->tpl->setTitle($this->lng->txt(
"personal_desktop"));
129 global $ilUser,
$lng;
132 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
135 include_once(
"Services/Notes/classes/class.ilNote.php");
138 if (
$_GET[
"rel_obj"] > 0)
145 $notes_gui =
new ilNoteGUI(0, $ilUser->getId(),
"pd");
149 $notes_gui->enablePublicNotes(
false);
150 $notes_gui->enableHiding(
false);
151 $notes_gui->enableTargets(
true);
152 $notes_gui->enableMultiSelection(
true);
154 $next_class = $this->ctrl->getNextClass($this);
156 if ($next_class ==
"ilnotegui")
158 $html = $this->ctrl->forwardCommand($notes_gui);
162 $html = $notes_gui->getNotesHTML();
165 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.pd_notes.html",
"Services/Notes");
167 if (count($rel_objs) > 1 ||
168 ($rel_objs[0][
"rep_obj_id"] > 0))
171 if ($rel_objs[0][
"rep_obj_id"] > 0)
173 $rel_objs = array_merge(array(0), $rel_objs);
176 foreach($rel_objs as $obj)
178 $this->tpl->setCurrentBlock(
"related_option");
179 $this->tpl->setVariable(
"VAL_RELATED",
182 if ($obj[
"rep_obj_id"] > 0)
185 $type_str = (in_array($type, array(
"lm",
"htlm",
"sahs",
"dbk")))
186 ? $lng->txt(
"learning_resource")
187 : $lng->txt(
"obj_".$type);
188 $this->tpl->setVariable(
"TXT_RELATED", $type_str.
": ".
193 $this->tpl->setVariable(
"TXT_RELATED",
194 $lng->txt(
"personal_desktop"));
196 if ($obj[
"rep_obj_id"] ==
$_GET[
"rel_obj"])
198 $this->tpl->setVariable(
"SEL",
'selected="selected"');
200 $this->tpl->parseCurrentBlock();
203 $this->tpl->setCurrentBlock(
"related_selection");
204 $this->tpl->setVariable(
"TXT_CHANGE", $lng->txt(
"change"));
205 $this->tpl->setVariable(
"TXT_RELATED_TO", $lng->txt(
"related_to"));
206 $this->tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this));
207 $this->tpl->parseCurrentBlock();
210 $this->tpl->setCurrentBlock(
"adm_content");
212 $this->tpl->setVariable(
"NOTES", $html);
213 $this->tpl->parseCurrentBlock();
222 $this->ctrl->setParameter($this,
"rel_obj", $_POST[
"rel_obj"]);
223 $this->ctrl->redirect($this);