echo '<!doctype html><html lang="ru" class="nav-no-js"><head><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Техосмотр онлайн</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width, minimum-scale=1.0"><link rel="icon" href="/favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /></head><body><div>Сообщение отправлено, в ближайшее время с вами свяжется менеджер.</div></body></html>';
<a href="download.php?file=myfile.pdf">
/* Пишем скрипт */
<?php
if (
!isset($_GET["file"])
|| ($f=$_GET["file"])===false
|| ($fp=@fopen($f,"rb"))===false
|| ($fi=pathinfo($f))===false
|| ($fi["fsize"]=filesize($f))===false
|| strtolower($fi["extension"])!="pdf"
) die("Failed");
ob_start();
header("Accept-Ranges: bytes");
header("Content-Length: {$fi["fsize"]}");
header("Content-Type: application/pdf");
header("Content-Disposition: attachment; filename="{$fi["basename"]}"");
$sent = 0;
while ( !feof($fp) && $sent < $fi["fsize"] && ($buf = fread($fp, 8192)) != "" ){
echo $buf;
$sent += strlen($buf);
flush(); ob_flush();
}
fclose($fp);
exit;
?>
.g-recaptcha {
transform: scale(.83);
-webkit-transform: scale(.83);
transform-origin: 0 0;
-webkit-transform-origin: 0 0;
}
@media only screen and (max-width:420px) {
.g-recaptcha {
width: 230px;
transform: scale(.79);
-webkit-transform: scale(.79);
transform-origin: 0 0;
-webkit-transform-origin: 0 0
}
}
@media only screen and (max-width:340px) {
.g-recaptcha {
transform: scale(.75);
-webkit-transform: scale(.75);
transform-origin: 0 0;
-webkit-transform-origin: 0 0
}
}
<div class="wrapper">
<header class="header">
Верх
</header>
<main class="content">
Центр
</main>
</div>
<footer class="footer">
Низ
</footer>
</body>
<b>CSS с нормализацией.</b>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;}
html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
audio,canvas,video{display:inline-block}
audio:not([controls]){display:none;height:0}
[hidden]{display:none}
a{outline:none; text-decoration: none;}
abbr[title]{border-bottom:1px dotted}
pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}
sub,sup{font-size:75%;line-height:0;position:relative}
sup{top:-0.5em}
sub{bottom:-0.25em}
fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}
button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
button,input{line-height:normal}
button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
button[disabled],input[disabled]{cursor:default}
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
textarea{overflow:auto;vertical-align:top}
input:focus,button:focus,select:focus,textarea:focus{outline:none}
table{border-collapse:collapse;border-spacing:0}
img { border: 0; }
:focus::-webkit-input-placeholder {color: transparent}
:focus::-moz-placeholder {color: transparent}
:focus:-moz-placeholder {color: transparent}
:focus:-ms-input-placeholder {color: transparent}
*{
padding: 0;
margin: 0;
}
html{height:100%;}
* html body{height:100%;}
html, body{
font-family: tahoma, Helvetica, sans-serif;
font-size: 14px;
height: 100%;
background: #fff;
}
.wrapper {
width: 100%;
min-width: 1100px;
min-height: 100%;
height: auto !important;
height: 100%;
}
.header {
width: 100%;
height: 150px;
background: #ffffff;
}
.content {
padding: 0 0 150px;
}
.footer {
margin: -245px auto 0;
min-width: 1100px;
height: 245px;
position: relative;
}
ul,li {
list-style: none;
margin: 0;
padding: 0;
text-align: left;
}
a{
text-decoration: none;
color: inherit;
}
.list{
width: 400px;
margin: 0 auto;
font-size: 20px;
text-align: center;
}
a, b, strong, h1, h2, h3, h4, h5, h6, i, div, input, textarea, button, select{
text-decoration: none;
-webkit-transition:color 200ms linear 0ms, background 200ms linear 0ms, border 200ms linear 0ms;
transition: color 200ms linear 0ms, background 200ms linear 0ms, border 200ms linear 0ms;
}
a img {
-webkit-transition:opacity 200ms linear 0ms;
transition: opacity 200ms linear 0ms;
opacity:1;
-moz-opacity:1;
filter:alpha(opacity=100);
}
a img:hover{
-webkit-transition:opacity 200ms linear 0ms;
transition: opacity 200ms linear 0ms;
opacity:0.5;
-moz-opacity:0.5;
filter:alpha(opacity=50);
}
function resize_document(){
var width = $(window).width();
if (width < 600){
$(".catinf img").addClass('img_minimize');
}else{
$(".catinf img.img_minimize").removeClass('img_minimize');
}
}
resize_document();
$(window).resize(function(){
resize_document();
});
.img_minimize{
float:none!important;
display: block!important;
margin: 0 auto!important;
margin-top: 5px!important;
margin-bottom: 10px!important;
}
<?php
//разделили на группы
$productsGroups = array(
array_filter($productsFound, function($p){
return $p->moshnostkvt;
}),
array_filter($productsFound, function($p){
return $p->proizvoditm3;
})
);
?>
<?php if (count($productsGroups)>0) : ?>
<div class="allcentr">
<div class="allcentrc">
<div class="akciifullinfo">
<div class="akciifullinfot">
<h2><?= $cat->name ?></h2>
<?php foreach($productsGroups as $key => $productsGroup): ?>
<?php if($key == 0): ?>
<center>
<div class="yovarka">
<div class="yovarka1">
<b>Фото</b></div>
<div class="yovarka2">
<b>Модель</b></div>
<div class="yovarka3">
<b>Мощность, квт</b></div>
<div class="yovarka4">
<b>Габариты, Д (База) x Ш x В, мм</b></div>
<div class="yovarka5">
<b>Сухой вес (рабочий вес), кг</b></div>
<div class="yovarka6">
<b>Подробная информация о товаре</b></div>
</div>
</center>
<?php elseif($key == 1): ?>
<center>
<div class="yovarka">
<div class="yovarka1">
<b>Фото</b></div>
<div class="yovarka2">
<b>Модель</b></div>
<div class="yovarka3">
<b>Производит., м3/мин</b></div>
<div class="yovarka4">
<b>Давления, МПа</b></div>
<div class="yovarka5">
<b>Мощность, кВт</b></div>
<div class="yovarka6">
<b>Подробная информация о товаре</b></div>
</div>
</center>
<?php endif;?>
<center>
<a href="/product/<?= $product->alias ?>" title="<?= $product->prname ?>">
<div class="yovarkat anim">
<div class="yovarkat1">
<b><?php if ($product->getImage()): ?>
<img src="/media/uploads/small/small_<?php echo($product->getImage(
)) ?>" alt="<?= $product->prname ?>" title="<?= $product->prname ?>"/>
<?php else: ?>
<img src="/media/uploads/noimage.png" alt="нет фото" title="нет фото"/>
<?php endif; ?></b>
</div>
<div class="yovarkat2">
<h2><?= $product->prname ?></h2></div>
<div class="yovarkat3">
<b><?= $product->moshnostkvt ?></b></div>
<div class="yovarkat4">
<b><?= $product->gabarity ?></b></div>
<div class="yovarkat5">
<b><?= $product->cyzoybec ?></b></div>
<div class="yovarkat6">
<b>Подробнее</b></div>
<div style="clear:both"></div>
</div>
</a>
</center>
<?php foreach ($productsFound1 as $product): ?>
<center>
<a href="/product/<?= $product->alias ?>" title="<?= $product->prname ?>">
<div class="yovarkat anim">
<div class="yovarkat1">
<b><?php if ($product->getImage()): ?>
<img src="/media/uploads/small/small_<?php echo($product->getImage(
)) ?>" alt="<?= $product->prname ?>" title="<?= $product->prname ?>"/>
<?php else: ?>
<img src="/media/uploads/noimage.png" alt="нет фото" title="нет фото"/>
<?php endif; ?></b>
</div>
<div class="yovarkat2">
<h2><?= $product->prname ?></h2></div>
<div class="yovarkat3">
<b><?= $product->proizvoditm3 ?></b></div>
<div class="yovarkat4">
<b><?= $product->davlenyempa ?></b></div>
<div class="yovarkat5">
<b><?= $product->moshnostkvt1 ?></b></div>
<div class="yovarkat6">
<b>Подробнее</b></div>
<div style="clear:both"></div>
</div>
</a>
</center>
<?php endforeach; ?>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>