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

$class->CarregarAlbunsPicasa($id_evento, 1);



?>

<table width="600" border="0">
            <tr class="dados">
              <th colspan="6" align="center">Web Site</th>
            </tr>
            <tr class="descricao">
              <td width="168">Descrição</td>
              <td width="53">WebSite</td>
              <td width="37">QtoFt</td>
              <td width="45">Acesso</td>
              <td width="100">Data</td>
              <td width="171">Ação</td>
            </tr>
            
            <?php while($row = mysqli_fetch_object($class->qry)){?>
            <tr>
              <td><div align="left" id="pnId_album_picasa<?php echo $row->id_album_picasa;?>"><a href="#" id="btnAlterarDescAlbum" desc="<?php echo $row->descricao;?>" id_album_picasa="<?php echo $row->id_album_picasa;?>" title="Alterar a Descrição"><?php echo $row->descricao;?></a></div></td>
              <td><div align="left"><?php echo $row->website;?></div></td>
              <td><?php echo $row->qto_fotos;?></td>
              <td><?php echo $row->acesso;?></td>
              <td><?php echo InverterDataHora($row->data_criacao);?></td>
              <td><div align="left">
                    <button class="button blue small" id="btnCarregaFotoWebSite" usuario="<?php echo $row->usuario_picasa;?>" album="<?php echo $row->album_picasa;?>" pag="0" cont="pnFotosWebSite">Ver Fotos</button>
                    <button class="button white small" id_album_picasa="<?php echo $row->id_album_picasa;?>" id="btnDeletarAlbum" id_x9_local="<?php echo $row->id_x9_local?>" >Deletar</button>
                    <a href="#" desc="<?php echo $row->descricao;?>" website="<?php echo $row->website;?>" class="btnLinkIntegra" id_evento="<?php echo $id_evento;?>" title="link para blogs ou sites">Link</a></div>
              </td>
            </tr>
            
            <?php }?>
	 </table>



<?php $class->CarregarAlbunsPicasa($id_evento, 0);?>


<table width="600" border="0">
        <tr class="dados">
          <th colspan="5" align="center">Álbuns do X9</th>
        </tr>
        <tr class="descricao">
          <td width="168">Descrição</td>
          <td width="92">Qto de Fotos</td>
          <td width="59">Acesso</td>
          <td width="108">Data</td>
          <td width="151">Ação</td>
        </tr>
        <?php while($row = mysqli_fetch_object($class->qry))
		  if ($row->id_x9_local != 1) { 
		?>
        <tr>
          <td><div align="left" id="pnId_album_picasa<?php echo $row->id_album_picasa;?>2"><?php echo $row->local . ' - ' . $row->descricao;?></div></td>
          <td><?php echo $row->qto_fotos;?></td>
          <td><?php echo $row->acesso;?></td>
          <td><?php echo InverterDataHora($row->data_criacao);?></td>
          <td><div align="left">
            <button class="button blue small" id="btnCarregaFotoWebSite" usuario="<?php echo $row->usuario_picasa;?>" album="<?php echo $row->album_picasa;?>" pag="0" cont="pnFotosWebSite">Ver Fotos</button>
            <button class="button white small" id_album_picasa="<?php echo $row->id_album_picasa;?>" id="btnDeletarAlbum" id_x9_local="<?php echo $row->id_x9_local?>" >Deletar</button>
          </div></td>
        </tr>
        <?php }?>
</table>
