1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00
yii2-nomer/views/search/avinfo_guest.php
2020-02-05 06:34:26 +03:00

28 lines
No EOL
1.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/* @var $this \yii\web\View */
/* @var $items [] */
/* @var $phone int */
/* @var $resultAntiparkon [] */
/* @var $gibddResult [] */
use yii\helpers\Html;
?>
<?php if($items || count($resultAntiparkon) || count($gibddResult)): ?>
<ul>
<?php if(is_array($gibddResult)) foreach($gibddResult as $r): ?>
<li><?=preg_replace("/\w/", "*", $r["number"]);?>, <?=preg_replace("/\w/", "*", $r["model"]);?></li>
<?php endforeach; ?>
<?php if(is_array($resultAntiparkon)) foreach($resultAntiparkon as $r): ?>
<li><?=preg_replace("/\w/", "*", $r["number"]);?>, <?=preg_replace("/\w/", "*", $r["marka"]);?></li>
<?php endforeach; ?>
<?php if(is_array($items)) foreach($items as $i): ?>
<li><?=$i["credate"];?>, <?=preg_replace("/\w/", "*", $i["marka"]." ".$i["model"]);?>, <?=$i["year"];?>г., <?=preg_replace("/\w/", "*", $i["city"]);?>, <?=preg_replace("/\w/", "*", $i["price"]);?>р.</li>
<?php endforeach; ?>
</ul>
<div class="sinfo">
Если хотите увидеть информацию без звездочек - зарегистрируйтесь.
<span class="btns"><a href="#signup" class="buy">Регистрация / Вход</a></span>
</div>
<?php else: ?>
Ничего не найдено
<?php endif; ?>