D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Views
/
Portal
/
Filename :
ViePortalImagemVer.php
back
Copy
<?php if (!defined('URL')) { header("Location: /"); exit(); } if (!empty($this->Dados['dados_imagem'][0])) { extract($this->Dados['dados_imagem'][0]); //var_dump($this->Dados['dados_curtidas']); ?> <style> .card { overflow: hidden; } .card-columns img { max-width: 100%; -moz-transition: all 0.3s; -webkit-transition: all 0.3s; transition: all 0.3s; } .card-columns:hover img { -moz-transform: scale(3.5); -webkit-transform: scale(3.5); transform: scale(3.5); } .text-item { position: absolute; left: 5%; right: 5%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.6); } </style> <div class="content p-1"> <div class="list-group-item"> <div class="d-flex"> <div class="mr-auto p-2"> <h2 class="display-4 titulo">Detalhes</h2> </div> <div class="p-2"> <span class="d-none d-md-block"> <?php if ($this->Dados['botao']['lis_imagem']) { echo "<a href='" . URLADM . "con-portal-imagem/listar/?opcao=V&tipo_id=$tipo_id' class='btn btn-outline-info btn-sm'>Voltar</a> "; } ?> </span> </div> </div><hr> <?php if (isset($_SESSION['msg'])) { echo $_SESSION['msg']; unset($_SESSION['msg']); } ?> <dl class="row"> <dt class="col-sm-1">Tipo</dt> <dd class="col-sm-11"><?php echo $tipo_nome ?></dd> <dt class="col-sm-1">Título</dt> <dd class="col-sm-11"><?php echo $titulo ?></dd> <dt class="col-sm-1">Descrição</dt> <dd class="col-sm-11"><?php echo $descricao ?></dd> <dt class="col-sm-1">Incluído</dt> <dd class="col-sm-11"><?php echo $usu_created.' - '.$data_created ?></dd> <?php if ($tipo_img == 'V') { ?> <dt class="col-sm-1">Vídeo</dt> <?php }else{ ?> <dt class="col-sm-1">Foto</dt> <?php } ?> <?php if ($tipo_img == 'V') { ?> <dd class="col-sm-4"> <div class="embed-responsive embed-responsive-1by1" > <iframe class="embed-responsive-item" src="<?php echo URLADM ."assets/imagens/portal/" . $imagem?>" witdh="200" height="200"> ></iframe> </div> <?php } else { echo "<dd class='col-sm-11'>"; echo "<img src='" . URLADM . "assets/imagens/portal/" . $imagem . "' witdh='300' height='300'>"; } ?> </dd> </dl> <?php if ($this->Dados['dados_curtidas'][0]['data_m'] <> '') { ?> <div class="form-row"> <div class="col-md"> <table id="example-crm" class="datatable-idoso-gre stripe " cellspacing="0" width="40%"> <thead> <tr> <td align="right"><b>Curtidas da Imagem</b></td> <td align="center"><b></b></td> </tr> <tr> <td align="left"><b>Data</td> <td align="left"><b>Curtida Por</td> </tr> </thead> <tbody> <?php foreach ($this->Dados['dados_curtidas'] as $dados_curtidas) { extract($dados_curtidas); ?> <tr> <td><?php echo $data_m.' hs'; ?></td> <td><?php echo $apelido;?></td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } ?> </div> </div> <?php } else { $_SESSION['msg'] = "<div class='alert alert-danger'>Erro: Usuário não encontrado!</div>"; $UrlDestino = URLADM . 'con-portal-imagem/listar'; header("Location: $UrlDestino"); }