<?php /*a:3:{s:84:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\coupon\index.html";i:1594790236;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\header.html";i:1599655369;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\footer.html";i:1599734140;}*/ ?>
<!-- 头部 -->
	<!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/list.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="logo w100">
		<div class="logo_in in_width">
			<h1 class="logo_pic fl"><a href="<?php echo url('index/index'); ?>"><img title="<?php echo api('WEB_SITE_TITLE'); ?>" src="<?php echo api('logo'); ?>" width="201" height="59" /></a></h1>			
		<div class="head-search-layout">
				<div class="head-search-bar" id="head-search-bar">
					<div class="hd_serach_tab" id="hdSearchTab">
						<ul><li id="search" class="current"><span>商品</span><i class="icon iconfont icon-down7"></i></li><li id="store_list" style="display: none;"><span>店铺</span><i class="icon iconfont icon-down7"></i></li></ul>
                        <i></i>
                    </div>
                    <form class="search-form" id="top_search_form" action="<?php echo url('search/index'); ?>" method="post">
						<input name="act" id="search_act" value="search" type="hidden">
                        <input name="type" id="search_type" value="1" type="hidden">
                        <input name="keyword" id="keyword" type="text" class="input-text ui-autocomplete-input" value="" maxlength="60" onwebkitspeechchange="foo()" 
						placeholder="请输入您要搜索的商品的关键字" autocomplete="off"  >
                        <input type="submit" id="button" value="搜&nbsp;索" class="input-submit">
                    </form>
                  
				</div>
				
			</div>		
			<div class="mod_minicart" style="">
				<a id="nofollow" target="_self" href="<?php echo url('cart/index'); ?>" class="mini_cart_btn">
					<i class="icon iconfont icon-cart"></i> 
					
					<span>我的购物车</span><em class="cart_num"><?php echo htmlentities((isset($cart["total_num"]) && ($cart["total_num"] !== '')?$cart["total_num"]:"0")); ?></em>
				</a>
				<div id="minicart_list" class="minicart_list">
					<div class="spacer"></div>
					<!-- 购物车没有商品 -->
					
					<!-- 购物车有商品 -->
					<div class="list_detail">
						<ul class="has_sp cartlist">
					        <?php if(empty($cartlist) || (($cartlist instanceof \think\Collection || $cartlist instanceof \think\Paginator ) && $cartlist->isEmpty())): ?>
			         	<!-- 购物车没有商品 -->
						  
							<p  class="none_tips" style="margin:50px 0;text-align:center;">购物车中没有商品，赶紧去选购！</p>
						 
				        <?php else: if(is_array($cartlist) || $cartlist instanceof \think\Collection || $cartlist instanceof \think\Paginator): if( count($cartlist)==0 ) : echo "" ;else: foreach($cartlist as $key=>$vo): ?>  
							<li class="item<?php echo htmlentities($vo['id']); ?>">
								<a href="<?php echo url('Goods/detail?id='.$vo['goodsid']); ?>" class="pic fl"><img src="<?php echo htmlentities(get_goods_cover($vo['goodsid'])); ?>"/></a>
								<a href="<?php echo url('Goods/detail?id='.$vo['goodsid']); ?>" class="name fl"><?php echo htmlentities(get_goods($vo['goodsid'],"title")); ?><?php echo $vo['specifications']; ?></a>
								<div class="mcartRight">
									<span class="pro_price">¥<em><?php echo htmlentities($vo['price']); ?></em>×<em class="item_num_<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['num']); ?></em></span>
									<em><a onclick="cancelCart(this,<?php echo htmlentities($vo['id']); ?>)">删除</a></em>
								</div>
							</li>
						<?php endforeach; endif; else: echo "" ;endif; ?><?php endif; ?>
						</ul>
						<div class="checkout_box" style="<?php if(empty($cartlist) || (($cartlist instanceof \think\Collection || $cartlist instanceof \think\Paginator ) && $cartlist->isEmpty())): ?>display:none<?php else: ?>display:block<?php endif; ?> ">
							<p class="fl">共<em class="tNum"><?php echo htmlentities($cart['total_count']); ?></em>种商品,总计金额：<em class="tSum">¥<?php echo htmlentities($cart['total_money']); ?></em></p>
							<a class="checkout_btn" href="<?php echo url('cart/index'); ?>"> 去结算 </a>

						</div>
					</div> 
				</div>				
			</div>			
			
		</div>
	</div>
	<!--/logo end--> 
<?php if($action != 'cart/index'): ?>
	<!--nav start-->
	<div class="nav w100 nav_header">
		<div class="nav_in in_width">
			<div class="sidebar_div fl">
				<div class="title">
					<i></i>
					<h2 class="f14" id="all-class">全部商品分类</h2>
				</div>
				<ul class="left_sidebar" id="all-goods">
									<?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($category) ? array_slice($category,0,9, true) : $category->slice(0,9, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
					<li class="left_sidebar_li">
						<div class="product">
							<div class="border">								
								<div class="fl_div fl"><h3><a href="<?php echo url('Goods/lists?id='.$vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></a></h3>
								</div>
								<span class="fr pic arrow"></span>
							</div>							
						</div>
						<div class="product-wrap f14">
							<div class="menu_div">								
								<div class="sub-class" >
									<div class="sub-class-content">
										<div class="recommend-class">
										
										</div>
										  <?php if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
										<dl>
											<dt><h3><a href="<?php echo url('Goods/lists?id='.$vo1['id']); ?>"><?php echo htmlentities($vo1['title']); ?></a></h3></dt>
											<dd class="goods-class">
												<?php if(is_array($vo1['child']) || $vo1['child'] instanceof \think\Collection || $vo1['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo1['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><a href="<?php echo url('Goods/lists?id='.$vo2['id']); ?>"><?php echo htmlentities($vo2['title']); ?></a>
											 <?php endforeach; endif; else: echo "" ;endif; ?>
											</dd>
										</dl> <?php endforeach; endif; else: echo "" ;endif; ?>
									</div>
								</div>								
							</div>
						</div>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>			
			<ul class="nav_list fl">
			  <?php if(is_array($channel) || $channel instanceof \think\Collection || $channel instanceof \think\Paginator): $k = 0; $__LIST__ = $channel;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
				<li class="<?php if($current_url == $vo['url']): ?>current<?php endif; ?> fl"><a class="f16"href="<?php echo htmlentities(get_url($vo['url'])); ?>"><?php echo htmlentities($vo['title']); ?></a></li>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	<!--/nav end-->	<?php endif; ?><script type="text/javascript" src="<?php echo getResource(); ?>js/base.js"></script>
	<script>
	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进行添加");

     }

  }

}
	
	$('.input-submit').click(function(e) {
			   $(".search-form").submit();			
			});
             $('.input-submit-shop').click(function(e) {
			     var url="<?php echo url('search/shop'); ?>";
				 $(".search-form").attr("action", url);
			     $(".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"); ?>';

    	window.onload=function(){
		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);
				
			}
	//分类菜单的显示隐藏                                                                
	var oDiv3 = document.getElementById('all-class');
	var oDiv4 = document.getElementById('all-goods');
	var timer2 = null;//定义定时器变量
	//鼠标移入div1或div2都把定时器关闭了，不让他消失
	oDiv3.onmouseover = oDiv4.onmouseover = function (){	
		oDiv4.style.display = 'block';
		clearTimeout(timer2);
	}

	//鼠标移出div1或div2都重新开定时器，让他延时消失
	oDiv3.onmouseout = oDiv4.onmouseout = function (){
		//开定时器
		timer2 = setTimeout(function () { 
		oDiv4.style.display = 'none'; },300);
	}
	       var oDiv9 = document.getElementById('shop_menu');
			var oDiv10 = document.getElementById('shop_menu_down');
			var timer9 = null;
			oDiv9.onmouseover = oDiv10.onmouseover = function (){	
				oDiv10.style.display = 'block';
				clearTimeout(timer9);
				oDiv9.style.background = '#fff';
			}
			oDiv9.onmouseout = oDiv10.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer9 = setTimeout(function () { 
				oDiv10.style.display = 'none'; },300);
				oDiv9.style.background = '#f2f2f2';
			}	
	} 
	
			

          
			$('.logo_in #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="/index.php/index/search/shop.html";
				   $(".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="/index.php/index/search/index.html";
				   $(".logo_in .head-search-bar .search-form").attr("action",url);
				} 
				$(this).hide();
				
			});
			
			

</script>
<!-- 头部 --> 
	<!--crumb start-->
	<div class="top_banner w1200">
	<div id="rgt" class="left">
				<div class="coupon-left">
                <div class="coupon-bg"></div>
                <div class="coupon-nc">
                    <div class="coupon-lf-text">
                        <div class="coupon-zx">优惠券中心</div>
                        <div class="coupon-eng">Coupon Center</div>
                        <div class="coupon-zxq">商城用户专享</div>
                    </div>

                    <ul class="coupon-qhd clearfix">
                                                                                                        <li>
                                <div class="circle">抢</div>
                                <div class="cir-text">限时抢券</div>
                            </li>
                                                                                                            <li>
                                <div class="circle">惠</div>
                                <div class="cir-text">叠加使用</div>
                            </li>
                                                                                                            <li>
                                <div class="circle">多</div>
                                <div class="cir-text">种类多样</div>
                            </li>
                                                                        </ul>

                    <a href="<?php echo url('lists'); ?>" class="my-card" clstag="jr|keycount|lingquan_guanggao|zb_wdkq">
                       
                        <span class="card-text">我的优惠券</span>
                    </a>
                </div>
				
		</div>
	</div>
		<div id="focus" class="mod">
		<div id="slideBox" class="slideBox">
<div class="hd">
<ul>
<li class="">
<span>1</span>
<div class="dot">
<div class="liner"></div>
</div>
</li>
<li class="">
<span>2</span>
<div class="dot">
<div class="liner"></div>
</div>
</li>

</ul>
</div>
<div class="bd">
<ul >

<li s>
<a href="#"><img src="/im/public/index/images/c1.jpg" width="100%" height="350" alt="erp订单管理系统" ></a>
</li>
<li>
<a href="#"><img src="/im/public/index/images/c2.jpg" width="100%" height="350" alt="erp订单管理系统" ></a>
</li>
</ul>
</div>

<a class="prev" href="javascript:void(0)"></a>
<a class="next" href="javascript:void(0)"></a>
</div>
		
<script type="text/javascript" src="/im/public/index/js/jquery.SuperSlide.2.1.3.js"></script>
<script type="text/javascript">
	jQuery(".slideBox").slide({
		mainCell: ".bd ul",
		effect: "fold",
		trigger: "click",
		autoPlay: true,
		mouseOverStop: false,
		startFun:function(i,c){
			
		}
	});
</script>		
		
		</div>
		
		
	</div>
	<!--/crumb end-->	
	<!--main start-->
	<div class="main w1200">
		<div class="quan-tit">
                <div class="cate-heading">
                   <img src="/im/public/index/images/ic.png">
                </div>
				  </div>
					<div class="coupon_div" style="min-height:702px;margin-top:0;">
			     	
					   <?php if(!(empty($res['list']) || (($res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator ) && $res['list']->isEmpty()))): ?>
					  <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;?>
					  
							<div class="coupon coupon-wave-left coupon-yellow">
	<div class="coupon-info coupon-hole coupon-info-right-dashed">
		<div class="coupon-price">&yen;<?php echo htmlentities($vo['money']); ?></div>
		<div class="coupon-desc"><?php echo htmlentities($vo['money']); ?>元优惠券满<?php echo htmlentities($vo['total']); ?>元使用</div>
		<div class="coupon-expiry-date">有效期至：<?php echo htmlentities(date('Y-m-d',!is_numeric($vo['end_time'])? strtotime($vo['end_time']) : $vo['end_time'])); ?></div>
	</div>
	<div class="coupon-get" onclick="get(<?php echo htmlentities($vo['id']); ?>)">立即领取</div>
</div>

								<?php endforeach; endif; else: echo "" ;endif; ?>	
                   
					  </ul> <?php else: ?>
								<div class="empty"> <p>暂无数据</p></div>
					   <?php endif; ?>
					 </div>
			
					<?php echo $res['page']; ?>
				
					<script type="text/javascript">
		function  get(id){ 
  
	  $.ajax({
		type:'post', //传送的方式,get/post
		url:'<?php echo url("coupon/add"); ?>', //发送数据的地址
		data:{id:id},
		dataType: "json",
		success:function(data){	
			if(data.code){
				//取消成功
			   opensuccess(data);
			 }
			else{
				openerror(data);	
			}
	      
		 }
	 })	
	
}
	</script>
		
	</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>
<?php echo hook('im'); ?>

	

</body>
</html>
