<?php /*a:3:{s:82:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\shop\whole.html";i:1598153471;s:83:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\shop.html";i:1598170154;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\Public\footer.html";i:1598867518;}*/ ?>
<!-- 头部 -->
	<!doctype html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<title><?php if(isset($meta_title)): ?><?php echo htmlentities($meta_title); ?>_<?php endif; ?><?php echo api('WEB_SITE_TITLE'); ?></title>
	<link href="/im/public/index/css/base.css" rel="stylesheet" type="text/css"/>
	<link href="/im/public/index/css/shop.css" rel="stylesheet" type="text/css"/>
	<link href="/im/public/index/css/style.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="/im/public/common/jquery.min.js"></script>

<script type="text/javascript" src="/im/public/common/layer/layer.js"></script>

</head>

<body>
<!--header start-->
<div class="top">
<div class="topbar">
              <span class="welcome" style="float:left"><a href="javascript:void(0);" onclick="SetHome(this,'<?php echo root_url(); ?>')">设为首页</a>
			  <a class='line'></a>
		<a href="javascript:void(0);" onclick="AddFavorite('<?php echo api('SITENAME'); ?>',location.href)" title="<?php echo api('SITENAME'); ?>">收藏本站</a>
		</span> 	  
		
  
<ul class="topnav">
 <li class="item weixin">
				<span><a class="wx">微信商城</a></span>
					<div>
					    <h4>
						关注商城微信号</h4>
					    <img src="<?php echo api("wxcode"); ?>" width='100'> 
					</div>
				</li>		
 <li class="item line"> 		
</li>

  <li class="item">
	 	
		<span  id="userfavor"><a  href="<?php echo url('collect/index'); ?>" ><i></i>我的收藏&nbsp;</a> </span>

</li>
   <li class="item line"> 		
</li>

<li class="item"> 	
		<span  id="sell"><a  href="<?php echo url('user/index?id=6'); ?>" >个人中心&nbsp;<b></b></a> </span>
		  
  
</li> <li class="item line"> 		
</li>
 <li class="item"> 	
		<span  id="account"><a  href="<?php echo url('order/index'); ?>" >我的订单&nbsp;</a> </span>

</li><li class="item line"> 		
</li>
 <li class="item"> 	
		<a id="shop_menu"  href="<?php echo url('order/index'); ?>" >商家管理&nbsp;&nbsp;<i class="icon iconfont icon-arrow"></i></a> 

						<ul id="shop_menu_down" style="display: none;">
							<li><a href="<?php echo url('shop/step1'); ?>">招商入驻</a></li>
							<li><a href="<?php echo url('seller/user/login'); ?>">商家登录</a></li>
						</ul>
</li>
 <li class="item line"> 		
</li>	
<li class="item" ><?php if(is_login()): ?><a href="<?php echo url('User/logout'); ?>">退出</a>
</li>
 <li class="item line"> 		
</li>
<li class="item" >	<a href="" class="red">欢迎光临<?php echo api('SITENAME'); ?>,<?php echo get_username(); ?></a>
<?php else: ?>
</li>

<li class="item"> 	
 <a href="<?php echo U('User/login'); ?>" >登录</a>
 </li>
 <li class="item line"> 		
</li><li class="item">
 <a href="<?php echo url('User/register'); ?>" style="">注册</a> </li>
<?php endif; ?>
	</li>
</ul> </div></div>
	<!--/header end-->
	
<!--logo start--><div class="w100">
	<div class="shop_header">
		
			<a class="logo" href="<?php echo url('index/index'); ?>"><img  title="<?php echo api('WEB_SITE_TITLE'); ?>" src="<?php echo api('logo'); ?>" width="186" height="60" /></a>
	<div class="shopInfo" id="shophead">

                        <div class="shopName">
                            <div class="tit">
                                <a href="" title="<?php echo htmlentities((isset($info['title']) && ($info['title'] !== '')?$info['title']:'')); ?>"><?php echo htmlentities((isset($info['title']) && ($info['title'] !== '')?$info['title']:'')); ?></a>
                            </div>
                            <p>
                                <img src="/im/public/index/images/hg.gif">
                                <img src="/im/public/index/images/hg.gif">
                                <img src="/im/public/index/images/hg.gif">
                            </p>
                        </div>

                        <div class="shopScore">
                            <ul class="boxs">
                                <li>
                                    <div class="name">描述</div>
                                    <div class="score">
                                        <span class="active">5</span>
                                    </div>
                                </li>
                                <li>
                                    <div class="name">服务</div>
                                    <div class="score">
                                        <span class="active">5</span>
                                    </div>
                                </li>
                                <li>
                                    <div class="name">发货</div>
                                    <div class="score">
                                        <span class="active">5</span>
                                    </div>
                                </li>
                            </ul>
                        </div>

                      

                        <div class="extra" style="display: ;" id="shopdetail">
                            <div class="hd">
                                <p class="shop-head-collect">
                                    <a href="" title="韵品香茶业" class="shop-logo">
                                        <img src="<?php echo htmlentities(get_cover_path($info['cover_id'])); ?>" alt="">
                                    </a>
                                    <a onclick="addshop(<?php echo htmlentities((isset($info['id']) && ($info['id'] !== '')?$info['id']:'')); ?>);" class="btn">收藏本店</a>
                                </p>
                                <p class="counts">1</p>
                                <p class="collect-tip">收藏</p>
                                
                            </div>
                            <div class="bd">
                                <div class="shop-rate">
                                    <h4>店铺动态评分</h4>
                                    <ul>
                                        <li>描述相符：<a href="javascript:void(0)"><em class="active">5</em></a></li>
                                        <li>服务态度：<a href="javascript:void(0)" ><em class="active">5</em></a></li>
                                        <li>发货速度：<a href="javascript:void(0)"><em class="active">5</em></a></li>
                                    </ul>
                                </div>
                                <div class="extend">
                                    <h4 class="h4">店铺服务</h4>
                                    <ul>
                                        <li>
                                            <span>店铺掌柜：</span>
                                            <div class="rgt">
                                                <a  class="active"><?php echo htmlentities(get_username($info['uid'])); ?></a>
                                            </div>
                                        </li>
                                        <li>
                                            <span>在线客服：</span>
                                            <div class="rgt service-online">
                                                <a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo htmlentities($info['qq']); ?>&site=qq&menu=yes" title="点击联系在线客服">
                                                    <i class="icon iconfont icon-Cus-service active"></i>
                                                </a>
                                            </div>
                                        </li>
                                        <li>
                                            <span>开店时长：</span>
                                            <div class="rgt">
                                                  <a  class="active">1个月 15天</a>
                                            </div>
                                        </li>
                                        <li>
                                            <span>所在地：</span>
                                            <div class="rgt">
                                                <span><?php echo htmlentities((isset($info['location']) && ($info['location'] !== '')?$info['location']:"")); ?></span>
                                            </div>
                                        </li>
                                        <li>
                                            <span>工商执照：</span>
                                            <div class="rgt">
                                                <a  target="_blank">
                                                    <img src="/im/public/index/images/zz.png" width="20" height="22" alt="行业资质">
                                                </a>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
	
			<form id="searchForm" action="<?php echo url('shop/whole'); ?>" class="shop-search-form" method="post">
        <i class="icon iconfont icon-search search-icon"></i>
        <input type="search" name="keyword" placeholder="请输入您要搜索的商品" value="" class="shop-search-input">
		<input type="hidden" name="id"  value="<?php echo htmlentities((isset($info['id']) && ($info['id'] !== '')?$info['id']:'')); ?>">
        <input type="button" onclick="searchShop()" value="搜本店" class="seller-goods">
        <input type="button" onclick="searchSite()" value="搜全站" class="seller-shop">
    </form>
			
	</div>		
		
	</div>
	<!--/logo end--> 
<div class="t_banner" style="background:url(<?php echo htmlentities(get_cover($info['banner'],'path')); ?>) no-repeat;">

<div class="in_width">
<h1><?php echo htmlentities((isset($info['title']) && ($info['title'] !== '')?$info['title']:'')); ?></h1>
</div>

</div>
<div class="dp_nav">
				<ul class="ul_01 in_width">
					
					<li class="li_01 current"><a href="<?php echo url('index/index?id='.$info['id']); ?>" class="a_01">网站首页</a></li>
									
					<li class="li_01 current"><a href="<?php echo url('shop/index?id='.$info['id']); ?>" class="a_01">店铺首页</a></li><li class="li_01 all ">
						<a href="<?php echo url('shop/whole?id='.$info['id']); ?>" class="a_01"><span class="txt fl">所有商品</span></a>
					</li>
				<?php if(is_array($cate_list) || $cate_list instanceof \think\Collection || $cate_list instanceof \think\Paginator): $i = 0; $__LIST__ = $cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
										<li class="li_01">
											<a href="<?php echo url('shop/lists',array('shopid'=>$info['id'],'id'=>$vo['id'])); ?>" class="a_01">
											
												<?php echo htmlentities($vo['title']); ?>
											</a>
										</li>
									<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
	<script>
	      			
	$(function () {           
      var $li = $("#shophead");     
  
      $li.mouseenter(function () {
    
        $(this).children("#shopdetail").show();
      });  
      $li.mouseleave(function () {
        $(this).children("#shopdetail").hide();
      });          
    });		
	function addshop(id){
		     
				var order_url="<?php echo url('collect/addshop'); ?>";
		        $.post(order_url,{id:id},function(data){
                     
					 if(data.code){  
					     opensuccess(data);
					 }
					 else{
					   layer.msg(data.msg);
					 }
                });
		} 
	var oDiv3 = document.getElementById('shop_menu');
			var oDiv4 = document.getElementById('shop_menu_down');
			var timer2 = null;
			oDiv3.onmouseover = oDiv4.onmouseover = function (){	
				oDiv4.style.display = 'block';
				clearTimeout(timer2);
			
			}
			oDiv3.onmouseout = oDiv4.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer2 = setTimeout(function () { 
				oDiv4.style.display = 'none'; },300);
				oDiv3.style.background = '#f2f2f2';
			}
			
		function SetHome(obj,url){

    try{

        obj.style.behavior='url(#default#homepage)';

       obj.setHomePage(url);

   }catch(e){

       if(window.netscape){

          try{

              netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

         }catch(e){

              alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");

          }

       }else{

        alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【"+url+"】设置为首页。");

       }

  }

}

 

//收藏本站 bbs.ecmoban.com

function AddFavorite(title, url) {

  try {

      window.external.addFavorite(url, title);

  }

catch (e) {

     try {

       window.sidebar.addPanel(title, url, "");

    }

     catch (e) {

         alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");

     }

  }

}	
			
			
		 var oDiv7 = document.getElementById('wx_menu');
			var oDiv8 = document.getElementById('wx_menu_down');
			var timer5 = null;
			oDiv7.onmouseover = oDiv8.onmouseover = function (){	
				oDiv8.style.display = 'block';
				clearTimeout(timer5);
				oDiv7.style.background = '#fff';oDiv8.style.background = '#f2f2f2';
			}
			oDiv7.onmouseout = oDiv8.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer5 = setTimeout(function () { 
				oDiv8.style.display = 'none'; },100);
				oDiv7.style.background = '#f2f2f2';
			}
	
	function searchShop(){
	
	 $('.shop-search-form').submit();
	
	  
	}
	function searchSite(){
	
	
		var url="<?php echo url('search/index'); ?>";
		 $('.shop-search-form').attr("action",url);	
	     $('.shop-search-form').submit();
	  
	}
	
			
	var del_url="<?php echo url('cart/delItem'); ?>";
var post_url="<?php echo url('cart/addItem'); ?>";	
var dec_url="<?php echo url('cart/decNum'); ?>";
var inc_url="<?php echo url('cart/incNum'); ?>";
var img_path="/im/public/index/images";
var order_url="<?php echo url('Order/add'); ?>";
var del_cart_url='<?php echo url("cart/delCart"); ?>';
var clear_cart_url='<?php echo url("cart/clear"); ?>';
var collect_url='<?php echo url("collect/add"); ?>';
          	var oDiv00 = document.getElementById('search');
			var oDiv01 = document.getElementById('store_list');
			var timer00 = null;
			oDiv00.onmouseover = oDiv01.onmouseover = function (){	
				oDiv01.style.display = 'block';
				clearTimeout(timer00);
				
			}
			oDiv00.onmouseout = oDiv01.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer00 = setTimeout(function () { 
				oDiv01.style.display = 'none'; },300);
				
			}
			
			$('#hdSearchTab ul li').eq(1).click(function(e) {
			    var type=$("#search_type").val();
				if(type==1){
				   $("#search_type").val(2);
				   $('.logo_in #hdSearchTab ul li').eq(0).find("span").text("店铺");
				   $('.logo_in #hdSearchTab ul li').eq(1).find("span").text("商品");
				   var url="<?php echo url('search/shop'); ?>";
				   $(".logo_in .head-search-bar .search-form").attr("action",url);
				}
				if(type==2){
				   $("#search_type").val(1);
				   $('.logo_in #hdSearchTab ul li').eq(0).find("span").text("商品");
				   $('.logo_in #hdSearchTab ul li').eq(1).find("span").text("店铺");
				   var url="<?php echo url('search/index'); ?>";
				   $(".logo_in .head-search-bar .search-form").attr("action",url);
				} 
				$(this).hide();
				
			});	

</script>
<!-- 头部 --> 
	<!--main start-->
	<div class="main w100 dpy_main">
		<div class="main_in in_width dpy_main_in">
		
		
			<div class="dp_del">
				<div class="splb_div">
					<div class="lb_title f14">全部商品</div>
					<div class="tab_div_01">
						<ul class="fl f12">
							<li  <?php if(strtolower($order) == 'id'): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('shop/whole',array('id'=>$info['id'],'order'=>"id",'sort'=>$rankType)); ?>">
									新品
									<div class="icons">
										<span class="up  <?php if($sort == "asc"): ?>sel<?php endif; ?>"></span>
										<span class="down <?php if($sort == "desc"): ?>sel<?php endif; ?>"></span>
									</div>
								</a>
							</li>
							<li <?php if(strtolower($order) == 'price'): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('shop/whole',array('id'=>$info['id'],'order'=>"price",'sort'=>$rankType)); ?>">
									价格
									<div class="icons">
											<span class="up  <?php if($sort == "asc"): ?>sel<?php endif; ?>"></span>
										<span class="down <?php if($sort == "desc"): ?>sel<?php endif; ?>"></span>
									</div>
								</a>
							</li>
							<li <?php if(strtolower($order) == 'sales'): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('shop/whole',array('id'=>$info['id'],'order'=>"sales",'sort'=>$rankType)); ?>">
									销量
									<div class="icons">
										<span class="up  <?php if($sort == "asc"): ?>sel<?php endif; ?>"></span>
										<span class="down <?php if($sort == "desc"): ?>sel<?php endif; ?>"></span>
									</div>
								</a>
							</li>
							<li <?php if(strtolower($order) == "num"): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('shop/whole',array('id'=>$info['id'],'order'=>"num",'sort'=>$rankType)); ?>">
									收藏
									<div class="icons">
										<span class="up  <?php if($sort == "asc"): ?>sel<?php endif; ?>"></span>
										<span class="down <?php if($sort == "desc"): ?>sel<?php endif; ?>"></span>
									</div>
								</a>
							</li>
							<li <?php if(strtolower($order) == 'view'): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('shop/whole',array('id'=>$info['id'],'order'=>"view",'sort'=>$rankType)); ?>">
									人气
									<div class="icons">
										<span class="up  <?php if($sort == "asc"): ?>sel<?php endif; ?>"></span>
										<span class="down <?php if($sort == "desc"): ?>sel<?php endif; ?>"></span>
									</div>
								</a>
							</li>
						</ul>
						<div class="search fr">
						<form class="search-form"  action="<?php echo url(''); ?>" method="post">
						<input name="order" value="<?php echo htmlentities((isset($order) && ($order !== '')?$order:'')); ?>" type="hidden">
						<input name="sort"  value="<?php echo htmlentities((isset($sort) && ($sort !== '')?$sort:'')); ?>" type="hidden">
						<input type="text" name="keyword" placeholder="搜索店内商品" class="ipt fl"/>
						 <input name="id" value="<?php echo htmlentities((isset($info['id']) && ($info['id'] !== '')?$info['id']:'')); ?>" type="hidden">
						 <input type="submit" id="button_01" value="搜索" class="input-submit fl">
						</form>
						</div>
					</div>
					<div class="tab_del">
						<ul class="list_ul">
						
						<?php if(is_array($res['list']) || $res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $res['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
							<li class="list_li">
								<div class="tab_pic">
								  <?php $list= get_pictures($vo['id']); ?>	
									<ul class="show_ul">
										  <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $k=>$vo1): ?> 
								<li <?php if($k == 0): ?>class="current"<?php endif; ?>>
									<a href="<?php echo url('goods/detail?id='.$vo['id']); ?>">
										<img src="<?php echo htmlentities(get_cover_path($vo1)); ?>" width="160" height="160" attr-id="<?php echo htmlentities($k); ?>"/>
									</a>
								</li>
								 <?php endforeach; endif; else: echo "" ;endif; ?>
									</ul>
									<ul class="tab_ul">
							      <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $k=>$vo1): ?> 
								<li <?php if($k == 0): ?>class="current"<?php endif; ?>>
										<a href="javascript:;">
										<img src="<?php echo htmlentities(get_cover_path($vo1)); ?>" width="24" height="24" attr-id="<?php echo htmlentities($vo1); ?>"/>
									</a>
								</li>
								  <?php endforeach; endif; else: echo "" ;endif; ?>
									</ul>
								</div>
								<a href="<?php echo url('goods/detail?id='.$vo['id']); ?>" class="name f12"><?php echo htmlentities(substr_cn($vo['title'],"20")); ?></a>
								<p class="price f12">¥ <?php echo htmlentities($vo['price']); ?><span>售出:<?php echo htmlentities($vo['sales']); ?>件</span></p>
							</li>
							 <?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
						<div class="page_div_03 f12">
							  <?php echo htmlentities($res['page']); ?>
						</div>
					</div>
				</div>				
			</div>
		</div>

	</div>
	<!--/main end-->	
	<!-- 尾部 -->

		<!--footer  start-->
	<div class="footer w100">
		<div class="footer_in in_width f14">
			<div class="footer_title">
				<ul>
					<li class="qa">
						<span class="left_icon">优</span>
						<div class="right_div">
							<div class="right_div_t_cn">品质保障</div>
							<div class="right_div_t_en">Quality Assurance</div>
						</div>
					</li>
					<li class="wr">
						<span class="left_icon">七</span>
						<div class="right_div">
							<div class="right_div_t_cn">七天无理由退换货</div>
							<div class="right_div_t_en">Without Reason</div>
						</div>
					</li>
					<li class="csr">
						<span class="left_icon">特</span>
						<div class="right_div">
							<div class="right_div_t_cn">特色服务体验</div>
							<div class="right_div_t_en">Characteristic Service Experience</div>
						</div>
					</li>
					<li class="hc">
						<span class="left_icon">帮</span>
						<div class="right_div">
							<div class="right_div_t_cn">帮助中心</div>
							<div class="right_div_t_en">Help Center</div>
						</div>
					</li>
				</ul>
			</div>
			<div class="footer_site_info">
				 <?php if(is_array($footer) || $footer instanceof \think\Collection || $footer instanceof \think\Paginator): $i = 0; $__LIST__ = $footer;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
				 <ul class="footer_site_info_ul">
					<li><a href="<?php echo U('help/index?id='.$vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></a></li>
					 <?php if(is_array($vo['ids']) || $vo['ids'] instanceof \think\Collection || $vo['ids'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['ids'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?> 
					<li><a href="<?php echo U('help/index?id='.$vo['id']); ?>"><?php echo htmlentities($vo1['title']); ?></a></li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
               <?php endforeach; endif; else: echo "" ;endif; ?> 
			   <ul class="footer_site_info_ul">
					<img src="<?php echo api('gzh'); ?>" WIDTH="100"><P>微信扫一扫关注</P>
				</ul>
				
			</div>
		</div>
	</div>
	<!--/footer  end-->
	<span class="copyright" style="">@2014-2017
	   <a href="http://bycms.com">bymall</a> 版权所有 <?php echo api('isp'); ?></span>
<script type="text/javascript" src="/im/public/common/layer/layer.js"></script>

<script type="text/javascript">

	function opensuccess(data){
			  
				   layer.alert(data.msg, {
                            icon: 1,
                             skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则，去这里查阅
                     });
				//$(".alert_success").parents(".mask").removeClass("none"); 
			   setTimeout(function(){
                        if (data.url) {
                          location.href=data.url;
                        }
               },1000);
				
			}
			function openerror(data){
			      layer.alert(data.msg, {
                            icon: 2,
                             skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则，去这里查阅
                     })  ; 
					 setTimeout(function(){
                        if (data.url) {
                          location.href=data.url;
                        }
               },1000);
			}
</script>
<div id="fullbg"></div>

<div class="login_div" style="display:;"><span class="header">您尚未登录</span>
						<i class="arrow" onclick="closeBg()"></i>
						<form id="login_form">
							<div class="list">
								<div class="icon icon_02 fl"><div></div></div>
								<input type="text" name="mobile" class="ipt_01 fl" placeholder="手机号/用户名/邮箱">
							</div>
							<div class="list">
								<div class="icon icon_03 fl"><div></div></div>
								 <input type="text" name="password" placeholder="密码" class="ipt_01 fl">
							</div>
							<div class="last">
								<div class="list fl">
									<div class="icon icon_04 fl"><div></div></div>
									<input type="text" name="verify" placeholder="验证码" class="ipt_02 fl">
								</div>
								<div class="yzm fl"><img  class="verifyimg reloadverify" src="" width="80"></div>
							</div>
							<p class="errmsg"></p> <input type="hidden" name="type" value="1" placeholder="密码" class="ipt_01 fl">
							<input type="submit" id="submain" class="submit f14" value="登录">
							<p  class="reg"><a href="<?php echo url('user/register'); ?>"class="f1">注册</a><a href="<?php echo url('user/forget'); ?>"class="fr">忘记密码?</a></p>
						</form>
					</div>
<script type="text/javascript">

	$("#submain").click(function(){
    		var self =$('#login_form');
			var url="<?php echo url('user/login'); ?>"
    		$.post(url, self.serialize(), success, "json");
    		return false;

    		function success(data){
    			if(data.code){
    				  $(".errmsg").html(data.msg);window.location.reload();
    			} else {
    			     $(".errmsg").html(data.msg);$(".errmsg").css("visibility",'visible');
    				//刷新验证码
    				$(".reloadverify").click();
    			}
    		}
    	});		

//显示灰色 jQuery 遮罩层
function showBg() { 
	$(".login_div").fadeIn();
    var bh = $("body").height();
    var bw = $("body").width();
	
    $("#fullbg").css({
        height:bh,
        width:bw,
        display:"block"
    });
  
}
var is_login="<?php echo is_login(); ?>";
//关闭灰色 jQuery 遮罩
function closeBg() {
    $("#fullbg,.login_div").hide(); 
	$(".quick_links_wrap").removeClass("w320");
}

		    var verifyimg = $(".verifyimg").attr("src");
            $(".reloadverify,.reloadverify_a").click(function(){
			
               if( verifyimg.indexOf('?')>0){
                    $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
                }else{
                    $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
                }
            });


	  </script>

<script type="text/javascript" src="/im/public/index/js/common.js"></script>


<!-- 尾部 -->
	
	<script type="text/javascript">
		$(function(){		
			//dp_nav
			$('.dpy_main_in .dp_del .splb_div .tab_div_01 ul li').click(function(e) {
				$(this).addClass('current').siblings().removeClass('current');
			});
			$('.dpy_main_in .dp_del .splb_div .tab_div_01 ul li a .icons .down').click(function(e) {
				$(this).addClass('sel').siblings('.up').removeClass('sel');
			});
			$('.dpy_main_in .dp_del .splb_div .tab_div_01 ul li a .icons .up').click(function(e) {
				$(this).addClass('sel').siblings('.down').removeClass('sel');
			});
			//右侧tab			
				//图片轮播
			var num_02 = 0;
			$('.dpy_main_in .dp_del .splb_div .tab_del .list_ul .list_li .tab_pic .tab_ul li').click(function(e) {
				$(this).addClass('current').siblings().removeClass('current');
				$(this).closest('.tab_ul').siblings('.show_ul').children('li').eq(num_01).stop().fadeOut();
				num_01++;
				if(num_02 > 1){
					num_02 = 0;
				}
				$(this).closest('.tab_ul').siblings('.show_ul').children('li').eq(num_01).stop().fadeIn();				
			});
			//page
			$('.dpy_main_in .dp_del .splb_div .tab_del .page_div_03 ul li').click(function(e) {
				$(this).addClass('current').siblings().removeClass('current');			
			});
			
		})
	</script>
</body>
</html>
