| 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 #_yahoo where hienthi=1 order by stt, id desc";
$d->query($sql);
$result_yahoo=$d->result_array();
$sql="select * from #_alpum where hienthi=1 order by stt, id desc";
$d->query($sql);
$alpum=$d->result_array();
$sql="select *from #_hotline where hienthi=1 order by id limit 1";
$d->query($sql);
$hotline=$d->result_array();
$sql="select* from table_photo where hienthi=1 and com='banner_phai'";
$d->query($sql);
$banner_phai=$d->fetch_array();
?>
<div class="hotro"></div>
<div style="background:#f7f7f7">
<div style="text-align:center"> <br>
<?php for($i=0;$i<count($result_yahoo);$i++){?>
<div style="border-bottom:solid 1px #ececec"> <a href="ymsgr:sendIM?<?=$result_yahoo[$i]['yahoo']?>"> <img src="http://opi.yahoo.com/online?u=<?=$result_yahoo[$i]['yahoo']?>&m=g&t=1" title="<?=$result_yahoo[$i]['ten']?>" alt="phu kien kts" /> </a> <a href="skype:<?=$result_yahoo[$i]['skype']?>?call" onclick="return skypeCheck();" style="height:26px;"> <img src="images/imasky.png" width="60" height="25" alt="phu kien kts" ></a>
<div style="margin-top:5px; color:#8d8c8c;">
<?=$result_yahoo[$i]['dienthoai']?>
-
<?=$result_yahoo[$i]['ten']?>
</div>
<br>
</div>
<? } ?>
<div style="height:50px;line-height:40px"> <span style="color:#444;font-size:14px;font-weight:bold">Hotline :</span> <span style="color:red;font-size:15px;font-weight:bold">
<?=$hotline[0]['dienthoai']?>
</span>
<h5 style="display:none">
<?=$hotline[0]['dienthoai']?>
</h5>
</div>
</div>
</div>
<script src="js/jquery.bxslider/jquery.bxslider.min.js"></script>
<link href="js/jquery.bxslider/jquery.bxslider.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
$('.slider2').bxSlider({
slideWidth: 200,
minSlides: 1,
maxSlides: 1,
slideMargin: 8,
auto: true,
pager: false,
speed: 500,
});
});
</script>
<?
$d->reset();
$sql="select * from #_product where hienthi=1 and hot2<>0 order by stt";
$d->query($sql);
$ss=$d->result_array();
?>
<br>
<? if($ss != null){?>
<div class="slider2">
<?php for($k=0;$k<count($ss);$k++){?>
<? if($ss[$k]['gia2']>$ss[$k]['gia']){
$giam1=($ss[$k]['gia2'])-($ss[$k]['gia']);
$giam=($giam1*100)/($ss[$k]['gia2']);
}
?>
<div class="sp" >
<div class="sp_img">
<? if($ss[$k]['gia2']>$ss[$k]['gia']){?>
<div style="margin-left:5px;line-height:55px;margin-top:6px;text-align:center;position:absolute;height:50px;width:50px;background:url(images/bg_giam.png)"> <a style="color:#fff;font-size:18px;font-weight:bold">-
<?= floor($giam)?>
%</a> </div>
<? }?>
<a href="san-pham/<?=$ss[$k]['tenkhongdau']?>/<?=$ss[$k]['id']?>.html" > <img src="<?=_upload_sanpham_l.$ss[$k]['photo']?>" alt="<?=$ss[$k]['ten']?>" /></a></div>
<div class="sp_info">
<div class="sp_ten"> <a href="san-pham/<?=$ss[$k]['tenkhongdau']?>/<?=$ss[$k]['id']?>.html">
<?=$ss[$k]['ten']?>
</a></div>
<div class="sp_gia1">
<? if($ss[$k]['gia2']<>0) {?>
<span style="color:#444">Giá gốc: </span><a>
<?=format_money($ss[$k]['gia2'])?>
<? } ?>
</a></div>
<div class="sp_gia">
<?=format_money($ss[$k]['gia'])?>
</div>
</div>
</div>
<? } ?>
</div>
<br>
<? }?>
<style type="text/css">
.on1{
float:left;height:25px;margin-left:10px;width:30px
}
.on2{
float:left;height:25px;line-height:25px;font-family:tahoma;color:#919090
}
</style>
<div style="background:#f5f5f5"> <br>
<div style="height:30px;width:200px">
<div style="float:left;margin-left:20px;width:40px;height:30px"><img src="images/bg_on.png" alt="phu kien kts" ></div>
<div style="float:left;font-size:16px;font-weight:bold;width:100px;line-height:30px">THỐNG KÊ</div>
</div>
<br>
<div style="width:200px;height:30px">
<div class="on1"><img src="images/o1.png" alt="phu kien kts" /></div>
<div class="on2">Online :
<? $count=count_online(); echo $count['dangxem']?>
</div>
</div>
<div style="width:200px;height:30px">
<div class="on1"><img src="images/o2.png" alt="phu kien kts" /></div>
<div class="on2">Trong ngày : <?php echo $today_visitors?></div>
</div>
<div style="width:200px;height:30px">
<div class="on1"><img src="images/o3.png" alt="phu kien kts" /></div>
<div class="on2">Trong tuần : <?php echo $week_visitors?></div>
</div>
<div style="width:200px;height:30px">
<div class="on1"><img src="images/o4.png" alt="phu kien kts" /></div>
<div class="on2">Trong tháng : <?php echo $month_visitors?></div>
</div>
<div style="width:200px;height:30px">
<div class="on1"><img src="images/o5.png" alt="phu kien kts" /></div>
<div class="on2">Tổng cộng :
<?=$count['daxem']?>
</div>
</div>
</div>