24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
45 public function __construct($a_parent_obj, $a_parent_cmd, $a_raters_mode =
false, $a_may_delete_rater =
false)
51 $this->raters_mode = (bool)$a_raters_mode;
59 $this->
addColumn($this->lng->txt(
"lastname"),
'lastname',
'');
60 $this->
addColumn($this->lng->txt(
"firstname"),
'firstname',
'');
61 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
62 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
64 if(!$this->raters_mode)
66 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
67 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
68 $this->
addColumn($this->lng->txt(
"actions"));
70 $this->
setTitle($this->lng->txt(
"survey_360_appraisees"));
74 $this->
addColumn($this->lng->txt(
"survey_360_rater_finished"),
"finished");
75 $this->
addColumn($this->lng->txt(
"survey_code_url"));
76 $this->
addColumn($this->lng->txt(
"survey_360_rater_mail_sent"),
"sent");
78 include_once
"Services/User/classes/class.ilUserUtil.php";
79 $this->
setTitle($this->lng->txt(
"survey_360_edit_raters").
" : ".
83 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"Modules/Survey");
85 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
90 if(!$this->raters_mode)
92 $this->
addCommandButton(
'deleteAllUserData', $this->lng->txt(
'svy_delete_all_user_data'));
93 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->lng->txt(
'survey_360_appraisee_close_action'));
94 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->lng->txt(
'survey_360_remove_appraisees'));
101 if($a_may_delete_rater)
103 $this->
addMultiCommand(
'confirmDeleteRaters', $this->lng->txt(
'remove'));
121 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
122 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
123 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
124 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
125 $this->tpl->setVariable(
"LAST_NAME",
$data[
'lastname']);
126 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'firstname']);
128 if(!$this->raters_mode)
130 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
131 $this->tpl->setVariable(
"CLOSED",
$data[
'closed'] ?
136 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_360_edit_raters"));
137 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
142 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ? $lng->txt(
"yes") : $lng->txt(
"no"));
149 $this->tpl->setVariable(
"MAIL_SENT", $sent);
153 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"].
"");
157 $this->tpl->setVariable(
"NO_HREF",
"");