| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/leo/application/plugins/module_imobles/assets/libs/ |
Upload File : |
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<style>
*{
margin: 0;
padding: 0px;
}
body {
width: 900px;
margin: 0 auto;
}
h1 {
font-family: 'Inter', sans-serif;
font-style: normal;
font-weight: 600;
font-size: 36px;
line-height: 54px;
letter-spacing: -0.02em;
color: #19212D;
}
h2 {
font-family: 'Inter', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 32px;
height: 32px;
display: flex;
align-items: center;
letter-spacing: -0.02em;
color: #19212D;
margin-left: 32px;
}
h3 {
font-family: 'Inter', sans-serif;
font-style: normal;
letter-spacing: -0.02em;
color: #474D57;
font-weight: 400;
font-size: 20px;
line-height: 28px;
margin-top: 15px;
}
h4 {
font-family: 'Inter', sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 400;
height: 60px;
margin-left: 0px;
text-align: left;
line-height: 20px;
color: #474D57;
letter-spacing: 0em;
}
h6 {
font-family: 'Inter', sans-serif;
font-size: 9px;
font-style: normal;
font-weight: 200;
height: 11px;
margin-left: 0px;
text-align: left;
line-height: 11px;
color: #474D57;
letter-spacing: 0em;
}
.tableTop {
width: 100%;
background: #ECEDEF;
border-bottom: 1px solid #CFCFCF;
}
.boxLogo {
width: 170px;
}
.logo {
max-width:130px;
max-height:70px;
align-content: center;
border-radius: 4px;
margin-left: 16px;
margin-top:26px;
margin-bottom:26px;
}
.tableCenter {
width: 100%;
height: 198px;
background: #ECEDEF;
border-spacing: 16px;
border-collapse: separate;
}
.boxPhoto{
width: 380px;
}
.photo {
width: 352px;
height: 231px;
align-content: center;
border-radius: 8px;
}
.tableData {
width: 899px;
background: #FFFFFF;
box-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.16);
border-spacing: 16px;
border-collapse: separate;
}
.boxPlant{
width: 380px;
}
.plant {
max-width: 352px;
max-height: 180px;
align-content: center;
border-radius: 8px;
}
.box1, .box2, .box3, .box4, .box5{
width: 100px;
height: 94px;
align-content: center;
background: #F8F8F9;
border-radius: 8px;
font-family: 'Inter', sans-serif;
font-style: normal;
font-weight: normal;
font-size: 20px;
line-height: 28px;
text-align: center;
}
.box2 {
height: 120px;
width: 220px;
}
.box3{
width: 352px;
align-items: left;
background: #FFFFFF;
text-align: left;
padding-right: 20px;
}
.box4 {
width: 470px;
height: 89px;
color: #FFFFFF;
}
.innerTable {
width: 100%;
border-spacing: 16px 0px;
border-collapse: separate;
}
.box5{
width: 152px;
height: 120px;
}
.box4img {
width: 470px;
height: 89px;
text-decoration: none;
}
.icon {
width: 20px;
height: 20px;
}
.tableImobles {
width: 900px;
height: 780px;
background: #FFFFFF;
border: 0px;
margin: 0px;
padding: 0px;
border-spacing: 0px;
}
.boxPersonalShopper {
width: 450px;
background: #FFFFFF;
text-align: center;
}
.boxMySide {
text-align: center;
background: #F8F8F9;
}
.mySideImg {
width: 450px;
height: 780px;
}
.imgConsultor {
width: 150px;
height: 150px;
border-radius: 75px;
}
</style>
</head>
<body id="body">
<?php
$user = User::_info();
if ($user['img'] <> ''){
$imgConsultant = $user['img'];
} else {
$imgConsultant = APP_URL . '/ui/lib/imgs/default-user-avatar.png';
}
$id = 0;
foreach ($records as $r) {
if (@$r->LOGO) {
$imgLogo = APP_URL . "/application/plugins/module_imobles/uploads/enterprise/" . $r->module_imobles_enterprise_id . "/images/" . $r->LOGO->src;
} else {
$imgLogo = APP_URL . "/application/plugins/module_imobles/assets/imgs/myside_logo.png";
}
if (@$r->DEVELOPMENT_CARD) {
$imgCapa = APP_URL . "/application/plugins/module_imobles/uploads/enterprise/" . $r->module_imobles_enterprise_id . "/images/" . $r->DEVELOPMENT_CARD->src;
} else {
$imgCapa = APP_URL . "/application/plugins/module_imobles/assets/imgs/img_developmentcard_not_available.jpg";
}
if (@$r->UNIT_TYPE_PLAN) {
$imgPlant = APP_URL . "/application/plugins/module_imobles/uploads/enterprise/" . $r->module_imobles_enterprise_id . "/images/" . $r->UNIT_TYPE_PLAN->src;
} else {
$imgPlant = APP_URL . "/application/plugins/module_imobles/assets/imgs/img_plant_not_available.png";
}
if (!empty($r->idDocApresentacao)) {
$linkDetails = APP_URL . "/application/plugins/module_imobles/uploads/docs/" . $r->idDocApresentacao . "/" . $r->srcDocApresentacao;
} else if (!empty($r->link_presentation)) {
$linkDetails = $r->link_presentation;
} else if (!empty($r->link_hotsite)) {
$linkDetails = $r->link_hotsite;
} else if (!empty($r->site_url)) {
$linkDetails = $r->site_url;
} else {
$linkDetails = "";
}
// if ($id > 1 && $id % 2 == 0){
// echo "<pagebreak>";
// }
// $id++;
if($resale){
$delivery = 'Pronto • Usado';
} else if($r->init_sales > date("Y-m-d")){
$delivery = 'Na planta';
} else if ($r->date_delivery > date("Y-m-d")){
$delivery = 'Em contrução';
} else {
$delivery = 'Pronto • Novo';
}
if($resale){
$info = "Dados de referência retirados de anúncios atuais. Sujeitos à confirmação de disponibilidade. Podem ser alterados sem aviso prévio.";
} else{
$info = "Condições orientativas, sujeito à confirmação de disponibilidade com a incorporadora e análise de crédito. Podem ser alterados sem aviso prévio.";
}
$detailsSpacer = '<br/>';
if ($includeDistanceToTheBeach){
$detailsSpacer = '<h6> </h6>';
}
?>
<table class="tableTop">
<tr>
<td class="boxLogo">
<img class="logo" alt="logo" src="<?=$imgLogo?>" />
</td>
<td>
<h2> <b><?= $r->enterprise_name ?></b> - <?= $r->description ?></h2>
</td>
</tr>
</table>
<table class="tableCenter">
<tr>
<td class="boxPhoto">
<img class="photo" alt="photo" src="<?=$imgCapa?>">
</td>
<td width="55%">
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-house.png" />
<?= $delivery ?>
</h3>
<?= $detailsSpacer ?>
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-map-marker.png" />
<b>Bairro</b> <?= $r->address_neightborhood ?>
</h3>
<?= $detailsSpacer ?>
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-construction_company.png" />
<b>Construtora</b> <?= $r->company_construction ?>
</h3>
<?= $detailsSpacer ?>
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-calendar.png" />
<b>Entrega </b> <?= $r->release_date ? $meses[date("m", strtotime($r->release_date))] . " de " . date(" Y", strtotime($r->release_date)) : ""; ?>
</h3>
<?php
if ($includeDistanceToTheBeach){
?>
<?= $detailsSpacer ?>
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-beach.png" />
<b>Distância até a praia </b> <?= $r->distance_to_the_beach ?> metro<?= $r->distance_to_the_beach > 1?"s":"" ?>
</h3>
<?php
}
?>
</td>
</tr>
</table>
<table class="tableData">
<tr>
<td rowspan="2" class="boxPlant">
<img class="plant" alt="planta" src="<?=$imgPlant?>">
</td>
<td class="box1">
<b>m² </b><br/>
<?= number_format($r->area, 2, $config['dec_point'], $config['thousands_sep'])?>
</td>
<td class="box1">
<b>Quartos</b><br/>
<?= $r->number_rooms ?>
</td>
<td class="box1">
<b>Suítes</b><br/>
<?= $r->number_suite ?>
</td>
<td class="box1">
<b>Garagens</b><br/>
<?= empty($r->number_garage) || in_array($r->number_garage, array("N/A", null, 0)) ? "Pendente" : $r->number_garage; ?>
</td>
</tr>
<?php
if ($resale){
?>
<tr>
<td colspan=4>
<table class="innerTable">
<tr>
<td class="box5">
<b>Média dos anúncios</b><br/>
<?= $r->avg_desc ?>
</td>
<td class="box5">
<b>Valor do Condomínio</b><br/>
<?= $config['currency_code'] . " " . number_format($r->condo_fee, 0, $config['dec_point'], $config['thousands_sep']) ?>
</td>
<td class="box5">
<b>Preço do m² </b><br/>
<?= $config['currency_code'] . " " . number_format($r->min / $r->area, 0, $config['dec_point'], $config['thousands_sep']) ?>
</td>
</tr>
</table>
</td>
</tr>
<?php
} else {
?>
<tr>
<td colspan=2 class="box2">
<b>Preço a partir de</b><br/>
<?= $r->min_desc ?>
</td>
<td colspan=2 class="box2">
<b>Preço do m² </b><br/>
<?= $config['currency_code'] . " " . number_format($r->min / $r->area, 0, $config['dec_point'], $config['thousands_sep']) ?>
</td>
</tr>
<?php
}
?>
<tr>
<td class="box3">
<h4><?= $info ?></h4>
</td>
<td colspan=4 class="box4">
<a target="_blank" href="<?=$linkDetails?>">
<img class="box4img" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/btn_clique_aqui.png" />
</a>
</td>
</tr>
</table>
<pagebreak>
<?php
}
?>
<table class="tableImobles">
<tr>
<td class="boxPersonalShopper">
<img class="imgConsultor" src="<?=$imgConsultant?>"></img>
<br/><br/>
<h1><b><?=$user["fullname"]?></b></h1>
<br/>
<h3>Personal Shopper Imobiliário</h3>
<br/><br/><br/>
<!--
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-whatsapp.png" />
<?=$user["phonenumber"]?>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-phone.png" />
(62) 3142-5340
</h3>
<br/>
-->
<h3>
<img class="icon" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/icon-mail.png" />
<?=$user["username"]?>
</h3>
</td>
<td class="boxMySide">
<img class="mySideImg" src="<?=APP_URL?>/application/plugins/module_imobles/assets/imgs/myside_info_propost.png"></img>
</td>
</tr>
</table>
</body>
</html>