產品分類

query("select * from product where DELETE_ID =0 and LENGTH(IMG1)!=0 and CATE_INDEX ='".$_GET['lv2']."' limit ".$move.",".$page_size.""); $rows = $db -> getcount("select * from product_topic where DELETE_ID =0 and CATE_INDEX ='".$_GET['lv2']."' ") ; $fnav = $db -> getfirst("select * from product_topic where DELETE_ID =0 and ITEM ='".$_GET['lv1']."'") ; $snav = $db -> getfirst("select * from product_topic where DELETE_ID =0 and ITEM ='".$_GET['lv2']."'") ; $nav = "".$fnav['TOPIC']." > ".$snav['TOPIC']."" ; } else if($_GET['lv1'] && !$_GET['lv2']) { $result = $db -> query("select * from product where DELETE_ID =0 and LENGTH(IMG1)!=0 and LOCATE('
0
".$_GET['lv1']."
',DOC_PATH)!=0 limit ".$move.",".$page_size.""); $rows = $db -> getcount("select * from product where DELETE_ID =0 and LOCATE('
0
".$_GET['lv1']."
',DOC_PATH)!=0") ; $fnav = $db -> getfirst("select * from product_topic where DELETE_ID =0 and ITEM ='".$_GET['lv1']."'") ; $nav = $fnav['TOPIC'] ; } ?>

getarray($result)) { $slv = $db -> getfirst("select * from product_topic where DELETE_ID =0 and ITEM ='".$record['CATE_INDEX']."'") ; $flv = $db -> getfirst("select * from product_topic where DELETE_ID =0 and ITEM ='".$slv['CATE_INDEX']."'") ; ?>