12 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
37 $lng->loadLanguageModule(
'crs');
42 include_once
"Services/Mail/classes/class.ilMail.php";
44 $this->mailing_allowed = $rbacsystem->checkAccess(
'mail_visible',$mail->getMailObjectReferenceId());
51 $mode[
"short"] =
"crs";
52 $mode[
"long"] =
"course";
53 $mode[
"checkbox"] =
"search_crs";
54 $mode[
"tableprefix"] =
"crstable";
55 $mode[
"lng_mail"] = $lng->txt(
"mail_my_courses");
56 $mode[
"view"] =
"mycourses";
59 else if ($type ==
"grp")
61 $mode[
"short"] =
"grp";
62 $mode[
"long"] =
"group";
63 $mode[
"checkbox"] =
"search_grp";
64 $mode[
"tableprefix"] =
"grptable";
65 $mode[
"lng_mail"] = $lng->txt(
"mail_my_groups");
66 $mode[
"view"] =
"mygroups";
71 $this->parentObject = $a_parent_obj;
75 $ilCtrl->setParameter($a_parent_obj,
'view',
$mode[
'view']);
76 if (
$_GET[
'ref'] !=
'')
77 $ilCtrl->setParameter($a_parent_obj,
'ref',
$_GET[
'ref']);
79 $ilCtrl->setParameter($a_parent_obj, $mode[
"checkbox"], implode(
',',
$_POST[$mode[
"checkbox"]]));
82 $ilCtrl->clearParameters($a_parent_obj);
86 $this->
setRowTemplate(
'tpl.mail_search_courses_row.html',
'Services/Contact');
89 $this->
addColumn(
'',
'select',
'1%',
true);
90 $this->
addColumn($mode[
"lng_mail"],
'CRS_NAME',
'30%');
91 $this->
addColumn($lng->txt(
'path'),
'CRS_PATH',
'30%');
92 $this->
addColumn($lng->txt(
'crs_count_members'),
'CRS_NO_MEMBERS',
'20%');
93 $this->
addColumn($lng->txt(
'actions'),
'',
'19%');
97 if ($this->mailing_allowed)
102 $lng->loadLanguageModule(
"wsp");
107 if (
$_GET[
'ref'] ==
'mail')
120 if ($a_set[
'hidden_members'])
122 $this->tpl->setCurrentBlock(
'caption_asterisk');
123 $this->tpl->touchBlock(
'caption_asterisk');
124 $this->tpl->parseCurrentBlock();
126 foreach ($a_set as $key => $value)
128 $this->tpl->setVariable(strtoupper($key), $value);
130 $this->tpl->setVariable(
'SHORT', $this->mode[
"short"]);
135 if($column ==
'CRS_NO_MEMBERS')
return true;