97 $exercise_id = $ass->getExerciseId();
104 $times_up = $ass->afterDeadlineStrict();
107 include_once
"./Services/Link/classes/class.ilLink.php";
111 $info = sprintf($lng->txt(
"blog_exercise_info"),
113 "<a href=\"".$exc_link.
"\">".
119 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass", $a_assignment_id);
120 $submit_link = $ilCtrl->getLinkTargetByClass(
"ilblogexercisegui",
"finalize");
121 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass",
"");
123 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
125 $button->setCaption(
"blog_finalize_blog");
126 $button->setPrimary(
true);
127 $button->setUrl($submit_link);
128 $info .=
" ".$button->render();
132 include_once
"Modules/Exercise/classes/class.ilExSubmission.php";
134 if($submission->hasSubmitted())
139 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass", $a_assignment_id);
140 $dl_link = $ilCtrl->getLinkTargetByClass(
"ilblogexercisegui",
"downloadExcSubFile");
141 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass",
"");
146 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
148 $button->setCaption(
"download");
149 $button->setUrl($dl_link);
151 $info .=
"<br />".sprintf($lng->txt(
"blog_exercise_submitted_info"),
163 $inst = $ass->getInstruction();
166 $tooltip .= nl2br($inst);
169 $ass_files = $ass->getFiles();
170 if (count($ass_files) > 0)
172 $tooltip .=
"<br /><br />";
174 foreach($ass_files as
$file)
176 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass", $a_assignment_id);
177 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"file", urlencode($file[
"name"]));
178 $dl_link = $ilCtrl->getLinkTargetByClass(
"ilblogexercisegui",
"downloadExcAssFile");
179 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"file",
"");
180 $ilCtrl->setParameterByClass(
"ilblogexercisegui",
"ass",
"");
182 $tooltip .= $file[
"name"].
": <a href=\"".$dl_link.
"\">".
183 $lng->txt(
"download").
"</a>";
189 $ol_id =
"exc_ass_".$a_assignment_id;
191 include_once
"Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php";
195 $overlay->setAnchor($ol_id.
"_tr");
196 $overlay->setTrigger($ol_id.
"_tr",
"click", $ol_id.
"_tr");
199 $info .=
"<div id=\"".$ol_id.
"_tr\"><a href=\"#\">".$lng->txt(
"exc_instruction").
"</a></div>".
200 "<div id=\"".$ol_id.
"\" style=\"display:none; padding:10px;\" class=\"ilOverlay\">".$tooltip.
"</div>";
203 return "<div>".$info.
"</div>";
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static setUseRelativeDates($a_status)
set use relative dates
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
static useRelativeDates()
check if relative dates are used
This is a utility class for the yui overlays.
static formatDate(ilDateTime $date)
Format a date public.