<td onclick="window.location.href='/task/edit/<?=$task['id']?>'; return false" style="cursor: pointer;"><?php echo ($stat == 0) ? '<span class="badge badge-danger">Просрочено</span>' : '<span class="badge badge-<?=$task["priority_class"]?>"><?=$task["status"]</span>'; ?></td>