4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
27 $this->
setData($this->exc->getMemberListData());
28 $this->
setTitle($lng->txt(
"members"));
32 $this->
addColumn($this->lng->txt(
"image"),
"",
"1");
33 $this->
addColumn($this->lng->txt(
"name"),
"name");
34 $this->
addColumn($this->lng->txt(
"login"),
"login");
35 $this->sent_col = $this->exc->_lookupAnyExerciseSent($this->exc->getId());
38 $this->
addColumn($this->lng->txt(
"exc_exercise_sent"),
"sent_time");
40 $this->
addColumn($this->lng->txt(
"exc_submission"),
"submission");
41 $this->
addColumn($this->lng->txt(
"exc_grading"),
"solved_time");
42 $this->
addColumn($this->lng->txt(
"mail"),
"feedback_time");
49 $this->
setRowTemplate(
"tpl.exc_members_row.html",
"Modules/Exercise");
55 $this->
addMultiCommand(
"redirectFeedbackMail", $lng->txt(
"exc_send_mail"));
57 $this->
addMultiCommand(
"deassignMembers", $lng->txt(
"exc_deassign_members"));
59 if(count($this->exc->members_obj->getAllDeliveredFiles()))
61 $this->
addCommandButton(
"downloadAll", $lng->txt(
"download_all_returned_files"));
75 include_once
"./classes/class.ilObjectFactory.php";
76 $member_id = $member[
"usr_id"];
85 if ($this->exc->members_obj->getStatusSentByMember($member_id))
87 $this->tpl->setCurrentBlock(
"mail_sent");
91 $this->tpl->setVariable(
"TXT_MAIL_SENT",
92 sprintf($lng->txt(
"exc_sent_at"),
97 $this->tpl->setVariable(
"TXT_MAIL_SENT",
100 $this->tpl->parseCurrentBlock();
104 $this->tpl->setCurrentBlock(
"mail_sent");
105 $this->tpl->setVariable(
"TXT_MAIL_SENT",
107 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
"VAL_CHKBOX",
114 $this->tpl->setVariable(
"VAL_ID",
118 $this->tpl->setVariable(
"TXT_NAME",
120 $this->tpl->setVariable(
"TXT_LOGIN",
121 "[".$member[
"login"].
"]");
124 $this->tpl->setVariable(
"USR_IMAGE",
125 $mem_obj->getPersonalPicturePath(
"xxsmall"));
126 $this->tpl->setVariable(
"USR_ALT", $lng->txt(
"personal_picture"));
131 $this->exc->getLastSubmission($member_id);
141 if ($this->exc->_lookupUpdatedSubmission($this->exc->getId(), $member_id) == 1)
143 $last_sub =
"<b>".$last_sub.
"</b>";
145 $this->tpl->setVariable(
"VAL_LAST_SUBMISSION", $last_sub);
146 $this->tpl->setVariable(
"TXT_LAST_SUBMISSION",
147 $lng->txt(
"exc_last_submission"));
150 $this->tpl->setVariable(
"TXT_SUBMITTED_FILES",
151 $lng->txt(
"exc_files_returned"));
152 $sub_cnt = count($this->exc->getDeliveredFiles($member_id));
153 $new = $this->exc->_lookupNewFiles($this->exc->getId(), $member_id);
156 $sub_cnt.=
" ".sprintf($lng->txt(
"cnt_new"),count($new));
158 $this->tpl->setVariable(
"VAL_SUBMITTED_FILES",
162 $ilCtrl->setParameter($this->parent_obj,
"member_id", $member_id);
165 $this->tpl->setCurrentBlock(
"download_link");
166 $this->tpl->setVariable(
"LINK_DOWNLOAD",
167 $ilCtrl->getLinkTarget($this->parent_obj,
"downloadReturned"));
168 if (count($new) <= 0)
170 $this->tpl->setVariable(
"TXT_DOWNLOAD",
171 $lng->txt(
"exc_download_files"));
175 $this->tpl->setVariable(
"TXT_DOWNLOAD",
176 $lng->txt(
"exc_download_all"));
178 $this->tpl->parseCurrentBlock();
183 $this->tpl->setCurrentBlock(
"download_link");
184 $this->tpl->setVariable(
"LINK_NEW_DOWNLOAD",
185 $ilCtrl->getLinkTarget($this->parent_obj,
"downloadNewReturned"));
186 $this->tpl->setVariable(
"TXT_NEW_DOWNLOAD",
187 $lng->txt(
"exc_download_new"));
188 $this->tpl->parseCurrentBlock();
193 $this->tpl->setVariable(
"TXT_NOTE", $lng->txt(
"note"));
194 $this->tpl->setVariable(
"NAME_NOTE",
195 "notice[$member_id]");
196 $this->tpl->setVariable(
"VAL_NOTE",
200 $this->tpl->setVariable(
"TXT_LCOMMENT", $lng->txt(
"exc_comment_for_learner"));
201 $this->tpl->setVariable(
"NAME_LCOMMENT",
202 "lcomment[$member_id]");
204 $this->tpl->setVariable(
"VAL_LCOMMENT",
211 $this->tpl->setVariable(
"SEL_".strtoupper($status),
' selected="selected" ');
212 $this->tpl->setVariable(
"TXT_NOTGRADED", $lng->txt(
"exc_notgraded"));
213 $this->tpl->setVariable(
"TXT_PASSED", $lng->txt(
"exc_passed"));
214 $this->tpl->setVariable(
"TXT_FAILED", $lng->txt(
"exc_failed"));
217 $this->tpl->setCurrentBlock(
"status_date");
218 $this->tpl->setVariable(
"TXT_LAST_CHANGE", $lng->txt(
"last_change"));
219 $this->tpl->setVariable(
'VAL_STATUS_DATE',
221 $this->tpl->parseCurrentBlock();
225 case "passed": $pic =
"scorm/passed.gif";
break;
226 case "failed": $pic =
"scorm/failed.gif";
break;
227 default: $pic =
"scorm/not_attempted.gif";
break;
230 $this->tpl->setVariable(
"ALT_STATUS", $lng->txt(
"exc_".$status));
233 $this->tpl->setVariable(
"TXT_MARK", $lng->txt(
"exc_mark"));
234 $this->tpl->setVariable(
"NAME_MARK",
237 $this->tpl->setVariable(
"VAL_MARK",
241 $ilCtrl->setParameter($this->parent_obj,
"member_id", $member_id);
242 $this->tpl->setVariable(
"CHKBOX_FEEDBACK",
243 ilUtil::formCheckbox($this->exc->members_obj->getStatusFeedbackByMember($member_id),
"feedback[$member_id]",1));
246 $this->tpl->setCurrentBlock(
"feedback_date");
247 $this->tpl->setVariable(
"TXT_FEEDBACK_MAIL_SENT",
248 sprintf($lng->txt(
"exc_sent_at"),
250 $this->tpl->parseCurrentBlock();
252 $ilCtrl->setParameter($this,
"rcp_to", $mem_obj->getLogin());
253 $this->tpl->setVariable(
"LINK_FEEDBACK",
254 $ilCtrl->getLinkTarget($this->parent_obj,
"redirectFeedbackMail"));
256 $this->tpl->setVariable(
"TXT_FEEDBACK",
257 $lng->txt(
"exc_send_mail"));
258 $ilCtrl->setParameter($this->parent_obj,
"rcp_to",
"");
260 $this->tpl->parseCurrentBlock();