<h3 class="box-title">Listagem de eventos</h3>
                  <a class="btn btn-info btn-flat pull-right" href="ViewEventosObj.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 id="dataT" class="table table-bordered table-hover">
                    <thead>
                      <tr>
                        <th>Evento</th>
                        <th>Data de inicio</th>
                        <th>Opções</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
$listar = new Eventos();
$list = $listar->Listar();
if ($list != null) {
    foreach ($list as $line) {
        ?>
                     <tr class="odd gradeX">
                        <form name="view" action="EditEventoObj.php" method="post">
                           <td><?php 
        echo $line->evento;
        ?>
</td>
                           <td><?php 
        echo date('d/m/Y', strtotime($line->dataInicio));
        ?>
</td>
                           <td>
                              <input type='hidden' name='id' value='<?php