| Server IP : 103.48.194.25 / Your IP : 216.73.217.33 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 : 8.2.20 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/ |
Upload File : |
<?
$sql = "select * from #_news where hienthi=1 and id_item=4 order by stt,ngaytao desc limit 7";
$d->query($sql);
$newcat42= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=6 and tinnoibat<>0 limit 1";
$d->query($sql);
$newcat6= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=6 order by stt,ngaytao desc limit 7";
$d->query($sql);
$newcat62= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=7 and tinnoibat<>0 limit 2";
$d->query($sql);
$newcat7= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=9 and tinnoibat<>0 limit 4";
$d->query($sql);
$newcat9= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=8 and tinnoibat<>0 limit 1";
$d->query($sql);
$newcat8= $d->result_array();
$sql = "select * from #_news where hienthi=1 and id_item=8 order by stt,ngaytao desc limit 7";
$d->query($sql);
$newcat82= $d->result_array();
function get_news_batdongsan()
{
$d->reset();
$sql = "select * from #_news where hienthi=1 and id_item=4 and tinnoibat<>0 limit 3";
$d->query($sql);
$list= $d->result_array();
return $list;
}
?>
<? if($idc==''){?>
<style type="text/css">
.blc1 {
margin: 0 0 15px 0;
height: 330px;
overflow: hidden;
}
</style>
<div class="newt_ct">
<!-- Tin chung -->
<div class="col-md-4 col-xs-12 col-sm-12 newt_net">
<div class="title5"><h3><a href="news/tin-tuc-chung">TIN BẤT ĐỘNG SẢN</a><a href="news/tin-tuc-chung" class="title5aa">Xem tất cả</a></h3></div>
<div class="blc1">
<div class="n1">
<div class="b_img"><a href="news/<?=$newcat4[0]['tenkhongdau']?>-<?=$newcat4[0]['id']?>"><img src="<?=_upload_tintuc_l.$newcat4[0]['photo']?>"></a></div>
<a class="b_name" href="news/<?=$newcat4[0]['tenkhongdau']?>-<?=$newcat4[0]['id']?>"><?=catchuoi($newcat4[0]['ten'],120)?></a>
<div class="b_sum"><?=catchuoi($newcat4[0]['mota'],120)?></div>
</div>
</div>
<div style="width:100%;margin-top:15px;">
<div><a href="news/<?=$newcat42[0]['tenkhongdau']?>-<?=$newcat42[0]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat42[0]['photo']?>" width="100%"> </a> </div>
<div class="title5_tenn2"> <a href="news/<?=$newcat42[0]['tenkhongdau']?>-<?=$newcat42[0]['id']?>"><?=$newcat42[0]['ten']?></a> </div>
</div>
<ul style="margin-top: 10px;line-height: 22px;">
<?php for($i=1;$i<count($newcat42);$i++){?>
<li> <img src="images/blog-arrow.png" alt="icon" style="margin-right: 5px;"> <a style="color: #444;font-size: 12px;text-transform: uppercase" href="news/<?=$newcat42[$i]['tenkhongdau']?>-<?=$newcat42[$i]['id']?>">
<?=$newcat42[$i]['ten']?>
</a> </li>
<? } ?>
</ul>
</div>
</div><!-- Tin chung -->
<!-- Tin du an -->
<div class="col-md-4 col-xs-12 col-sm-12 newt_net">
<div class="title5"><h3><a href="news/tin-du-an">TIN DỰ ÁN</a><a href="news/tin-du-an" class="title5aa">Xem tất cả</a></h3></div>
<div class="blc1">
<div class="n1">
<div class="b_img"><a href="news/<?=$newcat6[0]['tenkhongdau']?>-<?=$newcat6[0]['id']?>"><img src="<?=_upload_tintuc_l.$newcat6[0]['photo']?>"></a></div>
<a class="b_name" href="news/<?=$newcat6[0]['tenkhongdau']?>-<?=$newcat6[0]['id']?>"><?=catchuoi($newcat6[0]['ten'],120)?></a>
<div class="b_sum"><?=catchuoi($newcat6[0]['mota'],120)?></div>
</div>
<!--<div style="margin-top:15px;">
<div style="width:120px;height:80px;float:left"> <a href="news/<?=$newcat62[0]['tenkhongdau']?>-<?=$newcat62[0]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat62[0]['photo']?>" width="100%" height="100%"> </a> </div>
<div class="title5_tenn2"> <a href="news/<?=$newcat62[0]['tenkhongdau']?>-<?=$newcat62[0]['id']?>"><?=$newcat62[0]['ten']?></a></div>
</div>-->
<div class="clear"></div>
<div style="width:100%;margin-top:15px;">
<ul style="margin-top: 10px;line-height: 22px;">
<?php for($i=1;$i<count($newcat62);$i++){?>
<li> <img src="images/blog-arrow.png" alt="icon" style="margin-right: 5px;"> <a style="color: #444;font-size: 12px;text-transform: uppercase" href="news/<?=$newcat62[$i]['tenkhongdau']?>-<?=$newcat62[$i]['id']?>">
<?=$newcat62[$i]['ten']?>
</a> </li>
<? }?>
</ul>
</div>
</div>
</div>
<!-- Tin du an -->
<!-- Tin su kien -->
<div class="col-md-4 col-xs-12 col-sm-12 newt_net2">
<div class="title5"><h3><a href="news/su-kien">SỰ KIỆN</a><a href="news/su-kien" class="title5aa">Xem tất cả</a></h3></div>
<div class="blc1">
<?php
for($i=0;$i<count($newcat7);$i++){
?>
<div class="newt_net_img">
<a href="news/<?=$newcat7[$i]['tenkhongdau']?>-<?=$newcat7[$i]['id']?>">
<img src="<?=_upload_tintuc_l.$newcat7[$i]['photo']?>" width="100%" height="215px" alt="sukien"></a></div>
<div class="newt_net2img2"> <a href="news/<?=$newcat7[$i]['tenkhongdau']?>-<?=$newcat7[$i]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat7[$i]['photo']?>" width="100%" height="380px" alt="sukien"> </a> </div>
<?
}
?>
</div>
</div>
<!-- Tin su kien -->
<!-- Ngan hang -->
<? if($newcat9){?>
<div class="nganha">
<div class="title5"> <a href="news/ngan-hang-cho-vay">NGÂN HÀNG HỖ TRỢ VAY VỐN</a> </div>
<div style="margin-top:25px;"></div>
<?php for($i=0;$i<count($newcat9);$i++){?>
<div class="nhcv_ct">
<div class="nhcv"> <a href="news/<?=$newcat9[$i]['tenkhongdau']?>-<?=$newcat9[$i]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat9[$i]['photo']?>" width="100%" height="100%" alt="<?=$alt?>"> </a> </div>
</div>
<? }?>
</div>
<? }?>
<!-- Ngan hang -->
<!-- cho thue -->
<div>
<div class="chothue_ct">
<? if($newcat8){?>
<div class="title5"> <a href="news/cho-thue">CHO THUÊ</a> </div>
<div style="margin-top:20px;"></div>
<div class="chothue_left">
<div style="width:100%;height:265px;"> <a href="news/<?=$newcat8[0]['tenkhongdau']?>-<?=$newcat8[0]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat8[0]['photo']?>" width="100%" height="100%" alt="<?=$newcat8[0]['ten']?>"> </a> </div>
<div style="margin-top:15px;font-size:14px;font-weight:bold;color:#505050;font-family:tahoma"> <a href="news/<?=$newcat8[0]['tenkhongdau']?>-<?=$newcat8[0]['id']?>">
<?=$newcat8[0]['ten']?>
</a> </div>
<div style="margin-top:15px;font-size:13px;font-weight:bold;color:#8B8B8B;">
<?=catchuoi($newcat8[0]['mota'],120)?>
</div>
</div>
<? } ?>
<div class="chothue_right">
<? if($newcat82){?>
<div style="width:100%;float:left">
<div style="width:170px;height:110px;float:left"> <a href="news/<?=$newcat82[0]['tenkhongdau']?>-<?=$newcat82[0]['id']?>"> <img src="<?=_upload_tintuc_l.$newcat82[0]['photo']?>" width="100%" height="100%" alt="<?=$newcat82[0]['ten']?>"> </a> </div>
<div style="width:190px;float:left;margin-left:15px;">
<div style="font-size:14px;font-weight:bold;color:#505050;font-family:tahoma"> <a href="news/<?=$newcat82[0]['tenkhongdau']?>-<?=$newcat82[0]['id']?>">
<?=$newcat82[0]['ten']?>
</a> </div>
<div style="margin-top:10px;font-size:13px;font-weight:bold;color:#8B8B8B;">
<?=$newcat82[0]['mota']?>
</div>
</div>
</div>
<div class="clear"></div>
<div style="width:100%;margin-top:15px;">
<ul style="margin-top: 10px;line-height: 22px;">
<?php for($i=1;$i<count($newcat82);$i++){?>
<li> <img src="images/blog-arrow.png" alt="icon" style="margin-right: 5px;"> <a style="color: #444;font-size: 12px;text-transform: uppercase" href="news/<?=$newcat82[$i]['tenkhongdau']?>-<?=$newcat82[$i]['id']?>">
<?=$newcat82[$i]['ten']?>
</a> </li>
<? }?>
</ul>
</div>
<? } ?>
</div>
</div>
<?
$d->reset();
$sql = "select * from #_photo where com='doitac' ";
$d->query($sql);
$bnrn= $d->result_array();
if($bnrn){
?>
<div class="bnnew_right">
<div style="margin-top:15px;"> <a href="<?=$bnrn[0]['mota']?>" target="blank"> <img src="<?=_upload_hinhanh_l.$bnrn[0]['photo']?>" alt="<?=$alt?>"> </a> </div>
<div style="margin-top:15px;"> <a href="<?=$bnrn[0]['link']?>" target="blank"> <img src="<?=_upload_hinhanh_l.$bnrn[0]['thumb']?>" alt="<?=$alt?>"> </a> </div>
</div>
<? } ?>
</div>
<!-- cho thue -->
</div>
<!-- ngan hang -->
<div style="margin:auto; max-width: 1165px; height: 150px; overflow: hidden ;">
<div class="title5"> <a>ĐỐI TÁC - TÀI TRỢ</a> </div>
<div style="margin-top:10px"></div>
<div style="width: 100%; height: 125px; overflow: hidden; ">
<style type="text/css">
.hort img{
max-width: 150px;
max-height: 100px;
}
</style>
<div class="hort simply-scroll-container" >
<div class="simply-scroll-clip">
<ul class="scroller1 simply-scroll-list" style="width: 1800px; height: 125px;margin-top:10px">
<?php $d->reset();
$sql="select * from #_alpum where hienthi=1 ";
$d->query($sql);
$alpum=$d->result_array();?>
<?php
for($i=0;$i<count($alpum);$i++){
?>
<li style="background-color:#f5f4f4;float:left;margin-right:25px"> <a href="<?=$alpum[$i]['link']?>" target="_blank"> <img src="<?=_upload_tintuc_l.$alpum[$i]['photo']?>" alt="<?=$alt?>"> </a> </li>
<? } ?>
</ul>
</div>
</div>
</div>
</div>
<!-- ngan hang -->
<? } else {?>
<div class="qc"> <img src="images/2.png" width="100%" height="265" alt="<?=$alt?>"> </div>
<div class="tin2">
<div style="width:100%;float:left">
<div class="title_detail">
<h3>
<?=$title_bar?>
</h3>
</div>
<div class="content_document">
<?php
for($i=0;$i<count($result_news);$i++)
{
?>
<div class="tin3">
<div class="tin3_new">
<h4 style="padding-top:10px;padding-bottom:10px;height:40px"> <a href="news/<?=$result_news[$i]['tenkhongdau']?>-<?=$result_news[$i]['id']?>" style="font-size:16px;font-weight:bold;color:#1668b2">
<?=$result_news[$i]['ten']?>
</a> </h4>
<a href="news/<?=$result_news[$i]['tenkhongdau']?>-<?=$result_news[$i]['id']?>"> <img src="<?=_upload_tintuc_l.$result_news[$i]['photo']?>" alt="<?=$result_news[$i]['ten']?>"/> </a> <br>
<span>
<?=catchuoi($result_news[$i]['mota'],180)?>
</span> </div>
</div>
<? }?>
<div class="phantrang">
<?=$paging['paging']?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<? }?>