<th><?php echo LangUtil::$generalTerms['REGD_BY']; ?> </th> </tr> </thead> <tbody> <?php $count = 1; foreach ($stat_list as $key => $value) { if (count($value[3]) == 0) { continue; } foreach ($value[3] as $specimen_id) { $specimen = get_specimen_by_id($specimen_id); $page_elems->getSpecimenExceededInfoRow($specimen, $count); $count++; } } ?> </tbody> </table> <script type='text/javascript'> $(function () { $('#<?php echo $table_id; ?> ').tablesorter(); }); </script><br> <?php