function _printResults() { if (empty($this->_congregations)) { return; } $GLOBALS['system']->includeDBClass('attendance_record_set'); $stats = Attendance_Record_Set::getCongregationalAttendanceStats($this->_start_date, $this->_end_date, $this->_congregations); $GLOBALS['system']->includeDBClass('person'); $dummy_person = new Person(); $status_map = $dummy_person->getStatusOptions(); ?> <table class="table table-bordered table-auto-width"> <?php foreach ($status_map as $k => $v) { if (isset($stats[$k])) { ?> <tr> <th><?php echo ents($v); ?> </th> <td style="width: 5ex"><?php echo $stats[$k]; ?> %</td> </tr> <?php } } ?> </table> <?php }