12 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
 
   35                 $lng->loadLanguageModule(
'crs');
 
   38                 include_once 
"Services/Mail/classes/class.ilMail.php";
 
   40                 $this->mailing_allowed = $rbacsystem->checkAccess(
'mail_visible',$mail->getMailObjectReferenceId());
 
   46                         $mode[
"short"] = 
"crs";
 
   47                         $mode[
"long"] = 
"course";
 
   48                         $mode[
"checkbox"] = 
"search_crs";
 
   49                         $mode[
"tableprefix"] = 
"crstable";
 
   50                         $mode[
"lng_mail"] = $lng->txt(
"mail_my_courses");
 
   51                         $mode[
"view"] = 
"mycourses";
 
   54                 else if ($type == 
"grp")
 
   56                         $mode[
"short"] = 
"grp";
 
   57                         $mode[
"long"] = 
"group";
 
   58                         $mode[
"checkbox"] = 
"search_grp";
 
   59                         $mode[
"tableprefix"] = 
"grptable";
 
   60                         $mode[
"lng_mail"] = $lng->txt(
"mail_my_groups");
 
   61                         $mode[
"view"] = 
"mygroups";
 
   66                 $this->parentObject = $a_parent_obj;
 
   69                 $ilCtrl->setParameter($a_parent_obj, 
'view', 
$mode[
'view']);
 
   70                 if (
$_GET[
'ref'] != 
'')
 
   71                         $ilCtrl->setParameter($a_parent_obj, 
'ref', 
$_GET[
'ref']);
 
   73                         $ilCtrl->setParameter($a_parent_obj, $mode[
"checkbox"], implode(
',', 
$_POST[$mode[
"checkbox"]]));
 
   76                 $ilCtrl->clearParameters($a_parent_obj);
 
   80                 $this->
setRowTemplate(
'tpl.mail_search_courses_row.html', 
'Services/Contact');
 
   83                 $this->
addColumn(
'', 
'select', 
'1%', 
true);
 
   84                 $this->
addColumn($mode[
"lng_mail"], 
'CRS_NAME', 
'30%');
 
   85                 $this->
addColumn($lng->txt(
'path'), 
'CRS_PATH', 
'30%');
 
   86                 $this->
addColumn($lng->txt(
'crs_count_members'), 
'CRS_NO_MEMBERS', 
'20%');
 
   87                 $this->
addColumn($lng->txt(
'actions'), 
'', 
'19%');
 
   89                 if ($this->mailing_allowed)
 
   93                 if (
$_GET[
'ref'] == 
'mail')
 
  106                 if ($a_set[
'hidden_members'])
 
  108                         $this->tpl->setCurrentBlock(
'caption_asterisk');
 
  109                         $this->tpl->touchBlock(
'caption_asterisk');
 
  110                         $this->tpl->parseCurrentBlock();        
 
  112                 foreach ($a_set as $key => $value)
 
  114                         $this->tpl->setVariable(strtoupper($key), $value);
 
  116                 $this->tpl->setVariable(
'SHORT', $this->mode[
"short"]);
 
  121                 if($column == 
'CRS_NO_MEMBERS') 
return true;