4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->
setId(
"excass".$a_exc->getId());
29 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
31 $this->
setTitle($lng->txt(
"exc_assignments"));
39 $this->
addColumn($this->lng->txt(
"title"),
"title");
40 $this->
addColumn($this->lng->txt(
"exc_presentation_order"),
"val_order");
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"));
74 $this->tpl->setVariable(
"ID",
$d[
"id"]);
75 $this->tpl->setVariable(
"TXT_DEADLINE",
77 if (
$d[
"start_time"] > 0)
79 $this->tpl->setVariable(
"TXT_START_TIME",
82 $this->tpl->setVariable(
"TXT_INSTRUCTIONS",
87 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"yes"));
91 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"no"));
94 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
95 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
97 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
98 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
99 $this->tpl->setVariable(
"CMD_EDIT",
100 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment"));