<?php
print '<table style="width:100%;">
    <tr>
        <th>' . $langs->trans('AddedToGroup') . '</th>
        <th>' . $langs->trans('DeletedFromGroup') . '</th>
    </tr>';
print '<div style="width:100%;">';
if(isset($userDataArray))
{
    foreach ($userDataArray as $record) {
        print '
                    <tr style="text-align: center;">
                        <td>' . $record['added'] . '</td>
                        <td>' . $record['deleted'] . '</td>
                    </tr>';
        ;
    }
}
print '</div>';
print '</table>';