$v2){ foreach ($v2 as $k2=>$v3){ $new_tab_content[]=$v3; } } } } //根据products里面的产品修正new_tab_content $other_tab_content=array(); foreach ($new_tab_content as $v) { $info=get_info_from_id($products,$v['product_id']); if($info!=0) { array_push($other_tab_content, $v); } } $new_tab_content=$other_tab_content; //根据info的os和isfree 修正new_tab_content $other_tab_content=array(); if ($isfree!=""){ foreach ($new_tab_content as $v) { $info=get_info_from_id($products,$v['product_id']); if($info['is_free']==$isfree) { array_push($other_tab_content, $v); } } $new_tab_content=$other_tab_content; } $other_tab_content=array(); if ($os!=""){ foreach ($new_tab_content as $v) { $info=get_info_from_id($products,$v['product_id']); if($info['os']==$os) { array_push($other_tab_content, $v); } } $new_tab_content=$other_tab_content; } $page_index=(count($new_tab_content)-count($new_tab_content)%10)/10+1; //取得根分类 $tab_arr = get_root_cat();//print_r( $tab_arr );exit; //获取免费产品信息 $free_arr = get_free_products($type);//print_r( $tab_arr );exit; //首页轮播图,使用new_release的产品 // $broadcast_product=$new_release; $broadcast_product=array( get_info_from_id($products,2), get_info_from_id($products,13), get_info_from_id($products,114), get_info_from_id($products,53), get_info_from_id($products,105), get_info_from_id($products,63), ); $broadcast_str=""; $i=0; foreach ($broadcast_product as $k=>$v) { $class=$k%4!=3?"item":"item noBor"; $list_class_start=$k%4==0?'
Get Wondershare Multimedia Software, Business Tools, Utilities and Mobile Software here.
