7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
85 lines
3.8 KiB
PHP
85 lines
3.8 KiB
PHP
<?php
|
|
//-------------------------------------------------------店铺界面,单款下单界面的价格和选项显示定制
|
|
$show_mod="1";//FAB显示模式。1:分行模式;2:合并模式
|
|
//--------------------------------------显示价格信息
|
|
if($msg["size_group"]==$child_sizegroup_id){
|
|
//童装尺码异价
|
|
foreach($arr_child_bx as $bx1 => $size1){
|
|
$m1=get_db_msg("select id,price from ".$table_pre."size_bx where no='".$msg["no"]."' and bx='".$bx1."'");
|
|
if($m1["id"]>0)
|
|
$str_price.=$bx1.":".$m1["price"]."元<br>";
|
|
}
|
|
}else{
|
|
$dp_price=get_price_dp($uid,$msg["id"]);
|
|
$str_price=deel_num($dp_price)."元";
|
|
$price_zk=get_price_zk($uid,$msg["id"]);
|
|
if($price_zk!=$dp_price){
|
|
$str_price.=" / 结算价:".deel_num($price_zk)."元";
|
|
}
|
|
//买断价
|
|
$tmp=get_db_msg("select id,price from ".$table_pre."kh_md where (dj='".$msg_login["dj"]."' or dj='') and kh='".$msg["no"]."' limit 0,1");
|
|
if($tmp["id"]>0){
|
|
$price_md=$tmp["price"]>0?$tmp["price"]:$price_zk;
|
|
$str_price.=" / ".d_translate("md")."价:".deel_num($price_md)."元";
|
|
}
|
|
}
|
|
if(is_array($sys_color_zd) && count($sys_color_zd)>0){
|
|
//取得款色表的定制字段
|
|
$other_info.="<table border=0 cellspacing=1 cellpadding=3 bgcolor='#cccccc'><tr bgcolor='#f0f0f0'><td>颜色</td>";
|
|
foreach($sys_color_zd as $k1 => $v1){
|
|
$other_info.="<td>".$v1."</td>";
|
|
}
|
|
$other_info.="</tr>";
|
|
$q="select * from ".$table_pre."kh_color where iid='".$msg["id"]."' order by color";
|
|
$r=$db->query($q);
|
|
while($m=$db->fetch_array($r)){
|
|
$other_info.="<tr bgcolor='#ffffff'><td>".$m["color"]."-".get_cate_title_no("color",$m["color"])."</td>";
|
|
foreach($sys_color_zd as $k1 => $v1){
|
|
$other_info.="<td align='center'>".$m[$k1]."</td>";
|
|
}
|
|
$other_info.="</tr>";
|
|
}
|
|
$other_info.="</table>";
|
|
}
|
|
//如果采用了这个变量,图片右边的单款属性以及款号,圆牌号都不显示。
|
|
if($show_mod=="1"){
|
|
$order_single_detail="<table width='100%' border='0' cellspacing='1' cellpadding='3'>";
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1' width='80'>".d_translate("xh")."</td><td align='left'>".get_kh_xh($msg)."</td></tr>";
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1'>款号</td><td align='left'>".$msg["no"]."</td></tr>";
|
|
if($msg["title"])
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1'>款式名</td><td align='left'>".$msg["title"]."</td></tr>";
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1'>价格</td><td align='left'>".$str_price."</td></tr>";
|
|
$q="select * from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and flag_bd='n' and no<>'jgd' and no<>'sx' and no<>'color' order by ord";
|
|
$r=$db->query($q);
|
|
$i=0;
|
|
while($m=$db->fetch_array($r)){
|
|
if($m["no"]=="zd1" || $m["no"]=="zd2" || $m["no"]=="zd3"){
|
|
$str_tmp=$msg[$m["no"]];
|
|
}else{
|
|
$str_tmp=get_cate_title_no($m["no"],$msg[$m["no"]]);
|
|
}
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1'>".$m["title"]."</td><td align='left'>".$str_tmp."</td></tr>";
|
|
}
|
|
$order_single_detail.="<tr><td align='right' class='order_single_td1'>备注</td><td align='left'>".dhtmlchars($msg["remark"])."</td></tr>";
|
|
$order_single_detail.="</table>";
|
|
$str_select_dz="[]";
|
|
}else{
|
|
//--------------------------------------显示定制选项
|
|
$str_select_dz="[";
|
|
$q="select * from ".$table_pre."keyword where cate='arr_select' and flag_ka='y' and flag_bd='n' and no<>'jgd' and no<>'sx' and no<>'color' order by ord";
|
|
$r=$db->query($q);
|
|
$i=0;
|
|
while($m=$db->fetch_array($r)){
|
|
$str_select_dz.="\"".$m["title"]."|";
|
|
if($m["no"]=="zd1" || $m["no"]=="zd2" || $m["no"]=="zd3"){
|
|
$str_select_dz.=$msg[$m["no"]]."\",";
|
|
}else{
|
|
$str_select_dz.=deel_js_var(get_cate_title_no($m["no"],$msg[$m["no"]]))."\",";
|
|
}
|
|
$i++;
|
|
}
|
|
$str_select_dz.="]";
|
|
$other_info="";
|
|
}
|
|
//$order_single_detail="<table width='100%' border='0' cellspacing='1' cellpadding='3'><tr><td align='right' width='100' class='order_single_td1'>款号</td><td align='left'>".$msg["no"]."</td></tr></table>";
|
|
?>
|