<header>
    <nav class="navbar navbar-default navbar-static-top" role="navigation">
        <ul class="nav navbar-nav">
            <li><a href="/count_form.php/?p=admin">Услуги</a></li>
            <li><a href="/count_form.php/?p=sub_quest">Вопросы</a></li>
            <li><a href="http://seo.artweb.ua/count_form.php/">Выйти</a></li>
        </ul>
    </nav>
</header>
<h1>Вопросы</h1>
<a class="button_style" href="/count_form.php/?p=admin&sp=add">Добавить</a>
<table class="table table-hover" data-url="/sort_user">
    <thead>
    <tr>
        <th id="id">id</th>
        <th id="id">parent_id</th>
        <th id="name" class="sortable"><p>Вопрос</p></th>
        <th id="email" class="sortable"><p>Статус</p></th>
        <th id="status" class="sortable"><p>Вес</p></th>
        <th class="table-buttons"></th>
    </tr>
    </thead>
    <tbody id="result">
    <?php foreach ($data['data'] as $item):?>
        <tr>
            <td><?= $item['id']; ?></td>
            <td><?= $item['parent_id']; ?></td>
            <td><?= $item['text']; ?></td>
            <td><?= $item['status'] ?></td>
            <td><?= $item['status'] ?></td>
            <td>
                <a href="/count_form.php/?p=admin&sp=index&a=delete&id=<?=$item['id'] ?>" class="action-img"><img src="/count_form/images/del.png" title="удалить"></a>
                <a href="/count_form.php/?p=admin&sp=edit&id=<?=$item['id']  ?>" class="action-img"><img src="/count_form/images/change.png" title="редактировать"></a>
            </td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>
<a class="button_style" href="/count_form.php/?p=admin&sp=add">Добавить</a>