E:
/
home
/
kbcomunicacao1
/
Web
/
innterage
/
webChat
/
Upload File
HOME
<?php $id = $_REQUEST['id']; $img = $_REQUEST['img']; $flw = $_REQUEST['flw']; require '../includes/conexao/funcao.inc.php'; require '../includes/conexao/config.php'; require '../includes/conexao/conn.php'; require '../includes/conexao/function.php'; $query2 = "SELECT cw_flw.img_flw, cw_flw.assunto_flw, cw_flw.responsavel_flw, cw_cliente.razao_cliente FROM cw_flw, cw_cliente WHERE cw_flw.cliente_flw=cw_cliente.id_cliente AND cw_flw.id_flw='$flw' LIMIT 1"; $result2 = DBExecute($query2); $res2 = mysqli_fetch_assoc($result2); $query1 = "SELECT nome_anexo, nomearquivo_anexo FROM cw_anexo WHERE nome_anexo='$img' LIMIT 1"; $result1 = DBExecute($query1); $res1 = mysqli_fetch_assoc($result1); $queryuser = "SELECT nome_user, img_user FROM cw_user WHERE id_user='$res2[responsavel_flw]'"; $resultuser = DBExecute($queryuser); $resuser = mysqli_fetch_assoc($resultuser); $nome_user = $resuser['nome_user']; $img_user = $resuser['img_user']; $query = "SELECT nome_anexo, nomearquivo_anexo FROM cw_anexo WHERE chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='JPG' OR chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='jpg' OR chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='PNG' OR chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='png' OR chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='GIF' OR chave_anexo='$id' AND nome_anexo!='$img' AND tipo_anexo='gif' "; $link = DBConnect(); $result = @mysqli_query($link, $query) or die(mysqli_error($link)); ?> <!DOCTYPE html> <html lang="pt-br" class="no-js"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>GALERIA WEBCHAT</title> <meta name="description" content="Blueprint: " /> <meta name="keywords" content="" /> <link rel="stylesheet" type="text/css" href="../midia/bootstrap/css/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="css/default.css" /> <link rel="stylesheet" type="text/css" href="css/component.css" /> <script src="js/modernizr.custom.js"></script> </head> <body> <div class="row"> <div class="col-lg-8"> <div class="col-lg-1"> <?php if($resuser['img_user']==""){ ?> <img alt="image" src="../midia/img/profile_small.jpg" style="width: 42px" alt="image" class="img-circle"> <?php }else{ ?> <img title="Responsável <?php echo $resuser['nome_user']; ?>" alt="image" src="../img-perfil/img/perfil/<?php echo $resuser['img_user']; ?>" style="width: 42px" alt="image" class="img-circle"> <?php } ?> </div> <div class="col-lg-11" style="color:#666"> <strong><?php echo $res2['assunto_flw']; ?></strong> / <strong> <?php echo $res2['razao_cliente']; ?><br /> </strong> </div> </div> </div> <div class="container"> <div id="cbp-fwslider" class="cbp-fwslider"> <ul> <li><a href="#"><img src="../upload/uploads/<?php echo $res1['nome_anexo']; ?>" alt="<?php echo $res1['nomearquivo_anexo']; ?>" title="<?php echo $res1['nomearquivo_anexo']; ?>"/></a></li> <?php while($res = mysqli_fetch_assoc($result)){ ?> <li><a href="#"><img src="../upload/uploads/<?php echo $res['nome_anexo']; ?>" alt="<?php echo $res['nomearquivo_anexo']; ?>" title="<?php echo $res['nomearquivo_anexo']; ?>"/></a></li> <?php } ?> </ul> </div> </div> <script src="js/jquery.min.js"></script> <script src="js/jquery.cbpFWSlider.min.js"></script> <script> $( function() { $( '#cbp-fwslider' ).cbpFWSlider(); } ); $(document).ready(function(){ $(document).on("keyup", function(e) { if(e.which==27){ window.close() }else{} }); }); </script> </body> </html>