120
$mail=$info['MAIL'];
if($mail=="") $mail=$info['NAME'];
if(!isset($this->CurrentRecipients[$mail]))
{
$this->CurrentRecipients[$mail]=array();
foreach($info as $field=>$val)
{
$this->CurrentRecipients[$mail][$field]=$val;
}
}
$text=$info['NAME'];
if(trim($info['MAIL'])!="") $text.=" <".$info['MAIL'].">";
$current_node = new ONode($text, $this->CheckListBox_RECIPIENTS,
array($id, isset($this->SelectedRecipients[$id])), "");
$this->CheckListBox_RECIPIENTS->AddNode($current_node, $_parent);
if(isset($info['CHILDREN']) && count($info['CHILDREN'])>0)
{
$this->FillCheckBox($info['CHILDREN'], $current_node);
}
}
}
public function RememberCheckbox($_id, $_flag)
{
if($_flag)
$this->SelectedRecipients[$_id]=true;
else
unset($this->SelectedRecipients[$_id]);
}
/**
* Возвращает строкe для запросов
*
* @return mixed фильтр
*/
protected function GenFilterString()
{
$result=array("","");
$keys=$this->Panel_FILTERS->Components->GetKeys();
$attrs=array();
for($i=0; $i<count($keys);$i++)
{
if(strpos(
$this->Panel_FILTERS->Components->Items[$keys[$i]]->Name,
"filter_cb_"
)!==false && $this->Panel_FILTERS->Components->Items[$keys[$i]]-
>Value==1)
{
$info=explode("_", $this->Panel_FILTERS->Components-
>Items[$keys[$i]]->Name);