742 lines
48 KiB
PHP
742 lines
48 KiB
PHP
<?php
|
||
function creationPDF($complex_title,$additional_heading,$ploshad,$ploshad_komn,$etazh,$wcs,$nazv,$opis,$renovation,$komnat,$number_of_parking,$plan,$location,$latitude,$longitude,$description_of_complex,$stoim,$url_obj,$photosOne,$phone,$id,$allPhoto,$currency,$street,$domNum)
|
||
{
|
||
if($stylenone == 1){
|
||
$st = '';
|
||
}else{
|
||
$st = 'display: none;';
|
||
}
|
||
$chtml = '<!DOCTYPE html>
|
||
<html lang="ru">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<link rel="stylesheet" href="css/main.css">
|
||
<title>'.$complex_title.'</title>
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<main>
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$photosOne.'" alt="img-fon">
|
||
<img class="big_logo" src="img/Logo_page.png" alt="big_logo">
|
||
<div class="info">
|
||
<div class="title-box">
|
||
<h1 class="info-title">'.$complex_title.'</h1>
|
||
</div>
|
||
<span class="info-text"><br>
|
||
'.$additional_heading.'
|
||
</span>
|
||
<div class="info-items">
|
||
<div class="item">
|
||
<div class="value">'.$ploshad.'</div>
|
||
<span class="description">M<sup>2</sup></span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$ploshad_komn.'</span>
|
||
<span class="description">- КОМНАТНАЯ</span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$etazh.'</span>
|
||
<span class="description">- Й ЭТАЖ</span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$wcs.'</span>
|
||
<span class="description"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$photosOne.'" alt="img-fon">
|
||
<img class="big_logo" src="img/Logo_page.png" alt="big_logo">
|
||
<div class="info">
|
||
<div class="title-box">
|
||
<h1 class="info-title">'.$complex_title.'</h1>
|
||
</div>
|
||
<span class="info-text"><br>
|
||
'.$additional_heading.'
|
||
</span>
|
||
<div class="info-items">
|
||
<div class="item">
|
||
<div class="value">'.$ploshad.'</div>
|
||
<span class="description">M<sup>2</sup></span>
|
||
</div>' . ( $ploshad_komn && $ploshad_komn > 0 ?
|
||
'<div class="item">
|
||
<span class="value">'.$ploshad_komn.'</span>
|
||
<span class="description">- КОМНАТНАЯ</span>
|
||
</div>' : '') .
|
||
'<div class="item">
|
||
<span class="value">'.$etazh.'</span>
|
||
<span class="description">- Й ЭТАЖ</span>
|
||
</div>
|
||
</div>
|
||
<span class="info-text-2"><br>
|
||
'.$street.', '.$domNum.'
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section about">
|
||
<div class="container about__container">
|
||
<div class="logo">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title">'.$complex_title.'</span>  
|
||
<div class="logo-line_2"></div> 
|
||
<img class="logo-img" src="img/logo_black.png" alt="">
|
||
</div>
|
||
|
||
<div class="about__content">
|
||
|
||
<div class="title-box">
|
||
<h2 class="section-title text-uppercase">
|
||
'.$nazv.'
|
||
</h2>
|
||
</div>
|
||
<div class="about__content-flex">
|
||
<div class="about__content-side">
|
||
|
||
<div class="about__content-side-block about__content-side-block--info">
|
||
<span class="main-text">
|
||
'.$opis.'
|
||
</span>
|
||
</div>
|
||
|
||
<div class="about__content-side-block about__content-side-block--icons">
|
||
<div class="container1">
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 171 171" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M110.667 157.333H13.3333V59.9994H110.667V157.333ZM110.667 46.666H13.3333C6 46.666 0 52.666 0 59.9994V157.333C0 164.666 6 170.666 13.3333 170.666H110.667C118 170.666 124 164.666 124 157.333V59.9994C124 52.666 118 46.666 110.667 46.666Z" />
|
||
<path
|
||
d="M123.999 20L100.932 9.53675e-07V13.3333H24.3987V9.53675e-07L1.33203 20L24.3987 40V26.6667H100.932V40L123.999 20Z" />
|
||
<path
|
||
d="M157.335 71.0663H170.668L150.668 47.9996L130.668 71.0663H144.001V147.6H157.335V71.0663Z" />
|
||
<path d="M130.668 147.599L150.668 170.666L170.668 147.599" />
|
||
</svg>
|
||
<p><span class="icon-item-label">Площадь</span>
|
||
<span class="icon-item-descr">'.$ploshad.' M<sup>2</sup></span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 33 15" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M10.1779 7.80416C10.3613 8.15156 9.26126 9.81822 6.39251 11.3318C4.82117 12.1651 3.23106 12.6614 2.14147 12.664C1.6347 12.664 1.38366 12.5479 1.34459 12.4724C1.16491 12.1328 2.22481 10.5208 4.97741 9.02812C5.13366 9.58176 5.35502 10.1078 5.63366 10.5989C5.70137 10.5651 5.76907 10.5312 5.83678 10.4958C7.11647 9.8203 7.95137 9.15624 8.46439 8.65102C8.39773 8.66353 8.32898 8.6802 8.25866 8.6953C8.39669 8.59478 8.5295 8.49582 8.6571 8.3979C8.47481 8.21665 8.33418 7.99686 8.24043 7.75312C8.65814 7.66249 9.04355 7.61457 9.38106 7.61301C9.88731 7.61197 10.1389 7.7302 10.1779 7.80416ZM11.7857 -6.96182e-05C7.86803 0.00833038 4.69877 3.19009 4.70658 7.10884C4.70658 7.29269 4.71699 7.47498 4.73106 7.65624C4.6571 7.69478 4.58262 7.73228 4.5097 7.7703C1.81855 9.19322 -0.689255 11.4646 0.172725 13.0937C0.38887 13.5052 0.9071 13.9937 2.14407 13.9906C3.44095 13.987 5.2597 13.4338 7.01387 12.5062C9.70502 11.0833 12.2118 8.81145 11.3508 7.18436C11.1337 6.77342 10.6154 6.28384 9.37845 6.28593C9.03731 6.28697 8.6597 6.32656 8.25606 6.40102C8.5295 5.7302 9.18678 5.2578 9.95502 5.25624C10.541 5.25468 11.0634 5.52864 11.3993 5.95312C11.7456 6.21561 11.954 6.51249 12.0764 6.74061C13.2456 8.9552 10.679 11.4338 7.91491 13.0286C9.0347 13.7614 10.3758 14.1901 11.816 14.1875C15.7321 14.1781 18.9019 10.9974 18.8935 7.07916C18.8862 3.16145 15.7039 -0.00833628 11.7857 -6.96182e-05Z" />
|
||
<path
|
||
d="M29.1537 4.02603L19.2422 4.04479C19.5469 4.78698 19.7422 5.58385 19.8119 6.41666C19.8229 6.41666 19.8333 6.41354 19.8437 6.41354L28.5885 6.39635C28.9557 6.39531 29.2526 6.69114 29.2551 7.05781C29.2551 7.42447 28.9583 7.72187 28.5911 7.72239L19.8463 7.74062C19.8359 7.74062 19.8255 7.73906 19.8151 7.7375C19.7499 8.57083 19.5567 9.36823 19.2551 10.1109L21.7729 10.1062L21.7781 12.9151C21.7813 13.751 22.4609 14.4297 23.2994 14.4271C24.1354 14.426 24.8119 13.7474 24.8119 12.9088L24.8067 10.1005L26.7005 10.0958L26.7083 12.9036C26.7083 13.9516 27.5599 14.7984 28.6062 14.7969C29.6537 14.7943 30.4999 13.9453 30.4974 12.8984L30.4922 9.77969C31.4999 9.2849 32.1927 8.25051 32.1927 7.05209C32.1875 5.37709 30.8281 4.02239 29.1537 4.02603Z" />
|
||
</svg>
|
||
<p><span class="icon-item-label">Готовность</span>
|
||
<span class="icon-item-descr">'.$renovation.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 32 26" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M0.533333 18.3992C0.266667 18.3992 0 18.1326 0 17.8659V14.6659C0 13.4659 0.933333 12.5326 2.13333 12.5326H29.4667C30.6667 12.5326 31.6 13.4659 31.6 14.6659V17.8659C31.6 18.1326 31.3333 18.3992 31.0667 18.3992H0.533333ZM28.9333 11.0659H27.3333V8.39922C27.3333 7.86589 26.8 7.33255 26.2667 7.33255H17.6C17.0667 7.33255 16.5333 7.86589 16.5333 8.39922V11.0659H14.9333V8.39922C14.9333 7.86589 14.4 7.33255 13.8667 7.33255H5.2C4.66667 7.33255 4.13333 7.86589 4.13333 8.39922V11.0659H2.66667V2.93255C2.13333 2.66589 1.86667 2.13255 1.86667 1.59922C1.86667 0.665887 2.53333 -0.000780106 3.46667 -0.000780106C4.4 -0.000780106 5.06667 0.665887 5.06667 1.59922C5.06667 2.13255 4.8 2.66589 4.26667 2.93255V3.73255H27.3333V2.93255C26.8 2.66589 26.5333 2.13255 26.5333 1.59922C26.5333 0.665887 27.2 -0.000780106 28.1333 -0.000780106C29.0667 -0.000780106 29.7333 0.665887 29.7333 1.59922C29.7333 2.13255 29.4667 2.66589 28.9333 2.93255V11.0659ZM31.4667 24.6659C31.4667 24.9326 31.2 25.1992 30.9333 25.1992H30.4C30 25.1992 29.7333 24.9326 29.6 24.6659L28.8 22.5326H2.66667L1.86667 24.6659C1.73333 24.9326 1.46667 25.1992 1.06667 25.1992H0.533333C0.266667 25.1992 0 24.9326 0 24.6659V20.3992C0 20.2659 0.266667 19.9992 0.533333 19.9992H31.0667C31.3333 19.9992 31.6 20.2659 31.6 20.5326V24.6659H31.4667Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Количество комнат</span>
|
||
<span class="icon-item-descr">'.$komnat.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 86 79" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M80.6667 69.7337C80.6667 71.8671 78.8 73.7337 76.6667 73.7337H8.8C6.53333 73.7337 4.8 72.0009 4.8 69.7337V8.53374C4.8 6.4004 6.66667 4.53374 8.8 4.53374H76.6667C78.9339 4.53374 80.6667 6.26707 80.6667 8.53374V69.7337ZM80.6667 -0.000131432H4.53333C2 -0.000131432 0 1.99987 0 4.5332V73.9999C0 76.5332 2 78.5332 4.53333 78.5332H80.6667C83.2 78.5332 85.2 76.5332 85.2 73.9999V4.5332C85.2 1.99987 83.2 -0.000131432 80.6667 -0.000131432Z" />
|
||
<path
|
||
d="M24.6672 9.33306C28.4229 9.33306 31.4672 12.3773 31.4672 16.1336C31.4672 19.8893 28.4229 22.9336 24.6672 22.9336C20.9115 22.9336 17.8672 19.8893 17.8672 16.1336C17.8672 12.3773 20.9115 9.33306 24.6672 9.33306Z" />
|
||
<path
|
||
d="M32.532 26.1331H16.2648C13.5982 26.1331 11.4648 28.1331 11.4648 30.6659V44.6659C11.4648 46.7998 13.1977 48.6659 15.3315 49.0659C15.3315 49.0659 16.6648 49.0659 16.9315 50.7987C17.4648 54.1321 18.532 61.7326 18.7982 64.9321C19.3315 68.9321 21.7315 69.0659 21.7315 69.0659C21.7315 69.0659 23.9987 69.5987 26.9315 69.0659C29.8654 68.5326 30.1315 65.1993 30.1315 65.1993L31.9982 50.6659C32.1315 49.4665 33.1976 49.3326 33.1976 49.3326C35.4648 49.0659 37.1976 47.1993 37.1976 44.9331V30.9331C37.332 28.1331 35.1987 26.1331 32.532 26.1331Z" />
|
||
<path
|
||
d="M72.5347 30.1337L61.3347 18.9337C59.468 17.0671 58.0014 18.2671 57.468 18.6665L57.2014 18.9337L46.5347 29.6004C42.668 33.4671 46.0014 34.4004 46.5347 34.4004H72.5347C72.668 34.4004 76.1347 33.6004 72.5347 30.1337Z" />
|
||
<path
|
||
d="M72.9358 44.2675H46.4025C42.6691 44.2675 44.8019 46.9342 45.8691 48.0003L46.4025 48.5336L57.6025 59.7336C58.1353 60.1331 59.8691 61.5998 61.8691 59.5998L73.0691 48.5336C76.9358 44.5336 72.9358 44.2675 72.9358 44.2675Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Этаж</span>
|
||
<span class="icon-item-descr">'.$etazh.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M29.3333 18.6667H2.66667V17.3333H29.3333V18.6667ZM29.3333 21.3333C29.3333 24.2672 26.9339 26.6667 24 26.6667H8C5.06615 26.6667 2.66667 24.2672 2.66667 21.3333V20H29.3333V21.3333ZM26.6667 29.3333C26.6667 30.1333 26.1333 30.6667 25.3333 30.6667C24.5333 30.6667 24 30.1333 24 29.3333C24.9339 29.3333 25.8667 29.2 26.6667 28.9339V29.3333ZM6.66667 30.6667C5.86667 30.6667 5.33333 30.1333 5.33333 29.3333V28.9339C6.13333 29.2005 7.06615 29.3333 8 29.3333C8 30.1333 7.46667 30.6667 6.66667 30.6667ZM30.6667 14.6667H4V4C4 2.53333 5.2 1.33333 6.66667 1.33333C8.13333 1.33333 9.33333 2.53333 9.33333 4V5.46667C8.8 5.60053 8.26719 6.13333 8.13333 6.66667H11.8667C11.7328 6.13333 11.2 5.60053 10.6667 5.46667V4C10.6667 1.7328 8.93385 0 6.66667 0C4.39948 0 2.66667 1.7328 2.66667 4V14.6667H1.33333C0.533333 14.6667 0 15.2 0 16V21.3333C0 24.2672 1.60052 26.9339 4 28.2672V29.3333C4 30.8 5.2 32 6.66667 32C8.13333 32 9.33333 30.8 9.33333 29.3333H22.6667C22.6667 30.8 23.8667 32 25.3333 32C26.8 32 28 30.8 28 29.3333V28.2672C30.3995 26.9339 32 24.2672 32 21.3333V16C32 15.2 31.4667 14.6667 30.6667 14.6667Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Количество санузлов</span>
|
||
<span class="icon-item-descr">'.$wcs.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M320 297.333C320 309.867 309.733 320 297.333 320H22.6667C10.1333 320 0 309.733 0 297.333V22.6667C0 10.1334 10.2672 7.6294e-06 22.6667 7.6294e-06H297.333C309.867 7.6294e-06 320 10.2667 320 22.6667V297.333Z"
|
||
fill="#b3b3b3" />
|
||
<path
|
||
d="M129.732 156.4H163.999C174.132 156.4 181.865 154 187.199 149.2C192.532 144.4 195.199 137.6 195.199 128.801C195.199 119.734 192.532 112.268 187.199 106.666C181.865 101.066 174.399 98.1344 164.932 97.9997H129.865V156.4H129.732ZM129.732 187.466V253.066H91.4648V67.0664H163.999C177.999 67.0664 190.265 69.5997 200.799 74.6664C211.332 79.7344 219.599 87.0664 225.197 96.3997C230.931 105.866 233.731 116.533 233.731 128.533C233.731 146.801 227.464 161.066 215.064 171.6C202.531 182.133 185.332 187.333 163.197 187.333H129.732V187.466Z"
|
||
fill="white" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Парковка</span>
|
||
<span class="icon-item-descr">'.$number_of_parking.' машиноместо</span></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="about__content-side" style="min-width: 50%;">
|
||
<div class="plan">
|
||
<div class="plan__title">
|
||
<h1 class="section-title-alt text-uppercase " style="'.$st.'">
|
||
ПЛАНИРОВКА
|
||
</h1>
|
||
<span style="'.$st.'" class="main-text main-text-alt">Общая площадь: '.$ploshad.' M<sup>2</sup></span>
|
||
</div>
|
||
|
||
<img class="plan__img" src="'.$plan.'" alt="" width="" height="">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="section-footer">
|
||
<span></span>
|
||
<span>2</span>
|
||
</div>
|
||
</div>
|
||
</div>';
|
||
$ft = true;
|
||
for ($i=1; $i <= count($allPhoto); $i++) {
|
||
if($i % 5){
|
||
if($ft){
|
||
$chtml.= '<div class="section">
|
||
<div class="container section-grid">
|
||
<div class="logo logo-white">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
<div class="logo-line_2"></div> 
|
||
<img class="logo-white" src="img/Logo_white.png" alt="">
|
||
</div>';
|
||
}
|
||
if($i == 1 || $i == 6 || $i == 11 || $i == 16 || $i == 21 || $i == 26 || $i == 31 || $i == 36){
|
||
$chtml.= '<div class="col" style="margin-bottom:10px;margin-right:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 2 || $i == 7 || $i == 12 || $i == 17 || $i == 22 || $i == 27 || $i == 32 || $i == 37){
|
||
$chtml.= '<div class="col" style="margin-bottom:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 3 || $i == 8 || $i == 13 || $i == 18 || $i == 23 || $i == 28 || $i == 33 || $i == 38){
|
||
$chtml.= '<div class="col" style="margin-right:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 4 || $i == 9 || $i == 14 || $i == 19 || $i == 24 || $i == 29 || $i == 34 || $i == 39){
|
||
$chtml.= '<div class="col">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
$ft = false;
|
||
}else{
|
||
if($ft){
|
||
$chtml.= '</div>
|
||
</div>';
|
||
}
|
||
$chtml.= '<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$allPhoto[($i-1)].'" alt="">
|
||
<div class="logo logo-white">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
<div class="logo-line_2"></div> 
|
||
<img class="logo-img" src="img/Logo_white.png" alt="">
|
||
</div>
|
||
</div>
|
||
</div>';
|
||
$ft = true;
|
||
}
|
||
}
|
||
$chtml.= '<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="https://static.maps.2gis.com/1.0?&c='.$latitude.','.$longitude.'&s=1250,1050&z=14&pt='.$latitude.','.$longitude.'~k:c~s:l" alt="" style="height:120%">
|
||
<div class="logo">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
<div class="logo-line_2"></div> 
|
||
<img class="logo-img" src="img/logo_black.png" alt="">
|
||
</div>
|
||
<div class="content-map">
|
||
<div class="title-box">
|
||
<h2 class="section-title text-uppercase ">
|
||
РАСПОЛОЖЕНИЕ
|
||
</h2>
|
||
</div>
|
||
<span class="main-title text-uppercase "><br>
|
||
' . $location . '
|
||
</span>
|
||
</div>
|
||
<div class="section-footer">
|
||
<span></span>
|
||
<span>9</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon-alt" src="'.$photosOne.'" alt="">
|
||
 <img class="big_logo" src="img/Logo_page.png" alt="">  
|
||
<div class="footer-info"> 
|
||
<span class="footer-info-text text-uppercase ">
|
||
ЦЕНА ОБЪЕКТА
|
||
</span>
|
||
<div class="title-box-2">
|
||
<h2 class="footer-info-value">' . $stoim . ' <span class="footer-info-descr">';
|
||
if($currency == 0){
|
||
$chtml.= '₽';
|
||
}
|
||
if($currency == 1){
|
||
$chtml.= '$';
|
||
}
|
||
if($currency == 2){
|
||
$chtml.= '€';
|
||
}
|
||
$chtml.= '</span></h2>
|
||
</div>
|
||
<span class="info-text"><br>
|
||
Остались вопросы? Свяжитесь с нами любым удобным Вам способом
|
||
</span>
|
||
<div class="info-items-2">
|
||
<div class="item">
|
||
<span class="value"><a href="https://api.whatsapp.com/send?phone=79250242633&text=Добрый день, я по поводу" target="_blank" title="Написать в Whatsapp" rel="noopener noreferrer"><img style="width:95px;"src="img/seti/wp.png"></a></span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value"><a href="https://t.me/flat_realtor" target="_blank" title="Написать в Telegram" rel="noopener noreferrer"><img style="width:95px;"src="img/seti/tg.png"></a></span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value"><a href="https://vk.com/pennylanerealty" target="_blank" title="Написать в ВК" rel="noopener noreferrer"><img style="width:80px;"src="img/seti/vk.png"></a></span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value"><a href="https://www.youtube.com/channel/UCiBn4julyW1hTpNUgtF4v8A" target="_blank" title="Ютуб" rel="noopener noreferrer"><img style="width:80px;"src="img/seti/yt.png"></a></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="section-footer-white">
|
||
<span></span>
|
||
<span>11</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<div class="container">
|
||
<div class="col-alt">
|
||
<img class="col-img-old" src="img/DSC07128_1.jpg" alt="">
|
||
</div>
|
||
<div class="col-content">
|
||
<div class="header">
|
||
<a href="'.$url_obj.'" rel="nofollow noopener noreferrer"
|
||
class="header-link">'.$url_obj.'</a>
|
||
<a class="header-link-phone" href="tel:'.$phone.'"> '.$phone.'</a>
|
||
</div>
|
||
<div class="fill">
|
||
<span class="fill-title">ПОСМОТРИТЕ СВОИМИ ГЛАЗАМИ</span>
|
||
<p class="fill-descr">Звоните по номеру <a class="descr-link"
|
||
href="tel:'.$phone.'">'.$phone.'</a>.
|
||
Наш брокер отправит Вам фото объекта в высоком разрешении в течении
|
||
5 минут.Записывайтесь на просмотр квартиры, и мы отправим за вами автомобиль класса <span
|
||
class="bold-text">Premium!</span>
|
||
</p>
|
||
<div class="fill-link-box">
|
||
<a class="fill-link" href="'.$url_obj.'">ВЫБРАТЬ ВРЕМЯ</a>
|
||
</div>
|
||
</div>
|
||
<div class="fill">
|
||
<span class="fill-title">АНАЛИЗИРУЕТЕ ПРЕДЛОЖЕНИЯ?</span>
|
||
<p class="fill-descr">Подготовим для Вас актуальный анализ рынка по объектам в
|
||
интересном Вам районе. Звоните по номеру <a href="tel:'.$phone.'"
|
||
class="descr-link">'.$phone.'</a>,
|
||
наши специалисты подготовят развернутую статистику и подборку предложений специально для
|
||
Вас.
|
||
</p>
|
||
<div class="fill-link-box">
|
||
<a class="fill-link" href="https://sell.realtor.ru/analitika">ЗАПРОСИТЬ АНАЛИТИКУ</a>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="fill">
|
||
<span class="fill-title">ПОСМОТРИТЕ СВОИМИ ГЛАЗАМИ</span>
|
||
<p class="fill-descr">Подготовим персонально для Вас заключение с указанием всех обременений,
|
||
анализ истории объекта и перехода прав в прошлом. Звоните по номеру <a
|
||
href="tel:'.$phone.'" class="descr-link">'.$phone.'</a><span class="bold-text">
|
||
или оставьте заявку</span>
|
||
</p>
|
||
<div class="fill-link-box">
|
||
<a class="fill-link" href="https://sell.realtor.ru/zakluchenie">ПОЛУЧИТЬ ЗАКЛЮЧЕНИЕ</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
</body>
|
||
|
||
</html>';
|
||
|
||
// Сохраняем созданный HTML в папке 'new_pdf'
|
||
//$filename = '../new_pdf/test.html';
|
||
$result = file_put_contents('../new_pdf/id'.$id.'.html', $chtml . LOCK_EX);
|
||
|
||
// Возвращаем результат операции сохранения
|
||
return $result;
|
||
}
|
||
|
||
function creationPDFnoContact($complex_title,$additional_heading,$ploshad,$ploshad_komn,$etazh,$wcs,$nazv,$opis,$renovation,$komnat,$number_of_parking,$plan,$location,$latitude,$longitude,$description_of_complex,$stoim,$url_obj,$photosOne,$phone,$id,$allPhoto,$currency,$street,$domNum,$stylenone)
|
||
{
|
||
if($stylenone == 1){
|
||
$st = '';
|
||
}else{
|
||
$st = 'display: none;';
|
||
}
|
||
$chtml = '<!DOCTYPE html>
|
||
<html lang="ru">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<link rel="stylesheet" href="css/main.css">
|
||
<title>'.$complex_title.'</title>
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<main>
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$photosOne.'" alt="img-fon">
|
||
<img class="big_logo" src="img/Logo_page.png" alt="big_logo">
|
||
<div class="info">
|
||
<div class="title-box">
|
||
<h1 class="info-title">'.$complex_title.'</h1>
|
||
</div>
|
||
<span class="info-text"><br>
|
||
'.$additional_heading.'
|
||
</span>
|
||
<div class="info-items">
|
||
<div class="item">
|
||
<div class="value">'.$ploshad.'</div>
|
||
<span class="description">M<sup>2</sup></span>
|
||
</div>' . ( $ploshad_komn && $ploshad_komn > 0 ?
|
||
'<div class="item">
|
||
<span class="value">'.$ploshad_komn.'</span>
|
||
<span class="description">- КОМНАТНАЯ</span>
|
||
</div>' : '') .
|
||
'<div class="item">
|
||
<span class="value">'.$etazh.'</span>
|
||
<span class="description">- Й ЭТАЖ</span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$wcs.'</span>
|
||
<span class="description"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$photosOne.'" alt="img-fon">
|
||
<div class="info">
|
||
<div class="title-box">
|
||
<h1 class="info-title">'.$complex_title.'</h1>
|
||
</div>
|
||
<span class="info-text"><br>
|
||
'.$additional_heading.'
|
||
</span>
|
||
<div class="info-items">
|
||
<div class="item">
|
||
<div class="value">'.$ploshad.'</div>
|
||
<span class="description">M<sup>2</sup></span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$ploshad_komn.'</span>
|
||
<span class="description">- КОМНАТНАЯ</span>
|
||
</div>
|
||
<div class="item">
|
||
<span class="value">'.$etazh.'</span>
|
||
<span class="description">- Й ЭТАЖ</span>
|
||
</div>
|
||
</div>
|
||
<span class="info-text-2"><br>
|
||
'.$street.', '.$domNum.'
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section about">
|
||
<div class="container about__container">
|
||
<div class="logo">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title">'.$complex_title.'</span>  
|
||
</div>
|
||
|
||
<div class="about__content">
|
||
|
||
<div class="title-box">
|
||
<h2 class="section-title text-uppercase">
|
||
'.$nazv.'
|
||
</h2>
|
||
</div>
|
||
<div class="about__content-flex">
|
||
<div class="about__content-side">
|
||
|
||
<div class="about__content-side-block about__content-side-block--info">
|
||
<span class="main-text">
|
||
'.$opis.'
|
||
</span>
|
||
</div>
|
||
|
||
<div class="about__content-side-block about__content-side-block--icons">
|
||
<div class="container1">
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 171 171" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M110.667 157.333H13.3333V59.9994H110.667V157.333ZM110.667 46.666H13.3333C6 46.666 0 52.666 0 59.9994V157.333C0 164.666 6 170.666 13.3333 170.666H110.667C118 170.666 124 164.666 124 157.333V59.9994C124 52.666 118 46.666 110.667 46.666Z" />
|
||
<path
|
||
d="M123.999 20L100.932 9.53675e-07V13.3333H24.3987V9.53675e-07L1.33203 20L24.3987 40V26.6667H100.932V40L123.999 20Z" />
|
||
<path
|
||
d="M157.335 71.0663H170.668L150.668 47.9996L130.668 71.0663H144.001V147.6H157.335V71.0663Z" />
|
||
<path d="M130.668 147.599L150.668 170.666L170.668 147.599" />
|
||
</svg>
|
||
<p><span class="icon-item-label">Площадь</span>
|
||
<span class="icon-item-descr">'.$ploshad.' M<sup>2</sup></span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 33 15" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M10.1779 7.80416C10.3613 8.15156 9.26126 9.81822 6.39251 11.3318C4.82117 12.1651 3.23106 12.6614 2.14147 12.664C1.6347 12.664 1.38366 12.5479 1.34459 12.4724C1.16491 12.1328 2.22481 10.5208 4.97741 9.02812C5.13366 9.58176 5.35502 10.1078 5.63366 10.5989C5.70137 10.5651 5.76907 10.5312 5.83678 10.4958C7.11647 9.8203 7.95137 9.15624 8.46439 8.65102C8.39773 8.66353 8.32898 8.6802 8.25866 8.6953C8.39669 8.59478 8.5295 8.49582 8.6571 8.3979C8.47481 8.21665 8.33418 7.99686 8.24043 7.75312C8.65814 7.66249 9.04355 7.61457 9.38106 7.61301C9.88731 7.61197 10.1389 7.7302 10.1779 7.80416ZM11.7857 -6.96182e-05C7.86803 0.00833038 4.69877 3.19009 4.70658 7.10884C4.70658 7.29269 4.71699 7.47498 4.73106 7.65624C4.6571 7.69478 4.58262 7.73228 4.5097 7.7703C1.81855 9.19322 -0.689255 11.4646 0.172725 13.0937C0.38887 13.5052 0.9071 13.9937 2.14407 13.9906C3.44095 13.987 5.2597 13.4338 7.01387 12.5062C9.70502 11.0833 12.2118 8.81145 11.3508 7.18436C11.1337 6.77342 10.6154 6.28384 9.37845 6.28593C9.03731 6.28697 8.6597 6.32656 8.25606 6.40102C8.5295 5.7302 9.18678 5.2578 9.95502 5.25624C10.541 5.25468 11.0634 5.52864 11.3993 5.95312C11.7456 6.21561 11.954 6.51249 12.0764 6.74061C13.2456 8.9552 10.679 11.4338 7.91491 13.0286C9.0347 13.7614 10.3758 14.1901 11.816 14.1875C15.7321 14.1781 18.9019 10.9974 18.8935 7.07916C18.8862 3.16145 15.7039 -0.00833628 11.7857 -6.96182e-05Z" />
|
||
<path
|
||
d="M29.1537 4.02603L19.2422 4.04479C19.5469 4.78698 19.7422 5.58385 19.8119 6.41666C19.8229 6.41666 19.8333 6.41354 19.8437 6.41354L28.5885 6.39635C28.9557 6.39531 29.2526 6.69114 29.2551 7.05781C29.2551 7.42447 28.9583 7.72187 28.5911 7.72239L19.8463 7.74062C19.8359 7.74062 19.8255 7.73906 19.8151 7.7375C19.7499 8.57083 19.5567 9.36823 19.2551 10.1109L21.7729 10.1062L21.7781 12.9151C21.7813 13.751 22.4609 14.4297 23.2994 14.4271C24.1354 14.426 24.8119 13.7474 24.8119 12.9088L24.8067 10.1005L26.7005 10.0958L26.7083 12.9036C26.7083 13.9516 27.5599 14.7984 28.6062 14.7969C29.6537 14.7943 30.4999 13.9453 30.4974 12.8984L30.4922 9.77969C31.4999 9.2849 32.1927 8.25051 32.1927 7.05209C32.1875 5.37709 30.8281 4.02239 29.1537 4.02603Z" />
|
||
</svg>
|
||
<p><span class="icon-item-label">Готовность</span>
|
||
<span class="icon-item-descr">'.$renovation.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 32 26" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M0.533333 18.3992C0.266667 18.3992 0 18.1326 0 17.8659V14.6659C0 13.4659 0.933333 12.5326 2.13333 12.5326H29.4667C30.6667 12.5326 31.6 13.4659 31.6 14.6659V17.8659C31.6 18.1326 31.3333 18.3992 31.0667 18.3992H0.533333ZM28.9333 11.0659H27.3333V8.39922C27.3333 7.86589 26.8 7.33255 26.2667 7.33255H17.6C17.0667 7.33255 16.5333 7.86589 16.5333 8.39922V11.0659H14.9333V8.39922C14.9333 7.86589 14.4 7.33255 13.8667 7.33255H5.2C4.66667 7.33255 4.13333 7.86589 4.13333 8.39922V11.0659H2.66667V2.93255C2.13333 2.66589 1.86667 2.13255 1.86667 1.59922C1.86667 0.665887 2.53333 -0.000780106 3.46667 -0.000780106C4.4 -0.000780106 5.06667 0.665887 5.06667 1.59922C5.06667 2.13255 4.8 2.66589 4.26667 2.93255V3.73255H27.3333V2.93255C26.8 2.66589 26.5333 2.13255 26.5333 1.59922C26.5333 0.665887 27.2 -0.000780106 28.1333 -0.000780106C29.0667 -0.000780106 29.7333 0.665887 29.7333 1.59922C29.7333 2.13255 29.4667 2.66589 28.9333 2.93255V11.0659ZM31.4667 24.6659C31.4667 24.9326 31.2 25.1992 30.9333 25.1992H30.4C30 25.1992 29.7333 24.9326 29.6 24.6659L28.8 22.5326H2.66667L1.86667 24.6659C1.73333 24.9326 1.46667 25.1992 1.06667 25.1992H0.533333C0.266667 25.1992 0 24.9326 0 24.6659V20.3992C0 20.2659 0.266667 19.9992 0.533333 19.9992H31.0667C31.3333 19.9992 31.6 20.2659 31.6 20.5326V24.6659H31.4667Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Количество комнат</span>
|
||
<span class="icon-item-descr">'.$komnat.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 86 79" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M80.6667 69.7337C80.6667 71.8671 78.8 73.7337 76.6667 73.7337H8.8C6.53333 73.7337 4.8 72.0009 4.8 69.7337V8.53374C4.8 6.4004 6.66667 4.53374 8.8 4.53374H76.6667C78.9339 4.53374 80.6667 6.26707 80.6667 8.53374V69.7337ZM80.6667 -0.000131432H4.53333C2 -0.000131432 0 1.99987 0 4.5332V73.9999C0 76.5332 2 78.5332 4.53333 78.5332H80.6667C83.2 78.5332 85.2 76.5332 85.2 73.9999V4.5332C85.2 1.99987 83.2 -0.000131432 80.6667 -0.000131432Z" />
|
||
<path
|
||
d="M24.6672 9.33306C28.4229 9.33306 31.4672 12.3773 31.4672 16.1336C31.4672 19.8893 28.4229 22.9336 24.6672 22.9336C20.9115 22.9336 17.8672 19.8893 17.8672 16.1336C17.8672 12.3773 20.9115 9.33306 24.6672 9.33306Z" />
|
||
<path
|
||
d="M32.532 26.1331H16.2648C13.5982 26.1331 11.4648 28.1331 11.4648 30.6659V44.6659C11.4648 46.7998 13.1977 48.6659 15.3315 49.0659C15.3315 49.0659 16.6648 49.0659 16.9315 50.7987C17.4648 54.1321 18.532 61.7326 18.7982 64.9321C19.3315 68.9321 21.7315 69.0659 21.7315 69.0659C21.7315 69.0659 23.9987 69.5987 26.9315 69.0659C29.8654 68.5326 30.1315 65.1993 30.1315 65.1993L31.9982 50.6659C32.1315 49.4665 33.1976 49.3326 33.1976 49.3326C35.4648 49.0659 37.1976 47.1993 37.1976 44.9331V30.9331C37.332 28.1331 35.1987 26.1331 32.532 26.1331Z" />
|
||
<path
|
||
d="M72.5347 30.1337L61.3347 18.9337C59.468 17.0671 58.0014 18.2671 57.468 18.6665L57.2014 18.9337L46.5347 29.6004C42.668 33.4671 46.0014 34.4004 46.5347 34.4004H72.5347C72.668 34.4004 76.1347 33.6004 72.5347 30.1337Z" />
|
||
<path
|
||
d="M72.9358 44.2675H46.4025C42.6691 44.2675 44.8019 46.9342 45.8691 48.0003L46.4025 48.5336L57.6025 59.7336C58.1353 60.1331 59.8691 61.5998 61.8691 59.5998L73.0691 48.5336C76.9358 44.5336 72.9358 44.2675 72.9358 44.2675Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Этаж</span>
|
||
<span class="icon-item-descr">'.$etazh.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M29.3333 18.6667H2.66667V17.3333H29.3333V18.6667ZM29.3333 21.3333C29.3333 24.2672 26.9339 26.6667 24 26.6667H8C5.06615 26.6667 2.66667 24.2672 2.66667 21.3333V20H29.3333V21.3333ZM26.6667 29.3333C26.6667 30.1333 26.1333 30.6667 25.3333 30.6667C24.5333 30.6667 24 30.1333 24 29.3333C24.9339 29.3333 25.8667 29.2 26.6667 28.9339V29.3333ZM6.66667 30.6667C5.86667 30.6667 5.33333 30.1333 5.33333 29.3333V28.9339C6.13333 29.2005 7.06615 29.3333 8 29.3333C8 30.1333 7.46667 30.6667 6.66667 30.6667ZM30.6667 14.6667H4V4C4 2.53333 5.2 1.33333 6.66667 1.33333C8.13333 1.33333 9.33333 2.53333 9.33333 4V5.46667C8.8 5.60053 8.26719 6.13333 8.13333 6.66667H11.8667C11.7328 6.13333 11.2 5.60053 10.6667 5.46667V4C10.6667 1.7328 8.93385 0 6.66667 0C4.39948 0 2.66667 1.7328 2.66667 4V14.6667H1.33333C0.533333 14.6667 0 15.2 0 16V21.3333C0 24.2672 1.60052 26.9339 4 28.2672V29.3333C4 30.8 5.2 32 6.66667 32C8.13333 32 9.33333 30.8 9.33333 29.3333H22.6667C22.6667 30.8 23.8667 32 25.3333 32C26.8 32 28 30.8 28 29.3333V28.2672C30.3995 26.9339 32 24.2672 32 21.3333V16C32 15.2 31.4667 14.6667 30.6667 14.6667Z" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Количество санузлов</span>
|
||
<span class="icon-item-descr">'.$wcs.'</span></p>
|
||
</div>
|
||
</div>
|
||
<div class="item1">
|
||
<div class="item-box1">
|
||
<svg width="60" height="60" viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg">
|
||
<path
|
||
d="M320 297.333C320 309.867 309.733 320 297.333 320H22.6667C10.1333 320 0 309.733 0 297.333V22.6667C0 10.1334 10.2672 7.6294e-06 22.6667 7.6294e-06H297.333C309.867 7.6294e-06 320 10.2667 320 22.6667V297.333Z"
|
||
fill="#b3b3b3" />
|
||
<path
|
||
d="M129.732 156.4H163.999C174.132 156.4 181.865 154 187.199 149.2C192.532 144.4 195.199 137.6 195.199 128.801C195.199 119.734 192.532 112.268 187.199 106.666C181.865 101.066 174.399 98.1344 164.932 97.9997H129.865V156.4H129.732ZM129.732 187.466V253.066H91.4648V67.0664H163.999C177.999 67.0664 190.265 69.5997 200.799 74.6664C211.332 79.7344 219.599 87.0664 225.197 96.3997C230.931 105.866 233.731 116.533 233.731 128.533C233.731 146.801 227.464 161.066 215.064 171.6C202.531 182.133 185.332 187.333 163.197 187.333H129.732V187.466Z"
|
||
fill="white" />
|
||
</svg>
|
||
|
||
<p><span class="icon-item-label">Парковка</span>
|
||
<span class="icon-item-descr">'.$number_of_parking.' машиноместо</span></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="about__content-side" style="min-width: 50%;">
|
||
<div class="plan">
|
||
<div class="plan__title">
|
||
<h1 class="section-title-alt text-uppercase " style="'.$st.'">
|
||
ПЛАНИРОВКА
|
||
</h1>
|
||
<span style="'.$st.'" class="main-text main-text-alt">Общая площадь: '.$ploshad.' M<sup>2</sup></span>
|
||
</div>
|
||
|
||
<img class="plan__img" src="'.$plan.'" alt="" width="" height="">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="section-footer">
|
||
<span></span>
|
||
<span>2</span>
|
||
</div>
|
||
</div>
|
||
</div>';
|
||
$ft = true;
|
||
for ($i=1; $i <= count($allPhoto); $i++) {
|
||
if($i % 5){
|
||
if($ft){
|
||
$chtml.= '<div class="section">
|
||
<div class="container section-grid">
|
||
<div class="logo logo-white">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
</div>';
|
||
}
|
||
if($i == 1 || $i == 6 || $i == 11 || $i == 16 || $i == 21 || $i == 26 || $i == 31 || $i == 36){
|
||
$chtml.= '<div class="col" style="margin-bottom:10px;margin-right:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 2 || $i == 7 || $i == 12 || $i == 17 || $i == 22 || $i == 27 || $i == 32 || $i == 37){
|
||
$chtml.= '<div class="col" style="margin-bottom:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 3 || $i == 8 || $i == 13 || $i == 18 || $i == 23 || $i == 28 || $i == 33 || $i == 38){
|
||
$chtml.= '<div class="col" style="margin-right:10px;">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
if($i == 4 || $i == 9 || $i == 14 || $i == 19 || $i == 24 || $i == 29 || $i == 34 || $i == 39){
|
||
$chtml.= '<div class="col">
|
||
<img class="col-img" src="'.$allPhoto[($i-1)].'" alt="'.$i.'">
|
||
</div>';
|
||
}
|
||
$ft = false;
|
||
}else{
|
||
if($ft){
|
||
$chtml.= '</div>
|
||
</div>';
|
||
}
|
||
$chtml.= '<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="'.$allPhoto[($i-1)].'" alt="">
|
||
<div class="logo logo-white">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
</div>
|
||
</div>
|
||
</div>';
|
||
$ft = true;
|
||
}
|
||
}
|
||
$chtml.= '<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon" src="https://static.maps.2gis.com/1.0?&c='.$latitude.','.$longitude.'&s=1250,1050&z=14&pt='.$latitude.','.$longitude.'~k:c~s:l" alt="" style="height:120%">
|
||
<div class="logo">
|
||
<div class="logo-line"></div>
|
||
 <span class="logo-title"> '.$complex_title.'</span>  
|
||
</div>
|
||
<div class="content-map">
|
||
<div class="title-box">
|
||
<h2 class="section-title text-uppercase ">
|
||
РАСПОЛОЖЕНИЕ
|
||
</h2>
|
||
</div>
|
||
<span class="main-title text-uppercase "><br>
|
||
' . $location . '
|
||
</span>
|
||
</div>
|
||
<div class="section-footer">
|
||
<span></span>
|
||
<span>9</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<div class="container">
|
||
<img class="img-fon-alt" src="'.$photosOne.'" alt="">
|
||
   
|
||
<div class="footer-info"> 
|
||
<span class="footer-info-text text-uppercase ">
|
||
ЦЕНА ОБЪЕКТА
|
||
</span>
|
||
<div class="title-box-2">
|
||
<h2 class="footer-info-value">' . $stoim . ' <span class="footer-info-descr">';
|
||
if($currency == 0){
|
||
$chtml.= '₽';
|
||
}
|
||
if($currency == 1){
|
||
$chtml.= '$';
|
||
}
|
||
if($currency == 2){
|
||
$chtml.= '€';
|
||
}
|
||
$chtml.= '</span></h2>
|
||
</div>
|
||
</div>
|
||
<div class="section-footer-white">
|
||
<span></span>
|
||
<span>11</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</main>
|
||
</body>
|
||
|
||
</html>';
|
||
|
||
// Сохраняем созданный HTML в папке 'new_pdf'
|
||
//$filename = '../new_pdf/test.html';
|
||
$result = file_put_contents('../new_pdf/id'.$id.'.html', $chtml . LOCK_EX);
|
||
|
||
// Возвращаем результат операции сохранения
|
||
return $result;
|
||
}
|
||
?>
|