} ?> <table class="table table-striped table-bordered bootstrap-datatable "> <thead> <tr> <th width="45%">Arquivo</th> <th>Titulo</th> <!-- <th>Status</th> --> <!-- <th>Usuário</th> --> <th width="20%">Ação</th> </tr> </thead> <tbody> <?php $resultado = $DAO->listar("SELECT ra.*, p.nome_completo FROM " . MYSQL_BASE_REMESSA_ARQUIVOS . " ra, " . MYSQL_BASE_PESSOAS . " p WHERE p.id = ra.id_usuario AND\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tra.id_remessa_lista =" . $remessa->getId() . " AND ra.excluido IS NULL AND ra.finalizado IS NULL"); $confirm_con = "return confirm('Deseja concluir esse registro?');"; $confirm = "return confirm('Deseja remover esse registro?');"; foreach ($resultado as $item) { if ($item['finalizado'] == NULL) { $status = '<span class="label label-warning">Aberto</span>'; } else { $status = utf8_encode('<span class="label label-success">Concluído</span>'); } echo '<tr>'; echo ' <td>' . $item['file'] . '</td>'; echo ' <td>' . $item['titulo'] . '</td>'; // echo ' <td>'.$status.'</td>'; // echo ' <td>'.$item['nome_completo'].'</td>'; echo ' <td>'; // echo ' <a data-rel="tooltip" title="Concluir" class="btn btn-success" onclick="' . $confirm_con . '" href="view.php?cmd=fin&id=' . $item ['id'] . '">';
} ?> <table class="table table-striped table-bordered bootstrap-datatable datatable"> <thead> <tr> <th>Nome</th> <th>Criado</th> <th>Grupo</th> <th>Usuário</th> <th width="20%">Ação</th> </tr> </thead> <tbody> <?php $DAO->listar(); ?> </tbody> </table> </div> </div> </div> <!-- content ends --> </div><!--/#content.span10--> </div><!--/fluid-row--> <hr> <?php include_once '../../footer.php';