This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

112 lines
3.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
//-------------------------------------------------------店铺界面,顶部已订数和完成率的显示
//已订金额和件数
if($is_brand=="y" && $s_brand){
$tmp=get_db_msg("select sum(jsje) 'je',sum(num) 'num' from ".$table_pre."order where ka<>'y'".$con_spk." and uid='".$uid."'".$con_brand);
$ydje=$tmp["je"];
$ydjs=$tmp["num"];
}else{
$ydje=$msg_login["order_money".$flag_spk];
if(trim($zk_type) || $check_md["num"]>0){
$ydje=$msg_login["order_money".$flag_spk."_zk"];
}
$ydjs=$msg_login["order_num".$flag_spk];
}
$con_brand1=($is_brand=="y")?$con_brand:"";
//取得已订款数
$tmp1=get_db_msg("select count(distinct no) 'num' from ".$table_pre."order where uid='".$uid."' and ka<>'y'".$con_spk.$con_brand1);
$yd_ks=$tmp1["num"];
//取得已订款色数
$tmp1=get_db_msg("select count(distinct no,color) 'num' from ".$table_pre."order where uid='".$uid."' and ka<>'y'".$con_spk.$con_brand1);
$yd_kss=$tmp1["num"];
//指标
$zb_info="";
if(in_array("kss",$arr_zb_type)){
if($is_brand=="y" && $s_brand)
$zb_kss=0;
else
$zb_kss=$msg_login["zb_kss"];
if($zb_kss>0)
$zb_info.=$zb_kss."款色/";
}
if(in_array("ks",$arr_zb_type)){
if($is_brand=="y" && $s_brand)
$zb_ks=0;
else
$zb_ks=$msg_login["zb_ks"];
if($zb_ks>0)
$zb_info.=$zb_ks."款/";
}
if($is_brand=="y" && $s_brand){
$tmp_zb=get_db_msg("select sum(zb_js) 'zb_js',sum(zb) 'zb' from ".$table_pre."client_brand where cid='".$uid."'".$con_brand);
}else if($is_brand=="y"){
$tmp_zb=get_db_msg("select sum(zb_js) 'zb_js',sum(zb) 'zb' from ".$table_pre."client_brand where cid='".$uid."'");
}
if(in_array("js",$arr_zb_type)){
if($is_brand=="y"){
$zb_js=$tmp_zb["zb_js"];
}else{
$zb_js=$msg_login["zb_js"];
}
if($zb_js>0)
$zb_info.=$zb_js."件/";
}
if(in_array("je",$arr_zb_type)){
if($is_brand=="y"){
$zb=$tmp_zb["zb"]*10000;
}else{
$zb=$msg_login["zb"]*10000;
}
if($zb>0)
$zb_info.=deel_je_show($zb)."元/";
}
//完成率
$wcl="";
if(in_array("je",$arr_zb_type)){
if($zb>0)
$wcl.="金额".deel_bfb1($ydje,$zb,1)."/";
}
if(in_array("js",$arr_zb_type)){
if($zb_js>0)
$wcl.="件数".deel_bfb1($ydjs,$zb_js,1)."/";
}
if($wcl==""){
if(in_array("ks",$arr_zb_type)){
if($zb_ks>0)
$wcl="款数".deel_bfb1($yd_ks,$zb_ks,1)."/";
}else if(in_array("kss",$arr_zb_type)){
if($zb_kss>0)
$wcl="款色数".deel_bfb1($yd_kss,$zb_kss,1)."/";
}
}
//
//----------------------top info
if($hd_face=="mobile"){
$top_info="<span class='top_state'>".$msg_login["title"]."</span>";
$top_info.="<a href='?_m=".$_m."&_a=o&s_tab=detail'><span class='top_state_link'>已订".$ydjs."件/";
$top_info.=deel_je_show(deel_num($ydje))."";
if($wcl)
$top_info.=",完成".substr($wcl,0,-1);
$top_info.="</span></a>";
}else{
//显示消息图标
if($is_msg=="y")
$top_info="<a href=\"javascript:show_msg_history();\"><span class='top_state'>".$msg_login["title"]."(".$msg_login["username"].")<img src=\"".$theme_path."/images/new.gif\" width=\"31\" height=\"20\" border=\"0\" align=\"absmiddle\"></span></a>";
else
$top_info="<span class='top_state'>".$msg_login["title"]."(".$msg_login["username"].")";
if($is_brand=="y" && $s_brand)
$top_info.="[".$title_brand."]";
$top_info.="</span><a href='?_m=".$_m."&_a=o&s_tab=detail'><span class='top_state_link'>已订".deel_num($ydjs)."";
$top_info.="/".deel_je_show(deel_num($ydje))."";
$top_info.="/".deel_num($yd_ks)."";
if($is_dkds=="n")
$top_info.="/".deel_num($yd_kss)."款色";
if($is_brand!="y" || ($is_brand=="y" && $sys_multi_brand_show_zwcl=="y") || $s_brand){
if($zb_info)
$top_info.=",指标".substr($zb_info,0,-1);
if($wcl)
$top_info.=",完成".substr($wcl,0,-1);
}
$top_info.="</span></a>";
}
?>