|
connect($dbhost,$dbuser,$dbpw,$dbname,"p");
$sys_size_num=get_max_size_num();
//杯型参数
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;
}
//取得选项
$arr_select_no=array();
$arr_select_title=array();
$q="select no,title from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and no<>'jgd' and no<>'sx' and no<>'zd1' and no<>'zd2' and no<>'zd3' order by ord";
$r=$db->query($q);
while($m=$db->fetch_array($r)){
$arr_select_no[]=$m["no"];
$arr_select_title[]=$m["title"];
}
//可选择字段
$arr_zd["xh"]="序号";
$arr_zd["price"]="零售价";
$arr_zd["price_zk"]="折扣价";
$arr_zd["title"]="款式名";
for($i=0;$iget_cate_title_no("arr_select","category"),
"category,bc,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","bc"),
"category,series,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","series"),
"category,theme,num desc"=>get_cate_title_no("arr_select","category").",".get_cate_title_no("arr_select","theme"),
"no,num desc"=>"款号"
);
//字段
$zd="";
$i=0;
foreach($arr_zd as $k1 => $v1){
$zd.="";
}
echo "显示列:".$zd;
echo " 排序:";
echo " |