<?php

include_once 'DatabaseManager.class.php';
$action = $_GET['action'];
$databaseManager = new DatabaseManager();
switch ($action) {
    case 'getCurrentTasks':
        $databaseManager->getCurrentTasks();
        break;
    case 'getCompletedTasks':
        $databaseManager->getCompletedTasks();
        break;
    case 'saveTasks':
        $databaseManager->saveTask($_GET['tasks'], $_GET['due_date']);
        break;
}
                <div class="modal-body">
                    <input type="text" class="form-control" id="edit-input">
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" id="edit-button" data-dismiss="modal">Сохранить
                        изменения
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="container" id="task-list">
    <ul class="list-group">
        <?php 
$rows = $database_manager->getCurrentTasks(false);
foreach ($rows as $key) {
    foreach ($key as $k => $task) {
        echo '<li class="li-checkbox"><input class="check" type="checkbox" style="margin-top:13px"></li><li class= "list-group-item" data-toggle="modal" data-target="#editModal">' . "{$task}" . '<span class="glyphicon glyphicon-remove"></span></li>';
    }
}
?>
    </ul>
</div>

</body>
</html>