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

$mysqlCom = new MysqlConnect();
extract($_POST);
$Previa = new Previa();
$Previa->SelectFeriado(DataInvertida($data));

?>

	<?php while($linha = mysqli_fetch_object($Previa->qry)){?>
     <table width="600" border="0">
      <tr class="dados">
        <td width="147" scope="col" class="descricao">Feriado</td>
        <td width="324" scope="col"><div align="left"><?php echo $linha->descricao?></div></td>
        <td width="115" scope="col" class="descricao"><?php echo InverterData($linha->data)?></td>
      </tr>
    </table>
    <?php }?>
    
    
    <table width="600" border="0">
      <tr class="descricao">
        <th width="147" scope="col">Imagen</th>
        <th width="324" scope="col">Nome Cliente</th>
        <th width="115" scope="col">Data Hora</th>
      </tr>
      <?php $Previa->SelectEvento(DataInvertida($data));
		while($linha = mysqli_fetch_object($Previa->qry)){
	  ?>    
      
      <tr class="dados">
        <td scope="col">
        <div class="pnEventoID<?php echo $linha->id_evento?>">
        <script>CarregarUmaFotoPicasa('<?php echo $linha->id_evento?>')</script>
        </div>
        </td>
        <td scope="col"><div align="left"><?php echo strtoupper($linha->tipo_evento)?><br>
          <?php echo $linha->nome?><br/>
          <span class="descricao"><?php echo $linha->salao?></span>
          </div></td>
        <td scope="col"><?php echo $linha->hora?><br><span class="descricao"><?php echo InverterData($linha->data_evento)?></span></td>
      </tr>
      
      <?php }?>
      
      
       <?php $Previa->VerPrevia(DataInvertida($data));
		while($Verlinha = mysqli_fetch_object($Previa->qry)){
	  ?> 
      
      
        <tr class="dados">
        <td scope="col">
        <div class="pnEventoID<?php echo $Verlinha->id_evento?>">
        <script>CarregarUmaFotoPicasa('<?php echo $Verlinha->id_evento?>')</script>
        </div>
        </td>
        <td scope="col"><div align="left">PREVIA<br>
          <?php echo $Verlinha->evento?><br/>
          <span class="descricao"><?php echo $Verlinha->salao?></span>
          </div></td>
        <td scope="col"><?php echo $Verlinha->hora?><br><span class="descricao"><?php echo InverterData($Verlinha->data)?></span></td>
      </tr>
      
      <?php }?>
      
      
      
      
</table>
