'jgd' and no<>'sx' order by ord"; $r=$db->query($q); while($m=$db->fetch_array($r)){ if($m["no"]!="zd1" && $m["no"]!="zd2" && $m["no"]!="zd3"){ $arr_select_no1[]=$m["no"]; $arr_select_title1[]=$m["title"]; if($m["no"]!="designer"){ $arr_select_no2[]=$m["no"]; $arr_select_title2[]=$m["title"]; } } $arr_select_no[]=$m["no"]; $arr_select_title[]=$m["title"]; } //杯型参数 if($is_gg=="n"){ if($bx_sizegroup_title){ $tmp=get_db_msg("select id from ".$table_pre."keyword where cate='size' and title='".$bx_sizegroup_title."' limit 0,1"); $bx_sizegroup_id=$tmp["id"]; }else{ $bx_sizegroup_id=0; } //童装 if($child_sizegroup_title){ $tmp=get_db_msg("select id from ".$table_pre."keyword where cate='size' and title='".$child_sizegroup_title."' limit 0,1"); $child_sizegroup_id=$tmp["id"]; }else{ $child_sizegroup_id=0; } } $json_data.="\"uid\":".$uid.","; //有权限 switch($_a){ case "view_order": $s_group_by=$s_group_by?$s_group_by:"4"; $arr_group_by=array("4"=>"客户","3"=>"代理","9"=>"区域","1"=>"明细"); $msg=get_db_msg("select * from ".$table_pre."kh where id='".$id."'"); $pic=get_kh_picture($msg["no"],$msg["main_pic"],$msg["color"]); $pic_big=get_kh_picture_big($msg["no"],$msg["main_pic"],$msg["color"]); $pic1=out_good_pic($pic,200,200,'border=0'); $arr_pic_set=out_good_pic_set_arr($pic,200,200); $json_data.="\"pic_src\":\"".$pic."\",\"pic_w\":\"".$arr_pic_set[0]."\",\"pic_h\":\"".$arr_pic_set[1]."\",\"xhno\":\"".$msg["xh"]."#".$msg["no"]."\","; $content="
| 区域 | 代理 | 客户名称 | 客户代码 | 序号 | 款号 | "; //取得定制选项 $q="select * from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' order by ord"; $r=$db->query($q); $num_dz=0; while($m=$db->fetch_array($r)){ $_tbody.="".get_cate_title_no("arr_select",$m["no"])." | "; $num_dz++; } $_tbody.="吊牌价 | 颜色名称 | 颜色代码 | "; if($bx_sizegroup_id>0) $_tbody.="杯型 | "; if($is_gg=="y") $_tbody.="".d_translate("gg")." | "; $_tbody.=$size_tr[0]."小计 | 吊牌金额 | 结算金额 | |
| ".$m["num_".$arr_size_merged[$k]]." | "; } $_tbody.="|||||||||||||||
| ".$qy." | ".$dl." | ".$m2["title"]." | ".$m2["username"]." | ".get_kh_xh($msg_kh,$m["color"])." | ".$m["no"]." | "; //取得定制选项 $q2="select * from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' order by ord"; $r2=$db->query($q2); while($m2=$db->fetch_array($r2)){ if($m2["no"]=="zd1" || $m2["no"]=="zd2" || $m2["no"]=="zd3") $_tbody.="".$m[$m2["no"]]." | "; else $_tbody.="".get_cate_title_no($m2["no"],$m[$m2["no"]])." | "; } $_tbody.="".$m["price"]." | ".get_cate_title_no("color",$m["color"])." | ".$m["color"]." | "; if($bx_sizegroup_id>0) $_tbody.="".$m["bx"]." | "; if($is_gg=="y") $_tbody.="".get_gg_title($m["bx"])." | "; $_tbody.=$td_size1."".$num." | ".$m["je"]." | ".$m["jsje"]." |
| 颜色 | "; if($bx_sizegroup_id==$msg["size_group"]) $details.="杯型 | "; $details.=$str_size_title."小计 | 色总 排名 | 色类 排名 | 操作 |