24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
46 public function __construct($a_parent_obj, $a_parent_cmd, $a_raters_mode =
false, $a_may_delete_rater =
false, $a_fallback_url = null)
52 $this->raters_mode = (bool)$a_raters_mode;
53 $this->fallback_url = trim($a_fallback_url);
61 $this->
addColumn($this->lng->txt(
"lastname"),
'lastname',
'');
62 $this->
addColumn($this->lng->txt(
"firstname"),
'firstname',
'');
63 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
64 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
66 if(!$this->raters_mode)
68 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
69 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
70 $this->
addColumn($this->lng->txt(
"actions"));
72 $this->
setTitle($this->lng->txt(
"survey_360_appraisees"));
76 $this->
addColumn($this->lng->txt(
"survey_360_rater_finished"),
"finished");
77 $this->
addColumn($this->lng->txt(
"survey_code_url"));
78 $this->
addColumn($this->lng->txt(
"survey_360_rater_mail_sent"),
"sent");
80 include_once
"Services/User/classes/class.ilUserUtil.php";
81 $this->
setTitle($this->lng->txt(
"survey_360_edit_raters").
" : ".
85 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"Modules/Survey");
87 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
92 if(!$this->raters_mode)
94 $this->
addCommandButton(
'deleteAllUserData', $this->lng->txt(
'svy_delete_all_user_data'));
95 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->lng->txt(
'survey_360_appraisee_close_action'));
96 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->lng->txt(
'survey_360_remove_appraisees'));
103 if($a_may_delete_rater)
105 $this->
addMultiCommand(
'confirmDeleteRaters', $this->lng->txt(
'remove'));
123 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
124 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
125 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
126 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
127 $this->tpl->setVariable(
"LAST_NAME",
$data[
'lastname']);
128 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'firstname']);
130 if(!$this->raters_mode)
132 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
133 $this->tpl->setVariable(
"CLOSED",
$data[
'closed'] ?
138 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_360_edit_raters"));
139 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
144 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ? $lng->txt(
"yes") : $lng->txt(
"no"));
151 $this->tpl->setVariable(
"MAIL_SENT", $sent);
153 if(
$data[
"href"] || $this->fallback_url)
157 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"]);
161 $this->tpl->setVariable(
"DIRECT_HREF", $this->fallback_url);
166 $this->tpl->setVariable(
"NO_HREF",
"");