query($q); $i=1; $content=$content_div=array(); while($m=$db->fetch_array($r)){ $m_kh=get_db_msg("select * from ".$table_pre."kh where id='".$m["id"]."'"); $xh=get_kh_xh($m_kh,$m["color"]); $content[$i][]=$xh; $content[$i][]=$m_kh["no"]; $content[$i][]=$m["color"]."-".get_cate_title_no("color",$m["color"]); $content[$i][]=get_cate_title_no("bc",$m_kh["bc"]); $content[$i][]=get_cate_title_no("category",$m_kh["category"]); //取得下单客户量 $m_num_client=get_db_msg("select count(distinct uid) 'num' from ".$table_pre."order where iid='".$m_kh["id"]."'".$sql_qy); // //取得定制选项 $select_dz=array(); $q1="select no,title from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and no<>'jgd' and no<>'sx' and no<>'color' order by ord"; $r1=$db->query($q1); $j=0; while($m1=$db->fetch_array($r1)){ $select_dz[$j][0]=$m1["title"].":"; $select_dz[$j][1]=get_cate_title_no($m1["no"],$m_kh[$m1["no"]]); $j++; } $dzHTML = ''; $dzCount = 0; for($k=0;$k".$select_dz[$k*2][1].""; if ($select_dz[$k*2][0]) $dzCount++; $dzHTML.="
".$select_dz[$k*2+1][0]."".$select_dz[$k*2+1][1]."
"; if ($select_dz[$k*2+1][0]) $dzCount++; } // $pic=get_kh_picture_big($m_kh["no"],$m_kh["main_pic"],$m_kh["color"]); $content_div[$i]="
NO.".$i." 第".$i."名
款号:".$m_kh["no"]."
序号:".get_kh_xh($m_kh)."
".$dzHTML."
款式名:".$m_kh["title"]."
下单客户:".$m_num_client["num"]."个
".out_good_pic($pic,280,300)."
"; $i++; } $num2=count($content)>20?count($content):20; ?> " /> 排行榜
排名 序号 款号 颜色  
 
             
0){ echo "
滚动间隔秒 刷新时间分钟 显示前