4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
26 $this->
setId(
"excass".$a_exc->getId());
30 $this->
setTitle($lng->txt(
"exc_assignments"));
38 $this->
addColumn($this->lng->txt(
"title"),
"title");
39 $this->
addColumn($this->lng->txt(
"exc_assignment_type"),
"type");
40 $this->
addColumn($this->lng->txt(
"exc_presentation_order"),
"order_val");
41 $this->
addColumn($this->lng->txt(
"exc_start_time"),
"start_time");
42 $this->
addColumn($this->lng->txt(
"exc_deadline"),
"deadline");
43 $this->
addColumn($this->lng->txt(
"exc_mandatory"),
"mandatory");
44 $this->
addColumn($this->lng->txt(
"exc_peer_review"),
"peer");
45 $this->
addColumn($this->lng->txt(
"exc_instruction"),
"",
"30%");
46 $this->
addColumn($this->lng->txt(
"actions"));
56 $this->
setRowTemplate(
"tpl.exc_assignments_row.html",
"Modules/Exercise");
61 $this->
addMultiCommand(
"confirmAssignmentsDeletion", $lng->txt(
"delete"));
63 $this->
addCommandButton(
"orderAssignmentsByDeadline", $lng->txt(
"exc_order_by_deadline"));
75 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
79 $data[$idx][
"type"] = $types_map[
$row[
"type"]];
88 if(in_array($a_field, array(
"order_val",
"deadline",
"start_time")))
102 $this->tpl->setVariable(
"ID",
$d[
"id"]);
103 if (
$d[
"deadline"] > 0)
105 $this->tpl->setVariable(
"TXT_DEADLINE",
108 if (
$d[
"start_time"] > 0)
110 $this->tpl->setVariable(
"TXT_START_TIME",
113 $this->tpl->setVariable(
"TXT_INSTRUCTIONS",
118 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"yes"));
122 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"no"));
127 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"yes").
" (".
$d[
"peer_min"].
")");
131 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"no"));
134 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
135 $this->tpl->setVariable(
"TXT_TYPE",
$d[
"type"]);
136 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
138 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
139 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
140 $this->tpl->setVariable(
"CMD_EDIT",
141 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment"));