ÿØÿà JFIF ` ` ÿþ
Server : Apache/2 System : Linux vps.phamthanh.local 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 User : benhviencoc7 ( 1008) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/benhviencoc7/domains/benhviendkkvcampha.vn/public_html/modules/ |
Upload File : |
<?php /*----------------------------------------*\ | Copyright © C-ILY | | Phone: 0983.998.994 | | Y!m: notepad.html | | Email: truongpv87@gmail.com | \*----------------------------------------*/ define('CILY',true); //*main.html END: Danh sách hiển thị danh mục ngoài main.html*// $cathome = '1'; $miHome_id = @mysql_query("SELECT cath.*, c.* FROM cily_cathome AS cath JOIN cily_cats AS c ON (cath.cath_id = c.id) WHERE c.cat_lang = ".$_SESSION['lang']." ORDER BY cath.cath_order ASC"); while ($miHomeid = @mysql_fetch_array ($miHome_id)){ $lcathid = show_dequy($miHomeid['cath_id'],'2'); if ($cathome == 1) { $miCHome_sp = @mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_products AS p JOIN cily_cats AS c ON (p.product_cat = c.id) WHERE (p.product_cat IN (".$lcathid.")) AND c.cat_lang = ".$_SESSION['lang']." AND product_show = 1 ORDER BY p.product_timeup DESC LIMIT ".get_option('paging_index')); while ($item = @mysql_fetch_array ($miCHome_sp)){ $descrip = explode(' .|~|. ',$item['product_descrip']); if(!$descrip)$dr_total1 = 1; else { foreach ($descrip as $item1) { $dr_total1 ++; $it1 = explode(': ',$item1); } } $w3c->assign( array( 'MIcid' => $item['cid'], 'MIpid' => $item['pid'], 'MIcat_ascii' => $item['cat_name_ascii'], 'MIcat_name' => $item['cat_name'], 'MIpro_ascii' => $item['product_name_ascii'], 'MIpro_img' => $item['product_fullimg'], 'MIpro_thumb' => $item['product_image'], 'MIpro_name' => $item['product_name'], 'MIpro_quote' => nl2br(iout($item['product_quote'])), 'MIpro_info' => $item['product_descrip'], 'MIpro_price' => ($item['product_price'] == '0')?$lang50:number($item['product_price'] * $tygia).$lang50, 'MIpro_free' => number($item['product_free'] * $tygia), 'MIpro_home' => ($item['product_home'] == 1)?$item['product_home'] = 'Còn hàng':$item['product_home'] = 'Hết hàng', 'MIpro_quality' => ($item['product_quality']), 'MIpro_warranty' => ($item['product_warranty']), 'MIpro_total' => number($item['product_total']), 'MIhienthi' => fnumber_format(((($item['product_price'] / $item['product_free']) * 100)-100), 0, '.', ','), )); if ($item['product_free'] != '0'){ $w3c->parse('show_free1'); $w3c->parse('show_phantram1', $item['product_free']); } if ($item['product_km'] != NULL){ $w3c->parse('show_km1'); } $w3c->parse('lproduct_full'); //* {url}/sp/{cat_ascii}-c{cid}/{pro_ascii}-p{pid} } $lnamecathome = @mysql_query("SELECT * FROM cily_cats WHERE id = ".$miHomeid['cath_id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome = @mysql_fetch_array ($lnamecathome)){ $lnamecathome1 = @mysql_query("SELECT * FROM cily_cats WHERE cat_sub = ".$lnhome['id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome1 = @mysql_fetch_array ($lnamecathome1)){ $w3c->assign( array( 'lnhome_id1' => $lnhome1['id'], 'lnhome_name1' => $lnhome1['cat_name'], 'lnhome_ascii' => $lnhome1['cat_name_ascii'], 'listone11' => $listone, )); $w3c->parse('lnamecathome1'); } $w3c->assign( array( 'lnhome_id' => $lnhome['id'], 'lnhome_name' => $lnhome['cat_name'], 'lnhome_info' => $lnhome['cat_info'], 'lnhome_ascii' => $lnhome['cat_name_ascii'], )); $w3c->parse('lnamecathome'); } $w3c->assign('cat_name', $miHomeid['cat_name']); $w3c->parse('miCHome_sp'); }else if ($cathome < 5){ $miCHome_sp = @mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_products AS p JOIN cily_cats AS c ON (p.product_cat = c.id) WHERE (p.product_cat IN (".$lcathid.")) AND c.cat_lang = ".$_SESSION['lang']." AND product_show = 1 ORDER BY p.product_timeup DESC LIMIT ".get_option('paging_index')); while ($item = @mysql_fetch_array ($miCHome_sp)){ $descrip = explode(' .|~|. ',$item['product_descrip']); if(!$descrip)$dr_total1 = 1; else { foreach ($descrip as $item1) { $dr_total1 ++; $it1 = explode(': ',$item1); } } $w3c->assign( array( 'MIcid' => $item['cid'], 'MIpid' => $item['pid'], 'MIcat_ascii' => $item['cat_name_ascii'], 'MIcat_name' => $item['cat_name'], 'MIpro_ascii' => $item['product_name_ascii'], 'MIpro_img' => $item['product_fullimg'], 'MIpro_thumb' => $item['product_image'], 'MIpro_name' => $item['product_name'], 'MIpro_quote' => nl2br(iout($item['product_quote'])), 'MIpro_info' => $item['product_descrip'], 'MIpro_price' => ($item['product_price'] == '0')?$lang50:number($item['product_price'] * $tygia).$lang50, 'MIpro_free' => number($item['product_free'] * $tygia), 'MIpro_home' => ($item['product_home'] == 1)?$item['product_home'] = 'Còn hàng':$item['product_home'] = 'Hết hàng', 'MIpro_quality' => ($item['product_quality']), 'MIpro_warranty' => ($item['product_warranty']), 'MIpro_total' => number($item['product_total']), 'MIhienthi' => fnumber_format(((($item['product_price'] / $item['product_free']) * 100)-100), 0, '.', ','), )); if ($item['product_free'] != '0'){ $w3c->parse('show_free1'); $w3c->parse('show_phantram1', $item['product_free']); } if ($item['product_km'] != NULL){ $w3c->parse('show_km1'); } $w3c->parse('lproduct_full1'); //* {url}/sp/{cat_ascii}-c{cid}/{pro_ascii}-p{pid} } $lnamecathome = @mysql_query("SELECT * FROM cily_cats WHERE id = ".$miHomeid['cath_id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome = @mysql_fetch_array ($lnamecathome)){ $lnamecathome1 = @mysql_query("SELECT * FROM cily_cats WHERE cat_sub = ".$lnhome['id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome1 = @mysql_fetch_array ($lnamecathome1)){ $w3c->assign( array( 'lnhome_id1' => $lnhome1['id'], 'lnhome_name1' => $lnhome1['cat_name'], 'lnhome_ascii' => $lnhome1['cat_name_ascii'], 'listone11' => $listone, )); $w3c->parse('lnamecathome1'); } $w3c->assign( array( 'lnhome_id' => $lnhome['id'], 'lnhome_name' => $lnhome['cat_name'], 'lnhome_info' => $lnhome['cat_info'], 'lnhome_ascii' => $lnhome['cat_name_ascii'], )); $w3c->parse('lnamecathome'); } $w3c->assign('cat_name1', $miHomeid['cat_name']); $w3c->parse('miCHome_sp1'); }else if ($cathome > 5){ $miCHome_sp = @mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_products AS p JOIN cily_cats AS c ON (p.product_cat = c.id) WHERE (p.product_cat IN (".$lcathid.")) AND c.cat_lang = ".$_SESSION['lang']." AND product_show = 1 ORDER BY p.product_timeup DESC LIMIT ".get_option('paging_index')); while ($item = @mysql_fetch_array ($miCHome_sp)){ $descrip = explode(' .|~|. ',$item['product_descrip']); if(!$descrip)$dr_total1 = 1; else { foreach ($descrip as $item1) { $dr_total1 ++; $it1 = explode(': ',$item1); } } $w3c->assign( array( 'MIcid' => $item['cid'], 'MIpid' => $item['pid'], 'MIcat_ascii' => $item['cat_name_ascii'], 'MIcat_name' => $item['cat_name'], 'MIpro_ascii' => $item['product_name_ascii'], 'MIpro_img' => $item['product_fullimg'], 'MIpro_thumb' => $item['product_image'], 'MIpro_name' => $item['product_name'], 'MIpro_quote' => nl2br(iout($item['product_quote'])), 'MIpro_info' => $item['product_descrip'], 'MIpro_price' => ($item['product_price'] == '0')?$lang50:number($item['product_price'] * $tygia).$lang50, 'MIpro_free' => number($item['product_free'] * $tygia), 'MIpro_home' => ($item['product_home'] == 1)?$item['product_home'] = 'Còn hàng':$item['product_home'] = 'Hết hàng', 'MIpro_quality' => ($item['product_quality']), 'MIpro_warranty' => ($item['product_warranty']), 'MIpro_total' => number($item['product_total']), 'MIhienthi' => fnumber_format(((($item['product_price'] / $item['product_free']) * 100)-100), 0, '.', ','), )); if ($item['product_free'] != '0'){ $w3c->parse('show_free1'); $w3c->parse('show_phantram1', $item['product_free']); } if ($item['product_km'] != NULL){ $w3c->parse('show_km1'); } $w3c->parse('lproduct_full2'); //* {url}/sp/{cat_ascii}-c{cid}/{pro_ascii}-p{pid} } $lnamecathome = @mysql_query("SELECT * FROM cily_cats WHERE id = ".$miHomeid['cath_id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome = @mysql_fetch_array ($lnamecathome)){ $lnamecathome1 = @mysql_query("SELECT * FROM cily_cats WHERE cat_sub = ".$lnhome['id']." AND cat_lang = ".$_SESSION['lang']." AND cat_home = 1"); while ($lnhome1 = @mysql_fetch_array ($lnamecathome1)){ $w3c->assign( array( 'lnhome_id1' => $lnhome1['id'], 'lnhome_name1' => $lnhome1['cat_name'], 'lnhome_ascii' => $lnhome1['cat_name_ascii'], 'listone11' => $listone, )); $w3c->parse('lnamecathome1'); } $w3c->assign( array( 'lnhome_id' => $lnhome['id'], 'lnhome_name' => $lnhome['cat_name'], 'lnhome_info' => $lnhome['cat_info'], 'lnhome_ascii' => $lnhome['cat_name_ascii'], )); $w3c->parse('lnamecathome'); } $w3c->assign('cat_name2', $miHomeid['cat_name']); $w3c->parse('miCHome_sp2'); } $cathome++; } //*main.html END: Danh sách hiển thị danh mục ngoài main.html*//