ÿØÿà 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/private_html/modules/ |
Upload File : |
<?php /*----------------------------------------*\ | Copyright © C-ILY | | Phone: 0983.998.994 | | Y!m: notepad.html | | Email: truongpv87@gmail.com | \*----------------------------------------*/ define('CILY',true); //* search.html BEGIN: Tìm kiếm *// $this_title = 'Tìm kiếm'; $s_start = ($w3c->rewrite_page -1) * get_option('paging_sp'); if($_COOKIE['order'] == 2) {$order = 'ORDER BY product_price DESC'; $w3c->parse('sr_caodenthap');$w3c->parse('sr_oselect2');} elseif($_COOKIE['order'] == 1) {$order = 'ORDER BY product_price ASC'; $w3c->parse('sr_thapdencao');$w3c->parse('sr_oselect1');} elseif($_COOKIE['order'] == 4) {$order = 'ORDER BY id DESC'; $w3c->parse('sr_moinhat');$w3c->parse('sr_oselect4');} elseif($_COOKIE['order'] == 3) {$order = 'AND product_banchay = "1" ORDER BY product_timeup DESC'; $w3c->parse('sr_banchay');$w3c->parse('sr_oselect3');} elseif($_COOKIE['order'] == 5) {$order = 'AND product_hot = "1" ORDER BY product_timeup DESC'; $w3c->parse('sr_sphot');$w3c->parse('sr_oselect5');} elseif($_COOKIE['order'] == 6) {$order = 'AND product_nb = "1" ORDER BY product_timeup DESC'; $w3c->parse('sr_spnoibat');$w3c->parse('sr_oselect6');} else {$order = 'ORDER BY id DESC'; $w3c->parse('sr_sapxepsanpham');$w3c->parse('sr_oselect4');} if($_COOKIE['price'] == 1) {$price = 'AND product_price < 1000';$w3c->parse('sr_xemgia1'); $w3c->parse('sr_select1');} elseif($_COOKIE['price'] == 12) {$price = 'AND product_price >= 1000 AND product_price < 2000';$w3c->parse('sr_xemgia12');$w3c->parse('sr_select12');} elseif($_COOKIE['price'] == 24) {$price = 'AND product_price >= 2000 AND product_price < 4000';$w3c->parse('sr_xemgia24');$w3c->parse('sr_select24');} elseif($_COOKIE['price'] == 46) {$price = 'AND product_price >= 4000 AND product_price < 6000';$w3c->parse('sr_xemgia46');$w3c->parse('sr_select46');} elseif($_COOKIE['price'] == 68) {$price = 'AND product_price >= 6000 AND product_price < 8000';$w3c->parse('sr_xemgia68');$w3c->parse('sr_select68');} elseif($_COOKIE['price'] == 810) {$price = 'AND product_price >= 8000 AND product_price < 10000';$w3c->parse('sr_xemgia810');$w3c->parse('sr_select810');} elseif($_COOKIE['price'] == 1015) {$price = 'AND product_price >= 10000 AND product_price < 15000';$w3c->parse('sr_xemgia1015');$w3c->parse('sr_select1015');} elseif($_COOKIE['price'] == 15) {$price = 'AND product_price >= 15000';$w3c->parse('sr_xemgia15');$w3c->parse('sr_select15');} elseif($_COOKIE['price'] == 0) {$price = '';$w3c->parse('sr_xemgia0');$w3c->parse('sr_select0');} else {$price = '';$w3c->parse('sr_xemgia0');$w3c->parse('sr_select0');} $total_s = @mysql_num_rows(@mysql_query("SELECT * FROM cily_products WHERE ".search_like('product_name_ascii', $w3c->rewrite_search)." ".$price." ".$order."" )); $list_item = @mysql_query("SELECT * FROM cily_products WHERE ".search_like('product_name_ascii', $w3c->rewrite_search)." ".$price." ".$order." LIMIT ".$s_start.",".get_option('paging_sp')); if(!@mysql_num_rows($list_item)) { if ($_COOKIE['price'] != NULL){ $w3c->parse('srcookie_pro'); }else { $w3c->parse('srnocookie_pro'); } } while ($item = @mysql_fetch_array ($list_item)){ $cat = @mysql_fetch_array(@mysql_query("SELECT id, cat_name_ascii FROM cily_cats WHERE id = ".$item['product_cat'])); $w3c->assign( array( 'seaCID' => $cat['id'], 'seaPID' => $item['id'], 'seaCAT_ascii' => $cat['cat_name_ascii'], 'seaCAT_name' => $cat['cat_name'], 'seaPro_name' => ($item['product_name']), 'seaPro_ascii' => $item['product_name_ascii'], 'seaPro_image' => $item['product_image'], 'seaPro_quote' => nl2br(iout($item['product_quote'])), 'seaPro_price' => number($item['product_price'] * $tygia), 'seaPro_free' => number($item['product_free'] * $tygia), 'seaPro_quality' => ($item['product_quality']), 'seaPro_warranty' => ($item['product_warranty']), 'tinhptram' => ((($item['product_price'] / $item['product_free']) * 100)-100), 'hienthi90' => fnumber_format(((($item['product_price'] / $item['product_free']) * 100)-100), 0, '.', ','), )); ($item['product_km'] <> NULL)?$w3c->parse('km1'):''; if ($item['product_free'] != '0'){ $w3c->parse('show_search_free'); $w3c->parse('show_search_phantram', $item['product_free']); } $w3c->parse('lsearch_full'); // {url}/sp/{seaCAT_ascii}-c{seaCID}/{seaPro_ascii}-p{seaPID} } if(!@mysql_num_rows($list_item)) { $w3c->assign('search_key', str_replace('-', ' ',$w3c->rewrite_search)); $w3c->parse('not_result'); } $w3c->assign('pagingindex', pagingindex(get_option('paging_sp'),$w3c->rewrite_page, $total_s, $w3c->rewrite_search, '-page-' ,false)); $w3c->assign( array( 'this_key' => str_replace('-', ' ',$w3c->rewrite_search), 'post_all' => $total_s, )); //* search.html END: Tìm kiếm *// ?>