Added field "Status" to XLS export of members.
authorAndreas Schiermeier <andreas@schiermeier.name>
Mon, 30 Dec 2013 23:12:07 +0000 (00:12 +0100)
committerAndreas Schiermeier <andreas@schiermeier.name>
Mon, 30 Dec 2013 23:12:07 +0000 (00:12 +0100)
include/xlsexport.php

index 7944fa1..e32252d 100644 (file)
@@ -45,6 +45,7 @@ function action_export_members() {
        $worksheet->write($row, $col++, 'Website');
        $worksheet->write($row, $col++, 'Twitter');
        $worksheet->write($row, $col++, 'Lastschrifteinzug');
+       $worksheet->write($row, $col++, 'Status');
        $row++;
        
        foreach ($members as $member) {
@@ -70,6 +71,8 @@ function action_export_members() {
                $worksheet->write($row, $col++, $member['url']);    
                $worksheet->write($row, $col++, $member['twitter']);
                $worksheet->write($row, $col++, $member['directdebit']);
+               $membership_info = fees_info_for_member($member['id'], time());
+               $worksheet->write($row, $col++, $membership_info['is_member']);
                $col = 0;
                $row++;
        }