<?php
include_once('class/class.mysql.php');
include_once('include/utilitarios.php');
include_once('evento/class.evento.php');

$evento = new Evento();
$mysqlCom = new MysqlConnect();
extract($_POST);

$evento->LocalizarEvento(RemoverAcentos($dados));

?>

<table width="700" border="0">
  <tr class="descricao">
    <th width="115" scope="col">Perfil</th>
    <th width="76" scope="col">Data</th>
    <th width="55" scope="col">Hora</th>
    <th width="312" scope="col">Nome</th>
    <th width="120" scope="col">Tipo</th>
  </tr>
 <?php while($row = mysqli_fetch_object($evento->qry)){?>
  <tr class="dados">
    <td><div align="center" id="pnLocPicasa<?php echo $row->id_evento?>">
	    <script>CarregarUmaFotoPicasa('<?php echo $row->id_evento?>','#pnLocPicasa'+<?php echo $row->id_evento?>,'72','nao')</script>
        </div>
    </td>
    <td><div align="left"><a href="?p=evento/principal&id_evento=<?php echo $row->id_evento?>"><?php echo InverterData($row->data_evento)?></a></div></td>
    <td><div align="left"><a href="?p=evento/principal&id_evento=<?php echo $row->id_evento?>"><?php echo $row->hora?></a></div></td>
    <td><div align="left"><a href="?p=evento/principal&id_evento=<?php echo $row->id_evento?>"><?php echo $row->nome?></a></div></td>
    <td><div align="left"><a href="?p=evento/principal&id_evento=<?php echo $row->id_evento?>"><?php echo $row->descricao?></a></div></td>
    <?php }?>  
    
  </tr>
</table>
<script type="text/javascript" src="js/table.js"></script>
