<?php /* Smarty version Smarty-3.1.8, created on 2015-11-23 17:39:59
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\ucenter\hongbao\index.html" */ ?>
<?php /*%%SmartyHeaderCode:541556502a6dd602c8-09601159%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e543730d6de00dc1d0305f8a7cac5dca3a333a6b' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\ucenter\\hongbao\\index.html',
      1 => 1448271571,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '541556502a6dd602c8-09601159',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_56502a6dde1164_33218457',
  'variables' => 
  array (
    'status' => 0,
    'items' => 0,
    'item' => 0,
    'MEMBER' => 0,
    'time' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56502a6dde1164_33218457')) {function content_56502a6dde1164_33218457($_smarty_tpl) {?><?php if (!is_callable('smarty_function_link')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\function.link.php';
if (!is_callable('smarty_modifier_format')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\modifier.format.php';
?><!DOCTYPE HTML>
<html>
    <head>
        <?php echo $_smarty_tpl->getSubTemplate ("xiche/block/sheader.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

       
    </head>
    <body>
        
<header>
	<i class="left"><a id="icon_goback" href="<?php echo smarty_function_link(array('ctl'=>'ucenter/index'),$_smarty_tpl);?>
"></a></i>
    <div class="title">我的红包</div>
    <i class="right"><a href="<?php echo smarty_function_link(array('ctl'=>'ucenter/hongbao/exchange'),$_smarty_tpl);?>
">兑换红包</a></i>
</header>
<section class="page_center_box">
	<div class="order_top">
		<div class="order_chose"> <a href="<?php echo smarty_function_link(array('ctl'=>'ucenter/hongbao:index','arg'=>1),$_smarty_tpl);?>
" <?php if ($_smarty_tpl->tpl_vars['status']->value==1){?> class="current" <?php }?> > 可用红包 </a> <a href="<?php echo smarty_function_link(array('ctl'=>'ucenter/hongbao:index','arg'=>0),$_smarty_tpl);?>
" <?php if ($_smarty_tpl->tpl_vars['status']->value==0){?> class="current" <?php }?> > 历史红包 </a> </div>
	</div>
    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['items']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
	<div class="redbag_cont">
		<div class="redbag_box redbag_gybox">
			<h4 class="pointcl overflow_clear"><?php echo $_smarty_tpl->tpl_vars['item']->value['amount'];?>
元红包</h4>
			<p class="overflow_clear">满<?php echo $_smarty_tpl->tpl_vars['item']->value['need_amount'];?>
元可用</p>
			<p class="overflow_clear">限尾号<?php echo substr($_smarty_tpl->tpl_vars['MEMBER']->value['mobile'],-4);?>
的手机使用</p>
			<p class="overflow_clear txtRt">有效期至<?php echo smarty_modifier_format($_smarty_tpl->tpl_vars['item']->value['endline'],'Y-m-d');?>
</p>
			<?php if ($_smarty_tpl->tpl_vars['item']->value['is_used']==1){?>
                        <i class="yong"></i>
                        <?php }else{ ?>
                            <?php if ($_smarty_tpl->tpl_vars['item']->value['endline']<$_smarty_tpl->tpl_vars['time']->value){?>
                                <i class="guo"></i>
                            <?php }else{ ?>
                                <i class="wei"></i>
                            <?php }?>
                        <?php }?>
		</div>
	</div>
    <?php }
if (!$_smarty_tpl->tpl_vars['item']->_loop) {
?>
        <div class="order_no">
		<img src="/themes/default/xiche/static/images/baoIco1.png">
		<h2>暂无红包</h2>
		<p class="graycl">红包空了，快去找土豪做朋友吧！</p>
		<a href="<?php echo smarty_function_link(array('ctl'=>'ucenter/hongbao/exchange'),$_smarty_tpl);?>
" class="btn">兑换红包</a>
	</div>
     
     <?php } ?>

</section>
        
        
        <script type="text/javascript">
            require(["zepto", "underscore", "frozen"], function ($, _, fz) {

                        $('#list3').addClass('on');

            });            
        </script>
        
        <?php echo $_smarty_tpl->getSubTemplate ("xiche/block/sfooter.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

    </body>
</html><?php }} ?>