���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /proc/self/root/var/www/html/tien-dien/code/detail/ |
<?php $q_r_block = $DB->query("SELECT a.* FROM tb_block a LEFT JOIN tb_block_page b ON a.block_id=b.block_id WHERE a.block_type=3 AND b.menus_id='$menu_id' ORDER BY a.block_pos ASC, a.block_id ASC"); $txt_list = ''; while ($r_r_block = $DB->fetch_row($q_r_block)){ $arr_block['id'] = $r_r_block['block_id']; $arr_block['name'] = $r_r_block['block_title']; $arr_block['content'] = htmlspecialchars_decode(html_entity_decode($r_r_block['block_detail'])); $list_r_block[] = $arr_block; } $where = " AND id IN (SELECT pages_id FROM tb_menus_pages WHERE menus_id='".$menu_id."' ) AND id!='$page_id' "; $query = $DB->query("SELECT * FROM tb_pages WHERE 1 ".$where." ORDER BY `pos` ASC, `noibat` DESC, status ASC LIMIT 5"); $txt_same = ''; $i = 0; while($row = $DB->fetch_row($query)){ $txt_no_border = ''; if($i==0){ $txt_no_border = 'no-border'; } $txt_same .= ' <div class="sidebar--widget__post mb-20"> <div class="sidebar__post--thumb"> <a href="/'.$menu_ftitle.'/'.$row['ftitle'].'/"> <div class="post__img" data-background="'.$row['path_img'].'"></div> </a> </div> <div class="sidebar__post--text"> <h4 class="sidebar__post--title"><a href="/'.$menu_ftitle.'/'.$row['ftitle'].'/">'.$row['title'].'</a></h4> </div> </div> '; $i++; } ?> <div class="ablog__sidebar mb-50"> <div class="widget wow fadeInUp"> <?php if(isset($list_r_block) and !empty($list_r_block)){ foreach($list_r_block as $block){ echo $block['content']; } } ?> <!--<div class="sidebar--widget__search mb-45"> <form action="#"> <input type="text" placeholder="Search"> <button type="submit"><i class="far fa-search"></i></button> </form> </div>--> </div> <?php if(!empty($txt_same)){ ?> <div class="widget mb-45 wow fadeInUp"> <h3 class="sidebar__widget--title mb-30">Bài viết gần đây </h3> <?php echo $txt_same; ?> </div> <?php } ?> </div>