Mini Shell
Direktori : /home/emypro/www/ |
|
Current File : /home/emypro/www/index-bkp-10-5-2024.php |
<?php include('header.php') ?>
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> -->
<style>
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
width: 100%;
margin: auto;
}
.config-item {
height: 500px;
}
@media (max-width: 700px) {
.carousel-caption {
font-size: 30px;
}
}
@media (max-width: 600px) {
.config-item {
height: 500px;
}
}
.mobile{display: none;}
@media (max-width: 680px) {
img.mobile{display: block !important;}
.desktop{display: none !important;}
}
</style>
<?php if(date('Y') == 2024 && date('m') == 3 && date('d') <= 31): ?>
<style>
#diaPais {
background: #395d8b url(http://www.emypro.com.br/img/banners/painel02.jpg) no-repeat 50% 0; background-size: cover !important;
}
.bgPainel {
background-size: auto 100% !important;
}
@media (max-width: 600px) {
#diaPais {
background: #395d8b url(http://www.emypro.com.br/img/banners/mobile02.jpg) no-repeat 50% 50%; background-size: 100% auto !important;
}
.bgPainel {
background-size: 180% 100% !important;
}
}
</style>
<?php endif; ?>
<?php if(date('Y') == 2024 && date('m') == 3 && date('d') <= 8): ?>
<style>
#diaPais {
background: #395d8b url(http://www.emypro.com.br/img/popup/painel_dia_da_mulher.jpg) no-repeat 50% 0; background-size: cover !important;
}
.bgPainel {
background-size: auto 100% !important;
}
@media (max-width: 600px) {
#diaPais {
background: #395d8b url(http://www.emypro.com.br/img/popup/mobile_dia_da_mulher.jpg) no-repeat 50% 50%; background-size: 100% auto !important;
}
.bgPainel {
background-size: 180% 100% !important;
}
}
</style>
<?php endif; ?>
<div id="myCarousel" class="carousel slide">
<!-- Indicators -->
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php
$bannerActive = ( strtotime(date('Y-m-d')) <= strtotime(date('2024-03-31')) );
if($bannerActive) : ?>
<div class="item active">
<div class="config-item bgPainel" id="diaPais">
</div>
</div>
<?php endif; ?>
<?php $banners = new Banner() ?>
<?php $n = 0 ?>
<?php foreach($banners->findAll() as $banner): ?>
<div class="item <?php if ($n < 1 && !$bannerActive) { echo 'active';} ?> ">
<div class="config-item" style="background: url(<?= URL_IMG .'banners/'. $banner->image ?>) no-repeat 50% 0; background-size: cover;">
<div class="carousel-caption">
<p><?= $banner->title ?></p>
<?php if($banner->link != 'http://www.emypro.com.br') : ?>
<p>
<a href="<?= $banner->link ?>" class="caption-button">
Saiba mais
</a>
</p>
<?php endif; ?>
</div>
</div>
<!-- /.config-item -->
</div>
<?php $n++ ?>
<?php endforeach ?>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="javascript:;" role="button">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="javascript:;" role="button">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="blue-wrapper">
<b>Seja bem vindo</b> a Emypro
</div>
<div id="mvv" class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-3">
<h3><b>Missão</b></h3>
<p align="justify">Desenvolver trabalhos com excelência profissional, buscando elevar os padrões de qualidade, eficiência, sustentabilidade e lucratividade.</p>
</div>
<div class="col-md-3">
<h3><b>Visão</b></h3>
<p align="justify">Ser referência no segmento de atuação, reconhecida por clientes, colaboradores e fornecedores pela qualidade dos serviços e relacionamentos.</p>
</div>
<div class="col-md-3">
<h3><b>Valores</b></h3>
<p align="justify">Condutores de nossas ações e comportamentos, nosso valores são pautados em trabalho digno e seguro, respeito mútuo, confiabilidade, honestidade, transparência, evolução continua e desenvolvimento sustentável.</p>
</div>
<div class="col-md-3">
<h3><b>Compliance </b></h3>
<p align="justify">Assegurar que a ética seja parte integrante e indispensável dos nossos negócios, promovendo a cultura e conscientização das normas internas e externas para uma efetiva e sólida política de integridade.</p>
</div>
</div>
</div>
</div>
<div id="posts-list">
<?php if(date('Y') == 2020 && date('m') <= 3 ) : ?>
<div class="container">
<div class="row">
<div class="col-sm-12">
<br>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="thumbnail">
<img src="http://www.emypro.com.br/img/marco_azul.jpg" class="img-responsive" alt="">
</div>
</div>
<div class="col-sm-6">
<div class="thumbnail">
<img src="http://www.emypro.com.br/img/marco_lilas.jpg" class="img-responsive" alt="">
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php if(date('Y') == 2020 && date('m') != 3 ) : ?>
<div class="container">
<?php $noticias = new Noticia() ?>
<?php $noticiasAll = $noticias->findAll('created', 'desc', 2) ?>
<?php if($noticiasAll): ?>
<div class="row">
<div class="col-sm-12">
<h3 class="text-center">Últimas notícias</h3>
</div>
</div>
<?php foreach(array_chunk($noticiasAll, 2) as $row): ?>
<div class="row">
<?php foreach($row as $noticia): ?>
<div class="col-sm-6">
<a href="<?= URL_APP ?>noticia/<?= Helper::slugify($noticia->title) .'/'. $noticia->id ?>">
<div class="thumbnail">
<img src="<?= URL_IMG .'noticias/'. $noticia->image ?>" class="img-responsive" alt="">
<div class="caption">
<h4><?= $noticia->title ?></h4>
</div>
</div>
</a>
</div>
<?php endforeach ?>
</div>
<?php endforeach ?>
<?php endif ?>
<?php endif; ?>
</div>
</div>
<?php include('footer.php') ?>
<script>
$(document).ready(function(){
// Activate Carousel
$("#myCarousel").carousel();
// Enable Carousel Controls
$(".left").click(function(){
$("#myCarousel").carousel("prev");
});
$(".right").click(function(){
$("#myCarousel").carousel("next");
});
});
</script>
<?php
function popup($arquivo, $ano, $mes, $dia) {
if(date('Y') == $ano && date('m') == $mes && date('d') <= $dia) {
echo '<div style="
position: fixed;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,.7);
z-index: 999999;
left: 0;
top: 0;
right: 0;
bottom: 0;
padding: 10px;" >
<a href="javascript:;" onclick="this.parentElement.style.display = \'none\'"><img src="https://www.demo.redevip.com.br/clientes/popup/saojoao/'.$arquivo.'" alt
style="
max-width: 100%;
max-height: calc(100vh - 20px);"
></a>
</div>';
}
}
popup('1.png', 2023, 6, 25);
?>
<?php if(date('Y-m-d') == "2019-04-30" || date('Y-m-d') == "2019-05-01") : ?>
<style>@media screen and (max-width: 600px) {.irwd {width: 280px;}}</style><table style='position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 999999; background: rgba(0,0,0,.5);' onclick="this.style.display = 'none'"><tr><td style='width: 100%; height: 100%; text-align: center; vertical-align: middle;'><img src='img/popup/01.png' style='max-width: 100%; display: inline;' class='irwd' /></td></tr></table>
<?php endif; ?>
<?php if(date('Y') == 2023 && date('m') == 8 and date('d') <= 13) : ?>
<style>@media screen and (max-width: 600px) {.irwd {width: 280px;}}</style><table style='position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 999999; background: rgba(0,0,0,.5);' onclick="this.style.display = 'none'"><tr><td style='width: 100%; height: 100%; text-align: center; vertical-align: middle;'><img src='https://www.sitesrecife.com/popup/2023/popup_pais03.png' style='max-width: 100%; display: inline;' class='irwd' /></td></tr></table>
<?php endif; ?>
Zerion Mini Shell 1.0