<div class="breadcrumb-holder">
    <div class="container-fluid">
        <ul class="breadcrumb">
            <li class="breadcrumb-item"><a href="./">Home</a></li>
            <li class="breadcrumb-item active">Parceiros</li>
        </ul><!--/.breadcrumb -->
    </div><!---/.container-fluid -->
</div><!--/.breadcrumb-holder -->
<section class="dashboard-counts section-padding">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex align-items-center">
                        <h2 class="h5 display">Ordenar Parceiros</h2>
                    </div><!--/.card-header -->
                    <div class="card-footer">
                        <a href="?p=parceiro" class="btn btn-sm btn-success"><i class="fa fa-plus"></i> Adicionar</a>
                    </div><!--/.card-footer -->
                    <div class="card-body">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="col-60">Nº</th>
                                    <th>Titulo</th>
                                </tr>
                            </thead>
                            <tbody class="sortable" data-table="parceiros">
                                <?php
                                $parceirosDao = new \Dao\Parceiros();
                                $lst_parceiros = $parceirosDao->getLista($conecta, 'ORDER BY ordem ASC');
                                foreach ($lst_parceiros as $item) {
                                    echo '
                                        <tr id="foo_' . $item->id . '">
                                            <td>' . $item->ordem . '</td>
                                            <td>' . $item->titulo . '</td>
                                        </tr>
                                    ';
                                }
                                ?>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="2" align="right">
                                        <a href="parceiros.php" class="btn btn-sm btn-warning"><i class="fa fa-arrow-left"></i> Voltar</a>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div><!--/.card-body -->
                </div><!--/.card -->
            </div><!--/.col-lg-12 -->
        </div><!--/.row -->
    </div><!--/.container-fluid -->
</section><!--/.dashboard-counts -->