<div class="box-body">
                  <div class="table-responsive">
                  <table id="dataT" class="table table-bordered table-hover dt-responsive nowrap">
                    <thead>
                      <tr>
                        <th>ID</th>
                        <th>Data</th>
                        <th>Notícia</th>
                        <th>Status</th>
                        <th>Opções</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
$listar = new Noticias();
$list = $listar->ListarNoticias();
//print_r($list);
if ($list != null) {
    foreach ($list as $line) {
        ?>
                    <tr class="odd gradeX">
                      <form name="view" action="EditNoticiaObj.php" method="post">
                        <td><?php 
        echo $line->id;
        ?>
</td>
                        <td><?php 
        echo date('d/m/Y', strtotime($line->data));
        ?>
</td>
                        <td><?php