5 require_once
"classes/class.ilObjectGUI.php";
29 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
31 $lng->loadLanguageModule(
"exercise");
32 $this->ctrl->saveParameter($this, array(
"sort_by",
"sort_order",
"offset"));
37 return $this->files ? $this->files : array();
42 $this->files = $a_files;
55 $this->tpl->setVariable(
"EDIT_FORM", $this->form_gui->getHtml());
64 global $rbacsystem,$ilUser;
66 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
70 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
76 if (!$rbacsystem->checkAccess(
"read", $this->ref_id))
78 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
82 $this->tpl->setVariable(
"FORM_DOWNLOAD_ACTION", $this->ctrl->getFormAction($this,
"downloadFile"));
83 $this->tpl->setVariable(
"TITLE_TXT",$this->lng->txt(
"title"));
84 $this->tpl->setVariable(
"TITLE",$this->object->getTitle());
85 $this->tpl->setVariable(
"TXT_HEADER",$this->lng->txt(
"exc_details"));
86 $this->tpl->setVariable(
"DESCRIPTION_TXT",$this->lng->txt(
"description"));
87 $this->tpl->setVariable(
"DESCRIPTION",$this->object->getDescription());
88 $this->tpl->setVariable(
"INSTRUCTION_TXT",$this->lng->txt(
"exc_instruction"));
89 $this->tpl->setVariable(
"INSTRUCTION",nl2br($this->object->getInstruction()));
90 $this->tpl->setVariable(
"EDIT_UNTIL_TXT",$this->lng->txt(
"exc_edit_until"));
91 $this->tpl->setVariable(
"EDIT_UNTIL",date(
"H:i, d.m.Y",$this->object->getTimestamp()));
92 $this->tpl->setVariable(
"TIME_TO_SEND_TXT",$this->lng->txt(
"exc_time_to_send"));
94 if ($this->object->getTimestamp()-time() <= 0)
96 $this->tpl->setCurrentBlock(
"TIME_REACHED");
97 $this->tpl->setVariable(
"TIME_TO_SEND",$this->lng->txt(
"exc_time_over_short"));
98 $this->tpl->parseCurrentBlock();
103 $this->tpl->setCurrentBlock(
"TIME_NOT_REACHED");
104 $this->tpl->setVariable(
"TIME_TO_SEND",$timestr);
105 $this->tpl->parseCurrentBlock();
109 foreach($this->object->getFiles() as
$file)
111 $this->tpl->setCurrentBlock(
"FILES_ROW");
112 $this->tpl->setVariable(
"FILE_DATA",
$file[
"name"]);
114 $this->tpl->parseCurrentBlock();
120 $this->tpl->setCurrentBlock(
"FILES");
121 $this->tpl->setVariable(
"FILES_TXT",$this->lng->txt(
"exc_files"));
122 $this->tpl->setVariable(
"TXT_DOWNLOAD",$this->lng->txt(
"download"));
124 $this->tpl->parseCurrentBlock();
127 $this->tpl->setCurrentBlock(
"perma_link");
128 $this->tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
130 $this->object->getType().
131 "_".$this->object->getRefId().
"&client_id=".CLIENT_ID);
132 $this->tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
133 $this->tpl->setVariable(
"PERMA_TARGET",
"_top");
134 $this->tpl->parseCurrentBlock();
150 if (count(
$_POST[
"delivered"]))
152 $this->
object->members_obj->downloadSelectedFiles(
$_POST[
"delivered"],$ilUser->getId());
158 $ilCtrl->redirect($this,
"deliver");
174 if (mktime() > $this->object->getTimestamp())
177 $ilCtrl->redirect($this,
"deliver");
180 if (count(
$_POST[
"delivered"]) && mktime() < $this->object->getTimestamp())
182 $this->
object->deleteDeliveredFiles(
$_POST[
"delivered"], $ilUser->id);
188 $ilCtrl->redirect($this,
"deliver");
199 require_once
"./Services/Utilities/classes/class.ilUtil.php";
203 $this->tabs_gui->setTabActive(
"exc_your_submission");
205 if (mktime() > $this->object->getTimestamp())
212 include_once(
"./Modules/Exercise/classes/class.ilExcDeliveredFilesTableGUI.php");
214 $this->tpl->setVariable(
"DELIVERED_FILES_TABLE",
$tab->getHTML());
216 if (mktime() < $this->
object->getTimestamp())
219 $this->tpl->setVariable(
"UPLOAD_SINGLE_FORM", $this->form->getHTML());
222 $this->tpl->setVariable(
"UPLOAD_MULTI_FORM", $this->form->getHTML());
233 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
237 include_once(
"./Services/Form/classes/class.ilFileWizardInputGUI.php");
241 $this->form->addItem($fi);
243 $this->form->addCommandButton(
"deliverFile", $lng->txt(
"upload"));
245 $this->form->setTitle($lng->txt(
"file_add"));
246 $this->form->setFormAction($ilCtrl->getFormAction($this));
256 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
260 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
263 $this->form->addItem($fi);
265 $this->form->addCommandButton(
"deliverUnzip", $lng->txt(
"upload"));
267 $this->form->setTitle($lng->txt(
"header_zip"));
268 $this->form->setFormAction($ilCtrl->getFormAction($this));
278 foreach ($_FILES[
"deliver"][
"name"] as $k => $v)
281 "name" => $_FILES[
"deliver"][
"name"][$k],
282 "type" => $_FILES[
"deliver"][
"type"][$k],
283 "tmp_name" => $_FILES[
"deliver"][
"tmp_name"][$k],
284 "error" => $_FILES[
"deliver"][
"error"][$k],
285 "size" => $_FILES[
"deliver"][
"size"][$k],
287 if(!$this->object->deliverFile(
$file, $ilUser->id))
293 $ilCtrl->redirect($this,
"deliver");
305 if (preg_match(
"/zip/",$_FILES[
"deliver"][
"type"]) == 1)
307 $this->
object->processUploadedFile($_FILES[
"deliver"][
"tmp_name"],
"deliverFile",
false);
310 $ilCtrl->redirect($this,
"deliver");
330 $this->ctrl->redirect($this,
"view");
332 $files = $this->
object->getFiles();
335 foreach($this->object->getFiles() as $lfile)
337 if($lfile[
"name"] == urldecode(
$file))
345 echo
"FILE DOES NOT EXIST";
364 if ($this->form_gui->checkInput())
374 $newObj->setTitle($this->form_gui->getInput(
"title"));
375 $newObj->setDescription($this->form_gui->getInput(
"desc"));
376 $newObj->setInstruction($this->form_gui->getInput(
"instruction"));
378 $this->form_gui->getItemByPostVar(
"edit_date")->getDate();
379 $newObj->setTimestamp($edit_date->get(
IL_CAL_UNIX));
386 ilUtil::redirect(
"ilias.php?baseClass=ilExerciseHandlerGUI&ref_id=".$newObj->getRefId().
"&cmd=edit");
390 $this->form_gui->setValuesByPost();
397 global $rbacsystem,
$tpl;
406 $this->tpl->setVariable(
"EDIT_FORM", $this->form_gui->getHtml());
408 $this->tpl->setCurrentBlock(
"FILES");
409 $this->tpl->setVariable(
"TXT_HEADER_FILE",$this->lng->txt(
"file_add"));
410 $this->tpl->setVariable(
"TXT_FILE",$this->lng->txt(
"file"));
411 $this->tpl->setVariable(
"TXT_UPLOAD",$this->lng->txt(
"upload"));
412 $this->tpl->setVariable(
"FORMACTION_FILE", $this->ctrl->getFormAction($this));
413 $this->tpl->setVariable(
"TXT_HEADER_ZIP", $this->lng->txt(
"header_zip"));
414 $this->tpl->setVariable(
"CMD_FILE_SUBMIT",
"uploadFile");
415 $this->tpl->parseCurrentBlock();
428 $lng->loadLanguageModule(
"form");
429 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
431 $this->form_gui->setTableWidth(
"60%");
432 if ($a_mode ==
"edit")
434 $this->form_gui->setTitle($lng->txt(
"exc_edit_exercise"));
438 $this->form_gui->setTitle($lng->txt(
"exc_new"));
441 $this->form_gui->setFormAction($ilCtrl->getFormAction($this));
445 if ($a_mode ==
"create")
448 $type_input->setValue(
"exc");
449 $this->form_gui->addItem($type_input);
455 $title_input->setMaxLength(128);
456 $this->form_gui->addItem($title_input);
460 $this->form_gui->addItem($desc_input);
464 $this->form_gui->addItem($desc_input);
471 $this->form_gui->addItem($edit_date);
474 if ($a_mode ==
"edit")
476 if(count(
$files = $this->object->getFiles()))
480 $files_head->setTitle($lng->txt(
"files"));
481 $this->form_gui->addItem($files_head);
489 $file_cb->setValue($file[
"name"]);
490 $this->form_gui->addItem($file_cb);
496 if ($a_mode ==
"create")
498 $this->form_gui->addCommandButton(
"save", $lng->txt(
"save"));
499 $this->form_gui->addCommandButton(
"cancel", $lng->txt(
"cancel"));
503 $this->form_gui->addCommandButton(
"update", $lng->txt(
"save"));
504 $this->form_gui->addCommandButton(
"cancelEdit", $lng->txt(
"cancel"));
513 $values[
"title"] = $this->
object->getTitle();
514 $values[
"desc"] = $this->
object->getLongDescription();
515 $values[
"instruction"] = $this->
object->getInstruction();
516 $this->form_gui->setValuesByArray($values);
520 $ed_item = $this->form_gui->getItemByPostVar(
"edit_date");
529 global $rbacsystem,
$tpl;
534 if ($this->form_gui->checkInput())
536 $this->
object->setTitle($this->form_gui->getInput(
"title"));
537 $this->
object->setDescription($this->form_gui->getInput(
"desc"));
538 $this->
object->setInstruction($this->form_gui->getInput(
"instruction"));
540 $this->form_gui->getItemByPostVar(
"edit_date")->getDate();
541 $this->
object->setTimestamp($edit_date->get(
IL_CAL_UNIX));
544 $del_files = array();
545 foreach (
$_POST as $k => $v)
547 if (substr($k, 0, 12) ==
"delete_file_" && $v !=
"")
553 $this->
object->deleteFiles($del_files);
555 $this->
object->update();
558 $this->ctrl->redirect($this,
"edit");
562 $this->form_gui->setValuesByPost();
563 $tpl->setContent($this->form_gui->getHTML());
573 $this->
object->deleteFiles(
$_POST[
"delete_file"]);
578 $this->update = $this->
object->update();
582 $this->ctrl->redirect($this,
"edit");
587 $this->ctrl->redirect($this,
"view");
596 if(!$this->object->addUploadedFile($_FILES[
"zipfile"],
true))
600 $this->ctrl->redirect($this,
"edit");
610 if(!$this->object->addUploadedFile($_FILES[
"file"]))
614 $this->ctrl->redirect($this,
"edit");
627 if (
$_POST[
"downloadReturned"])
629 $this->
object->members_obj->deliverReturnedFiles(key(
$_POST[
"downloadReturned"]));
644 case "redirectFeedbackMail":
648 case "delete_member":
662 if (!$this->object->members_obj->deliverReturnedFiles(
$_GET[
"member_id"]))
664 $this->ctrl->redirect($this,
"members");
676 if (!$this->object->members_obj->deliverReturnedFiles(
$_GET[
"member_id"],
true))
678 $this->ctrl->redirect($this,
"members");
688 if(!count(
$_POST[
'user']))
694 if(!$this->object->members_obj->assignMembers(
$_POST[
"user"]))
703 $this->ctrl->redirect($this,
"members");
712 include_once
'Services/Tracking/classes/class.ilLPMarks.php';
717 $this->tpl->addBlockfile(
"BUTTONS",
"buttons",
"tpl.buttons.html");
720 $this->tpl->setCurrentBlock(
"btn_cell");
721 $this->tpl->setVariable(
"BTN_LINK",$this->ctrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'start'));
722 $this->tpl->setVariable(
"BTN_TXT",$this->lng->txt(
"add_member"));
723 $this->tpl->parseCurrentBlock();
726 $parent_id = $tree->getParentId(
$_GET[
"ref_id"]);
729 while ($parent_id != 1 &&
$type !=
"crs")
731 $parent_id = $tree->getParentId($parent_id);
739 $this->tpl->setCurrentBlock(
"btn_cell");
745 $this->ctrl->setParameterByClass(
'ilRepositorySearchGUI',
"list_obj", $parent_obj_id);
746 $this->tpl->setVariable(
"BTN_LINK",$this->ctrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'listUsers'));
748 $this->lng->loadLanguageModule(
"exercise");
749 $this->tpl->setVariable(
"BTN_TXT",$this->lng->txt(
"exc_crs_add_members"));
750 $this->tpl->parseCurrentBlock();
753 include_once(
"./Modules/Exercise/classes/class.ilExerciseMemberTableGUI.php");
755 $tpl->setContent($exc_tab->getHTML());
767 if (
$_GET[
"member_id"] !=
"")
769 $this->
object->members_obj->setStatusFeedbackForMember(
$_GET[
"member_id"], 1);
773 else if(count(
$_POST[
"member"]) > 0)
775 include_once(
'./Services/User/classes/class.ilObjUser.php');
777 foreach(
$_POST[
"member"] as $member => $val)
780 $this->
object->members_obj->setStatusFeedbackForMember($member, 1);
782 $logins = implode($logins,
",");
787 $this->ctrl->redirect($this,
"members");
799 foreach($this->object->members_obj->getMembers() as $member_id)
802 $this->
object->members_obj->updateTutorDownloadTime($member_id);
808 $members[$member_id] = $tmp_obj->getFirstname() .
" " . $tmp_obj->getLastname();
813 $this->
object->file_obj->downloadAllDeliveredFiles($members);
825 include_once
"./Modules/Group/classes/class.ilObjGroup.php";
827 $all_members = array();
828 foreach($a_result as $group)
832 $members = $tmp_grp_obj->getGroupMemberIds();
833 $all_members = array_merge($all_members,$members);
836 $all_members = array_unique($all_members);
837 foreach($all_members as $member)
839 $result[] = array(
"id" => $member);
848 include_once
"./classes/class.ilObjectFactory.php";
850 foreach($a_result as $obj)
853 $this->tpl->setCurrentBlock(
"OBJ_SELECT_ROW");
854 $this->tpl->setVariable(
"OBJ_ROW_TITLE",$tmp_obj->getTitle());
855 $this->tpl->setVariable(
"OBJ_ROW_ID",$tmp_obj->getRefId());
856 $this->tpl->setVariable(
"OBJ_ROW_DESCRIPTION",$tmp_obj->getDescription());
857 $this->tpl->parseCurrentBlock();
861 $this->tpl->setCurrentBlock(
"OBJ_SELECT");
862 $this->tpl->setVariable(
"OBJ_SELECT_TITLE",$this->lng->txt(
"title"));
863 $this->tpl->setVariable(
"OBJ_SELECT_DESCRIPTION",$this->lng->txt(
"description"));
865 $this->tpl->setVariable(
"OBJ_BTN1_VALUE",$this->lng->txt(
"select"));
866 $this->tpl->setVariable(
"OBJ_BTN2_VALUE",$this->lng->txt(
"cancel"));
867 $this->tpl->parseCurrentBlock();
877 if(!count(
$_POST[
"member"]))
883 $this->
object->send(
$_POST[
"member"]);
886 $ilCtrl->redirect($this,
"members");
898 if(is_array(
$_POST[
"member"]))
902 $this->
object->members_obj->deassignMember(
$usr_id);
904 $ilCtrl->redirect($this,
"members");
909 $ilCtrl->redirect($this,
"members");
917 if(!isset(
$_POST[
'comments_value']))
922 $this->
object->members_obj->setNoticeForMember(
$_GET[
"member_id"],
930 return $this->
object->members_obj->getNoticeByMember($member_id);
942 include_once
'Services/Tracking/classes/class.ilLPMarks.php';
944 $saved_for = array();
954 if (count(
$_POST[
"member"]) > 0)
957 $saved_for[] = $uname[
"lastname"].
", ".$uname[
"firstname"];
961 $this->
object->members_obj->setStatusForMember(
$key,
$_POST[
"status"][
$key]);
968 $this->
object->members_obj->updateStatusTimeForMember($key);
975 $marks_obj->update();
977 if (count($saved_for) > 0)
979 $save_for_str =
"(".implode($saved_for,
" - ").
")";
982 $ilCtrl->redirect($this,
"members");
990 for($i=0; $i<24; $i++)
992 $hours[$i] = $i < 10 ?
"0".$i : $i;
999 $minutes[$i] = $i < 10 ?
"0".$i : $i;
1004 for($i=1; $i<32; $i++)
1006 $days[$i] = $i < 10 ?
"0".$i : $i;
1011 for($i=1; $i<13; $i++)
1013 $month[$i] = $i < 10 ?
"0".$i : $i;
1018 for($i = date(
"Y",time());$i < date(
"Y",time()) + 3;++$i)
1028 foreach($a_result as
$user)
1030 if(!$this->object->members_obj->isAssigned($user[
"id"]))
1032 $filtered[] =
$user;
1036 return $filtered ? $filtered : array();
1046 global $ilAccess,$ilUser;
1048 $next_class = strtolower($this->ctrl->getNextClass());
1049 if ($ilAccess->checkAccess(
"visible",
"", $this->object->getRefId()))
1051 $force_active = ($next_class ==
"ilinfoscreengui")
1054 $tabs_gui->addTarget(
"info_short",
1055 $this->ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary"),
1057 "ilinfoscreengui",
"", $force_active);
1065 if ($ilAccess->checkAccess(
"read",
"", $this->object->getRefId()))
1067 $tabs_gui->addTarget(
"exc_your_submission",
1068 $this->ctrl->getLinkTarget($this,
"deliver"),
1073 if ($ilAccess->checkAccess(
"write",
"", $this->ref_id))
1075 $tabs_gui->addTarget(
"edit_properties",
1076 $this->ctrl->getLinkTarget($this,
'edit'),
1079 $tabs_gui->addTarget(
"members",
1080 $this->ctrl->getLinkTarget($this,
'members'),
1081 array(
"members",
"newMembers",
"newmembers"),
"");
1085 $save_sort_order =
$_GET[
"sort_order"];
1086 $save_sort_by =
$_GET[
"sort_by"];
1087 $save_offset =
$_GET[
"offset"];
1090 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
1093 $tabs_gui->addTarget(
'learning_progress',
1094 $this->ctrl->getLinkTargetByClass(array(
'ilobjexercisegui',
'illearningprogressgui'),
''),
1096 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui'));
1099 $_GET[
"sort_order"] = $save_sort_order;
1100 $_GET[
"sort_by"] = $save_sort_by;
1101 $_GET[
"offset"] = $save_offset;
1104 if ($ilAccess->checkAccess(
"edit_permission",
"", $this->ref_id))
1106 $tabs_gui->addTarget(
"perm_settings",
1107 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"),
1108 array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1116 $next_class = $this->ctrl->getNextClass($this);
1117 $cmd = $this->ctrl->getCmd();
1123 case "ilinfoscreengui":
1127 case 'ilpermissiongui':
1128 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
1130 $ret =& $this->ctrl->forwardCommand($perm_gui);
1133 case "illearningprogressgui":
1134 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
1137 $this->object->getRefId(),
1138 $_GET[
'user_id'] ?
$_GET[
'user_id'] : $ilUser->getId());
1139 $this->ctrl->forwardCommand($new_gui);
1140 $this->tabs_gui->setTabActive(
'learning_progress');
1143 case 'ilrepositorysearchgui':
1144 include_once(
'./Services/Search/classes/class.ilRepositorySearchGUI.php');
1146 $rep_search->setCallback($this,
'addMembersObject');
1149 $this->tabs_gui->setTabActive(
'members');
1150 $this->ctrl->setReturn($this,
'members');
1151 $ret =& $this->ctrl->forwardCommand($rep_search);
1152 #$this->__setSubTabs('members');
1153 #$this->tabs_gui->setSubTabActive('members');
1156 case 'ilobjectcopygui':
1157 $ilCtrl->saveParameter($this,
'new_type');
1158 $ilCtrl->setReturnByClass(get_class($this),
'create');
1160 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
1162 $cp->setType(
'exc');
1163 $this->ctrl->forwardCommand($cp);
1169 $cmd =
"infoScreen";
1189 $this->ctrl->setCmd(
"showSummary");
1190 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1199 global $ilAccess, $ilUser;
1203 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1206 $info->enablePrivateNotes();
1208 $info->enableNews();
1209 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1211 $info->enableNewsEditing();
1212 $info->setBlockProperty(
"news",
"settings",
true);
1219 $info->addSection($this->lng->txt(
"exc_instruction"));
1220 $info->addProperty(
"",
1221 nl2br($this->object->getInstruction()));
1224 $info->addSection($this->lng->txt(
"exc_schedule"));
1225 $info->addProperty($this->lng->txt(
"exc_edit_until"),
1228 if ($this->object->getTimestamp()-time() <= 0)
1230 $time_str = $this->lng->txt(
"exc_time_over_short");
1236 unset($time_diff[
'seconds']);
1239 if (isset($time_diff[
'days']))
1241 unset($time_diff[
'minutes']);
1245 if (isset($time_diff[
'months']))
1247 unset($time_diff[
'hours']);
1252 $info->addProperty($this->lng->txt(
"exc_time_to_send"),
1253 "<b>".$time_str.
"</b>");
1256 if ($ilAccess->checkAccess(
"read",
"", $this->ref_id))
1258 $files = $this->
object->getFiles();
1261 $info->addSection($this->lng->txt(
"exc_files"));
1264 $this->ctrl->setParameter($this,
"file", urlencode($file[
"name"]));
1265 $info->addProperty($file[
"name"],
1266 $this->lng->txt(
"download"),
1267 $this->ctrl->getLinkTarget($this,
"downloadFile"));
1268 $this->ctrl->setParameter($this,
"file",
"");
1274 if ($ilAccess->checkAccess(
"read",
"", $this->ref_id))
1277 $info->addSection($this->lng->txt(
"exc_your_submission"));
1278 $delivered_files = $this->
object->getDeliveredFiles($ilUser->id);
1280 foreach($delivered_files as
$file)
1282 $titles[] = $file[
"filetitle"];
1284 $files_str = implode($titles,
", ");
1285 if ($files_str ==
"")
1287 $files_str = $this->lng->txt(
"message_no_delivered_files");
1289 $info->addProperty($this->lng->txt(
"exc_files_returned"),
1291 $last_sub = $this->
object->getLastSubmission($ilUser->getId());
1301 $info->addProperty($this->lng->txt(
"exc_last_submission"),
1305 include_once(
"Services/Tracking/classes/class.ilLPMarks.php");
1309 if ($lpcomment !=
"" || $mark !=
"" || $status !=
"notgraded")
1311 $info->addSection($this->lng->txt(
"exc_feedback_from_tutor"));
1312 if ($lpcomment !=
"")
1314 $info->addProperty($this->lng->txt(
"exc_comment"),
1319 $info->addProperty($this->lng->txt(
"exc_mark"),
1325 $info->addProperty($this->lng->txt(
"status"),
1326 $this->lng->txt(
"message_no_delivered_files"));
1329 if ($status !=
"notgraded")
1331 $info->addProperty($this->lng->txt(
"status"),
1332 $this->lng->txt(
"exc_".$status));
1338 $this->ctrl->forwardCommand($info);
1351 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1353 $_GET[
"ref_id"] = $a_target;
1354 $_GET[
"cmd"] =
"infoScreen";
1355 $_GET[
"baseClass"] =
"ilExerciseHandlerGUI";
1356 include(
"ilias.php");
1359 else if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1361 $_GET[
"cmd"] =
"frameset";
1362 $_GET[
"target"] =
"";
1363 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1366 include(
"repository.php");
1370 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
1380 if (is_object($this->
object))
1382 $ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this,
"infoScreen"),
"",
$_GET[
"ref_id"]);