echo '</td><td style="vertical-align: top;">'; echo '<table style="margin-left: auto; margin-right: 0px;" class="main_sub sortable" border="0" cellspacing="1" cellpadding="3">'; echo '<tr class="title">'; echo '<th>' . _('Status') . '</th>'; echo '<th>' . _('Number of sessions') . '</th>'; echo '</tr>'; echo '<tfoot>'; $i = 0; foreach (Session::getAllStates() as $state) { $total = Abstract_Session::countByStatus($state); if ($total == 0) { continue; } $css_class = 'content' . ($i++ % 2 == 0 ? 1 : 2); echo '<tr class="' . $css_class . '">'; echo '<td><span class="msg_' . Session::colorStatus($state) . '">' . Session::textStatus($state) . '</span></td>'; echo '<td style="text-align: right;">' . $total . '</td>'; echo '</tr>'; } echo '</tfoot>'; echo '</table>'; echo '</td></tr></table>'; if (isset($pagechanger)) { echo $pagechanger; } echo '</div>'; } else { echo _('No active session'); echo '<br /><br />'; } echo '</div>';