<?php include_once(mvc::$cfg['PATH_TPL'].'public/topSeller.php');?>
<div class="maintb">
	<?php include_once(mvc::$cfg['PATH_TPL'].'seller/leftMenu.php');?>
<!-- 中间 -->
	<div class="main_middle">
		<div class="seller_middle">			
			<div class="show-download" style="display: none;">为了保证您在后台的使用体验,建议您使用Google Chrome浏览器。您可以自行到网上下载安装，也可以点击这里<a class="a_blue" href="<?php echo mvc::$cfg['HOST']['b2c'];?>Chrome.rar">下载免安装版的Google Chrome浏览器</a></div>
			<!-- 店铺首页配件信息 -->
			<div class="seller_shop_saled">
				<div class="seller_shop_pro">
					<div class="seller_shop_title">
						<p>店铺状态&nbsp;&nbsp;&nbsp;<span>( <?php if(!empty($shopStatus)){ echo $shopStatus;}else{ echo '未知状态';}?> )</span></p>
					</div>
				</div>
				<div class="clear"></div>
				<div class="seller_shop_pro">
					<div class="seller_shop_title">
						<p>配件管理</p>
					</div>
					<div class="txt_main_info">
						<div class="txt_main_type">
							<p>
								<span>出售中的配件:</span>
								<?php if(!empty($onSale)){?>
								<a href="/seller/productList?status=1" class="blue" target="_blank"><?php echo $onSale;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
						<div class="txt_main_type">
							<p>
								<span>等待上架的配件:</span>
								<?php if(!empty($notOnSale)){?>
								<a href="/seller/productList?status=0" class="blue" target="_blank"><?php echo $notOnSale;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
					</div>
				</div>
				<div class="clear"></div>
				<div class="seller_shop_pro">
					<div class="seller_shop_title">
						<p>订单提醒</p>
					</div>
					<div class="txt_main_info">
						<div class="txt_main_type">
							<p>
								<span>待付款的订单:</span>
								<?php if(!empty($waitPay)){?>
								<a href="/seller/order?status=creat" class="blue" target="_blank"><?php echo $waitPay;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
						<div class="txt_main_type">
							<p>
								<span>待发货的订单:</span>
								<?php if(!empty($waitSend)){?>
								<a href="/seller/order?status=paied" class="blue" target="_blank"><?php echo $waitSend;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
						<div class="txt_main_type">
							<p>
								<span>售后中的订单:</span>
								<?php if(!empty($refund)){?>
								<a href="/seller/order?status=refund" class="blue" target="_blank"><?php echo $refund;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
					</div>
				</div>
				<div class="clear"></div>
				<div class="seller_shop_pro">
					<div class="seller_shop_title">
						<p>橱窗管理</p>
					</div>
					<div class="txt_main_info">
						<div class="txt_main_type">
							<p>
								<span>橱窗数:</span>
								<span><?php echo $windowCount;?></span>
							</p>
						</div>
						<div class="txt_main_type">
							<p>
								<span>已用橱窗数:</span>
								<?php if(!empty($promoted)){?>
								<a href="/seller/productList?recom=Y" class="blue" target="_blank"><?php echo $promoted;?></a>
								<?php }else{?>
								<span>0</span>
								<?php }?>
							</p>
						</div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="seller-download pull-right">
				<div class="download-box">
					<img src="/static/images/pjzs.png">
					<div class="gray text-center">跑街的助手（安卓）</div>
				</div>
				<div class="download-box">
					<img src="/static/images/pjdw.png">
					<div class="gray text-center">跑街的助手（手机浏览器版）</div>
				</div>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>
<script type="text/javascript">
var Browser=Browser || (function(window){
   var document = window.document,
     navigator = window.navigator,
     agent = navigator.userAgent.toLowerCase(),
     //IE8+支持.返回浏览器渲染当前文档所用的模式
     //IE6,IE7:undefined.IE8:8(兼容模式返回7).IE9:9(兼容模式返回7||8)
     //IE10:10(兼容模式7||8||9)
     IEMode = document.documentMode,  
     //chorme
     chrome = window.chrome || false ,
     System = {
       //user-agent
       agent : agent,
       //是否为IE
       isIE : /msie/.test(agent),
       //Gecko内核
       isGecko: agent.indexOf( "gecko" )> 0 && agent.indexOf( "like gecko" )< 0 ,
       //webkit内核
       isWebkit: agent.indexOf( "webkit" )> 0 ,
       //是否为标准模式
       isStrict: document.compatMode === "CSS1Compat" ,
       //是否支持subtitle
       supportSubTitle:function(){
         return "track" in document.createElement( "track" );
       },
       //是否支持scoped
       supportScope:function(){
         return "scoped" in document.createElement( "style" );
       },
       //获取IE的版本号
       ieVersion:function(){
         try {
          return agent.match(/msie ([\d.]+)/)[ 1 ] || 0 ;
         } catch (e) {
          console.log( "error" );
          return IEMode;
         }
       },
       //Opera版本号
       operaVersion:function(){
         try {
           if (window.opera) {
             return agent.match(/opera.([\d.]+)/)[ 1 ];
           } else if (agent.indexOf( "opr" ) > 0 ) {
             return agent.match(/opr\/([\d.]+)/)[ 1 ];
           }
         } catch (e) {
           console.log( "error" );
           return 0 ;
         }
       },
       //描述:version过滤.如31.0.252.152 只保留31.0
       versionFilter:function(){
         if (arguments.length === 1 && typeof arguments[ 0 ] === "string" ) {
           var version = arguments[ 0 ];
             start = version.indexOf( "." );
           if (start> 0 ){
             end = version.indexOf( "." ,start+ 1 );
             if (end !== - 1 ) {
               return version.substr( 0 ,end);
             }
           }
           return version;
         } else if (arguments.length === 1 ) {
           return arguments[ 0 ];
         }
         return 0 ;
       }
     };
      
   try {
     //浏览器类型(IE、Opera、Chrome、Safari、Firefox)
     System.type = System.isIE? "IE" :
       window.opera || (agent.indexOf( "opr" ) > 0 )? "Opera" :
       (agent.indexOf( "chrome" )> 0 )? "Chrome" :
       //safari也提供了专门的判定方式
       window.openDatabase? "Safari" :
       (agent.indexOf( "firefox" )> 0 )? "Firefox" :   
       'unknow' ;
        
     //版本号 
     System.version = (System.type === "IE" )?System.ieVersion():
       (System.type === "Firefox" )?agent.match(/firefox\/([\d.]+)/)[ 1 ]:
       (System.type === "Chrome" )?agent.match(/chrome\/([\d.]+)/)[ 1 ]:
       (System.type === "Opera" )?System.operaVersion():
       (System.type === "Safari" )?agent.match(/version\/([\d.]+)/)[ 1 ]:
       "0" ;
      
     //浏览器外壳
     System.shell=function(){
       //遨游浏览器
       if (agent.indexOf( "maxthon" ) > 0 ) {
         System.version = agent.match(/maxthon\/([\d.]+)/)[ 1 ] || System.version ;
         return "傲游浏览器" ;
       }
       //QQ浏览器
       if (agent.indexOf( "qqbrowser" ) > 0 ) {
         System.version = agent.match(/qqbrowser\/([\d.]+)/)[ 1 ] || System.version ;
         return "QQ浏览器" ;
       }
        
       //搜狗浏览器
       if ( agent.indexOf( "se 2.x" )> 0 ) {
         return '搜狗浏览器' ;
       }
        
       //Chrome:也可以使用window.chrome && window.chrome.webstore判断
       if (chrome && System.type !== "Opera" ) {
         var external = window.external,
           clientInfo = window.clientInformation,
           //客户端语言:zh-cn,zh.360下面会返回undefined
           clientLanguage = clientInfo.languages;
          
         //猎豹浏览器:或者agent.indexOf("lbbrowser")>0
         if ( external && 'LiebaoGetVersion' in external) {
           return '猎豹浏览器' ;
         }
         //百度浏览器
         if (agent.indexOf( "bidubrowser" )> 0 ) {
           System.version = agent.match(/bidubrowser\/([\d.]+)/)[ 1 ] ||
             agent.match(/chrome\/([\d.]+)/)[ 1 ];
           return "百度浏览器" ;
         }
         //360极速浏览器和360安全浏览器
         var is360 = _mime("type", "application/vnd.chromium.remoting-viewer");
        function _mime(option, value) {
            var mimeTypes = navigator.mimeTypes;
            for (var mt in mimeTypes) {
                if (mimeTypes[mt][option] == value) {
                    return true;
                }
            }
            return false;
        }
        if(is360){
           return "360" ;
        }
         return "Chrome" ;
       }
       return System.type;   
     };
  
     //浏览器名称(如果是壳浏览器,则返回壳名称)
     System.name = System.shell();
     //对版本号进行过滤过处理
     System.version = System.versionFilter(System.version);
      
   } catch (e) {
     console.log( "error" );
   }
   return {
     client:System
   };
    
})(window);
	if(Browser.client.name!='Chrome'){
	    $('.show-download').show();
	}
</script>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footAll.php');?>