<div class="box-header"> <h3 class="box-title">Listagem de cárdapios</h3> <a class="btn btn-info btn-flat pull-right" href="ViewCardapiosObj.php" title="Atualizar resultados" data-toggle="tooltip" data-placement="left"><i class="fa fa-refresh"></i></a> </div><!-- /.box-header --> <div class="box-body"> <table class="table table-bordered table-hover"> <thead> <tr> <th style="text-align:center">Dia</th> <th style="text-align:center">Data</th> <th style="text-align:center">Opções</th> </tr> </thead> <?php $listar = new Cardapios(); $list = $listar->ListarCardapios(); /*print_r($list);*/ if ($list != null) { foreach ($list as $line) { ?> <form name="view" class="" action="EditCardapioObj.php" method="post"> <tbody> <tr> <td><?php echo $line->dia; ?> </td> <td><?php echo date('d/m/Y', strtotime($line->data)); ?> </td>