| 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/nhadatkhangdien.net-bk/public_html/templates/layout/ |
Upload File : |
<?php
$d->reset();
$sql="select * from #_product_cat where hienthi=1 order by stt, id desc";
$d->query($sql);
$product_cat=$d->result_array();
$d->reset();
$sql = "select * from table_logodoitac";
$d->query($sql);
$video=$d->result_array();
$d->reset();
$sql="select * from #_infodoitac where hienthi=1 order by stt, id desc";
$d->query($sql);
$infodoitac=$d->result_array();
?>
<div id="menudoc">
<div class="danhmuc">danh mục sản phẩm</div>
<ul>
<?php for($i=0;$i<count($product_cat);$i++){
$d->reset();
$sql="select* from #_product_list where hienthi=1 and id_cat='".$product_cat[$i]['id']."' order by stt";
$d->query($sql);
$product_item=$d->result_array();
?>
<li <? if(($i+1)==count($product_cat)){?>style="border:none"<? }?>><a href="san-pham/<?=$product_cat[$i]['tenkhongdau']?>.html"><?=$product_cat[$i]['ten']?></a>
</li>
<? } ?>
</ul>
<div style="height:10px"></div>
</div>
<?
$d->reset();
$sql="select * from #_product where hienthi=1 and hot<>0 order by stt";
$d->query($sql);
$sp_bc=$d->result_array();
?>
<style type="text/css">
.vert {
width: 240px;
height: 310px;
}
.vert .simply-scroll-clip {
width: 240px;
height: 310px;
}
.vert img{
width:235px;
height:145px;
}
</style>
<div style="border:solid 1px #ddd;box-shadow:2px 3px 4px #999;border-radius:5px;margin-top:20px">
<div class="danhmuc">Sản phẩm khuyến mãi</div>
<div style="width:245px; height:310px;margin:5px 0;">
<ul class="scroller">
<?php for($i=0;$i<count($sp_bc);$i++) {?>
<div style="margin-left: 5px;margin-bottom:10px">
<a style="margin-left:5px" href="san-pham/<?=$sp_bc[$i]['tenkhongdau']?>/<?=$sp_bc[$i]['id']?>.html">
<img src="<?=_upload_sanpham_l.$sp_bc[$i]['photo']?>" alt="<?=$sp_bc[$i]['ten']?>" title="<?=$sp_bc[$i]['ten']?>" width="210" height="135" />
</a>
</div>
<? }?>
</ul>
</div>
</div>
<div style="border:solid 1px #ddd;box-shadow:2px 3px 4px #999;border-radius:5px;margin-top:20px">
<div class="danhmuc">video</div>
<div style="margin:15px 10px;" >
<?php $link=explode('v=',$video[0]['mota'])?>
<iframe width="235" height="150" src="//www.youtube.com/embed/<?=$link[1]?>" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div style="border:solid 1px #ddd;box-shadow:2px 3px 4px #999;border-radius:5px;margin-top:20px">
<div class="danhmuc">Thống kê truy cập</div>
<div style="height:30px;background:#F0F0F0;margin-top:10px;line-height:30px;padding-left:25px;color:#6c6c6c;font-size:12px;font-weight:bold"> Đang Online: <? $count=count_online(); echo $count['dangxem']?></div>
<div style="height:30px;line-height:30px;padding-left:25px;color:#6c6c6c;font-size:12px;font-weight:bold"> Trong tuần: <?=$week_visitors?></div>
<div style="height:30px;background:#F0F0F0;line-height:30px;padding-left:25px;color:#6c6c6c;font-size:12px;font-weight:bold">Trong tháng: <?=$month_visitors?></div>
<div style="height:30px;line-height:30px;padding-left:25px;color:#6c6c6c;font-size:12px;font-weight:bold"> Đã Online: <?=$count['daxem']?></div>
</div>