0) { if($_COOKIE[ipzi6]) { $cookizhi=array(); $cookizhi=explode(",",$_COOKIE[ipzi6]); $hebingshuzu=array_unique(array_merge($cookizhi,$idzhi)); $cpidzhi=implode(",",$hebingshuzu); setcookie('ipzi6',$cpidzhi,time()+3600*20,'/'); $shuchuzhi=array(); $group_extend_result = $db->query("SELECT b.title,b.thumb,b.contentid,b.url,b.description,a.content,a.title1 FROM ".DB_PRE."c_product a,".DB_PRE."content b WHERE a.contentid=b.contentid and a.contentid in ($cpidzhi)"); while($e_rs = $db->fetch_array($group_extend_result)) { $shuchuzhi[$e_rs['contentid']]['thumb']= $e_rs['thumb']; $shuchuzhi[$e_rs['contentid']]['title']= $e_rs['title']; $shuchuzhi[$e_rs['contentid']]['contentid']= $e_rs['contentid']; $shuchuzhi[$e_rs['contentid']]['url']= $e_rs['url']; $shuchuzhi[$e_rs['contentid']]['content']= $e_rs['content']; $shuchuzhi[$e_rs['contentid']]['description']= $e_rs['description']; $shuchuzhi[$e_rs['contentid']]['title1']= $e_rs['title1']; } } else { $cpidzhi=implode(",",$_POST['id']); setcookie('ipzi6',$cpidzhi,time()+3600*20,'/'); $shuchuzhi=array(); $group_extend_result = $db->query("SELECT b.title,b.thumb,b.contentid,b.url,b.description,a.content,a.title1 FROM ".DB_PRE."c_product a,".DB_PRE."content b WHERE a.contentid=b.contentid and a.contentid in ($cpidzhi)"); while($e_rs = $db->fetch_array($group_extend_result)) { $shuchuzhi[$e_rs['contentid']]['thumb']= $e_rs['thumb']; $shuchuzhi[$e_rs['contentid']]['title']= $e_rs['title']; $shuchuzhi[$e_rs['contentid']]['contentid']= $e_rs['contentid']; $shuchuzhi[$e_rs['contentid']]['url']= $e_rs['url']; $shuchuzhi[$e_rs['contentid']]['content']= $e_rs['content']; $shuchuzhi[$e_rs['contentid']]['description']= $e_rs['description']; $shuchuzhi[$e_rs['contentid']]['title1']= $e_rs['title1']; } } } else { $shuchuzh=array(); if($_COOKIE[ipzi6]) { $cookizhi=explode(",",$_COOKIE[ipzi6]); $shanchu=array($_GET['delete']); $hebingshuzu=array_diff($cookizhi,$shanchu); $cpidzhi=implode(",",$hebingshuzu); setcookie('ipzi6',$cpidzhi,time()+3600*20,'/'); if(count($hebingshuzu)>0) { $shuchuzhi=array(); $group_extend_result = $db->query("SELECT b.title,b.thumb,b.contentid,b.url,b.description,a.content,a.title1 FROM ".DB_PRE."c_product a,".DB_PRE."content b WHERE a.contentid=b.contentid and a.contentid in ($cpidzhi)"); while($e_rs = $db->fetch_array($group_extend_result)) { $shuchuzhi[$e_rs['contentid']]['thumb']= $e_rs['thumb']; $shuchuzhi[$e_rs['contentid']]['title']= $e_rs['title']; $shuchuzhi[$e_rs['contentid']]['contentid']= $e_rs['contentid']; $shuchuzhi[$e_rs['contentid']]['url']= $e_rs['url']; $shuchuzhi[$e_rs['contentid']]['content']= $e_rs['content']; $shuchuzhi[$e_rs['contentid']]['description']= $e_rs['description']; $shuchuzhi[$e_rs['contentid']]['title1']= $e_rs['title1']; } } else { $shuchuzhi=array(); setcookie('ipzi6','44',time()-200,'/'); } } else{ $shuchuzhi=array(); } } $head['title'] = 'Inquiry List'; include template('phpcms', 'list_cart'); ?>