ÿØÿà 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/public_html/modules/ |
Upload File : |
<?php /*----------------------------------------*\ | Copyright © C-ILY | | Phone: 0983.998.994 | | Y!m: notepad.html | | Email: truongpv87@gmail.com | \*----------------------------------------*/ define('CILY',true); $this_product = @mysql_fetch_array(@mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_products as p INNER JOIN cily_cats as c ON(p.product_cat = c.id) WHERE p.id = ".$w3c->rewrite_id)); $descrip = explode(' .|~|. ',$this_product['product_descrip']); if(!$descrip)$dr_total = 1; else { foreach ($descrip as $item) { $dr_total ++; $it = explode(': ',$item); $dr[$dr_total] = $w3c->assign(array( 'show' => '', 'key' => $it[0], 'val' => $it[1], )); $w3c->parse('show_descrip'); } } if(!$descrip)$dr_total1 = 1; else { foreach ($descrip as $item1) { $dr_total1 ++; $it1 = explode(': ',$item1); $dr1[$dr_total1] = array( 'key1' => $it1[0], 'val1' => $it1[1], ); } } $phamtram = ((($this_product['product_price'] / $this_product['product_free']) * 100)-100); $hienthi = fnumber_format($phamtram, 0, '.', ','); $w3c->assign( array( 'cid' => $this_product['cid'], 'pid' => $this_product['pid'], 'cat_ascii' => $this_product['cat_name_ascii'], 'cat_name' => $this_product['cat_name'], 'pro_ascii' => $this_product['product_name_ascii'], 'pro_warranty' => $this_product['product_warranty'], 'pro_quality' => $this_product['product_quality'], 'pro_quote' => nl2br($this_product['product_quote']), 'pro_name' => ($this_product['product_name']), 'pro_fullimg' => $this_product['product_fullimg'], 'pro_image' => $this_product['product_image'], 'pro_price' => ($this_product['product_price'] == '0')?$lang50:number($this_product['product_price'] * $tygia).$lang50, 'pro_free' => number($this_product['product_free'] * $tygia), 'pro_info' => iout($this_product['product_info']), 'pro_descrip' => str_replace(' .|~|. ', '<br>', $this_product['product_descrip']), 'pro_msp' => $dr1[1]['val1'], 'pro_hsx' => ($dr1[2]['val1']), 'pro_total' => number($this_product['product_total']), 'pro_giamgia' => $hienthi, 'pro_star' => $this_product['product_star'], 'pro_km12' => nl2br($this_product['product_km']), 'pro_tinhtrang' => ($this_product['product_total'] == 0)?'Hết hàng':'Còn hàng', 'hienthi32' => fnumber_format(((($this_product['product_price'] / $this_product['product_free']) * 100)-100), 0, '.', ','), )); $listImages = explode(',', $this_product['attach_image']); $demhinhanh = '1'; foreach($listImages as $imgUrl){ if($imgUrl){ $thumb = explode('/', $imgUrl); $thumb[count($thumb) - 1] = 'thumbs-' . $thumb[count($thumb) - 1]; $w3c->assign( array( 'att_image' => $imgUrl, 'att_thumb' => implode('/', $thumb) ) ); $w3c->parse('show_images'); $demhinhanh++; } } $listImages1 = explode(',', $this_product['attach_image']); $demhinhanh1 = '1'; foreach($listImages1 as $imgUrl1){ if($imgUrl1){ $thumb1 = explode('/', $imgUrl1); $thumb1[count($thumb1) - 1] = 'thumbs-' . $thumb1[count($thumb1) - 1]; $w3c->assign( array( 'att_image1' => $imgUrl1, 'att_thumb1' => implode('/', $thumb1) ) ); $w3c->parse('show_images1'); $demhinhanh1++; } } if ($this_product['product_km'] != NULL){$w3c->parse('show_sp_km12');} if ($this_product['product_free'] != '0'){$w3c->parse('show_sp_free123');} if ($this_product['product_free'] != '0'){ $w3c->parse('show_phantram18', $this_product['product_free'].$lang50); } $w3c->assign('lscat_image', $this_cat['cat_img']); //Sản phẩm cùng loại $q_related = @mysql_query("SELECT p.*, c.*, c.id AS cid, p.id AS pid FROM cily_products as p INNER JOIN cily_cats as c ON(p.product_cat = c.id) WHERE product_cat = ". $this_product['product_cat'] ." AND p.id <> ".$this_product['id']." ORDER BY p.id DESC LIMIT 3"); while($related = @mysql_fetch_array($q_related)) { $w3c->assign( array( 'toCID' => $related['cid'], 'toPID' => $related['pid'], 'toCAT_ascii' => $related['cat_name_ascii'], 'toPro_ascii' => $related['product_name_ascii'], 'toCAT_name' => $related['cat_name'], 'toPro_name' => $related['product_name'], 'toPro_quote' => $related['product_quote'], 'toPro_image' => $related['product_image'], 'toPro_price' => ($related['product_price'] == '0')?$lang49:number($related['product_price'] * $tygia), )); $w3c->parse('related'); // {url}/sp/{toCAT_ascii}-c{toCID}/{toPro_ascii}-p{toPID} } //Sản phẩm cùng loại ?>