Commit 3b99f0eb authored by Leif Andersson's avatar Leif Andersson
Browse files

Började lägga till epost i printGroup.

parent 42b04f42
......@@ -19,20 +19,22 @@ $HEAD = <<<EOS
EOS;
$colmax = 6;
$members = Person::getGroupMembers($ID);
$addresses = array();
foreach ($members as $member) {
$adr = '<tr>';
if (trim($member->Namn)) $adr .= '<td>'.$member->Namn.'</td>';
$adr = '<tr>'; $col = 0;
if (trim($member->Namn)) {$adr .= '<td>'.$member->Namn.'</td>'; $col++;}
if ($member->SkolaForetag) $adr .= '<td>'.$member->SkolaForetag.'</td>';
if ($member->Avdelning) $adr .= '<td>'.$member->Avdelning.'</td>';
if (!$member->Adress) {$member->Adress = $member->Hem;}
if ($member->SkolaForetag) {$adr .= '<td>'.$member->SkolaForetag.'</td>';$col++;}
if ($member->Avdelning) {$adr .= '<td>'.$member->Avdelning.'</td>'; $col++;}
if (!$member->Adress) {$member->Adress = $member->Hem; $col++;}
if ($member->Adress) {
$aas = explode("\n",$member->Adress);
foreach($aas as $aa) $adr .= '<td>'. $aa .'</td>';
$col++;
}
for ($i = $col; $i < $colmax; $i++) $adr .= '<td>x</td>';
$adr .= '</tr>';
$addresses[] = $adr;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment