<!DOCTYPE html>
<html>
<head>
{template head}
<style>
h1 {margin-top:.5em;}
</style>
</head>
<body>
	{template header}
			{template here}
			<div class="work-text">
				<div class="list-menu">
					  <ul>
						<li{if ($typeid=='1')} class="list-this"{/if}><a href="member.php?act=user_juanlist">未使用<span class="f99 f05">({$r1})</span></a></li>
						<li{if ($typeid=='2')} class="list-this"{/if}><a href="member.php?act=user_juanlist&typeid=2">使用记录<span class="f99 f05">({$r2})</span></a></li>
						<li{if ($typeid=='3')} class="list-this"{/if}><a href="member.php?act=user_juanlist&typeid=3">已过期<span class="f99 f05">({$r3})</span></a></li>
					  </ul> 
					  <div class="clear"></div>
				</div>
				<div class="top-list-box"></div>
				<div class="clear"></div>
				<section class="ac-container">
					{if ($juan)}
					{loop $juan $key $val}
					<div>
						<div class="art">
							<a href="member.php?act=my_juan_view&id={$val['aid']}">
							<div class="ll" style="background:url({IMG_PATH}llbg.png) no-repeat 101% center;">
									<p>{$val['title']}</p>
								<h1>
								<span class="f15">{ex_tab($val['codeid'])}</span>
								</h1>
							</div>
							</a>
							<div class="clear"> </div>
							<div class="tt">
							<a href="javascript:void(0);"><div class="titles">{$val['comname']}</div><div class="near">
							{if ($val['enddate']>=time() && empty($val['offdate']))}
									可使用
								{elseif ($val['enddate']<time() && empty($val['offdate']))}
									已过期
								{else}
									已核销
								{/if}
							</div></a>
							</div>
						</div>
					</div>
					{/loop}
					{else}
						<div class="clear h_1"></div>
						<p class="txt-center"><img src="templates/{$CFG[tplname]}/images/i23.png" width="50%" /></p>
					{/if}
				</section>
					<div class="clear h_1"> </div>
					{template page}
		</div>
	</div>
{template footer}
</body>
</html>