load('class_index'); $check = $tlca_do->load('class_check'); $ngay=addslashes(strip_tags($url_query['ngay'])); $page=addslashes($url_query['page']); $page=strip_tags($page); if($page<=0){ $page=1; }else{ $page=$page; } $limit=6; $setting=mysqli_query($conn,"SELECT * FROM index_setting ORDER BY name ASC"); while ($r_s=mysqli_fetch_assoc($setting)) { $index_setting[$r_s['name']]=$r_s['value']; } $list_menu=json_decode($class_index->list_menu($conn),true); $tieude_blank=addslashes(strip_tags($_REQUEST['tieude_blank'])); $thongtin=mysqli_query($conn,"SELECT * FROM category WHERE cat_blank='$tieude_blank'"); $total=mysqli_num_rows($thongtin); if($total==0){ header("location:/"); }else{ $r_tt=mysqli_fetch_assoc($thongtin); } $cat=$r_tt['cat_id']; $thongke=mysqli_query($conn,"SELECT count(*) AS total_tin FROM tintuc WHERE FIND_IN_SET($cat,cat)>0"); $r_tk=mysqli_fetch_assoc($thongke); $total_page=ceil($r_tk['total_tin']/$limit); // array cho index $index_replace=array( 'header'=>$tlca_skin->skin_normal('header'), 'menu_mobile'=>$tlca_skin->skin_normal('menu_mobile'), 'menu_laptop'=>$tlca_skin->skin_normal('menu_laptop'), 'right_tintuc'=>$tlca_skin->skin_normal('right_tintuc'), 'box_sanpham_moi'=>$tlca_skin->skin_normal('box_sanpham_moi'), 'box_dangky_laithu'=>$tlca_skin->skin_normal('box_dangky_laithu'), 'footer'=>$tlca_skin->skin_normal('footer'), 'script_footer'=>$tlca_skin->skin_normal('script_footer'), 'title'=>$r_tt['cat_title'], 'site_name'=>$index_setting['site_name'], 'description'=>$r_tt['cat_description'], 'list_menu_laptop_sanpham'=>$list_menu['sanpham_top'], 'list_menu_laptop_muaxe'=>$list_menu['muaxe_top'], 'list_menu_laptop_dichvu'=>$list_menu['dichvu_top'], 'list_sanpham_top_mobile'=>$list_menu['sanpham_top_mobile'], 'list_muaxe_top_mobile'=>$list_menu['muaxe_top_mobile'], 'list_dichvu_top_mobile'=>$list_menu['dichvu_top_mobile'], 'list_menu_sanpham'=>$list_menu['sanpham_footer'], 'list_menu_dichvu'=>$list_menu['dichvu_footer'], 'list_menu_muaxe'=>$list_menu['muaxe_footer'], 'link_domain'=>'//'.$_SERVER['HTTP_HOST'], 'link_xem'=>'//'.$_SERVER['HTTP_HOST'], 'hotline'=>$index_setting['hotline'], 'hotline_call'=>preg_replace('/[^0-9]/', '', $index_setting['hotline']), 'dia_chi'=>$index_setting['dia_chi'], 'email'=>$index_setting['email'], 'fanpage'=>$index_setting['fanpage'], 'feed'=>$index_setting['feed'], 'youtube'=>$index_setting['youtube'], 'text_footer'=>$index_setting['text_footer'], 'list_slide'=>$class_index->list_slide($conn,8), 'list_tintuc'=>$class_index->list_tintuc_category($conn,$cat,$page,$limit), 'list_baiviet_right'=>$class_index->list_tintuc_right($conn,5), 'list_danhmuc_right'=>$class_index->list_danhmuc_right($conn), 'phantrang'=>$class_index->phantrang($page,$total_page,5, '/'.$tieude_blank.'.html'), 'text_footer'=>$index_setting['text_footer'], 'chat_box'=>$index_setting['chat_box'], 'option_sanpham'=>$class_index->list_option_sanpham($conn) ///Het lenh thay the ); echo $tlca_skin->skin_replace('tintuc',$index_replace); ?>