12 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
 
   36                 $lng->loadLanguageModule(
'crs');
 
   41                         include_once 
"Services/Mail/classes/class.ilMail.php";
 
   43                         $this->mailing_allowed = $rbacsystem->checkAccess(
'internal_mail',$mail->getMailObjectReferenceId());
 
   50                         $mode[
"short"] = 
"crs";
 
   51                         $mode[
"long"] = 
"course";
 
   52                         $mode[
"checkbox"] = 
"search_crs";
 
   53                         $mode[
"tableprefix"] = 
"crstable";
 
   54                         $mode[
"lng_mail"] = $lng->txt(
"mail_my_courses");
 
   55                         $mode[
"view"] = 
"mycourses";
 
   58                 else if ($type == 
"grp")
 
   60                         $mode[
"short"] = 
"grp";
 
   61                         $mode[
"long"] = 
"group";
 
   62                         $mode[
"checkbox"] = 
"search_grp";
 
   63                         $mode[
"tableprefix"] = 
"grptable";
 
   64                         $mode[
"lng_mail"] = $lng->txt(
"mail_my_groups");
 
   65                         $mode[
"view"] = 
"mygroups";
 
   73                 $this->parentObject = $a_parent_obj;
 
   77                 $ilCtrl->setParameter($a_parent_obj, 
'view', 
$mode[
'view']);
 
   78                 if (
$_GET[
'ref'] != 
'')
 
   79                         $ilCtrl->setParameter($a_parent_obj, 
'ref', 
$_GET[
'ref']);
 
   81                         $ilCtrl->setParameter($a_parent_obj, $mode[
"checkbox"], implode(
',', 
$_POST[$mode[
"checkbox"]]));
 
   84                 $ilCtrl->clearParameters($a_parent_obj);
 
   87                 $this->
setRowTemplate(
'tpl.mail_search_courses_row.html', 
'Services/Contact');
 
   93                 $this->
addColumn($mode[
"lng_mail"], 
'CRS_NAME', 
'30%');
 
   94                 $this->
addColumn($lng->txt(
'path'), 
'CRS_PATH', 
'30%');
 
   95                 $this->
addColumn($lng->txt(
'crs_count_members'), 
'CRS_NO_MEMBERS', 
'20%');
 
   96                 $this->
addColumn($lng->txt(
'actions'), 
'', 
'19%');
 
  100                         if ($this->mailing_allowed)
 
  105                         $lng->loadLanguageModule(
"wsp");
 
  110                 if (
$_GET[
'ref'] == 
'mail')
 
  123                 if ($a_set[
'hidden_members'])
 
  125                         $this->tpl->setCurrentBlock(
'caption_asterisk');
 
  126                         $this->tpl->touchBlock(
'caption_asterisk');
 
  127                         $this->tpl->parseCurrentBlock();        
 
  129                 foreach ($a_set as $key => $value)
 
  131                         $this->tpl->setVariable(strtoupper($key), $value);
 
  133                 $this->tpl->setVariable(
'SHORT', $this->mode[
"short"]);
 
  138                 if($column == 
'CRS_NO_MEMBERS') 
return true;