| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/khonguyenlieu.vn/public_html/site/components/search/views/ |
Upload File : |
<style type="text/css">
h1.title {
color: #FFF;
font-size: 16px;
padding: 15px;
font-weight: bold;
white-space: nowrap;
text-transform: uppercase;
margin:15px 0
}
</style>
<div class="grid row">
<h1 class="col-md-12 col-sm-12 sol-xs-12 title">Kết quả tìm từ khóa: <?=$keyword?></h1>
<?php
$arr_list_kid = array();
foreach ($list as $rs) :
$linkcart = '';
$linkpro = site.'chi-tiet/'.$rs->Alias.'-'.$rs->ProductID.'.html';
$linkimg = ($rs->ProductImg && file_exists(ROOT_IMG.'products/200/'.$rs->ProductImg))? urlimg.'products/200/'.$rs->ProductImg : urlimg.'no-news.jpg';
//lay danh sach kid cap nhat vao tu khoa
array_push($arr_list_kid,$rs->ProductID);
?>
<div class="item col-md-2 col-xs-6 col-sm-4">
<div class="img">
<a class="i_img" href="<?=$linkpro?>" title="<?=$rs->ProductName?>"><img src="<?=$linkimg?>" alt="<?=$rs->ProductName?>" /></a>
<a href="<?=$linkpro?>" class="btn">Xem ngay »</a>
</div>
<a href="<?=$linkpro?>" title="<?=$rs->ProductName?>"><h2 class="i_name"><?=$rs->ProductName?></h2></a>
<div class="i_price">
<p><span><del><?=pricevn($rs->Price_Old)?> đ</del></span><span class="price"><?=pricevn($rs->Price)?> đ</span></p>
</div>
</div>
<? endforeach ;?>
</div>
<div class="paging"><?=$pagination?></div>
<?php
//cap nhat chuoi kid vao table keyword
if(!empty($arr_list_kid))
{
$list_pro = implode(",", $arr_list_kid);
$sql="update keywords set list_pro='".$list_pro."' where kid='".$row->kid."'";
$this->db->query($sql);
}
?>