{#include file="sys/admin_header.htm"#}
<script type="text/javascript">
$(document).ready(function()
{
 
	
	//纵向列表排序
	$(".listod .txt").each(function(i){
	var li=$(this).children(".select");
	var htm="<a href=\""+li.attr("href")+"\" class=\""+li.attr("class")+"\">"+li.text()+"</a>";
	li.detach();
	$(this).prepend(htm);
	});
			
		
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
	{#include file="gifts/admin_gifts_nav.htm"#}
  <div class="clear"></div>
</div>



<div class="seltpye_y">

	<div class="tit link_lan">
	<strong>使用记录</strong><span>(共找到{#$total#}条)</span>
	<a href="?act=use">[恢复默认]</a>
	<div class="pli link_bk"><u>每页显示：</u>
	<a href="{#"perpage:10"|qishi_parse_url#}" {#if $smarty.get.perpage=="10"#}class="select"{#/if#}>10</a>
	<a href="{#"perpage:20"|qishi_parse_url#}" {#if $smarty.get.perpage=="20"#}class="select"{#/if#}>20</a>
	<a href="{#"perpage:30"|qishi_parse_url#}" {#if $smarty.get.perpage=="30"#}class="select"{#/if#}>30</a>
	<a href="{#"perpage:60"|qishi_parse_url#}" {#if $smarty.get.perpage=="60"#}class="select"{#/if#}>60</a>
	<div class="clear"></div>
	</div>
	</div>	
 
 
	<div class="list">
	  <div class="t">使用时间</div>	  
	  <div class="txt link_lan">
		<a href="{#"settr:"|qishi_parse_url#}" {#if $smarty.get.settr==""#}class="select"{#/if#}>不限</a>
		<a href="{#"settr:3"|qishi_parse_url#}" {#if $smarty.get.settr=="3"#}class="select"{#/if#}>三天内</a>
		<a href="{#"settr:7"|qishi_parse_url#}" {#if $smarty.get.settr=="7"#}class="select"{#/if#}>一周内</a>
		<a href="{#"settr:30"|qishi_parse_url#}" {#if $smarty.get.settr=="30"#}class="select"{#/if#}>一月内</a>
	  </div>
    </div>
	
	<div class="list listod" style=" width:260px;">
	  <div class="t">礼品卡分类</div>	  
	  <div class="txt link_lan">
	  <a href="{#"t_id:"|qishi_parse_url#}" {#if $smarty.get.t_id==""#}class="select"{#/if#}>不限</a>
 {#foreach from=$category item=cli#}
 <a href="{#"t_id:"|cat:$cli.t_id|qishi_parse_url#}" {#if $smarty.get.t_id==$cli.t_id#}class="select"{#/if#}>{#$cli.t_name#}</a>
	{#/foreach#}
	  </div>
    </div>
	
	
	<div class="clear"></div>
</div>


 
  <form id="form1" name="form1" method="post" action="?act=gifts_act">
  {#$inputtoken#}
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="link_lan">
    <tr>
      <td  class="admin_list_tit admin_list_first" width="150">
     <!-- <label id="chkAll"><input type="checkbox" name="chkAll"  id="chk" title="全选/反选" />
      </label> -->
	  
	  使用时间
	  </td>
      <td  class="admin_list_tit" > 卡号 </td>
	  <td  class="admin_list_tit"  >积分</td>
	  <td  class="admin_list_tit" > 用户名 </td>
	  <td  class="admin_list_tit" > Email </td>
      
 

    </tr>
	{#foreach from=$list item=list#}
	<tr>
      <td  class="admin_list admin_list_first"  style="color:#FF6600">
      
	 <!-- <input name="id[]" type="checkbox" id="id" value="{#$list.id#}"  /> -->
 
{#$list.usetime|date_format:"%Y-%m-%d %H:%M"#}		 
	  
	  </td>
      <td  class="admin_list"  >
	  {#$list.account#}</td>
	   <td  class="admin_list">
	   <strong>{#$list.giftsamount#}</strong>
	  </td>
	  <td   class="admin_list"  >
	  {#$list.username#}

	  </td>
      <td   class="admin_list"  >
	  {#$list.email#}

	  </td>
     
	  
    </tr>
	 {#/foreach#}
  </table>
 
   </form>
   {#if !$list#}
<div class="admin_list_no_info">没有任何信息！</div>
{#/if#}
<table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
      <tr>
        <td>
 &nbsp;
		</td>
        <td width="305" align="right">
		<form id="formseh" name="formseh" method="get" action="?">	
			<div class="seh">
			    <div class="keybox"><input name="key" type="text"   value="{#$smarty.get.key#}" /></div>
			    <div class="selbox">
					<input name="key_type_cn"  id="key_type_cn" type="text" value="{#$smarty.get.key_type_cn|default:"卡号"#}" readonly="true"/>
						<div>
								<input name="key_type" id="key_type" type="hidden" value="{#$smarty.get.key_type|default:"1"#}" />
											<div id="sehmenu" class="seh_menu">
														<ul>
														<li id="1" title="卡号">卡号</li>
														<li id="2" title="用户名">用户名</li>
														<li id="3" title="UID">UID</li>
														<li id="4" title="Email">Email</li>
														<li id="5" title="手机">手机</li>
														</ul>
												</div>
												 
						</div>				
				</div>
				<div class="sbtbox">
				<input name="act" type="hidden" value="use" />
				<input type="submit" name="" class="sbt" id="sbt" value="搜索"/>
				</div>
				<div class="clear"></div>
		  </div>
		  </form>
		<script type="text/javascript">$(document).ready(function(){showmenu("#key_type_cn","#sehmenu","#key_type");});	</script>
	    </td>
      </tr>
  </table>
<div class="page link_bk">{#$page#}</div>

 
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>