5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
79 $next_class = $ilCtrl->getNextClass();
80 $cmd = $ilCtrl->getCmd(
"getHTML");
104 include_once(
"Services/Notes/classes/class.ilNote.php");
109 $this->
setRowTemplate(
"tpl.pd_notes_overview.html",
"Services/Notes");
117 if (count($this->notes) == 0)
135 foreach($this->notes as $note)
137 switch ($note->getLabel())
141 $alt = $lng->txt(
"note");
146 $alt = $lng->txt(
"note").
", ".$lng->txt(
"important");
151 $alt = $lng->txt(
"note").
", ".$lng->txt(
"question");
156 $alt = $lng->txt(
"note").
", ".$lng->txt(
"pro");
161 $alt = $lng->txt(
"note").
", ".$lng->txt(
"contra");
166 $target = $note->getObject();
169 "subject" => $note->getSubject(),
173 "date" => $note->getCreationDate(),
174 "id" => $note->getId(),
175 "obj_type" => $target[
"obj_type"],
176 "obj_id" => $target[
"obj_id"],
177 "rep_obj_id" => $target[
"rep_obj_id"]);
190 include_once(
"Services/Notes/classes/class.ilNoteGUI.php");
191 if (!is_object($this->note_gui))
194 $this->note_gui->enableTargets();
203 $this->tpl->setVariable(
"VAL_SUBJECT", $a_set[
"subject"]);
207 $ilCtrl->setParameter($this,
"rel_obj", $a_set[
"rep_obj_id"]);
208 $ilCtrl->setParameter($this,
"note_id", $a_set[
"id"]);
210 $this->tpl->setVariable(
"HREF_SHOW_NOTE",
211 $ilCtrl->getLinkTarget($this,
"showNote"));
212 $this->tpl->setVariable(
"IMG_NOTE", $a_set[
"img"]);
213 $this->tpl->setVariable(
"ALT_NOTE", $a_set[
"alt"]);
214 $ilCtrl->clearParameters($this);
219 $this->tpl->setCurrentBlock(
"details");
220 $this->tpl->setVariable(
"NOTE_TEXT", $a_set[
"text"]);
221 $this->tpl->setVariable(
"VAL_DATE",
223 $this->tpl->parseCurrentBlock();
226 $this->note_gui->showTargets($this->tpl, $a_set[
"rep_obj_id"], $a_set[
"id"],
227 $a_set[
"obj_type"], $a_set[
"obj_id"]);
230 $this->tpl->setCurrentBlock(
"edit_note");
231 $this->tpl->setVariable(
"TXT_EDIT_NOTE", $lng->txt(
"edit"));
232 $ilCtrl->setParameterByClass(
"ilnotegui",
"rel_obj", $a_set[
"rep_obj_id"]);
233 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_id", $a_set[
"id"]);
234 $ilCtrl->setParameterByClass(
"ilnotegui",
"note_type",
IL_NOTE_PRIVATE);
235 $this->tpl->setVariable(
"LINK_EDIT_NOTE",
236 $ilCtrl->getLinkTargetByClass(array(
"ilpersonaldesktopgui",
"ilpdnotesgui",
"ilnotegui"),
"editNoteForm")
238 $this->tpl->parseCurrentBlock();
240 $ilCtrl->clearParametersByClass(
"ilnotegui");
250 return '<div class="small">'.((int) count($this->notes)).
" ".$lng->txt(
"notes").
"</div>";
260 include_once(
"./Services/Notes/classes/class.ilNoteGUI.php");
263 include_once(
"./Services/PersonalDesktop/classes/class.ilPDContentBlockGUI.php");
265 $content_block->setContent(
$note_gui->getPDNoteHTML(
$_GET[
"note_id"]));
266 $content_block->setTitle($lng->txt(
"note"));
267 $content_block->setColSpan(2);
269 $content_block->addHeaderCommand($ilCtrl->getLinkTargetByClass(
"ilpersonaldesktopgui",
"show"),
270 $lng->txt(
"selected_items_back"));
272 return $content_block->getHTML();