<?php
include_once('../../class/class.mysql.php');
include_once('../../evento/previa/class.previa.php');
include_once('../../include/utilitarios.php');
$mysqlCom = new MysqlConnect();
extract($_POST);

$Previa = new Previa();
$Previa->SelectPrevia($id_evento);
?>
<input name="id_evento" id="id_evento" type="hidden" value="<?php echo $id_evento?>">
<div style="font-size:12px; padding:0px 0 30px 10px" class="Select">
  <div id="pnResultadoPrevia">
	  <?php
        while($row = mysqli_fetch_object($Previa->qry)){
        ?>
        <div id="pnId_evento_previa<?php echo $row->id_evento_previa;?>">
        <table width="600" border="0">
          <tr>
            <th width="146" scope="col" class="descricao">Campo</th>
            <th colspan="2" class="descricao" scope="col">Descrição</th>
          </tr>
          <tr>
            <td class="descricao">Data</td>
            <td colspan="2" class="dados"><div align="left"><?php echo InverterData($row->data)?></div></td>
          </tr>
          <tr>
            <td class="descricao">Hora</td>
            <td colspan="2" class="dados"><div align="left"><?php echo $row->hora?></div></td>
          </tr>
          <tr>
            <td class="descricao">Local</td>
            <td colspan="2" class="dados"><div align="left"><?php echo $row->nome?>
             <button class="buttonPequeno" id="btnVerDetalheLocalP" id_evento_previa="<?php echo $row->id_local_previa?>">Ver Detalhes</button></div></td>
          </tr>
          <tr>
            <td class="descricao">Obs</td>
            <td colspan="2" class="dados"><div align="left" id="pnObs"><?php echo $row->obs_previa?></div></td>
          </tr>
          <tr>
            <td valign="middle" class="descricao">Fotografo</td>
            <td colspan="2" valign="middle" class="dados"><div align="left"><?php echo $row->fotografo?></div></td>
          </tr>
          <tr>
            <td class="descricao">Cinegrafista</td>
            <td colspan="2" class="dados"><div align="left"><?php echo $row->cinegrafista?></div></td>
          </tr>
          <tr>
            <td colspan="2" class="descricao">
                       
            </td>
            <td width="142" class="descricao">
            <div align="center">
            <button class="buttonPequeno" id="btnDeletarPrevia" id_previa="<?php echo $row->id_evento_previa?>">Deletar</button>
                 
            </div>
            
            </td>
          </tr>
        </table>
        </div>
      <br>
        <?php }?>
     </div>
</div>
<!--<link rel="stylesheet" href="include/select/js/chosen/chosen.css" />  
<script src="include/select/js/chosen/chosen.jquery.min.js"></script>
<script src="include/select/js/script_divSelect.js"></script>-->