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(
"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_instruction"),
"",
"40%");
45 $this->
addColumn($this->lng->txt(
"actions"));
55 $this->
setRowTemplate(
"tpl.exc_assignments_row.html",
"Modules/Exercise");
60 $this->
addMultiCommand(
"confirmAssignmentsDeletion", $lng->txt(
"delete"));
62 $this->
addCommandButton(
"orderAssignmentsByDeadline", $lng->txt(
"exc_order_by_deadline"));
73 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
77 $data[$idx][
"type"] = $types_map[
$row[
"type"]];
86 if(in_array($a_field, array(
"order_val",
"deadline",
"start_time")))
100 $this->tpl->setVariable(
"ID",
$d[
"id"]);
101 if (
$d[
"deadline"] > 0)
103 $this->tpl->setVariable(
"TXT_DEADLINE",
106 if (
$d[
"start_time"] > 0)
108 $this->tpl->setVariable(
"TXT_START_TIME",
111 $this->tpl->setVariable(
"TXT_INSTRUCTIONS",
116 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"yes"));
120 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"no"));
123 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
124 $this->tpl->setVariable(
"TXT_TYPE",
$d[
"type"]);
125 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
127 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
128 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
129 $this->tpl->setVariable(
"CMD_EDIT",
130 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment"));